[SCRIPT][GB&JB] Full backup v1.0 - Galaxy S Advance I9070 General

I created a shell script to do full internal memory backup.
Backup will be saved to "/sdcard/external_sd/devbackup".
Versions
2013-02-19: v1.0 (DOWNLOAD)
- Added option to backup user partitions.
- Added safety checks for device model, busybox availability and running user.
- Works on GB only.
- Needs Busybox.
Code:
su
busybox sh /sdcard/backup.sh system
Code:
su
busybox sh /sdcard/backup.sh user
2013-02-08: v0.5 (DOWNLOAD)
- Backups only system partitions.
- Runs on GB and JB without Busybox.
Code:
su
sh /sdcard/backup.sh
Partitions
System partitions
01 = param.lfs.md5
02 = modemfs.img.md5
03 = system.img.md5
06 = cspsa.img.md5
07 = EFS.img.md5
09 = hidden.img.md5
10 = GT-I9070_EUR_XX_8G.pit.md5
11 = ssgtest.img.md5
12 = ipl.bin.md5
13 = modem.bin.md5
14 = normal.bin.md5
15 = kernel.bin.md5
16 = normal2.bin.md5
17 = kernel2.bin.md5
User partitions
4 = cache.img.md5
5 = userdata.img.md5
8 = ums.rfs.md5

Post it in general section next time,report your thread to a mod and tell him to move this.

You can/should use general section for this topics.

Re: Full backup
mj111996 said:
Post it in general section next time,report your thread to a mod and tell him to move this.
Click to expand...
Click to collapse
How do I do that?
Sent from my GT-I9070 using xda app-developers app

Skarllot said:
How do I do that?
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
Hit orange triangle with "!" inside of it in top right corner of first post.

Skarllot said:
I created a shell script to do full internal memory backup.
To run the script type the following into terminal:
su
busybox sh backup.sh system
Download: http://goo.gl/Ky9qH
Needs Busybox.
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
shut_down said:
Hit orange triangle with "!" inside of it in top right corner of first post.
Click to expand...
Click to collapse
Is a text document? must be stored in one place on the telephone?

emmanueldmc said:
Is a text document? must be stored in one place on the telephone?
Click to expand...
Click to collapse
It's a script... copy all the text, create a new text document, paste in the new text document calling it something like : fullbackup.sh .
Then
Move it to telephone, install smanager (Script Manager) , run it as SU . Done

Skarllot said:
I created a shell script to do full internal memory backup.
To run the script type the following into terminal:
su
busybox sh backup.sh system
Download: http://goo.gl/Ky9qH
Needs Busybox.
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
I tried to install by Terminal and script manager but always i get this error:

Thanks for share your script!
So, can I ask what the script can copy? I mean, can you specify what it does, what it will backup, what it can't ?
To be more clear, It can backup everything, even the bootloader, so we can flash all stock again? In my country (Brazil), Samsung called that phone "Galaxy SII Lite" and the bootloader image has this text . Could it be a way to turn back to my stock? People have told that with this tuto:[ Solved ] How to Downgrade JB 4.1.2 to GB 2.3.6 the text of bootloader image becomes "Galaxy S Advance". By the way, I am just asking. I have no trouble with all that stuff, only curiosity.
Sorry for noob questions and poor english!

johnnybr said:
Thanks for share your script!
So, can I ask what the script can copy? I mean, can you specify what it does, what it will backup, what it can't or how to "restore" that backup?
Sorry for noob questions and poor english!
Click to expand...
Click to collapse
It will backup all your partitions. You could look at its content and find out.
Code:
SPART1="1,param.lfs.md5"
SPART2="2,modemfs.img.md5"
SPART3="3,system.img.md5"
SPART4="6,cspsa.img.md5"
SPART5="7,EFS.img.md5"
SPART6="9,hidden.img.md5"
SPART7="10,GT-I9070_EUR_XX_8G.pit.md5"
SPART8="11,ssgtest.img.md5"
SPART9="12,ipl.bin.md5"
SPART10="13,modem.bin.md5"
SPART11="14,normal.bin.md5"
SPART12="15,kernel.bin.md5"
SPART13="16,normal2.bin.md5"
SPART14="17,kernel2.bin.md5"
UPART1="4,cache.img.md5"
UPART2="5,userdata.img.md5"
UPART3="8,ums.rfs.md5"

In that location is stored the full backup?

emmanueldmc said:
In that location is stored the full backup?
Click to expand...
Click to collapse
By the content of the script location of backed up files will be: /sdcard/external_sd/devbackup/
P.S. And those backed up files are Odin flashable, as I see. OP could add how to restore on the first post. It is pointless just write how to backup, without explanation how to restore.

Re: Full backup
shut_down said:
By the content of the script location of backed up files will be: /sdcard/external_sd/devbackup/
P.S. And those backed up files are Odin flashable, as I see. OP could add how to restore on the first post. It is pointless just write how to backup, without explanation how to restore.
Click to expand...
Click to collapse
Sorry, it's my next step.
I'll do a restore script, but I have been busy.
Sent from my GT-I9070 using xda app-developers app

Re: Full backup
emmanueldmc said:
In that location is stored the full backup?
Click to expand...
Click to collapse
I'll update the script to show that explicitly.
Sent from my GT-I9070 using xda app-developers app

Re: Full backup
emmanueldmc said:
I tried to install by Terminal and script manager but always i get this error:
Click to expand...
Click to collapse
Please, try to run without "system" parameter/command.
Sent from my GT-I9070 using xda app-developers app

So, someone managed to make work this script? I don't know what is messed here, but no success at now...

Re: Full backup
johnnybr said:
So, someone managed to make work this script? I don't know what is messed here, but no success at now...
Click to expand...
Click to collapse
Any message?
Sent from my GT-I9070 using xda app-developers app

Re: Full backup
How is this different /better than nandroid backups ?
Sent from my GT-I9070 using xda app-developers app

Re: Full backup
Sadvance said:
How is this different /better than nandroid backups ?
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
I really don't know, I never tested it.
Sent from my GT-I9070 using xda app-developers app

Skarllot said:
Any message?
Click to expand...
Click to collapse
With terminal emulador:
"sh: applet not found"
With SManager, first: "Current value is " " and was expected "GT-I9070";
then I marked the SU icon before execute the script, this time the result was that screen, that I can't understand. I will attach.

Related

[RECOVERY] CWM for the SK4G. Enjoy!

Special thanks goes out to everyone who tested for me.
I do not have the device, so I rely heavily on testers to report any bugs.
Here is CWM for the SK4G.
You will need to modify your stock recovery binary to be able to use CWM.
Kernel Devs can also compile CWM into their kernel by extracting the update.zip and building it into their initramfs.
To replace your stock recovery binary with the modified binary:
download this file
DEAD. USE BALI KERNEL
Exatract and take the recovery binary file inside of it and use root explorer or adb push the file to /system/bin.
DO NOT delete the current one there, or rename any files.
Just overwrite it.
I would however, recommend getting Android Commander from www.androidcommander.com It's a lot easier, and a lot more useful.
CWM Final
DEAD. USE BALI KERNEL
Place in the root of your SD.
You can now use Quick Boot from the market, or adb reboot recovery to boot into CWM
I have sent Koush the device tree to have the official update.zip supported within Rom Manager.
UNTESTED:
You can also take the contents from the update.zip and replace the contents that are in noobnl's recovery rerouter/root.
Again, I haven't tested that due to not having the device.
First! Congrats krylon and thank you
Krylon: link 404'd
Sent from my SGH-T839 using XDA App
Thank you very mucho!
Sent from my SGH-T839 using XDA App
i cant dowload recovery zip
I don't know if its just me but the first link is not working
Sent from my SGH-T839 using XDA App
Guys... add a /sk4g to the first url so its like the 2nd url... thank me later
Sent from my SGH-T839 using XDA App
http://www.krylon360.com/file_host/sk4g/recovery.zip
mattpall said:
Guys... add a /sk4g to the first url so its like the 2nd url... thank me later
Sent from my SGH-T839 using XDA App
Click to expand...
Click to collapse
Datlilboricua said:
http://www.krylon360.com/file_host/sk4g/recovery.zip
Click to expand...
Click to collapse
Fixed. thanks.
Thanks lilboricua
Sent from my SGH-T839 using XDA App
Krylon... quick question... how much effort would it be to make a "reorient kernal" similar to wat the captivate had so it could use i9000 roms. Since this phone is basically a galaxy s...
Sent from my SGH-T839 using XDA App
Nand backup error
with the new recovery (remapped buttons) i tried to do a nand backup and it wouldnt start and it'd auto matically say error while backing up boot image... can anyone see if they come across this aswell ..
mattpall said:
Krylon... quick question... how much effort would it be to make a "reorient kernal" similar to wat the captivate had so it could use i9000 roms. Since this phone is basically a galaxy s...
Sent from my SGH-T839 using XDA App
Click to expand...
Click to collapse
this phone is not basically a galaxy S. heck, when the SGS4G came out people said it was basically a vibrant. NOPE. Wrong.
It would be hard to do, but might be doable.
ayoteddy said:
with the new recovery (remapped buttons) i tried to do a nand backup and it wouldnt start and it'd auto matically say error while backing up boot image... can anyone see if they come across this aswell ..
Click to expand...
Click to collapse
didn't you test this?
mattpall said:
Krylon... quick question... how much effort would it be to make a "reorient kernal" similar to wat the captivate had so it could use i9000 roms. Since this phone is basically a galaxy s...
Sent from my SGH-T839 using XDA App
Click to expand...
Click to collapse
if we could get a stock kernel with just the ext4 patch so we would be able to run our system, data and cache on ext4 i'd be pleased enough . idk if anyone with this phone would be able to rebuild the kernel with that patch but if so our phones would easily be 3x faster
I also see the same problem. I didn't think to test backups. What was all changed from the working version to the current version? all that needed to be changed was the lun map and BOARD_USES_CUSTOM_KEYMAP
krylon360 said:
didn't you test this?
Click to expand...
Click to collapse
yes i tested the original one completely and everything worked, the new one you sent me i only tested the buttons and mapping which were fine . but it seems now the nand backup/restore has a problem.
Edit: i just made another nand backup with the original recovery without the back button mapping and it works. seems the edited one got the backup/restore broken somehow
ayoteddy said:
if we could get a stock kernel with just the ext4 patch so we would be able to run our system, data and cache on ext4 i'd be pleased enough . idk if anyone with this phone would be able to rebuild the kernel with that patch but if so our phones would easily be 3x faster
Click to expand...
Click to collapse
not hard to do at all. unpack, add in ext4 mount options, repack, then flash kernel, and script to convert.
sduvick said:
I also see the same problem. I didn't think to test backups. What was all changed from the working version to the current version? all that needed to be changed was the lun map and BOARD_USES_CUSTOM_KEYMAP
Click to expand...
Click to collapse
Omg didn't test backups? :facepalm
Sent from my SGH-T839 using XDA App
ayoteddy said:
yes i tested the original one completely and everything worked, the new one you sent me i only tested the buttons and mapping which were fine . but it seems now the nand backup/restore has a problem.
Edit: i just made another nand backup with the original recovery without the back button mapping and it works. seems the edited one got the backup/restore broken somehow
Click to expand...
Click to collapse
the new one all I did was change key mapping and UMS path... odd.
Ok I did the recovery to system bin and did the update it changed to cwm and I tried nand errors out I reboot and reboot back into recovery I'm back to stock recovery
Sent From My Rooted Sidekick 4g Premium XDA App

Md5 mismatch

Trying to restore a stock backup in cwm. I get md5 mismatch error. Cause/solution inquiry.
Sent from my SAMSUNG-SGH-I727 using xda premium
hcyplr29 said:
Trying to restore a stock backup in cwm. I get md5 mismatch error. Cause/solution inquiry.
Sent from my SAMSUNG-SGH-I727 using xda premium
Click to expand...
Click to collapse
Couple of things...
Your backup might be corrupt if the md5 doesn't match.
or you might want to try and make sure you have the latest version of CWM installed on your phone. I read in one of the other threads that someone had an md5 mismatch problem that was solved with a newer version of CWM. I hope this helps.
hcyplr29 said:
Trying to restore a stock backup in cwm. I get md5 mismatch error. Cause/solution inquiry.
Sent from my SAMSUNG-SGH-I727 using xda premium
Click to expand...
Click to collapse
I had this happen to me once. Turned out the nand backup was bad....used the previous one I had made and was back in action. Had a few moments to sweat it out though. Just make sure to backup regularly and archives them.
Sent from my SAMSUNG-SGH-I727 using xda premium
same problem
i just encountered the same md5 mismatch problem. i have the lastest version of cwm but it doesnt help. i dont have previous stock roms as this was the first time i backed the rom up. any other solutions?
bshebib said:
i just encountered the same md5 mismatch problem. i have the lastest version of cwm but it doesnt help. i dont have previous stock roms as this was the first time i backed the rom up. any other solutions?
Click to expand...
Click to collapse
Disclaimer: This is just my opinion and I am not responsible if you have issues after taking my advice, etc., etc.
With that said...
Is the only issue that you can't make a backup or have you encountered other problems? Did you flash the superuser zip before making a backup? Did you try making a nadroid backup more than just once and it errored multiple times? Will the phone boot for you?
You could try to boot the phone up and reboot into recovery and try making a backup again. If all else fails you can just reflash everything back to stock and re-root. Make sure to read through all the guides very carefully and then...read them again....and when you get done with that....read them again. =)
1. Reflash stock.tar through Odin.
http://forum.xda-developers.com/showthread.php?t=1342348
2. Reflash CWM through Odin.
http://forum.xda-developers.com/showthread.php?t=1340526
3. Make a nandroid backup!!!
4. Flash SU zip.
5. Reboot
Good luck.
Presbycusis said:
Disclaimer: This is just my opinion and I am not responsible if you have issues after taking my advice, etc., etc.
With that said...
Is the only issue that you can't make a backup or have you encountered other problems? Did you flash the superuser zip before making a backup? Did you try making a nadroid backup more than just once and it errored multiple times? Will the phone boot for you?
You could try to boot the phone up and reboot into recovery and try making a backup again. If all else fails you can just reflash everything back to stock and re-root. Make sure to read through all the guides very carefully and then...read them again....and when you get done with that....read them again. =)
1. Reflash stock.tar through Odin.
http://forum.xda-developers.com/showthread.php?t=1342348
2. Reflash CWM through Odin.
http://forum.xda-developers.com/showthread.php?t=1340526
3. Make a nandroid backup!!!
4. Flash SU zip.
5. Reboot
Good luck.
Click to expand...
Click to collapse
This is exactly how I do it. I've never needed it but have always had it for emergency. Now that ICS is out I've been going back and forth from the sandwich to gingerbread because the bugs are well.......bugging me. I odin'd the leak then I backed it up after I installed cwm so I could always go back to that after testing out these other roms, cwm flashes, and even the backups of ICS, then I root. I basically have started from scratch twice and both times I went back to my backup I got the mismatch ( 2 different backups of the leak). I know its me (possibly cwm) because the cwm ics backup that's out there restores fine.
Sent from my SAMSUNG-SGH-I727 using XDA
Are you extracting on your PC? There seems to be some problems with unzips on the phone causing a mismatch
I've been using 7-zip for mine, and it works great. Extract files on the desktop, place on the external SD using USB
Got this from another forum
You can actually manually do it, and maybe get that backup fixed. Go to the backup folder /sdcard/clockworkmod/backup/*rom name (date and time usually)/
See if there is a nandroid.md5 file in there. If so, delete it, you can back it up if you want but it is busted so no point.
Next step to open adb shell or terminal emulator and type:
Code:
su
cd /sdcard/clockworkmod/backup/*rom name (date and time usually)/
md5sum *img > nandroid.md5
reboot recovery
Click to expand...
Click to collapse
Toggle signature works for me alot
Sent from my SAMSUNG-SGH-I727 using XDA
Not totally sure that I'm correct but I had made two backups on one version of cwm and then upgraded my cwm to the touch version and the two backups from the previous version wouldn't restore because of md5 mismatch. Those same two backups had worked several times perfectly on the other version of cwm as well. So I just assumed that maybe the version change had something to do with it.
Sent from a payphone at the quick-e-mart down the street from you
hcyplr29 said:
Trying to restore a stock backup in cwm. I get md5 mismatch error. Cause/solution inquiry.
Sent from my SAMSUNG-SGH-I727 using xda premium
Click to expand...
Click to collapse
If you renamed backup directory to one w spaces... that too will give md5 err. Rename without spaces
Sent from my SAMSUNG-SGH-I727 using xda premium
Just flashed cwm touch from another recovery before trying to flash new rom zip and md5 mismatch accured...after darkwipe..dang..that was close call....think your correct with the change theory...
Sent from my SAMSUNG-SGH-I727 using XDA
Yes
yes that wass the problem. Tnk you NO spaces on backup folder name.
Tnk s
mindmajick said:
If you renamed backup directory to one w spaces... that too will give md5 err. Rename without spaces
Sent from my SAMSUNG-SGH-I727 using xda premium
Click to expand...
Click to collapse
hisham027 said:
You can actually manually do it, and maybe get that backup fixed. Go to the backup folder /sdcard/clockworkmod/backup/*rom name (date and time usually)/
See if there is a nandroid.md5 file in there. If so, delete it, you can back it up if you want but it is busted so no point.
Next step to open adb shell or terminal emulator and type:
Code:
su
cd /sdcard/clockworkmod/backup/*rom name (date and time usually)/
md5sum *img > nandroid.md5
reboot recovery
Click to expand...
Click to collapse
Worked perfect, thanks
adb Problem
Hey Guys,
nice tutorial. Everything worked but the adb shell itself.. I had to type all in one command. My adb shell freezed after entering the second command. Anybody knows how to fix it?
I used SiyahKernel S2-v3.4.1 and the ADB Shell in the Recovery.
funatkill said:
Hey Guys,
nice tutorial. Everything worked but the adb shell itself.. I had to type all in one command. My adb shell freezed after entering the second command. Anybody knows how to fix it?
I used SiyahKernel S2-v3.4.1 and the ADB Shell in the Recovery.
Click to expand...
Click to collapse
Isn't that for the international gs2?
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
funatkill said:
Hey Guys,
nice tutorial. Everything worked but the adb shell itself.. I had to type all in one command. My adb shell freezed after entering the second command. Anybody knows how to fix it?
I used SiyahKernel S2-v3.4.1 and the ADB Shell in the Recovery.
Click to expand...
Click to collapse
Try using terminal emulator from your device
ADB Shell
Yeah, it is the international i9100, but the way to fix a broken CWM-backup is the same. I've tested an cm10 alpha and after this I wanted to restore my ICS, because of sdcard problems. So I did a fullwipe and only have had the Recovery left. How can I get a Terminal in there?
I thought about another way to fix the MD5: Maybe its possible to do a MD5Sum within windows over the boot.iso and save it to a .md5-file. You have to format the md5-file the way CMW needs it: "MD5sum /sdcard/.../boot.iso". Would this work properly?
funatkill said:
Yeah, it is the international i9100, but the way to fix a broken CWM-backup is the same. I've tested an cm10 alpha and after this I wanted to restore my ICS, because of sdcard problems. So I did a fullwipe and only have had the Recovery left. How can I get a Terminal in there?
I thought about another way to fix the MD5: Maybe its possible to do a MD5Sum within windows over the boot.iso and save it to a .md5-file. You have to format the md5-file the way CMW needs it: "MD5sum /sdcard/.../boot.iso". Would this work properly?
Click to expand...
Click to collapse
Not sure if it will work or not. Try to follow the steps given in the following thread and also just incase you may need it make a copy of the backup folder. 20 seconds tutorial to fix MD5 mismatch error no terminal needed
hisham027 said:
Not sure if it will work or not. Try to follow the steps given in the following thread and also just incase you may need it make a copy of the backup folder. 20 seconds tutorial to fix MD5 mismatch error no terminal needed
Click to expand...
Click to collapse
I fixed my md5 with the adb shell.. but I had to do this in one command . After reading this tut, I think there only has to be the MD5 of *.img, not of the .tar. Am I right?
Maybe its possible to script a zip-file for CWM which recalculates the MD5 of existing Backups?
The bash commands are simple. You only have to do this in a loop for all folders in /sdcard/clockworkmod/backup.

Softkeys / nav bar

So I need a real developers opinion. The build prop mod doesn't work. How would one go about enabling this? Is there a modification that needs to be done to the framework-res? SystemUI? Both? Please help. I can find jack about this for any device.
Sent from my XT1080 using XDA Premium 4 mobile app
+1 I have done a lot of digging and can't find a way so far to make it work. It looks like the button properties are somewhere else. I didn't see the home, back, and recent button entries in build prop ether.
Sent from my XT1080 using Tapatalk 4
TheWhiteChallenger said:
So I need a real developers opinion. The build prop mod doesn't work. How would one go about enabling this? Is there a modification that needs to be done to the framework-res? SystemUI? Both? Please help. I can find jack about this for any device.
Sent from my XT1080 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Post your framework-res (and blur res if applicable) and your systemui apk and il take a look at it
runandhide05 said:
Post your framework-res (and blur res if applicable) and your systemui apk and il take a look at it
Click to expand...
Click to collapse
Should I deodex the systemui or would u need it stock with the odex file?
TheWhiteChallenger said:
Should I deodex the systemui or would u need it stock with the odex file?
Click to expand...
Click to collapse
Needs to be deodex
runandhide05 said:
Needs to be deodex
Click to expand...
Click to collapse
thanks a bunch. here you go. i had to compress the framework to stay under the 8mb limit
royer10r said:
+1 I have done a lot of digging and can't find a way so far to make it work. It looks like the button properties are somewhere else. I didn't see the home, back, and recent button entries in build prop ether.
Sent from my XT1080 using Tapatalk 4
Click to expand...
Click to collapse
Yes I'm pretty sure I found the files for hw buttons and lights and I found the imgs for back home and recent in the system ui I just have no clue how to enable them. I think something needs to be added to one of the XML files of the ui
Sent from my XT1080 using XDA Premium 4 mobile app
TheWhiteChallenger said:
Yes I'm pretty sure I found the files for hw buttons and lights and I found the imgs for back home and recent in the system ui I just have no clue how to enable them. I think something needs to be added to one of the XML files of the ui
Sent from my XT1080 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
After compairing the build.prop of both the Moto X and Ultra the only thing that stood out to me that may enable the softkeys is the line:
ro.product.display=Moto X
Click to expand...
Click to collapse
Try placing it under # ADDITIONAL_BUILD_PROPERTIES After you have backed up of course.
Also, look for an xml in systemui.apk called navigation_bar.xml. It should be located in res/layout/ of your decompiled systemui apk.
What brand moto x is that I have a sprit build.prop and its didn't have ro.product.display at all. Neither dose my maxx
Sent from my XT1080 using XDA Premium 4 mobile app
Nvrmnd it just got left out when I copied it to a word doc somehow
Sent from my XT1080 using XDA Premium 4 mobile app
TheWhiteChallenger said:
Yes I'm pretty sure I found the files for hw buttons and lights and I found the imgs for back home and recent in the system ui I just have no clue how to enable them. I think something needs to be added to one of the XML files of the ui
Sent from my XT1080 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
are you using an unlocked version?
have you tested your deodex framework-res to ensure it works?
if i give you a moddified framework-res.apk do you know how to properly push it? obviously you need root and RW on the /system
do u have a backup?
or a way back if need be?
in other words do you know what you are doing?
and will not hold me responsible in any way shape or form?
and fyi you cant just adb push the framework while booted you will bootloop. cause you have to rm - the odex and apk will be over written when you push, the best way would be to push it while in recovery, ( which you would only have if you have a dev version)
i say all that to warn you,
A) its 100% untested.
b) i dont have a device to even test it on.
C) beware bootloop is a possibility especially if you dont know what you are doing.
its compressed just unzip do what you will with it
framework-res.zip Show_navbar
and yes your right(ish) the bool.xml in the framework has to be changed from
Code:
<bool name="config_showNavigationBar">[COLOR="Red"]false[/COLOR]</bool>
to
Code:
<bool name="config_showNavigationBar">[COLOR="red"]true[/COLOR]</bool>
Actually strangely enough the framework res is factory deodex. No I don't have Dev edition (yet) to pushing via adb is out right? Will copy and paste with root explorer work, setting proper permissions of course, or is it going to f%#k up right away? I have no total back up but I've got the important stuff and it wouldnt be the first time of me using the fxz back to stock
Sent from my XT1080 using XDA Premium 4 mobile app
And I absolutely will hold you responsible.
Not really.
Sent from my XT1080 using XDA Premium 4 mobile app
I am not responsible for what you do to your phone. I am 99.9% sure this will not bork your phone but if it does its your fault not mine. OK? Great. Enjoy.
I dont have this phone though ive done this on other phones ive owned. Im confident it will work.
If anyone is feeling adventurous, ive modified the framework-res.apk to show the nav keys. Below is the best way to apply it. You must be rooted and be willing to flash back to stock if things go wrong (or push the backed up app if possible). You may have issues if you are not deodexed, though included in the instructions below is how to apply it even if you are not. You also must be able to use adb. Id make a flashable zip but you dont have a recovery.
Copy the framework-res.apk file to your internal storage however you please.
Make sure your phone is plugged into your computer and adb debugging is enabled.
Type the following commands (read carefully!):
adb shell
Click to expand...
Click to collapse
su
Click to expand...
Click to collapse
(look on your phone, it may ask for superuser permissions, allow it)
stop
Click to expand...
Click to collapse
(note: this will make your screen go black and it will be unresponsive, this is normal)
cp /sdcard/framework-res.apk /system/framework/
Click to expand...
Click to collapse
(if you have a problem at this point type: adb remount and try this step again.)
rm /system/framework/framework-res.odex
Click to expand...
Click to collapse
(only do this if your apk is not deodexed)
reboot
Click to expand...
Click to collapse
On reboot you should have onscreen nav keys.
Here is the modded framework: https://dl.dropboxusercontent.com/u/44601870/framework-res.apk
I see runandhide05 has also done the mod for you. I can confirm that what he (and I) have done is what adds the nav keys to the moto x (which i have).
mentose457 said:
I am not responsible for what you do to your phone. I am 99.9% sure this will not bork your phone but if it does its your fault not mine. OK? Great. Enjoy.
I dont have this phone though ive done this on other phones ive owned. Im confident it will work.
If anyone is feeling adventurous, ive modified the framework-res.apk to show the nav keys. Below is the best way to apply it. You must be rooted and be willing to flash back to stock if things go wrong (or push the backed up app if possible). You may have issues if you are not deodexed, though included in the instructions below is how to apply it even if you are not. You also must be able to use adb. Id make a flashable zip but you dont have a recovery.
Copy the framework-res.apk file to your internal storage however you please.
Make sure your phone is plugged into your computer and adb debugging is enabled.
Type the following commands (read carefully!):
(look on your phone, it may ask for superuser permissions, allow it)
(note: this will make your screen go black and it will be unresponsive, this is normal)
(if you have a problem at this point type: adb remount and try this step again.)
(only do this if your apk is not deodexed)
On reboot you should have onscreen nav keys.
Click to expand...
Click to collapse
Questions... Is this for the modded framework red posted above I don't see a link for one in ur post?
If u did do one ur self did you do it off of the FW red I posted?
Sent from my XT1080 using XDA Premium 4 mobile app
TheWhiteChallenger said:
Questions... Is this for the modded framework red posted above I don't see a link for one in ur post?
If u did do one ur self did you do it off of the FW red I posted?
Sent from my XT1080 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It should be in my post now. It is infact of the framework you posted on the first page.
The adb crap may not work right now. You need to mount the system as r/w and i dont know what file system the X/Ultra etc use. Though it may work because the way root was aquired for this phone. Worst case is you cant copy the file to the system. No harm will be done.
mentose457 said:
It should be in my post now. It is infact of the framework you posted on the first page.
The adb crap may not work right now. You need to mount the system as r/w and i dont know what file system the X/Ultra etc use. Though it may work because the way root was aquired for this phone. Worst case is you cant copy the file to the system. No harm will be done.
Click to expand...
Click to collapse
It should be noted that there were two ways to root your ohone, the first DID NOT allow rw on the /system
The second from jcase allows rw only when booted into "recovery" which is not the normal recovery but a mirror img of your /system and will appear as normally booted however you have rw access to the system.
This is how you would have to do it. If you rooted with his first release you wont have rw on the system, if thats the case use his latest release and follow his instructions in his OP then do as mentose457 suggested
Thanks a bunch guys my battery's almost dead so I'm going to try this in the morning. And thank you runanhind for giving specifics as to what was done
Sent from my XT1080 using XDA Premium 4 mobile app
Oh and what is the adb command to reboot to recovery if there is one? I've had problems getting changes to stick if the first reboot after the changer doesn't have write access
Sent from my XT1080 using XDA Premium 4 mobile app
TheWhiteChallenger said:
Oh and what is the adb command to reboot to recovery if there is one? I've had problems getting changes to stick if the first reboot after the changer doesn't have write access
Sent from my XT1080 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I believe it's:
Code:
adb reboot recovery
But someone please correct me if I'm wrong... =x

[Q] Bootloop, Need Help!

Hi everyone,
Long story short, my device wont boot. Ive got TWRP. I have the backup on my computer, but when i plug my phone in, i cant move the backup to my TWRP Backup directory because there is no way of getting to the internal storage. Im a noob with adb and i have no clue how to use it so can someone help with that. Thanks! :crying:
adb shell
mount /data
exit
adb push c:\users\provickers\desktop\backupfile /data/media/0/whereverTWRPbackupsGO
Sent from my Nexus 5 using Tapatalk
http://forum.xda-developers.com/showthread.php?t=2513701
[TUTORIAL] How to flash a factory image | Return to stock | Unroot/SAVE your Nexus 5
sent from my HAMMERHEAD
CRIME INC. said:
http://forum.xda-developers.com/showthread.php?t=2513701
[TUTORIAL] How to flash a factory image | Return to stock | Unroot/SAVE your Nexus 5
sent from my HAMMERHEAD
Click to expand...
Click to collapse
Not really an option...
rootSU said:
adb shell
mount /data
exit
adb push c:\users\provickers\desktop\backupfile /data/media/0/whereverTWRPbackupsGO
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
that means nothing to me. can you write that in super duper nooby language please
Just read the adb stickie in q&a then
Sent from my Nexus 5 using Tapatalk
rootSU said:
Just read the adb stickie in q&a then
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I do adb shell
then mount /data
and it says: mounting /dev/block/mmcblk0p28 on /data failed: device or resource busy
Im currently in the home screen of TWRP
Maybe its already mounted by twrp in the mounts menu. If it is, skip that step. If not, mount in that menu
Sent from my Nexus 5 using Tapatalk
rootSU said:
Maybe its already mounted by twrp in the mounts menu. If it is, skip that step. If not, mount in that menu
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
alright thanks alot, hopefully it works!
rootSU said:
Maybe its already mounted by twrp in the mounts menu. If it is, skip that step. If not, mount in that menu
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Can u tell me where the twrp backups directory is? Coz obviously i cant get into my phone
I don't use twrp myself so im not sure where it is. If you use the ls command..... (thats LS in lowercase)
Eg....
ls /data/media/0
That will list all the directories on sdcard. I assume there will be a folder called twrp there. Within there not sure. But you can use ls to keep drilling down.
ls /data/media/0/twrp
I think there's a backup folder with dated folsers within it.
Take a twrp backup now and see....
Sent from my Nexus 5 using Tapatalk
Yes, the path's correct... TWRP makes a backup in /data/media/0/TWRP/3282387328 (random string)...
So, you will need to push the backup folder to /data/media/0/TWRP/... Now it will show up in the restore option.
vin4yak said:
Yes, the path's correct... TWRP makes a backup in /data/media/0/TWRP/3282387328 (random string)...
So, you will need to push the backup folder to /data/media/0/TWRP/... Now it will show up in the restore option.
Click to expand...
Click to collapse
Presuming he has the content of the random string folder, but not the folder itself, can he create a random string folder manually? Or must he take a backup and use that folder?
Sent from my Nexus 5 using Tapatalk
rootSU said:
Presuming he has the content of the random string folder, but not the folder itself, can he create a random string folder manually? Or must he take a backup and use that folder?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Like you, I've stuck with Philz for a long long time now.. Can't say for sure about twrp. I guess there's no harm in trying to make a folder and check.
However, sometimes while doing that, I faced a md5 mismatch error in twrp. But that's on a HTC One X.. No idea whether twrp has changed this since then.
rootSU said:
I don't use twrp myself so im not sure where it is. If you use the ls command..... (thats LS in lowercase)
Eg....
ls /data/media/0
That will list all the directories on sdcard. I assume there will be a folder called twrp there. Within there not sure. But you can use ls to keep drilling down.
ls /data/media/0/twrp
I think there's a backup folder with dated folsers within it.
Take a twrp backup now and see....
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I get "Permissions Denied". This is probably why nothing is working! What can i do?
ProVickers said:
Can u tell me where the twrp backups directory is? Coz obviously i cant get into my phone
Click to expand...
Click to collapse
/sdcard/TWRP/BACKUPS/your device serial number
Find the serial number in settings, about phone, status
Sent from my Nexus 5
Can't get to settings without booting phone.
OP can we keep this to one thread please? Its going to get confusing
Sent from my Nexus 5 using Tapatalk
i dont know why people dont do this, maybe they are worried of the little bit of space it takes in their storage, but i ALWAYS, since feb of 2009, keep a copy of my current rom and kernel in my storage. if i ever mess up doing anything, i always have my rom/kernel to flash again. no relying on computers(as im rarely around them). also, i always have one nandroid backup in my storage, just in case. it might not always be the most recent, but its there just in case.
@ProVickers
I'm not 100% sure of this but adb in TWRP doesn't work everywhere... You need to go to Advanced-Sideload.. then swipe right and then fire the adb push command..
rootSU said:
Can't get to settings without booting phone.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
He can get the serial number from the bootloader, right?
simms22 said:
i dont know why people dont do this, maybe they are worried of the little bit of space it takes in their storage, but i ALWAYS, since feb of 2009, keep a copy of my current rom and kernel in my storage. if i ever mess up doing anything, i always have my rom/kernel to flash again. no relying on computers(as im rarely around them). also, i always have one nandroid backup in my storage, just in case. it might not always be the most recent, but its there just in case.
Click to expand...
Click to collapse
Agreed.
Although i always have my rom, kernel and titanium backup. My nandoids move to my NAS as i don't have the space. However, I never modify anything that may require a restore when I'm away from home
Sent from my Nexus 5 using Tapatalk

[Q] Lost all my data

I need your help, my phone decided to remove all of my files. As far as I know as long as something is not overwritten it's not really ever gone right? Is there any way to restore my lost data? I will do anything!
How did the data get deleted and are you rooted?
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
How did the data get deleted and are you rooted?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I am rooted. I browsed my phone files through my pc and saw what uneeded files I can remove, I saw a folder named storage but on propeties it only showed 38mb and only had one folder so I didn't even assume it is my storage folder. As well as that I have never ever had my storage folder inside my storage folder when I mounted my phone on my pc.
There's a lot more there than you saw on your pc. I'd chalk it up to a learning experience and start over. I don't think you're going to be able to recover everything
Sent from my Nexus 5 using XDA Free mobile app
[info] Storage: Nexus 5 Data (info / loss / recovery / prevention)
http://forum.xda-developers.com/showthread.php?t=2534010
Sent from my Nexus 5 using Tapatalk
jd1639 said:
There's a lot more there than you saw on your pc. I'd chalk it up to a learning experience and start over. I don't think you're going to be able to recover everything
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
There has to be a way to restore the data, I didn't do anything unusual. My storage folder itself shouldn't appear in the ./ folder when I open the phone through the pc. This can happen to both simple users and expert. I got false information about the contents of this folder which led me to delete it. This is just the media files not /data or /system or anything.
Eden3319 said:
There has to be a way to restore the data, I didn't do anything unusual. My storage folder itself shouldn't appear in the ./ folder when I open the phone through the pc. This can happen to both simple users and expert. I got false information about the contents of this folder which led me to delete it. This is just the media files not /data or /system or anything.
Click to expand...
Click to collapse
Read the post rootSU linked you to. You may be able to recover the data. But it's a very involved process and as rootS said it's not for the faint of heart
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
Read the post rootSU linked you to. You may be able to recover the data. But it's a very involved process and as rootS said it's not for the faint of heart
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I am trying to do this now... wish me luck
rootSU said:
[info] Storage: Nexus 5 Data (info / loss / recovery / prevention)
http://forum.xda-developers.com/showthread.php?t=2534010
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Hey thanks for your help, I have installed all of the programs required and my phone is required in adb. I opened the Cygwin and entered the commands but it just wrote command not found. I also tried to add the destination at the beginning but it did not work either. How do I open adb using cygwin?
If I were you, try disk digger
Sent from my Nexus 5 using Tapatalk
rootSU said:
If I were you, try disk digger
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
disk digger, even pro, while it can restore alot of file types in cannot restore all of them... at least according to the play store page.
True but Its easier. I can't help you with cygwin so you're on your own there.
Sent from my Nexus 5 using Tapatalk
Eden3319 said:
Hey thanks for your help, I have installed all of the programs required and my phone is required in adb. I opened the Cygwin and entered the commands but it just wrote command not found. I also tried to add the destination at the beginning but it did not work either. How do I open adb using cygwin?
Click to expand...
Click to collapse
Do you have busybox instated on your device. Also, make sure you know what partition you want to recover. The one in the example may not be what you want. Google nexus 5 partitions xda.
Sent from my Nexus 5 using XDA Free mobile app
rootSU said:
True but Its easier. I can't help you with cygwin so you're on your own there.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
You don't know how to operate it? After all you wrote the thread
Eden3319 said:
You don't know how to operate it?
Click to expand...
Click to collapse
I've never lost all my data. It's all backed up. Yeah I can use cygwin, but I can't test it to help because I don't have windows at home.
Eden3319 said:
After all you wrote the thread
Click to expand...
Click to collapse
No I didn't! I only wrote the link I gave you, not the links within that thread.
Sent from my Nexus 5 using Tapatalk
jd1639 said:
Do you have busybox instated on your device. Also, make sure you know what partition you want to recover. The one in the example may not be what you want. Google nexus 5 partitions xda.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I managed to work the adb issue out, but I'm returned with a 0 bytes file which is useless for me. I saw that issue on the thread as well but found no solution yet.
Alright I gave up the idea to restore it... although I lost some important files this is just too much work to get it back. What I wanna do now is create a task using Tasker to backup my entire device to my pc through wifi on the night (only changed files everytime). I know how to create the profile, but does anybody know how to create the task?
Eden3319 said:
Alright I gave up the idea to restore it... although I lost some important files this is just too much work to get it back. What I wanna do now is create a task using Tasker to backup my entire device to my pc through wifi on the night (only changed files everytime). I know how to create the profile, but does anybody know how to create the task?
Click to expand...
Click to collapse
yeah, I do this. Firstly I'd recommend foldersync. It's a stand alone app but it also plugs into Tasker. Take a look
I do mention this in the thread I linked you to.
Sent from my Nexus 5 using Tapatalk
rootSU said:
yeah, I do this. Firstly I'd recommend foldersync. It's a stand alone app but it also plugs into Tasker. Take a look
I do mention this in the thread I linked you to.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Ok, I got it working! Thank you very much for your help!
Eden3319 said:
Ok, I got it working! Thank you very much for your help!
Click to expand...
Click to collapse
No probs!
Enjoy your new syncing

Categories

Resources