factory reset ftvstick from adb - Fire TV Q&A, Help & Troubleshooting

I installed an apk called autostart to launch firedtv on every reboot for the firetvStick.
I uninstalled firedtv.apk and now my stick is stuck in a boot loop because autostart cant find the firedtv app. I have about 30 seconds where I can connect to the stick via adb before it craps and reboots again for me to try another time. I looked in /sdcard/Android/data/xxx for the autostart directory where it might store its info so I can delete it but it's not stored their. Anybody got an idea what file(s) to delete for the autostart.apk or how to do a factory reset to the stick via adb. I would install or uninstall apps but I don't have root of course and the package manager does not start before it reboots. thanks.

rp201 said:
I installed an apk called autostart to launch firedtv on every reboot for the firetvStick.
I uninstalled firedtv.apk and now my stick is stuck in a boot loop because autostart cant find the firedtv app. I have about 30 seconds where I can connect to the stick via adb before it craps and reboots again for me to try another time. I looked in /sdcard/Android/data/xxx for the autostart directory where it might store its info so I can delete it but it's not stored their. Anybody got an idea what file(s) to delete for the autostart.apk or how to do a factory reset to the stick via adb. I would install or uninstall apps but I don't have root of course and the package manager does not start before it reboots. thanks.
Click to expand...
Click to collapse
From adb shell,
Code:
pm list packages
will list the installed packages. Then from outside of adb shell, you can do
Code:
adb uninstall PKG

thanks for taking the time to respond I decided to try again but this time I used the up arrow and attempted many times. I thought i succeded but unfortunately the pm said success on uninstall but did not uninstall. I also saw the firedtv app was still there. I was unable to uninstall any package. It would say success but upon the automatic reboot it would still be there. below is my output for autostart uninstall. Is there a log(s) file I could look at?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Success

rp201 said:
thanks for taking the time to respond I decided to try again but this time I used the up arrow and attempted many times. I thought i succeded but unfortunately the pm said success on uninstall but did not uninstall. I also saw the firedtv app was still there. I was unable to uninstall any package. It would say success but upon the automatic reboot it would still be there. below is my output for autostart uninstall. Is there a log(s) file I could look at?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Error: Could not access the Package Manager. Is the system running?
C:\1firetv\stickadb>adb uninstall com.autostart
Success
Click to expand...
Click to collapse
Yeah, if it's crashing it might not have time to write the fact that you uninstalled it. You can adb reboot recovery, to get in to recovery, but I don't know if there is any way to control it?

Related

[Q] remove su/reroot

Ok so my one x is on stock jb "rooted" now but im having a problem with su only seemingly picking up half of the requests apps send to it. the rootchecker app says the su/superuser dirs are there but it says there is no root.
It was working before the OTA and i still have some apps working fine that need root but others aren't getting allowed and theres no prompt for them, but if i remove the apps that are allowed root and reinstall they get prompted by su for auth or deny as normal.
I cant delete the su files in esfileexplorer as it just gives me an error, i cant select RW on the system dir as it gives root error but i can browse the root dir.
I want to remove su completely and reroot but none of the unroot apps i have found will work (probably because of JB) and i don't know the fastboot commands to remove what i need to remove.
Anyone have any ideas?
TheAngelus said:
Ok so my one x is on stock jb "rooted" now but im having a problem with su only seemingly picking up half of the requests apps send to it. the rootchecker app says the su/superuser dirs are there but it says there is no root.
It was working before the OTA and i still have some apps working fine that need root but others aren't getting allowed and theres no prompt for them, but if i remove the apps that are allowed root and reinstall they get prompted by su for auth or deny as normal.
I cant delete the su files in esfileexplorer as it just gives me an error, i cant select RW on the system dir as it gives root error but i can browse the root dir.
I want to remove su completely and reroot but none of the unroot apps i have found will work (probably because of JB) and i don't know the fastboot commands to remove what i need to remove.
Anyone have any ideas?
Click to expand...
Click to collapse
reroot via recovery mode, have you ever think of that ?
or try to use adb command to delete the old superuser file / replace the old superuser file with the working one
Reboot into recovery (turn on whilst holding Volume - [down])
adb uninstall superuser.apk (or whatever its named on your device)
Download new SuperUser
adb install SuperUserNew.apk (Or whatever the file name of the new one is)
Goodluck
Thanks Wilks3y, ive tried the uninstall command but i get this error:
/sbin/sh: pm: not found
The apk in the system/app folder is called superuser.apk
TheAngelus said:
Thanks Wilks3y, ive tried the uninstall command but i get this error:
/sbin/sh: pm: not found
The apk in the system/app folder is called superuser.apk
Click to expand...
Click to collapse
what is the name of the superuser that you have downloaded ? (the new one, not the old one at system/app/)
if it's the same name "superuser.apk" then the command is "adb install superuser.apk"
or go to recovery mode and apply flashable zip to replace the superuser files
download this one http://download.chainfire.eu/298/SuperSU/CWM-SuperSU-v0.99.zip
put in your sdcard
go to recovery
apply this supersu package
more information -> http://forum.xda-developers.com/showthread.php?t=1538053
Yeh thanks its working now after reflashing the cwm superuser.

[Q] KFU 0.9.8+ not rooting new KF1 w/ 6.3.2

I have tried every version of KFU from 0.9.5 on up, and have reinstalled the KFU drivers multiple times. FFF & TWRP install fine, but when KFU gets to the part where it removes the root checker I get an error:
Attempt to remove root checker
mv: can't rename 'system/bin/check_rooted': No such file or directory
Please wait...
The Kindle then continues to boot up as normal. It then attempts to install SU:
Installing Superuser.apk
Error: Cound not access the Package Manager. Is the system running?
KFU then states that root has been installed, when in fact it has not. I know that I could simply use TWRP to flash CM 10.1 which would have root, but this Kindle is my wife's (I already have CM on mine). I need root to be able to use Titanium Backup and save all of her app data. Any help resolving this would be appreciated!
diskoman21 said:
I have tried every version of KFU from 0.9.5 on up, and have reinstalled the KFU drivers multiple times. FFF & TWRP install fine, but when KFU gets to the part where it removes the root checker I get an error:
Attempt to remove root checker
mv: can't rename 'system/bin/check_rooted': No such file or directory
Click to expand...
Click to collapse
This is normal. Nothing to really worry about.
Installing Superuser.apk
Error: Cound not access the Package Manager. Is the system running?
KFU then states that root has been installed, when in fact it has not. I know that I could simply use TWRP to flash CM 10.1 which would have root, but this Kindle is my wife's (I already have CM on mine). I need root to be able to use Titanium Backup and save all of her app data. Any help resolving this would be appreciated!
Click to expand...
Click to collapse
I've run into this problem before. This is from attempting to install the .apk before the device is booted far enough for the package manager to be available. This can be easily fixed by pausing the script for an amount of time to ensure the package manager is available before continuing with the rest of the script. You should probably contact the developer about it.
You might be able to just install Superuser.apk using the following command:
Code:
adb shell pm install -r /system/app/Superuser.apk
THANK YOU!!!
soupmagnet said:
This is normal. Nothing to really worry about.
I've run into this problem before. This is from attempting to install the .apk before the device is booted far enough for the package manager to be available. This can be easily fixed by pausing the script for an amount of time to ensure the package manager is available before continuing with the rest of the script. You should probably contact the developer about it.
You might be able to just install Superuser.apk using the following command:
Code:
adb shell pm install -r /system/app/Superuser.apk
Click to expand...
Click to collapse
Your response made all the sense in the world (duh moment for me, lol)! I took a look at the batch file for KFU, and located the line of code where it calls the sleep function to wait for the Kindle to boot up:
::Wait for Android to finish booting, and install Superuser.apk.
tools\adb wait-for-device
tools\sleep 20
echo. Installing Superuser.apk
tools\adb install -r files\Superuser.apk 2> nul
I changed the 2nd line of the section to call sleep for 60 seconds instead of just 20. Voila! That did the trick. I have sent a message to the developer as well, so that he can make this simple fix. Thanks again for taking the time to help get me on the right path! :highfive:
diskoman21 said:
Your response made all the sense in the world (duh moment for me, lol)! I took a look at the batch file for KFU, and located the line of code where it calls the sleep function to wait for the Kindle to boot up:
::Wait for Android to finish booting, and install Superuser.apk.
tools\adb wait-for-device
tools\sleep 20
echo. Installing Superuser.apk
tools\adb install -r files\Superuser.apk 2> nul
I changed the 2nd line of the section to call sleep for 60 seconds instead of just 20. Voila! That did the trick. I have sent a message to the developer as well, so that he can make this simple fix. Thanks again for taking the time to help get me on the right path! :highfive:
Click to expand...
Click to collapse
Yeah, 60 seconds may be a bit much LOL, but I'm glad it worked out for you :good:

Uninstall digital wellbeing apk on android 10

HI there
When i was on beta 4/5 i was able to adb and remove the digital wellbeing apk.
Since the official release, the command i was typing doesnt work anymore, getting a "missing existing base package" error
command was : ./adb shell pm uninstall -k –user 0 com.google.android.apps.wellbeing
Does anyone knows what to type to remove this garbage app please?
Thanks!
Didn't even install it. It just turned up. Says "installed from play store". Can't uninstall either
Failure [INSTALL_FAILED_INVALID_APK: Missing existing base package]
Are you rooted? Can you freeze it with TiBu?
You can use the windows tool for Pixel's that is here in xda.
It has an option that worked for me
Use titanium backup and either freeze it or uninstall it. That is what has worked for me.

Uninstall phone manager

help me to uninstall phone manager system app i want to uninstall it.
You can use adb to disable or uninstall it.

Question am i able to uninstall and reinstall magisk w/o a computer?

am i able to uninstall and reinstall magisk w/o a computer? i am currently away from my computer and unable to access an app that i need to, but im rooted with magisk and lsposed (currently disabled) would i be able to uninstall magisk and then just reinstall it via APK download after i log in and check the app?
ps for whatever reason this app evades every type of rootdetection blocking i can find so the only way i know of is to uninstall and just reinstall once im done with the app
Veid71 said:
am i able to uninstall and reinstall magisk w/o a computer? i am currently away from my computer and unable to access an app that i need to, but im rooted with magisk and lsposed (currently disabled) would i be able to uninstall magisk and then just reinstall it via APK download after i log in and check the app?
ps for whatever reason this app evades every type of rootdetection blocking i can find so the only way i know of is to uninstall and just reinstall once im done with the app
Click to expand...
Click to collapse
If you have another phone there is a adb and fastboot magisk module that could maybe help with the other device acting as the computer.
Also in the past when taking an update long as the original boot was in place when installing magisk, I could hit uninstall which would put the original boot back allowing the update. Afterwards before rebooting I would go back in magisk and install then reboot. You can find more info here on XDA.

Categories

Resources