hey guys, before submitting a bug to Hash i wanted to ask here if anyone tested this yet and made the same experience as i did: SafeStrap 1.08 is not fully compatible with the XT883.
Backups are not working because \system can't be mounted.
anyone can confirm this?
It's a known issue. If you're feeling brave, you can try my modified (and slightly older, now) version of SafeStrap that'll nandroid backup my ME863, and will probably nandroid backup your XT883 as well.
http://forum.xda-developers.com/showpost.php?p=20976390&postcount=294
i tried it, backups working fine now, thanks a lot!
Sent from my XT883 using XDA App
I'm using the xt883 radio.img and a tweaked build.prop on the xt862 and can't back-up using SafeStrap.
TBBle said:
It's a known issue. If you're feeling brave, you can try my modified (and slightly older, now) version of SafeStrap that'll nandroid backup my ME863, and will probably nandroid backup your XT883 as well.
http://forum.xda-developers.com/showpost.php?p=20976390&postcount=294
Click to expand...
Click to collapse
So, I was trying to swap out my 2nd-init.zip recovery file with the one from the thread you posted. I'm trying to use file browsers to move the altered 2nd-init.zip file into /etc/safestrap and it won't work no matter the app I use. Is there a particular app/method I should be using here for this last step?
Thanks. Forgive the noob.
Originally Posted by TBBle
It's a known issue. If you're feeling brave, you can try my modified (and slightly older, now) version of SafeStrap that'll nandroid backup my ME863, and will probably nandroid backup your XT883 as well.
http://forum.xda-developers.com/showpost.php?p=20976390&postcount=294
Click to expand...
Click to collapse
So, I was trying to swap out my 2nd-init.zip recovery file with the one from the thread you posted. I'm trying to use file browsers to move the altered 2nd-init.zip file into /etc/safestrap and it won't work no matter the app I use. Is there a particular app/method I should be using here for this last step?
Thanks. Forgive the noob.
Click to expand...
Click to collapse
you need to place the recovery file into the original 2nd-init.zip. backup the original file and check the permissions of the new file. you need to do this after succesful installation of the recovery of course
Sent from my XT883 using XDA App
eis0r said:
you need to place the recovery file into the original 2nd-init.zip. backup the original file and check the permissions of the new file. you need to do this after succesful installation of the recovery of course
Sent from my XT883 using XDA App
Click to expand...
Click to collapse
I copied the 2nd-init.zip to my computer and unzipped it just fine. I put the tweaked recovery file in the folder and rezipped it. I just can't get it back into the /etc/Safestrap folder because root browser says it failed. I checked permissions on every folder in the path (including /system) and user has write permissions on each one, so I don't see how that could be a problem. I'm not allowed, for some reason, to make any changes to /etc/Safestrap except I can extract the 2nd-init.zip to my SD card, which is how I got the copy I tweaked and am now trying to replace back on the device.
If anyone can tell me what they did to put the tweaked 2nd-init.zip back into /etc/Safestrap, that would be helpful.
Thanks.
Sent while mobile using Tapatalk.
try renaming the original 2nd-init.zip to 2nd-init.org. then copy the modified 2nd-init.zip from your sdcard to etc/safestrap
Sent from my XT883 using XDA App
eis0r said:
try renaming the original 2nd-init.zip to 2nd-init.org. then copy the modified 2nd-init.zip from your sdcard to etc/safestrap
Sent from my XT883 using XDA App
Click to expand...
Click to collapse
Well, just tried it using Root Browser and Script Manager, both of which I find to be very capable file browsers, and it didn't work. It's just not letting me make any changes to the folder /etc/Safestrap. It allowed me to extract the 2nd-init.zip out of that folder, but won't allow me to zip or unzip anything into it. I'll keep playing with it and update if anything changes.
Otherwise, I'll just wait till I no longer need the xt883 radio.img to back up and flash ROMs.
Sent while mobile using Tapatalk.
BenSWoodruff said:
Well, just tried it using Root Browser and Script Manager, both of which I find to be very capable file browsers, and it didn't work. It's just not letting me make any changes to the folder /etc/Safestrap. It allowed me to extract the 2nd-init.zip out of that folder, but won't allow me to zip or unzip anything into it. I'll keep playing with it and update if anything changes.
Otherwise, I'll just wait till I no longer need the xt883 radio.img to back up and flash ROMs.
Sent while mobile using Tapatalk.
Click to expand...
Click to collapse
/etc is a symlink to /system/etc which is read only. In a terminal emulator run the command:
busybox mount -o remount,rw /system
Then try moving the files to /etc /safestrap
Sent from my XT860 using xda premium
Endoroid said:
/etc is a symlink to /system/etc which is read only. In a terminal emulator run the command:
busybox mount -o remount,rw /system
Then try moving the files to /etc /safestrap
Sent from my XT860 using xda premium
Click to expand...
Click to collapse
Sweet, thanks, I'll try it right now! Will I need to change it back when I'm done? Hopefully, this will get me a nice shiny back up finally
Sent while mobile using Tapatalk.
Ok, so I got Root Browser to move the original 2nd-init.zip to my sd card and placed the tweaked one in /system/etc/Safestrap successfully, but then Safestrap wouldn't get past the splash screen. I swapped back to the original one and it still wouldn't boot into recovery. Just the splash screen with option to start system or press menu button to go into recovery. I pressed menu and the screen stayed black both times.
Oh well, I'm not in a hurry to flash ROMs or get a backup, so I uninstalled Safestrap for now and will try again when I no longer need the xt883 radio.img.
Sent while mobile using Tapatalk.
BenSWoodruff said:
Ok, so I got Root Browser to move the original 2nd-init.zip to my sd card and placed the tweaked one in /system/etc/Safestrap successfully, but then Safestrap wouldn't get past the splash screen. I swapped back to the original one and it still wouldn't boot into recovery. Just the splash screen with option to start system or press menu button to go into recovery. I pressed menu and the screen stayed black both times.
Oh well, I'm not in a hurry to flash ROMs or get a backup, so I uninstalled Safestrap for now and will try again when I no longer need the xt883 radio.img.
Sent while mobile using Tapatalk.
Click to expand...
Click to collapse
You don't NEED to change it back, it will automatically on next boot, if you felt the need run the same command but switch rw to ro.
As for your problem with safestrap I can't help you with that
Sent from my XT860 using xda premium
It's all good, thanks for the help. I can wait
Sent while mobile using Tapatalk.
Related
Hi, I accidentally deleted the /system/bin/sh file from my system while messing around in the terminal after rooting my phone. Seeing how the shell is a pretty important part of the operating system, I kinda don't want to reboot the phone until I've replaced it. Therefore I wondered if any of you could just send me a copy of the shell on your system. I've got the Motorola Milestone UK model, with Android 2.1 Update 1.
are you running a custom ROM or just stock 2.1.1? you can always download a custom ROM update.zip made for the milestone 2.1.1 and unzip it, and just copy the /system/bin/sh file back onto your phone using root explorer or push using adb then make sure the proper permissions are set (i believe its 777)
i'm in the US and have the "Droid" so that's really all the help i can offer.
hope that helps
vuarnet said:
are you running a custom ROM or just stock 2.1.1? you can always download a custom ROM update.zip made for the milestone 2.1.1 and unzip it, and just copy the /system/bin/sh file back onto your phone using root explorer or push using adb then make sure the proper permissions are set (i believe its 777)
Click to expand...
Click to collapse
Thanks for the tip. Things seems to be working now
Great! Glad to hear it
Sent from my Droid using XDA App
I have created a autobackup script for the EFS partition that contains information for your IMEI number.
I am addressing all ROM Developers to include this script in their ROM's!
What does this script do? It creates efs_autobackup folder on your SDCard and then tars the whole EFS partition into efs-backup.tar.gz file. Once this file is created, you can safely copy it to your PC. The script also looks for that file on reboot and if the file exists, it won't create another one.
What are the benefits of the tar file?
It keeps the permissions information for your EFS partition, so that when you want to restore your EFS partition, you only need to extract that file with the RootExplorer to your EFS partition and overwrite the old files. It sets the permissions automatically for you, so you don't need to mess or handle that yourself.
Please Developers, include this in your ROM so that users that forget to backup their EFS partition, don't have to regret that.
INSTRUCTIONS:
For Users:
If you are on ROM that don't have this script integrated - you can flash the attached zip file in your Recovery to integrate the script.
For Developers:
Either take the file from the attached zip or create 01efstar file (very important to name it with 01 prefix, since it runs as first when the Phone starts, otherwise it won't work) in the /system/etc/init.d folder with this content:
Code:
#!/system/bin/sh
# EFS Autobackup script for Samsung Nexus S
# By Brainmaster
mount /dev/block/platform/s3c-sdhci.0/by-name/media /sdcard
if [ ! -f /sdcard/efs_autobackup/efs-backup.tar.gz ];
then
mkdir /mnt/sdcard/efs_autobackup
busybox tar zcvf /sdcard/efs_autobackup/efs-backup.tar.gz /efs
fi
umount /sdcard
Reserved 1.
What a good idea.
Should I implement this on the radio zip file too?
window7 said:
Should I implement this on the radio zip file too?
Click to expand...
Click to collapse
No, this is ROM based. If the ROM don't support the scripts, then it won't work.
BUT, I am working on a version that can do this directly in the recovery (undependable from ROM) - then you can integrate it in every Radio flash file.
Well done,good job !
Sent from my Nexus S using XDA App
brainmaster said:
No, this is ROM based. If the ROM don't support the scripts, then it won't work.
BUT, I am working on a version that can do this directly in the recovery (undependable from ROM) - then you can integrate it in every Radio flash file.
Click to expand...
Click to collapse
you only have to modify the updater-swcript? easy as a pie!
Sent from my Nexus S using XDA Premium App
i hope ur miui rom has this or else should i flash it?
Borky_16 said:
you only have to modify the updater-swcript? easy as a pie!
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
Not so easy to mount the efs partition through the updater-script.
ancilary said:
i hope ur miui rom has this or else should i flash it?
Click to expand...
Click to collapse
From the next release on. If you want you can flash the script now.
yeah i dunno, first i made my own script and put into etc/init.d (running netarchy 1.3.9 which obv supports init.d scripts) - no dice. so i removed that file and flashed the zip and still getting no backup on sd.
ideas?
brainmaster said:
Not so easy to mount the efs partition through the updater-script.
Click to expand...
Click to collapse
oh that is right! :O forgot about it
Script successfully injected into my current installation of CM nightly, and successfully executed on reboot.
Uploaded the resulting file to Dropbox -- where I know I'll never lose it!
Two thumbs up!
I will include this script in my next rom update. I believe every dev should do the same.
Sent from my Google Nexus S using XDA Premium App
Good idea to put this into every ROM. Some people probably are not aware of the danger and if anything happens at least they can find the backup files on their sdcard. Maybe one should also add a small text file as an explanation what this backup is good for, so they do not accidentally delete it. Maybe you could also change the backup file on the sdcard to read-only.
Btw, you can also make a simple backup image with 'dd if=/dev/block/mtdblock6 of=efs.img'.
And for the record: I wondered why the /efs partition is mounted read-write and thought it might be a good idea change this to read-only. Problem was, without write access to /efs the SIM card would not unlock anymore. So not a good idea.
Just got my phone back from Regenersis with the IMEI restored! Shows that it can be done!
Ezekeel said:
Good idea to put this into every ROM. Some people probably are not aware of the danger and if anything happens at least they can find the backup files on their sdcard. Maybe one should also add a small text file as an explanation what this backup is good for, so they do not accidentally delete it. Maybe you could also change the backup file on the sdcard to read-only.
Btw, you can also make a simple backup image with 'dd if=/dev/block/mtdblock6 of=efs.img'.
And for the record: I wondered why the /efs partition is mounted read-write and thought it might be a good idea change this to read-only. Problem was, without write access to /efs the SIM card would not unlock anymore. So not a good idea.
Click to expand...
Click to collapse
Actually it should be as follows seeing as we get a read-only error;
dd if=/dev/block/mtdblock6 of=/mnt/sdcard/efs.img
Sent from my Nexus S using XDA Premium App
atrixboy said:
Actually it should be as follows seeing as we get a read-only error;
dd if=/Dec/block/mtdblock6 of=/months/sdcard/efs.img
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
Please, IF you want to use the option to make efs.img (I don't know why would you like to do that, because tar is easier to extract and keeps the permissions), THEN you need right command.
You misspelled allot.
Code:
dd if=/dev/block/mtdblock6 of=/sdcard/efs.img
Yea I realised that after I hit post. I agree rfs is much nicer and cleaner to deal with.
dd if=/dev/block/mtdblock6 of=/mnt/sdcard/efs.img
Or efs.rfs. however you prefer. Rfs being the more logical
Sent from my Nexus S using XDA Premium App
brainmaster said:
Please, IF you want to use the option to make efs.img (I don't know why would you like to do that ...)
Click to expand...
Click to collapse
Because mtd6 contains more than the visible files mounted on /efs, such as the wimax keys.
My question is how to restore the partition without having to worry about this:
Dees_Troy said:
Using dd on mtd devices is a bad idea when it comes time to restore. It's a quick path to a brick. It tends to inadvertently mark blocks as bad.
Click to expand...
Click to collapse
Maximilian Mary said:
Because mtd6 contains more than the visible files mounted on /efs, such as the wimax keys.
My question is how to restore the partition without having to worry about this:
Click to expand...
Click to collapse
Darn. I did not know that.
Turns out one should use nanddump and nandwrite from mtd-utils (http://git.infradead.org/mtd-utils.git). Maybe someone can compile a version for Android. That would be quite useful.
So I returned to stock using the .tot file but my phone still contains /system/xbin, shouldn't that be removed when on stock? Before I flashed the .tot I unrooted/stock recovery with mt's tool.
The /xbin also contains a busy box file. How can I remove this folder, do I have to reroot and delete it the unroot again?
Thanks!
revo_65 said:
So I returned to stock using the .tot file but my phone still contains /system/xbin, shouldn't that be removed when on stock? Before I flashed the .tot I unrooted/stock recovery with mt's tool.
The /xbin also contains a busy box file. How can I remove this folder, do I have to reroot and delete it the unroot again?
Thanks!
Click to expand...
Click to collapse
I could be wrong but when you flash a .tot file I don't think you have to unroot or anything first. Just flashing the .tot gets rid of all that stuff. Weird that the xbin folder is still there though.
Sent from my AXI0M ICS RAZR using tapatalk.
Stock there are 3 files in xbin. It is perfectly normal.
Sent from my VS920 4G using Tapatalk
mtmichaelson said:
Stock there are 3 files in xbin. It is perfectly normal.
Sent from my VS920 4G using Tapatalk
Click to expand...
Click to collapse
Does anyone know the original purpose of the /system/xbin directory? Seems to be a "standard" Android location now,
but I'm curious what the origin of that directory is.
i have been tried to edit build.prop,
got stuck at bootloop,
did that twice,
had to reflash JB Twice,
anyway to make build.prop flashable,
can i just move it to sdcard,
compress it to .zip
and apply update from external storage?
i dont want to flash firmware again and again,
help please.
mj111996 said:
i have been tried to edit build.prop,
got stuck at bootloop,
did that twice,
had to reflash JB Twice,
anyway to make build.prop flashable,
can i just move it to sdcard,
compress it to .zip
and apply update from external storage?
i dont want to flash firmware again and again,
help please.
Click to expand...
Click to collapse
For that we need custom recovery, like we had TWRP in GB. Developers are working on it, and soon we will have that. Meanwhile you can reflash whole firmware.
You can try to use zip file from Shaan's root. Just delete system/app, and system/bin, and put build.prop in system folder. But I am not sure if it will work this way.
I attached how I think it should work. If you got any more bootloops editing it, try it.
i cant,i dont have a pc,
i went to my frnd twice and flashed twice today,it feels bad to go to others house
all the time,
another guy sucessfully edit by solid explorer,
mine got bootloop when i tried by es explorer,
is that got smthng do with es explorer?
mj111996 said:
i cant,i dont have a pc,
i went to my frnd twice and flashed twice today,it feels bad to go to others house
all the time,
another guy sucessfully edit by solid explorer,
mine got bootloop when i tried by es explorer,
is that got smthng do with es explorer?
Click to expand...
Click to collapse
Maybe you better wait for custom recovery. With it would be lot easyer. You will have backup to restore.
I just tried it, it is not working because of signature.
Reboot phone In recovery mode, connect usb, run adb shell In PC:
su
mount -o remount system /system
cat /sdcard/build.prop > /system/build.prop
reboot
(Assuming u have a backup build.prop In /sdcard)
Sent from my GT-I9070 using xda app-developers app
i want to avoid
PC part
mj111996 said:
i want to avoid
PC part
Click to expand...
Click to collapse
Then you have to wait custom recovery.
@shut down,
now we have temp cwn,
can i flash build.zip of build.prop
which i compress by zarchiver?
mj111996 said:
@shut down,
now we have temp cwn,
can i flash build.zip of build.prop
which i compress by zarchiver?
Click to expand...
Click to collapse
I did not try, but I think you can. Just make it CWM compatibile. I have empty zip that is compatibile with TWRP, but I do not know if it is compatibile with CWM. I will try it later.
will wait for you to test
build.zip
mj111996 said:
will wait for you to test
build.zip
Click to expand...
Click to collapse
This CWM is buggy. When I press option install from SD - it refresh. I needed 3 times to push restart to get phone restarted. I am waiting for fully working CWM, and I will try then. I am not pushing my luck after problems with TWRP last time.
YES solid explorer works,
changed to S2,
RESOLVED
Use another .zip that extract things to system, if u replace files In the cwm zip it wont work because of the update-script inside
Sent from my GT-I9070 using xda app-developers app
what you mean exactly?
shut_down said:
For that we need custom recovery, like we had TWRP in GB. Developers are working on it, and soon we will have that. Meanwhile you can reflash whole firmware.
You can try to use zip file from Shaan's root. Just delete system/app, and system/bin, and put build.prop in system folder. But I am not sure if it will work this way.
I attached how I think it should work. If you got any more bootloops editing it, try it.
Click to expand...
Click to collapse
Man, you just saved my phone by this zip. Thank you
Hi, I know this is an old h thread but I'm pretty sure this will be handy to someone
Try this app for an easy way to make an update.zip It's still in beta but seems to be working fine on my N7100 so give it a go...
Zip.me can be found here (playstore)
Cheers
Is it possible to rename my backup file? Instead of 2013-30-7.zip change to something.zip? Thanks!
elbos2k said:
Is it possible to rename my backup file? Instead of 2013-30-7.zip change to something.zip? Thanks!
Click to expand...
Click to collapse
If you're using TWRP you can rename it right in recovery.
Sent from my HTC One using xda premium
redbull123 said:
If you're using TWRP you can rename it right in recovery.
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
Cool, thanks!
Your Nandroid can be named anything, at least with TWRP (I don't use CWM) but if you want to restore it it has to be in the right folders or TWRP won't even see it ...
TWRP/BACKUPS/HT357W900873/Your Backup ... (The "HT357W900873" folder may differ as that's what it's named on my device, I don't know if it's the same for everybody)
Are you using CWM? because my backups are not zips. If you are using TWRP btw you can create a series of folders on a flash drive, named like above and use OTG to restore if you prefer, being that the current situation doesn't allow for copying backups from the phone, to a PC but backing up to a flash drive works fine when copying them from there to a PC.