Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device detection issues #104

Closed
licaon-kter opened this issue Dec 12, 2019 · 5 comments
Closed

Device detection issues #104

licaon-kter opened this issue Dec 12, 2019 · 5 comments

Comments

@licaon-kter
Copy link
Contributor

Maybe you can add https://dontkillmyapp.com in the pop-up text as "More info:"

How do you detect devices? My Xiaomi is not detected...

@bilde2910
Copy link
Owner

That sounds like a good idea; didn't know that site existed.

How do you detect devices? My Xiaomi is not detected...

I detect Xiaomi devices by checking if the device hostname has "-miui-" in it. If this doesn't work for you, I'd love it if I could get some data for your device so I can improve the detection. I don't have a Xiaomi device myself, and for those of my friends who have it, apparently you need to sign in with a Xiaomi account to be allowed to install apps via adb (which they don't want, for reasonable privacy reasons).

adb shell getprop | grep ro.build

@licaon-kter
Copy link
Contributor Author

licaon-kter commented Dec 12, 2019

It's a custom, China based but made global, ROM by xiaomi.eu: [ro.build.host]: [xiaomi.eu]

@bilde2910
Copy link
Owner

Can you confirm whether this opens the battery savings screen on your device?

adb shell am start -n "com.miui.powerkeeper/.ui.HiddenAppsContainerManagementActivity"

@licaon-kter
Copy link
Contributor Author

Yes, it opens one of the Energy management view.

@bilde2910
Copy link
Owner

Thanks for confirming. Hopefully this fixes the issue.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants