judemanutd / AutoStarter

This library helps bring up the autostart permission manager of a phone to the user so they can add an app to autostart.
MIT License
626 stars 115 forks source link

Wrong activity on older Asus devices #28

Closed NoHarmDan closed 4 years ago

NoHarmDan commented 4 years ago

It's me again!

The activity com.asus.mobilemanager.powersaver.PowerSaverSettings doesn't exist on Asus with Android 5. However, through my immeasurable skills of reverse engineering, I have found the right one that does exist:

ComponentName("com.asus.mobilemanager",
        "com.asus.mobilemanager.autostart.AutoStartActivity")

Don't know which version of Android has which, so I guess just consider adding a fallback to this activity if the current one is not found.

judemanutd commented 4 years ago

immeasurable skills indeed :100: @NoHarmDan keep em coming, this will be super useful to everyone using this library. I saw the other issue as well that you created, thanks for that. I'm a little busy during the week but will take a look at both of those issues and make the necesarry changes.