Sunday, April 20, 2014

Help on Android system broadcasting issues


Prawn:
There is no such way, I want the system comes APK boot, and let each external install APK when automatically prohibit boot,
360 similar function optimization guru like; example, I choose a boot system comes APK, at its source, based on changes in the source code, so that it can in turn be able to accept all of the system's boot Android system broadcast to achieve, who can be externally mounted APK boot ban started. But no idea, you turn to the great God.
In fact, plainly, is that 360 is Quebec to ban the boot entry. Its principle is what



              

<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
The android.intent.action.BOOT_COMPLETED into ordered broadcast, register your apk in a BroadcastReceiver accept this broadcast, and to set higher priority. Apk so you will first receive this broadcast, the broadcast abort later processed out, so that other apk not receive this broadcast, it will not boot up.
360 is certainly not so to achieve because it can not change the source.
Reply:
There removePermission and addPermission methods PackageManager, you can achieve added a delete permissions.
You can look at an application by removing android.permission.RECEIVE_BOOT_COMPLETED authority to prohibit its reach from the start.

No comments:

Post a Comment