need help No stats have been collected yet issue - BetterBatteryStats

so i am on tab s6 lite android 13 i have granted the three permission
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
when i did those adb command there was no error and also there was no confirmation that it succeeded. Should there be like a confirmation that it succeeded?
i already plugged and unplugged my device
Summary
Unplugged Current
10h 32m 1s Bat:-13% (85% to 72%) [1.2%/h]
when i went to check again my device it says No stats have been collected yet

Related

[Q]I'm trying to make a little .cmd file to uninstall my apps. need a little help.

Trying to make a little .CMD Files to uninstall my app so I don't have to type everything in again when I do a flash rom.. here is what I have
Code:
pause
@adb kill-server
@adb shell cd /system/app/
@adb shell su*
pause
@adb shell rm /system/app/RemotePVR.apk
@adb shell rm /system/app/tn55-android-blur.apk
@adb shell rm /system/app/FaceRecognition.apk
@adb shell rm /system/app/Layar-samsung.apk
pause
The issue is at the "@adb shell su*" I get an error saying at the super not found.. now when I type the commands in my self it works great.. but in a .bat file or .cmd files it does not work.. what i'm I missing?
Every call to ADB like this is a standalone command.
That is, when you do a
Code:
adb shell cd /system/app/
what happens is that it starts the adb shell, runs the command, and then exits. So when you call su, you lose superuser access when running the next adb shell command, because that shell instance is now gone, kaput, finito.
I also tried to make a script like this, but got stuck. We need to chain commands to ADB, like you can do in *nix with a semi-colon separator between command, like thus:
Code:
command1 ; command2
("&&" in Windows/DOS)
But ADB doesn't seem to support chaining commands.
I guess you have to do a shell script, put it on the phone and run it from there. Or some kind of "adb sushell" command would be nice...
Thanks I was kinda wondering if that was what was happening.. to bad the su command would not stay active.. o well.... maybe someone will come up with something..
Im not at a pc but can u test
adb shell su command
Does tht work ?
you could make a 2nd script which pushes the 1st to the device with "adb push". this script then gets root with "su" and uninstalls/deletes the apps ... btw. you can try using "pm" (packetmanager) which can install/uninstall/reinstall apps. however i don't know if it works with system apps...
Alright here : (eg, say remove launcher)
Code:
adb shell su -c 'mount -o rw,remount /dev/block/mtdblock3 /system'
adb shell su -c 'rm /system/app/Launcher.apk'
adb shell su -c 'rm /system/app/Launcher.odex'
adb shell pm uninstall com.android.launcher
fyi : "SystemApp Remover" on market essentially does the same thing, except it eliminates the need for u to look for the package name ur self.
Hm, that works, but I get a superuser prompt on the phone for every new command (the "app name" is the command line).
Daneshm90 said:
Alright here : (eg, say remove launcher)
Code:
adb shell su -c 'mount -o rw,remount /dev/block/mtdblock3 /system'
adb shell su -c 'rm /system/app/Launcher.apk'
adb shell su -c 'rm /system/app/Launcher.odex'
adb shell pm uninstall com.android.launcher
fyi : "SystemApp Remover" on market essentially does the same thing, except it eliminates the need for u to look for the package name ur self.
Click to expand...
Click to collapse
sweet that worked. I would get the SystemApp Remover but I can't download paid apps till Google will fix my account. unless there is something like it for free.

Kindle Store - Requested action is not permitted

I hid some apps (adb shell pm hide package) back when I got this tablet for my mom and lost the list of everything I hid. She tried to shop the kindle store for books and is getting the error, "The requested action is not permitted. Check parental controls settings and retry."
I don't know if one of the hidden apps is what's causing the issue but can anyone help on this issue?
InunoTaishou said:
I hid some apps (adb shell pm hide package) back when I got this tablet for my mom and lost the list of everything I hid. She tried to shop the kindle store for books and is getting the error, "The requested action is not permitted. Check parental controls settings and retry."
I don't know if one of the hidden apps is what's causing the issue but can anyone help on this issue?
Click to expand...
Click to collapse
Yes, the issue an app is hidden
see Adb Shell Pm Hide as much bloat and amazon as you can by k3ll0gs
You can start un-hiding apps, rebooting maybe necessary for some of them
Just do not unhide com.amazon.otaverifier and com.amazon.device.software.ota
Code:
adb shell pm unhide com.amazon.webapp
adb shell pm unhide com.amazon.kindle.otter
adb shell pm unhide com.amazon.kindle.otter.oobe
adb shell pm unhide com.amazon.kindle
adb shell pm unhide com.audible.application.kindle
adb shell pm unhide com.amazon.tahoe
adb shell pm unhide com.amazon.client.metrics
adb shell pm unhide com.amazon.device.backup
adb shell pm unhide com.amazon.platform
adb shell pm unhide com.amazon.photos
adb shell pm unhide com.nuance.edr.androidservice.service
adb shell pm unhide com.amazon.whisperlink.core.android
adb shell pm unhide com.goodreads.kindle
adb shell pm unhide com.amazon.csapp
adb shell pm unhide com.amazon.venezia
adb shell pm unhide com.amazon.h2settingsfortablet
adb shell pm unhide com.amazon.weather
adb shell pm unhide com.amazon.kindle.personal_video
adb shell pm unhide com.amazon.avod
adb shell pm unhide com.amazon.windowshop
adb shell pm unhide com.amazon.cloud9
adb shell pm unhide com.amazon.ags.app
adb shell pm unhide com.amazon.mp3
adb shell pm unhide com.amazon.photos.importer
adb shell pm unhide com.amazon.zico
adb shell pm unhide com.amazon.calculator
adb shell pm unhide com.android.calendar
adb shell pm unhide com.android.email
adb shell pm unhide com.android.contacts
adb shell pm unhide com.amazon.camera
adb shell pm unhide com.amazon.kindle.kso
adb shell pm unhide com.amazon.kor.provider.permission.READ_PROVIDER
I'm not sure which apps are required for what services, for sure.
You may find gatesjunior's Debloader tool, here on xda, helpful for seeing which of the apps in sd_shadow's list are hidden/disabled--and re-enabling them.
DoLooper said:
You may find gatesjunior's Debloader tool, here on xda, helpful for seeing which of the apps in sd_shadow's list are hidden/disabled--and re-enabling them.
Click to expand...
Click to collapse
This? V3.90 Debloater(Lets remove all that carrier bloat !! Root not required..) by gatesjunior
sd_shadow said:
This? V3.90 Debloater(Lets remove all that carrier bloat !! Root not required..) by gatesjunior
Click to expand...
Click to collapse
Thanks for link. You know this, yes?
DoLooper said:
Thanks for link. You know this, yes?
Click to expand...
Click to collapse
seen it mentioned before, but have not used it my self.
sd_shadow said:
seen it mentioned before, but have not used it my self.
Click to expand...
Click to collapse
Oh, hope you'll give it a try! I usually give pm commands from console, but Debloader is great for testing and easily seeing what's hidden/disabled.
Fantastic! Thanks for the replies, I'll check out the Debloater and see if I can find the culprit

Magisk/E: Unknown id: pm, with "pm uninstall" shell command

Hi, i have a Nexus 6P based on 7.1.1 with Magisk root v14.0 with Magisk manager v14.0.
With the terminal emulator app i'm trying to execute this commands:
Code:
su
pm uninstall org.telegram.messenger
But i got an error: Android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died etc..
But if i connect my Nexus 6P to my pc, and via ADB i try to push this command
Code:
adb shell pm uninstall org.telegram.messenger
It works. I don't know if it's related to Magisk, but i tried to build an app made by that execute "pm uninstall org.telegram.messenger" after "su" to get root shell but nothing, i got only an error on my android monitor: "E/Magisk: Unknow id: pm" and obviously telegram has this package name and it is installed as user app. Someone can help me ?
smartandroidtech said:
Hi, i have a Nexus 6P based on 7.1.1 with Magisk root v14.0 with Magisk manager v14.0.
With the terminal emulator app i'm trying to execute this commands:
Code:
su
pm uninstall org.telegram.messenger
But i got an error: Android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died etc..
But if i connect my Nexus 6P to my pc, and via ADB i try to push this command
Code:
adb shell pm uninstall org.telegram.messenger
It works. I don't know if it's related to Magisk, but i tried to build an app made by that execute "pm uninstall org.telegram.messenger" after "su" to get root shell but nothing, i got only an error on my android monitor: "E/Magisk: Unknow id: pm" and obviously telegram has this package name and it is installed as user app. Someone can help me ?
Click to expand...
Click to collapse
Are you able to uninstall the normal way thought settings>apps?
Sent from my H1611 using Tapatalk

Black shark helo play store error 190

Hi just to check how do i resolve play store error 190 for my black shark helo ?
Whenever i tried downloading games with large files, this error appear.
Appreciate for the advise, thank u
Hi I have resolve this problem with adb, you need grant permission storage,
adb shell
pm grant com.android.vending android.permission.WRITE_EXTERNAL_STORAGE
pm grant com.android.vending android.permission.READ_EXTERNAL_STORAGE
after reboot you have resolve your problem
Sime90ita said:
Hi I have resolve this problem with adb, you need grant permission storage,
Adb pm grant com.android.vending android.permission.WRITE_EXTERNAL_STORAGE
Adb pm grant com.android.vending android.permission.READ_EXTERNAL_STORAGE
after reboot you have resolve your problem
Click to expand...
Click to collapse
Thank you Sime90ita I have managed to run the adb command and everything is now working fine.
I had to modify the command by adding "shell" as below
Adb shell pm grant com.android.vending android.permission.WRITE_EXTERNAL_STORAGE
Adb shell pm grant com.android.vending android.permission.READ_EXTERNAL_STORAGE
All the best.
thanks for the report I will immediately correct my post
maroine80 said:
Thank you Sime90ita I have managed to run the adb command and everything is now working fine.
I had to modify the command by adding "shell" as below
Adb shell pm grant com.android.vending android.permission.WRITE_EXTERNAL_STORAGE
Adb shell pm grant com.android.vending android.permission.READ_EXTERNAL_STORAGE
All the best.
Click to expand...
Click to collapse
Hi, Can u do some tutorial on this, I also have the same problem.
keroro85 said:
Hi, Can u do some tutorial on this, I also have the same problem.
Click to expand...
Click to collapse
search "how to use adb" and use the commands listed above

Alarm stats APPOPS_USAGE_STATS permission unknown

Any idea why the alarm stats permission is unknown?
Phone is a Huawei P Smart 2019 with EMUI 9.1.0.264 (Android 9.0).
Code:
adb -d shell pm grant com.asksven.betterbatterystats android.permission.APPOPS_USAGE_STATS
Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown permission: android.permission.APPOPS_USAGE_STATS
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1417)
at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:93)
at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(PermissionManagerService.java:2112)
at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:6057)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:1773)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:239)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23637)
at android.os.Binder.shellCommand(Binder.java:642)
at android.os.Binder.onTransact(Binder.java:540)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2804)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4427)
at com.android.server.pm.HwPackageManagerService.onTransact(HwPackageManagerService.java:432)
at android.os.Binder.execTransact(Binder.java:739)
After installing betterbatterystats_xdaedition_debug_2.5-341.apk I also had your exact error. Magisk was installed before installing the app. I started the app and granted the root permission in the Magisk popup.
The app weirdly still required two permissions (READ_PHONE_STATE and APPOPS_USAGE_STATS), which were shown with a red background in the app:
$ sudo adb shell
[email protected]:/ $ su
[email protected]:/ # pm grant com.asksven.betterbatterystats_xdaedition android.permission.READ_PHONE_STATE
Click to expand...
Click to collapse
worked (I restarted phone and the red background color went away), but
# pm grant com.asksven.betterbatterystats_xdaedition android.permission.APPOPS_USAGE_STATS
Click to expand...
Click to collapse
didn't work and the error you have came up. I solved it by clicking on the bottom "OK" error message on the app and rechecked [it was already set to the right/allow] the permissions slider.
Having the same problem. Can't fix it...
Same here. On first installation and permissions configuration was working OK. Maybe it scanned the system further and noticed that it didnt have the proper permissions. Not rebooted yet. Probably will try to reboot and also I will read some thing in this forum.
Of course I enabled again all the USB debugging things and tried to add the permission, without success:
Code:
~\AppData\Local\Android\Sdk\platform-tools> .\adb.exe -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.APPOPS_USAGE_STATS
Exception occurred while executing 'grant':
java.lang.IllegalArgumentException: Unknown permission: android.permission.APPOPS_USAGE_STATS
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermissionInternal(PermissionManagerService.java:1467)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1426)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2287)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:249)
at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98)
at android.os.ShellCommand.exec(ShellCommand.java:44)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:22207)
at android.os.Binder.shellCommand(Binder.java:932)
at android.os.Binder.onTransact(Binder.java:816)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4687)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4419)
at android.os.Binder.execTransactInternal(Binder.java:1162)
at android.os.Binder.execTransact(Binder.java:1126)
But @fdxw solution solved it. However you should probably add your solution with more emphasis, I didnt see it the first time.
Solution
I solved it by clicking on the bottom "OK" error message on the app and rechecked it was already set to allow (disable it, enable it again) the permissions slider.
Click to expand...
Click to collapse
+1 Xiaomi Mi9

Categories

Resources