Reversing some Android malware I see that it sets android:priority
to 10000 in the AndroidManifest.xml file. Looking at the Android Documentation I see that it needs a value > -1000
and < 1000
.
How does this work? Is 10000
a valid priority value? Are there legitimate applications that use that priority value?
MAX_INT
is only done by malware, I was pointing out the reason why the malware is using it. It's still an hack though, and should be avoided if other options exist (for example, it won't work if two SMS apps use this trick - the one installed first will get it because same-priority receivers are handled in that order). – Andrea Biondo Sep 08 '16 at 18:55