Skip to content

Instantly share code, notes, and snippets.

View yaayimanalien's full-sized avatar
💭
code is fun

yaayimanalien

💭
code is fun
  • space
View GitHub Profile
@androidneha
androidneha / adb_commands.MD
Last active June 25, 2025 00:42
Some adb commands to change setting for battery optimisation, start service, stop service, grant permission, revoke permission and etc.

To list-up installed app

pm list packages

Search for a particualr app with pacakagename

pm list pacakges | grep com.abc

Turn on Battery Optimization for a particular app

adb shell dumpsys deviceidle whitelist -<package_name>

Turn off Battery Optimization for a particular app