[Q] Help with multiple KF2 Root/Unremoveable Programs - 7" Kindle Fire HD Q&A, Help & Troubleshooting

I don't know what I've done to my KF2. I have successfully rooted the device, and have even been in fastboot for something I tried (can't remember what, just that I was trying to properly root my device). But I have about 14 programs that won't remove off my device (they only show "Add to Favorites" on my device instead of the additional option to remove from device)? I cannot get into ES File Manager and delete them. The .apk's for these files are located in the system folder, and even when I mount root in ES File Manager, I can't delete any of the files in the folder.
I also have a lot of problems with my toolbars randomly flickering on and off. But nothing I've read and tried, except for restoring the device and rerooting it again fixes this problem. I've also looked at a lot of posts that tell me to do a command with the /data/local.prop file. But I don't have this file on my kindle. I've searched for it everywhere using ES File Manager. I do have a /data/default.prop file, however. But I can't use ADB commands on that file either.
So I was advised to get a factory cable so that I can boot into fastboot. But I can use KFFIRSTAIDE to get into that successfully. Can anyone tell me what I've done to my kindle, what programs, and what commands I need in order to fix this problem? I'm not an idiot; I successfully rooted 3 KF2's and a KFHD successfully before this monster of a device came along!

herrenfam said:
I don't know what I've done to my KF2. I have successfully rooted the device, and have even been in fastboot for something I tried (can't remember what, just that I was trying to properly root my device). But I have about 14 programs that won't remove off my device (they only show "Add to Favorites" on my device instead of the additional option to remove from device)? I cannot get into ES File Manager and delete them. The .apk's for these files are located in the system folder, and even when I mount root in ES File Manager, I can't delete any of the files in the folder.
I also have a lot of problems with my toolbars randomly flickering on and off. But nothing I've read and tried, except for restoring the device and rerooting it again fixes this problem. I've also looked at a lot of posts that tell me to do a command with the /data/local.prop file. But I don't have this file on my kindle. I've searched for it everywhere using ES File Manager. I do have a /data/default.prop file, however. But I can't use ADB commands on that file either.
So I was advised to get a factory cable so that I can boot into fastboot. But I can use KFFIRSTAIDE to get into that successfully. Can anyone tell me what I've done to my kindle, what programs, and what commands I need in order to fix this problem? I'm not an idiot; I successfully rooted 3 KF2's and a KFHD successfully before this monster of a device came along!
Click to expand...
Click to collapse
Well, if you can reboot into fastboot via KFFA, than no, you don't necessarily need a fastboot cable. Have you tried removing these programs via ADB? If you ADB shell into the device, does the command "su" work? System apps can't be uninstalled the normal way, you have to manually delete them from "/system/app/" yourself. But that's weird that you can't get ES to work. Which version of ES file explorer are you using? I know the new version requires you to not only turn root explorer on, but you have to tap two radial dials to switch it from "/system" from RO (read only) to RW (read writable).
Hope this helped

Ph0enix_216 said:
Well, if you can reboot into fastboot via KFFA, than no, you don't necessarily need a fastboot cable. Have you tried removing these programs via ADB? If you ADB shell into the device, does the command "su" work? System apps can't be uninstalled the normal way, you have to manually delete them from "/system/app/" yourself. But that's weird that you can't get ES to work. Which version of ES file explorer are you using? I know the new version requires you to not only turn root explorer on, but you have to tap two radial dials to switch it from "/system" from RO (read only) to RW (read writable).
Hope this helped
Click to expand...
Click to collapse
What command(s) would I use to remove these programs? The only command I know is "ADB SHELL su". I am not an idiot at computer software, but I was absent on the day they handed out the intelligence on DOS commands.
And how would I get rid of the associated program files? Or do I just leave them on the drive?
What I would really like to do is unroot the device (which seemed to screw it up last time I tried it), restore to factory defaults as to erase all this gibberish, and restart from fresh, with a clean slate and then a clean root. Can that be done? How would I accomplish that? Like I said, it seemed that I the problems with the programs not uninstalling started with the restoring of the device, be it by unrooting it or by restoring the device to factory defaults on the kindle.
PS: yes, I can get into SU on ADB on my computer. I just don't know where to go from there. And my ES File Explorer is V. 3.0.9.0. I looked in the settings and could not find a option to change file to RW.

herrenfam said:
What command(s) would I use to remove these programs? The only command I know is "ADB SHELL su". I am not an idiot at computer software, but I was absent on the day they handed out the intelligence on DOS commands.
And how would I get rid of the associated program files? Or do I just leave them on the drive?
What I would really like to do is unroot the device (which seemed to screw it up last time I tried it), restore to factory defaults as to erase all this gibberish, and restart from fresh, with a clean slate and then a clean root. Can that be done? How would I accomplish that? Like I said, it seemed that I the problems with the programs not uninstalling started with the restoring of the device, be it by unrooting it or by restoring the device to factory defaults on the kindle.
PS: yes, I can get into SU on ADB on my computer. I just don't know where to go from there. And my ES File Explorer is V. 3.0.9.0. I looked in the settings and could not find a option to change file to RW.
Click to expand...
Click to collapse
The commands to remove bloatware and stuff (in this case, apps) would be:
Code:
adb shell
su
mount /system
rm /system/app/nameofapp1.apk
rm /system/app/nameofapp2.apk
rm /system/app/nameofapp3.apk
reboot
If a clean slate is what you want, then you can use this tool here to flash three stock Kindle partition images (boot.img, recovery.img, and system.img) to your Kindle via fastboot. The images aren't of the latest firmware, but I don't think OTA updates are disabled, so you can just let your Kindle auto update over wi-fi.
If "su" works in the ADB shell, then I guess you are rooted. I don't know what to say from there, except to backup whatever data you can and start fresh.

Ph0enix_216 said:
The commands to remove bloatware and stuff (in this case, apps) would be:
Code:
adb shell
su
mount /system
rm /system/app/nameofapp1.apk
rm /system/app/nameofapp2.apk
rm /system/app/nameofapp3.apk
reboot
If a clean slate is what you want, then you can use this tool here to flash three stock Kindle partition images (boot.img, recovery.img, and system.img) to your Kindle via fastboot. The images aren't of the latest firmware, but I don't think OTA updates are disabled, so you can just let your Kindle auto update over wi-fi.
If "su" works in the ADB shell, then I guess you are rooted. I don't know what to say from there, except to backup whatever data you can and start fresh.
Click to expand...
Click to collapse
Thanks a great deal. Where is the program to flash the three stock .img files so I can have a from-the-beginning kindle? I've already got the only thing I need from the device - a list of the third-party apps and where I downloaded them from.

herrenfam said:
Thanks a great deal. Where is the program to flash the three stock .img files so I can have a from-the-beginning kindle? I've already got the only thing I need from the device - a list of the third-party apps and where I downloaded them from.
Click to expand...
Click to collapse
...I forgot to post the link, didn't I?
Here it is: http://forum.xda-developers.com/showthread.php?t=2096888
>>>Sent from my homebuilt TARDIS running Android 4.0.3... or maybe it's a rooted Kindle Fire HD<<<

Related

[Q] Terminal Emulator....Help??? Anyone???

I have wiped and restored more times tonight than I can count....HELP!!!! I have a very lean rom. So lean it that it has no file explorer and I don't want to install gapps. All I want to do is install Titanium Backup (the .apk file is on the root of my SD card) with the terminal emulator and I'll be all set. I have had all different error messages, and I'm more confused now then when I started this adventure, 6+ hours ago. Any help would be great.
hockeyfamily737 said:
I have wiped and restored more times tonight than I can count....HELP!!!! I have a very lean rom. So lean it that it has no file explorer and I don't want to install gapps. All I want to do is install Titanium Backup (the .apk file is on the root of my SD card) with the terminal emulator and I'll be all set. I have had all different error messages, and I'm more confused now then when I started this adventure, 6+ hours ago. Any help would be great.
Click to expand...
Click to collapse
Just download a file manager, (es fileexplorer, or root explorer) and install it that way. or if you have adb and all the drivers you need for it.
Put the .apk in the tools folder in the SDK
and go to it in a command prompt and type adb install titaniumbackup.apk..
Or whatever you apk is named.
if you need help, dont quote this, just send me a pm for help =]
(Posting this again for others reference all this is pulled from my previous post which you can find in my signature - "Terminal/adb shell commands")
Adb commands are completely different than terminal commands.
First enter "su" to get substitute user (the # sign)
Then enter "mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system" to make the root r/w
to copy files use "cp" command
to move files use "mv" command
to remove files use "rm" command
to change file/dir permissions use "chmod"
to change directories use "cd" - "cd .." will bring you back one directory - "cd //" brings you back to root
to list files in the dir use "ls"
to read/mod/combine a file use "cat"
to edit a value use "echo"
to see running processes use "top"
to kill a process use "kill -9 PID#HERE"
ex) cp /sdcard/download/myapplication.apk /data/app/myapplication.apk
If you know any linux commands then you should know your way around terminal emulator. If you want i can give you more examples just let me know. Hope this helped
To answer your question OP, just follow my example. Except in your case it'd be something like this:
Code:
su
cp /sdcard/TitaniumBackup.apk /data/app/TitaniumBackup.apk
replace "titaniumbackup.apk" with the actual file name of your apk file.
Sent from my Android using Tapatalk
kyouko said:
(Posting this again for others reference all this is pulled from my previous post which you can find in my signature - "Terminal/adb shell commands")
Adb commands are completely different than terminal commands.
First enter "su" to get substitute user (the # sign)
Then enter "mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system" to make the root r/w
to copy files use "cp" command
to move files use "mv" command
to remove files use "rm" command
to change file/dir permissions use "chmod"
to change directories use "cd" - "cd .." will bring you back one directory - "cd //" brings you back to root
to list files in the dir use "ls"
to read/mod/combine a file use "cat"
to edit a value use "echo"
to see running processes use "top"
to kill a process use "kill -9 PID#HERE"
ex) cp /sdcard/download/myapplication.apk /data/app/myapplication.apk
If you know any linux commands then you should know your way around terminal emulator. If you want i can give you more examples just let me know. Hope this helped
To answer your question OP, just follow my example. Except in your case it'd be something like this:
Code:
su
cp /sdcard/TitaniumBackup.apk /data/app/TitaniumBackup.apk
replace "titaniumbackup.apk" with the actual file name of your apk file.
Sent from my Android using Tapatalk
Click to expand...
Click to collapse
i know theyre different,i was getting a point across, in which if he cant get it too work, try adb. Even though errors with TE usually means youre not entering something correct
davidevan said:
i know theyre different,i was getting a point across, in which if he cant get it too work, try adb. Even though errors with TE usually means youre not entering something correct
Click to expand...
Click to collapse
Yea they are. Besides, personally I'd do it the way you mentioned; either first using a filemanager (easiest imo) or via adb install
Only reason I replied was in case there was a specific reason he'd only want to use terminal emulator and not adb or a FileMan
Edit: Oh I see what I think you're referring to, the line:
Adb commands are completely different than terminal commands.
Click to expand...
Click to collapse
That was just directly copied from a post I made before something about wanting to "adb push" with TE, it had nothing to do with your response
Sent from my Android using Tapatalk
Thank you everyone. I need to use Terminal Emulator, because I'm not allowed to install the ADB drivers on my work computer, the ROM I want to use did not have a file manager packed in it and I don't want to install gapps to download one from the market. I simply want to install Titanium, so I can add a file manager and a couple of other select apps so as not to clutter up the system. As soon as I flash back to that rom, I'll try it the above mentioned way.
hockeyfamily737 said:
Thank you everyone. I need to use Terminal Emulator, because I'm not allowed to install the ADB drivers on my work computer, the ROM I want to use did not have a file manager packed in it and I don't want to install gapps to download one from the market. I simply want to install Titanium, so I can add a file manager and a couple of other select apps so as not to clutter up the system. As soon as I flash back to that rom, I'll try it the above mentioned way.
Click to expand...
Click to collapse
Ah thats sucks bro, it come in handy now and then, Listen to this guy up here since he knows more about TE than I. Also a simple google "terminal emulator" command and it might add on to your comprehension.
And judt to get this outta of the way, in TE if you do type su <enter> you get #? if you dont #,you get acces denied; denied meaning youre not rooted. Meaning it cant find an su in the bin or xbin, rendering TE pointless. So make sure youre root
hockeyfamily737 said:
Thank you everyone. I need to use Terminal Emulator, because I'm not allowed to install the ADB drivers on my work computer, the ROM I want to use did not have a file manager packed in it and I don't want to install gapps to download one from the market. I simply want to install Titanium, so I can add a file manager and a couple of other select apps so as not to clutter up the system. As soon as I flash back to that rom, I'll try it the above mentioned way.
Click to expand...
Click to collapse
btw click my thanks meter ;]
its the ony thing i have left lmao! :'(
davidevan said:
Ah thats sucks bro, it come in handy now and then, Listen to this guy up here since he knows more about TE than I. Also a simple google "terminal emulator" command and it might add on to your comprehension.
And judt to get this outta of the way, in TE if you do type su <enter> you get #? if you dont #,you get acces denied; denied meaning youre not rooted. Meaning it cant find an su in the bin or xbin, rendering TE pointless. So make sure youre root
Click to expand...
Click to collapse
and how is your computer not compatible with SDK. You dont have Windows, linux or Macc?
davidevan said:
and how is your computer not compatible with SDK. You dont have Windows, linux or Macc?
Click to expand...
Click to collapse
It's not an issue of compatibilty..... It's an issue of the IT people at work having our computers locked up so we can't install / uninstall anything from them. All I can do is transfer files from the pc to my sd. I don't have authorization to install the necessary drivers for my phone.
hockeyfamily737 said:
It's not an issue of compatibilty..... It's an issue of the IT people at work having our computers locked up so we can't install / uninstall anything from them. All I can do is transfer files from the pc to my sd. I don't have authorization to install the necessary drivers for my phone.
Click to expand...
Click to collapse
If you can transfer files from a computer to a device, then you should be able to take files from a USB drive and put them on the C drive of your computer.
waffle_ said:
If you can transfer files from a computer to a device, then you should be able to take files from a USB drive and put them on the C drive of your computer.
Click to expand...
Click to collapse
To clarify.... Yes I can access my sd card from my computer. Yes I can transfer files between my sd card and my hard drive. However, when I try to install the ADB drivers to access the rom in my phone I get a little message that I'm not authorized to add / remove hardware or software from the computer....to please contact my IT administrator. Maybe it's something I'm doing wrong, maybe it's not. If I can learn to use this emulator though, it doesn't really matter. I have ADB on my computer at home if I really need it, I'm just not inclined to turn the computer at home on very often. Thanks again to everyone for the help.
"
hockeyfamily737 said:
To clarify.... Yes I can access my sd card from my computer. Yes I can transfer files between my sd card and my hard drive. However, when I try to install the ADB drivers to access the rom in my phone I get a little message that I'm not authorized to add / remove hardware or software from the computer....to please contact my IT administrator. Maybe it's something I'm doing wrong, maybe it's not. If I can learn to use this emulator though, it doesn't really matter. I have ADB on my computer at home if I really need it, I'm just not inclined to turn the computer at home on very often. Thanks again to everyone for the help.
Click to expand...
Click to collapse
Search the dev thread for my guide on how to install adb. Might do the job for your work computer. Or just hit my avatar and find the thread that way. If you do try it let me know if it works.
#Root/Hack_Mod-Always®
laie1472 said:
"
Search the dev thread for my guide on how to install adb. Might do the job for your work computer. Or just hit my avatar and find the thread that way. If you do try it let me know if it works.
#Root/Hack_Mod-Always®
Click to expand...
Click to collapse
Sitll no good installing ADB at work, but I did get a good ADB workout at home this weekend rooting my son's Optimus......Wholy crap!!! Revert to old software, lose the lcd display, root with rage against the cage, push recovery to the phone, revert back to current version of software, lose root, and then re-root on current software with recovery already installed, what a process that was!!!! BTW.... Terminal Emulator commands worked perfect. Mistake I was making was trying to "push" from my SD card instead of "copy".

[Q] Trying to backup my EFS folder with SGS Tools and it fails

Trying to be charitable and cautious, I'm trying to back up my EFS folder before I go messing around and it is consistently failing. I'm using:
SGS Tools Vz 0.5.7
Busy Box Vz1.17.2
On my previous captivate this works just fine. Now I get
"could not create backup folder /sdcard/SGSToolbox/backup (date string)" and then the bluebox saying creating backup. This never goes away and to clear I have to reboot.
Any helpful hints?
I tried to download the latest and greatest SGS Tools but Google knows I have it installed and won't let me get the newest one. Haven't figure out how to get around that unless I just have to un-install my current one.
Rooted 2.2, KB2, running existz KB1 kernel.
Knowing there are no successful backups... just successful restores.
If you're willing to use your computer and can get the Android SDK and ADB going, just get into a command prompt in the ADB directory and type "adb pull /efs". That will back it up to your computer.
Or you could open a file explorer and copy the directory from there to your sd card
You could use an app called nitrality
Sent from my SGH-I897 using XDA App
Try to update your su binary, the simpliest way is use Root Explorer to backup whatever u want
Well just to be daring, I tried to install the ADB tools. Had to install the Java development software first. After I installed what I thought was the ADB suite, I can't seem to find the place to type in commands, dumb as that sounds. I may not have gotten the right package. Going to tinker with it though.
My SU is up to date.
I can see the folder with Super Manager so I guess I'll just copy with that. Interesting though I can't see anything in the /efs directory. Probably just something else I don't understand.
Still curious though as to why SGS Tools is failing... part of my nature.
Thanks to all that replied.
Make a note of where adb is installed (e.g. c:\users\person\Android-sdk-windows\platform-tools). Then hit the windows key and R, and type cmd. Once in the prompt, type CD (directory from before, no parentheses) and hit enter. From there, type your adb commands.
Ahhhh.... I get it. Was expecting something a bit more elegant. Gotta love DOS commands.
Well..there are a couple more elegant ways to do it.
Open up a new note in NotePad, just type:
Cmd
Exit
And save, but instead of a .txt file extension save it as a .bat, now drop that into your adb directoty, then just double click on that to open a prompt in that directory, so you don't have to do the cd command every time.
Or..the most elegant way is to add adb to your environmental variables so you can enter adb commands from anywhere
That's a good solution. I've got a set of files put into my C:\Users\(my username) folder called "adb", "adbr" (adb reboot), "adbrd" (adb reboot download), and "adbrr" (adb reboot recovery).
Each of these is a .bat file with a version of this text in it:
@ echo off
cd "C:\Users\(me)\Other\tools\android-sdk-windows\platform-tools"
adb reboot
That way, all I have to do is hit Win-R and type one of those file names and it does that command for me. Or, I can type cmd, then adb, and automatically be where adb is installed without cd'ing through a long file list.
My suggestion is Root Explorer. I was able to backup the EFS directory without problems also create a .tar file.
I used root explorer to do my backups, another option is the explorer inside the rom tollbox aplication its also very good
Now I have another adb question...
First off, now I'm just trying to learn and get better. I've built my bat files and I can get adb working. Thanks to those that helped with that. When I tried to pull the /efs folder it said there was no device recognized. I was in "mass storage" mode at the time.
Whenever I've seen people talk about using adb, I don't recall anything being said about if it should be in Download, debug or what. One of those assumed knowledge things.
So what do I have to do to the phone to let adb recognize it?
gnawing on the bone....
I'm also thinking of pulling a logcat or something when SGS tools fails... just to see. That's my next step.
Enable usb debugging in settings> applications> development
SGS Toolbox doesn't work with efs backups. Are there easier ways to do the backup?
Adb or root explorer.
I did both... just to say I did it and finally got adb working.

Unroot or back to stock

I'm interested in knowing if there is any method to unroot the Kindle Fire HD. A method to get back to stock would be useful as well. Just in case I had to send it back to Amazon. I've been searching several forums (finding nothing) before asking this question. Thanks!
tamoquera said:
I'm interested in knowing if there is any method to unroot the Kindle Fire HD. A method to get back to stock would be useful as well. Just in case I had to send it back to Amazon. I've been searching several forums (finding nothing) before asking this question. Thanks!
Click to expand...
Click to collapse
They have some tools that can un root. And I believe if you do a factory reset it erases root.
Chelle01 said:
They have some tools that can un root. And I believe if you do a factory reset it erases root.
Click to expand...
Click to collapse
Yes, a factory reset from within the stock KF recovery will break root and revert the device to stock.
I'm going to say that this is not entirely correct. Using the factory reset will break an app's ability to perform rooted tasks (because Superuser will be gone), but it's not going to return the device back to stock. The su binary will still be in place on the system. To really go back to stock, you'll have to go in as root, remount the system read/write, delete the su binary and reboot.
kinfauns said:
I'm going to say that this is not entirely correct. Using the factory reset will break an app's ability to perform rooted tasks (because Superuser will be gone), but it's not going to return the device back to stock. The su binary will still be in place on the system. To really go back to stock, you'll have to go in as root, remount the system read/write, delete the su binary and reboot.
Click to expand...
Click to collapse
Thanks for all your answers. So If I'm right doing what you said (erasing the su binary) and performing a factory reset the device could be sent back to amazon, I guess that Google Play and all that stuff will desappear without leaving any trace. Am I right? Thanks again
tamoquera said:
Thanks for all your answers. So If I'm right doing what you said (erasing the su binary) and performing a factory reset the device could be sent back to amazon, I guess that Google Play and all that stuff will desappear without leaving any trace. Am I right? Thanks again
Click to expand...
Click to collapse
I just tried this as I wanted to start over and do a clean load after root now that I have a better idea of what I'm doing. Upon starting after factory reset, the kindle presented the dialog box asking me to choose a default launcher. This would indicate anything you install into the system folder needs to be deleted prior to resetting.
Factory reset does not unroot the system. I've done this multiple times.
I sent my rooted but factory reset KFHD back to amazon for a refund. I made sure to delete any files I put in system/apps and anywhere else in the system folders. The factory reset will not clear those files out.
I took the risk and I received a refund a couple hours after they received my device. Most likely it will go back to whomever refurbs their kindle fires and then it will be returned to full stock. I did not find any info so far as to unrooting the KFHD.
Might be different scenario if you sent it back for service.
PS. I made sure to drain the battery and turned off the device and packed it up. Also if you are using anything such as a secondary launcher, I would go back to KF launcher and then delete. Deleting it while using such might cause it to go into a force close loops. Same for keyboard, etc.
alkemist80 said:
Factory reset does not unroot the system. I've done this multiple times.
I sent my rooted but factory reset KFHD back to amazon for a refund. I made sure to delete any files I put in system/apps and anywhere else in the system folders. The factory reset will not clear those files out.
I took the risk and I received a refund a couple hours after they received my device. Most likely it will go back to whomever refurbs their kindle fires and then it will be returned to full stock. I did not find any info so far as to unrooting the KFHD.
Might be different scenario if you sent it back for service.
PS. I made sure to drain the battery and turned off the device and packed it up. Also if you are using anything such as a secondary launcher, I would go back to KF launcher and then delete. Deleting it while using such might cause it to go into a force close loops. Same for keyboard, etc.
Click to expand...
Click to collapse
Happy to hear that. I thought that doing a factory reset wasn't enough, but I was waiting for a confirmation.
You were lucky that amazon has such an amazing customer service.
Thanks so much!!
alkemist80 said:
Factory reset does not unroot the system. I've done this multiple times.
I sent my rooted but factory reset KFHD back to amazon for a refund. I made sure to delete any files I put in system/apps and anywhere else in the system folders. The factory reset will not clear those files out.
I took the risk and I received a refund a couple hours after they received my device. Most likely it will go back to whomever refurbs their kindle fires and then it will be returned to full stock. I did not find any info so far as to unrooting the KFHD.
Might be different scenario if you sent it back for service.
PS. I made sure to drain the battery and turned off the device and packed it up. Also if you are using anything such as a secondary launcher, I would go back to KF launcher and then delete. Deleting it while using such might cause it to go into a force close loops. Same for keyboard, etc.
Click to expand...
Click to collapse
Hi can i know after a factory reset, will all the default software and apk be restored as well? I deleted some system/app file and it causes some problem for me. And does that mean I do not need to root again after the reset? thks
What permissions need to exist on /data/local/tmp if it needs to be recreated (no longer a symlink back to /data), or will the OS recreate the tmp subdir if the symlink is removed?
Edit: Answered my own question. If you remove the symlink, it appears that init.rc takes care of recreating the directory at next boot. You could recreate manually with:
rm /data/local/tmp
mkdir /data/local/tmp
chown shell.shell /data/local/tmp
chmod 0771 /data/local/tmp
Click to expand...
Click to collapse
Complete process to unroot
Working from previous gen Kindle HOWTOs, I managed to work out a full process to revert the Kindle Fire HD device back to stock (assuming you haven't added or removed any other apps from the /system or /data partitions).
This assumes you have the Android SDK and/or the "adb" utility installed. Mac/Linux users may need to substitute "adb" for "./adb" if you don't have your current working directory in your path.
Code:
[I]# On USB Host[/I]
[B]adb shell[/B]
[I]# Inside ADB Shell, get root if you don't have it already[/I]
[B]su[/B]
[I]# Remove SuperUser app and ALL traces[/I]
[B]rm /data/app/com.noshufou.android.su*.apk[/B]
[I]# Remove SuperUser app data and dalvek cache[/I]
[B]rm -r /data/data/com.noshufou.android.su
rm /data/dalvik-cache/[email protected]@com.noshufou.android.su*[email protected][/B]
[I]# /system is read-only - remount /system as read-write[/I]
[B]mount -o remount,rw /system[/B]
[I]# Remove SU binary[/I]
[B]rm /system/xbin/su[/B]
[I]# Restore TMP directory - Remove symlink from rooting effort[/I]
[B]rm /data/local/tmp[/B]
[I]# Recreate symlink dir with correct perms (or let init.rc recreate at reboot)[/I]
[B]mkdir /data/local/tmp
chown shell.shell /data/local/tmp
chmod 0771 /data/local/tmp [/B]
[I]# exit SU[/I]
[B]exit[/B]
[I]# Exit adb shell[/I]
[B]exit[/B]
[I]# On host computer, reboot the Kindle to complete the process[/I]
[B]adb reboot[/B]
Just unrooted my Kindle. Super easy. You will need root to complete it, but it works.
I needed to send my KF2 back to Amazon for a battery defect. Didn't want any problems to go down if they saw the root.
Here is what I did:
Keep root, go to your file explorer and make sure that the system folder is writable, navigate to your /app folder in the system folder, delete the google apps, the google app infrastructure and the SU app. Make sure that you got everything, then do a factory reset. You should now be root free! Congratulations!
Hope that works for you all.
Kindle Fire HD 7.30 root woes
kinfauns said:
I'm going to say that this is not entirely correct. Using the factory reset will break an app's ability to perform rooted tasks (because Superuser will be gone), but it's not going to return the device back to stock. The su binary will still be in place on the system. To really go back to stock, you'll have to go in as root, remount the system read/write, delete the su binary and reboot.
Click to expand...
Click to collapse
I rooted my Kindle fire HD prior to version 7.30. My auto update was not turned off and version 7.30 screwed up my rooted Kindle.
Now I can't root it again. I don't have access to root. I have been trying KFFirstAide but I keep getting "/system/bin/sh: su: not found".
KFF sees the device. The Kindle boots fine and is recognized in Windows 7 32bit. I have been trying for 2 days. I have reset back to factory settings via the Kindle reset. No luck rooting. I don't know what to do. Any help would be greatly appreciated.
fldennis said:
I rooted my Kindle fire HD prior to version 7.30. My auto update was not turned off and version 7.30 screwed up my rooted Kindle.
Now I can't root it again. I don't have access to root. I have been trying KFFirstAide but I keep getting "/system/bin/sh: su: not found".
KFF sees the device. The Kindle boots fine and is recognized in Windows 7 32bit. I have been trying for 2 days. I have reset back to factory settings via the Kindle reset. No luck rooting. I don't know what to do. Any help would be greatly appreciated.
Click to expand...
Click to collapse
Try the manual method described in here http://forum.xda-developers.com/showthread.php?t=2069117 (it's near the bottom of the first post)
Download the Root Many Android application
32-bit
64-bit
Then follow the guide from there.
Usually works for me!
changing ROMs
Hello everyone....
I have a kindle fire HD 7" 7.4.6
I rooted and added TWRP with 7.2.3 bootloader
I installed CM11 Kitkat the ROM is a bit buggy but nice.
I tried to go from kitkat to kinology which allows use of Amazon and Google services.
But flashing failed.... I can't seem to get kinology to work.
This is the set of walkthroughs I used.
To root & add TWRP. I used a rootjunkie YouTube video ( can't post link)
To install cm 11:
also a rootjunkie video
knowing this, I tried installing kinology using this walkthrough:
Original kinology page.
No luck, does anyone know how I can move my system to kinology?
please help,
Thanks to all in advance

[Q] No usb connect?

Had to factory reset kfhd7 and when I did, it booted up like an android phone. ... Now there's no browser and I can't get play to work. Usb debug is enabled but when I connect to the computer to try and push a browser, my computer doesn't recognize it. I have all the newest drivers installed and just about every program that I can think of (adb, sdk, jdk) What I don't have is a fastboot cable. Any ideas?
Missing my kindle
Edit* So I do have chrome installed but when I open it, I get an error message saying "critical functionality required to run chrome is missing; either your chrome installation is incomplete, or not compatible with this version of android"
Terminal emulator installed too but when I try to open it I get a "terminal emulator has stopped" error.
Super SU installed, works.
No es file explorer
edit#2
Ok, so I decided to open cmd just to see if I can recognize my device.... and it did! So how can I fix my kindle if adb is connecting?
Edit#3 adb devices shoes device but when running a command, it says "device offline"....
Edit#4 plugged usb into another port and reloaded drivers = adb connects, device is online. I have tested by pushing an app to the sdcard. My goal now is to be able to push es file explorer to /system/app/ .... or ..... /data/app/ ...... or where ever it will become active for use. (you know what I mean?) I don't know how to change the permissions via adb and push to system folder. I believe I have successfully pushed es file explorer to the /sdcard/ but I have no idea where to go next.
Now what..... ?
How to Install Packages using adb install
Krsmqn said:
Had to factory reset kfhd7 and when I did, it booted up like an android phone. ... Now there's no browser and I can't get play to work. Usb debug is enabled but when I connect to the computer to try and push a browser, my computer doesn't recognize it. I have all the newest drivers installed and just about every program that I can think of (adb, sdk, jdk) What I don't have is a fastboot cable. Any ideas?
Missing my kindle
Edit* So I do have chrome installed but when I open it, I get an error message saying "critical functionality required to run chrome is missing; either your chrome installation is incomplete, or not compatible with this version of android"
Terminal emulator installed too but when I try to open it I get a "terminal emulator has stopped" error.
Super SU installed, works.
No es file explorer
edit#2
Ok, so I decided to open cmd just to see if I can recognize my device.... and it did! So how can I fix my kindle if adb is connecting?
Edit#3 adb devices shoes device but when running a command, it says "device offline"....
Edit#4 plugged usb into another port and reloaded drivers = adb connects, device is online. I have tested by pushing an app to the sdcard. My goal now is to be able to push es file explorer to /system/app/ .... or ..... /data/app/ ...... or where ever it will become active for use. (you know what I mean?) I don't know how to change the permissions via adb and push to system folder. I believe I have successfully pushed es file explorer to the /sdcard/ but I have no idea where to go next.
Now what..... ?
Click to expand...
Click to collapse
Krsmqn,
Sorry for the delayed response, we have been real busy the last few days. You may use the
following command to install or reinstall software on the Kindle:
Code:
adb kill-server
adb start-server
adb devices
android update adb
If adb is working move on to install software:
Code:
adb install package-whatever.apk
You need to make sure the .apk software package in in the same directory as adb. If
you can not get the Kindle stable you may need a USB Factory Cable, you may order
one from XDA User SkOrPn just send him a PM with the subject Factory Cable Info Please,
include your ship to country and number of cabled needed. He will respond with a PayPal
Invoice. The cable is about $15 USD and is worth every penny since it allows quick
recovery of your Kindle.
prokennexusa,
I want to thank you for all your help. Unfortunately, my issue was kind of a rare issue. I had deleted some amazon apps that were system apps. I tried your solution time and time again to no avail. I was stumped until I remembered a thread I saw in development.
http://forum.xda-developers.com/showthread.php?t=1886189
I was able to download and unzip the 7.2.3 update version and simply install the apks that I was missing. Then, as far as google play went, I just went into System>Applications>Installed Applications>Appstore (Amazon)> Force stop, clear data & cache. Reinstalled Vendor.apk and then updated. Viola!
The USB notification came back, as well as all the other options in settings. Problem solved. Hope this helps future users.
Follow Up - Feedback
Krsmqn said:
prokennexusa,
I want to thank you for all your help. Unfortunately, my issue was kind of a rare issue. I had deleted some amazon apps that were system apps. I tried your solution time and time again to no avail. I was stumped until I remembered a thread I saw in development.
http://forum.xda-developers.com/showthread.php?t=1886189
I was able to download and unzip the 7.2.3 update version and simply install the apks that I was missing. Then, as far as google play went, I just went into System>Applications>Installed Applications>Appstore (Amazon)> Force stop, clear data & cache. Reinstalled Vendor.apk and then updated. Viola!
The USB notification came back, as well as all the other options in settings. Problem solved. Hope this helps future users.
Click to expand...
Click to collapse
Krsmqn,
Great post Krsmqn, I am glad to hear your problems are solved! We offer a fresh copy of the /system/app
folder here: https://dl.dropbox.com/u/54456659/app.zip
Anyone who is experiencing odd issues can download this folder and side load it back to the Kindle through
adb or ES File Explorer. Thank you again, I was getting a bit worried.

Is it possible at all with adb to factory reset kindle without factory cable?

I believe I habe the kfsowi model. it is 11.3.1.0 it is rooted and I am wanting to factory reset it but I dont have a factory cable. just a normal usb cable that I've been using adb to transfer and even instlal some files because through tweaking it, it lead to a missing status bar in which i change the qmenu = to 0 and 1 or whatever in build.prop but no matter what it doesnt keep the status bar active at all times like it should be. it is non existent until i click on an app in apex, adw or any launcher ive tried then it flashes and disappears. during this flash it is not usable no matter how fast i click it.
also a small issue it has is ever reboot, it says kindle is upgrading but it is not upgrading at all because i have tried to click check now in settings to check for updates but every time it says update failed. next after that message it says starting applications for about 20 seconds. long bootup. i have probably messed with tweak i shouldnt have with pimp my rom and also android tweaker 2 and pro before it became 2. so the status bar is non existent. sucks cause cant even get facebook notifications lol.
i did factory reset it by the menu and also by using andromizer app to click recovery mode and do it that way.
(without status bar i been using all in one gestures but now recently i switched to using LMT.
this kindle has a few issues since i made it kinda as minimal as i could and probably uninstalled a couple things i shouldnt of lol like it only installs apps with adb install and adb install -r sometimes as well as through 1mobile market which is awesome. it will not sideload anything now because through uninstalling an extra deal or two i should of, it wont allow me to enable unknown sources installation through menus. if anyone knows a way to do this through terminal of linux that would be great
thanks to any help
or would there be any way to use the water beta without the cable and only using adb or any other steps. which to my understanding is the only rom so far. thanks
If you are rooted You should I think be able to run these commands from a terminal in Linux, if you meant a terminal on your kindle then take off the and shell in the commands I list to run.
Code:
adb shell
su
reboot bootloader
I think if you are rooted it will kick it into fastboot and you can restore without a cable.
Sent from my LG-P769 using Tapatalk
thanks for the quick reply. yeah i am speaking of terminal from debian/ubuntu. I enter those commands you give me and it is recognizing the device. With adb I can even push files to install since it is screwed up and I can't access the menu part for installing from unknown sources. that is the worst part of the few issues I have with it.
after I enter those commands it only reboots normally. it doesn't go into the bootloader. I can get it to go into recovery mode where I am able to just do a normal wipe of the device but that is about it.
just to make sure I understand this. with a fastboot cable and all it is a different method from just a normal "wipe and reset" isn't it? it is using an untouched .img or something to put back to actual FACTORY as if bought from store? cause the normal wipe and factory reset doesn't put back the items I uninstalled of course from system and what not.
also is this safe to do without a factory cable. I just haven't ever needed one before and even if there is an extra step or two I don't mind instead of waiting a week for a cable.
Actually you might not even need the fastboot cable, if I remember correctly the restore method for that device would normally flash a system image that is smaller and incomplete because the system IMG is to big for fastboots 's buffer, then when it was just bootable enough to have adb push a file, it would push a amazon update file and run a command that forces the system partition to update back to stock from the update zip. So you should be able to simply push the update file for your amazon os version or older/newer and force update it. I don't have instructions handy right now for doing this and its late so maybe I post them tomorrow.
Sent from my Amazon Tate using Tapatalk
stunts513 said:
Actually you might not even need the fastboot cable, if I remember correctly the restore method for that device would normally flash a system image that is smaller and incomplete because the system IMG is to big for fastboots 's buffer, then when it was just bootable enough to have adb push a file, it would push a amazon update file and run a command that forces the system partition to update back to stock from the update zip. So you should be able to simply push the update file for your amazon os version or older/newer and force update it. I don't have instructions handy right now for doing this and its late so maybe I post them tomorrow.
Sent from my Amazon Tate using Tapatalk
Click to expand...
Click to collapse
if you could do that that'd be awesome. thanks. I just read up about a locked bootloader but I've seen it's made some progress. I just need to be sure to not turn it into a drink coaster lol.
I finally found a way to do factory reset thanks to gran pc
How to reinstall FireOS
Botched your /system partition beyond recognition? Everything is broken? Dropped your #Kindle in a sea of piss and need to RMA it? Fear not! You can just reinstall FireOS and get it looking just as if we had never touched it!
First of all, you'll have to root your tablet. I'm assuming you know how to do this!
Once that's done, put this file -- https://s3.amazonaws.com/kindle-fire-updates/update-kindle-11.3.1.0_user_310084920.bin -- in /sdcard/ (you can use adb push).
Then run these commands:
jesunoiMac:multidownload granpc$ adb shell
[email protected]:/$ su -
[email protected]:/# cp /sdcard/update-kindle-11.3.1.0_user_310084920.bin /cache/update.zip
[email protected]:/# echo --update_package=/cache/update.zip > /cache/recovery/command
[email protected]:/# exit
[email protected]:/$ exit
jesunoiMac:multidownload granpc$ adb reboot recovery
If everything went well, you should see the 'installing update' screen -- and once you're booted, we're back to stock! We did it!!!!!!
s3.amazonaws.com/kindle-fire-updates/update-kindle-11.3.1.0_user_310084920.bin
funny thing is I rerooted after the clean update and forgot all about OTA's being automatic of course. The damn thing upgraded to 11.3.2.2 which I searched has NO root exploit right now. I am wondering if I can do the same above steps to go back to 11.3.1 but that is a downgrade and I am worried about a brick although amazon new update is like an iphone you can't tell any difference haha
also is the above way how you install ICE or hellfire?
slixz85 said:
I finally found a way to do factory reset thanks to gran pc
How to reinstall FireOS
Botched your /system partition beyond recognition? Everything is broken? Dropped your #Kindle in a sea of piss and need to RMA it? Fear not! You can just reinstall FireOS and get it looking just as if we had never touched it!
First of all, you'll have to root your tablet. I'm assuming you know how to do this!
Once that's done, put this file -- https://s3.amazonaws.com/kindle-fire-updates/update-kindle-11.3.1.0_user_310084920.bin -- in /sdcard/ (you can use adb push).
Then run these commands:
jesunoiMac:multidownload granpc$ adb shell
[email protected]:/$ su -
[email protected]:/# cp /sdcard/update-kindle-11.3.1.0_user_310084920.bin /cache/update.zip
[email protected]:/# echo --update_package=/cache/update.zip > /cache/recovery/command
[email protected]:/# exit
[email protected]:/$ exit
jesunoiMac:multidownload granpc$ adb reboot recovery
If everything went well, you should see the 'installing update' screen -- and once you're booted, we're back to stock! We did it!!!!!!
s3.amazonaws.com/kindle-fire-updates/update-kindle-11.3.1.0_user_310084920.bin
funny thing is I rerooted after the clean update and forgot all about OTA's being automatic of course. The damn thing upgraded to 11.3.2.2 which I searched has NO root exploit right now. I am wondering if I can do the same above steps to go back to 11.3.1 but that is a downgrade and I am worried about a brick although amazon new update is like an iphone you can't tell any difference haha
also is the above way how you install ICE or hellfire?
Click to expand...
Click to collapse
ah good you found it before i could look it up. It will downgrade just fine, but you will probably need a fastboot cable to do it. If ICE or hellfire are roms then no, the 2013 isn't flashable with the exception of kindlewater. Since the bootloader is locked we are limited to using amazon's bootimg(kernel+intram fs).
stunts513 said:
ah good you found it before i could look it up. It will downgrade just fine, but you will probably need a fastboot cable to do it. If ICE or hellfire are roms then no, the 2013 isn't flashable with the exception of kindlewater. Since the bootloader is locked we are limited to using amazon's bootimg(kernel+intram fs).
Click to expand...
Click to collapse
ok sounds like I need to find out if putting water on this without a fastboot cable is possible then

Categories

Resources