You can start a service at startup for Dynamic Registration.
Maximum priority value: Android: Priority = "2147483647" // The maximum priority value is the maximum value of the unsigned Int. This is also true for 360. As for listening, I tried it, which of the following is the first to install the listener.
File file = new file ("/data/APP /");
String [] files = file. List ();
To print the order of the array, which is the order of your installation. That is, the order of broadcast acceptance.
If you want to change the order, you need to modify the package name of your application. After a third-party application is installed, the com.yourname-1.apk folder is generated under data/app. the order of broadcasting is related to the name.
By the way, you need the root permission to execute the above two lines of code if debugging is performed on a real machine. Or machine with the Eng version. If you use a simulator for debugging, You can execute it.
The 360 priority level is high because it is a dynamic registration broadcast and then starts up. Dynamic broadcast has a higher priority than static broadcast. The priority of Dynamic Registration is that you receive the Dynamic Registration first. Therefore, we need to find out who starts the program first, who starts the program first, and who registers the broadcast first, who can receive the broadcast of the text message first. As for how to start the instance first, see the answer above. The top ranking of the array will start the instance first. This is only for third-party installation. The built-in sequence is certainly higher than that of a third party.
PS: The above text comes from the Forum...