INNER CODE UNIT · Java
onReceive
nining377/dolby_beta · app/src/main/java/com/raincat/dolby_beta/Hooklite.java:122
public void onReceive(Context c, Intent intent) {
if (msg_play_process_init_finish.equals(intent.getAction())) {
playProcessInit = true;
if (mainProcessInit && playProcessInit)
context.sendBroadcast(new Intent(msg_hook_play_process));
} else if (msg_send_notification.equals(intent.getAction())) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
NotificationHelper.getInstance(context).sendUnLockNotification(context, intent.getIntExtra("code", 0x10),
intent.getStringExtra("title"), intent.getStringExtra("title"), intent.getStringExtra("message"));
XposedBridge.log(intent.getStringExtra("title") + ":" + intent.getStringExtra("message"));
}
}
}, intentFilter);
} else if (processName.equals(PACKAGE_NAME + ":play") && SettingHelper.getInstance().getSetting(SettingHelper.master_key)) {
//音源代理
new ProxyHook(context, true);
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(msg_hook_play_process);