miracle2k / android-autostarts

Tool to manage autostarts (broadcast receivers) on an Android device.
http://elsdoerfer.name/=android-autostarts
GNU General Public License v3.0
207 stars 88 forks source link

Shows nothing on Xperia S #1

Closed qvas-zz closed 10 years ago

qvas-zz commented 11 years ago

Despite the app works perfect on HTC Hero 2.2, it is absolutely nonfunctional on Sony Xperia S 4.03

Tungstwenty commented 11 years ago

I have the same behavior on Xperia Z and after a bit of investigation found that it's a problem with the theme / skin. The AndroidManifest.xml file that is obtained from each package is not the intended one but rather an injected one from the applied skin package.

With some experimentation I managed to make it work properly - it involves using the openXmlResourceParser(int cookie, String filename) and using cookie = 0, 1, ... to access the multiple AndroidManifest.xml entries that exist on the packageContext. Once we find one that is indeed for package=... then that's the one where the receivers can be found.

I'm not sure if the tool is still being maintained, but wanted anyway to leave this tip.

miracle2k commented 11 years ago

Thanks for figuring it out, very helpful.