Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Printerscape
Old
#1  
Senior Member - OP
Thanks Meter 44
Posts: 301
Join Date: Apr 2011
Default I deleted some files in root accidentally; now it won't boot.

I deleted some critical files in /system directory accidentally, and it force closed / shut off.

When I tried turning it back on, it never gets past the "kindle fire" screen.

Connecting it to the computer and using adb, su command doesn't work, mount doesn't work... but it can detect the device.

So... am I screwed?
HTC Inspire 4G
IceColdSandwich [ICS]
26.14.04.28_M [AT&T]
---------------------------------
Google/ASUS Nexus 7
Stock [Jellybean]
The Following User Says Thank You to Printerscape For This Useful Post: [ Click to Expand ]
 
mfisch@mfisch.com
Old
#2  
Junior Member
Thanks Meter 6
Posts: 20
Join Date: Sep 2010
Unless someone discovers, or Kindle support can give you, a way to load the software via the boot loader, you're probably bricked.

I'm not sure if the boot loader has this functionality. Has anyone successfully extracted it yet?
 
ivanemoore
Old
(Last edited by ivanemoore; 18th November 2011 at 05:25 PM.)
#3  
Junior Member
Thanks Meter 2
Posts: 7
Join Date: May 2009
Location: San Tan Valley
I was playing around last night replacing packages and I did something similar...where I got stuck in the same situation. What I was able to do (and was very happy/surprised it worked) was using the root process to get back in.

The one I used was the one with the script you run which does everything for you. I'm on a mac so I hacked the runmemac.sh script and add in a few lines after the /system mount point was remounted rw to push out the apk's I had swapped and make sure the permissions were set right. I kicked off the script and it proceeded to root my kindle (even though it was not necessary) and put my packages back.

It's an ugly way...I could have just ran the individual commands but I was being lazy. It also means you need the original packages you removed first in order to put them back. But it worked.


Basically find this section in the script:


echo "--- remounting /system"
./$varadb shell "/data/local/tmp/busybox mount -o remount,rw /system"

and add:

./$varadb push whatever.apk /system/app/
./$varadb shell "chown root.root /system/app/whatever.apk"
./$varadb shell "chmod 644 /system/app/whatever.apk"

If push doesn't work, you can try install. I had a few trial and errors in the process but that is from my last go around which worked...twice.
The Following User Says Thank You to ivanemoore For This Useful Post: [ Click to Expand ]
 
Printerscape
Old
#4  
Senior Member - OP
Thanks Meter 44
Posts: 301
Join Date: Apr 2011
Quote:
Originally Posted by ivanemoore View Post
The one I used was the one with the script you run which does everything for you. I'm on a mac so I hacked the runmemac.sh script and add in a few lines after the /system mount point was remounted rw to push out the apk's I had swapped and make sure the permissions were set right.
It wouldn't mount... :/. *sigh*
HTC Inspire 4G
IceColdSandwich [ICS]
26.14.04.28_M [AT&T]
---------------------------------
Google/ASUS Nexus 7
Stock [Jellybean]
 
transfuntioner
Old
#5  
Member
Thanks Meter 8
Posts: 37
Join Date: May 2011
Location: champaign, il
The fire does have a recovery partition but I've not figured out how to trigger it during boot..
 
MayfairDROID
Old
#6  
Senior Member
Thanks Meter 24
Posts: 128
Join Date: Nov 2011
have you tried getting to it through ADB?

---------- Post added at 09:42 PM ---------- Previous post was at 09:38 PM ----------

Quote:
Originally Posted by MayfairDROID View Post
have you tried getting to it through ADB?
Nope..to easy I guess I tried ADB REBOOT RECOVERY with no success. It rebooted back to the lock screen
 
Lkish
Old
(Last edited by Lkish; 19th November 2011 at 03:05 AM.)
#7  
Junior Member
Thanks Meter 0
Posts: 9
Join Date: Nov 2010
Download the standalone 6.1 update and adb in and put it in the updates folder. Then reboot.

Sent from my Kindle Fire using Tapatalk
 
Printerscape
Old
(Last edited by Printerscape; 19th November 2011 at 03:39 AM.)
#8  
Senior Member - OP
Thanks Meter 44
Posts: 301
Join Date: Apr 2011
Quote:
Originally Posted by Lkish View Post
Download the standalone 6.1 update and adb in and put it in the updates folder. Then reboot.

Sent from my Kindle Fire using Tapatalk
How do I adb push files to /sdcard/kindleupdates/ directory?

After typing "adb devices" to show the device, I typed:
C:\adb> adb push update-kindle-6.1_D01E_2017120.bin /sdcard/kindlefireupdates/

To which I got:
failed to copy 'update-kindle....bin' to '/sdcard/kindlefireupdates/': Permission denied

I tried using "\":
C:\adb> adb push update-kindle-6.1_D01E_2017120.bin \sdcard\kindlefireupdates\

To which I got:
failed to copy 'update....bin' to '\sdcard\kindlefireupdates\': Read-only file system

HTC Inspire 4G
IceColdSandwich [ICS]
26.14.04.28_M [AT&T]
---------------------------------
Google/ASUS Nexus 7
Stock [Jellybean]
 
transfuntioner
Old
#9  
Member
Thanks Meter 8
Posts: 37
Join Date: May 2011
Location: champaign, il
Try this:
adb shell mount -w -t vfat /dev/block/mmcblk0p12 /mnt/sdcard
adb push update-kindle....bin /mnt/sdcard/kindleupdates
 
Printerscape
Old
#10  
Senior Member - OP
Thanks Meter 44
Posts: 301
Join Date: Apr 2011
Quote:
Originally Posted by transfuntioner View Post
Try this:
adb shell mount -w -t vfat /dev/block/mmcblk0p12 /mnt/sdcard
adb push update-kindle....bin /mnt/sdcard/kindleupdates
mount: Operation not permitted.


Doing:
adb shell su
results in "[1] Segmentation fault su"
HTC Inspire 4G
IceColdSandwich [ICS]
26.14.04.28_M [AT&T]
---------------------------------
Google/ASUS Nexus 7
Stock [Jellybean]

The Following User Says Thank You to Printerscape For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more