Cita: Originalmente Escrito por
currao
Ahhh. He visto un hilo usando Google. Corrígeme si me confundo. Hay que conectar el móvil por adb al pc, ejecutar un comando que de permisos root a la app (gsambattery o betterbattery status) y con eso las estadísticas de la app son más detalladas, lo que me permitirá saber dónde está el gasto mayoritario de batería sin necesidad de ser realmente root (sigo en stock ROM sin root). Es así?
BBS
If the "adb devices" returned a positive result is is safe to proceed:
adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS
Adapt the package name depending on which version - XDA or PlayStore (without "_xdaedition" extension) - you have installed
Update: starting with 2.3-150 two new permissions are required to support alarms fully on unrooted devices
adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS
adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.DUMP
adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.PACKAGE_USAGE_STATS