[SCRIPT]Efs backup, the easier way - Galaxy Tab 10.1 Android Development

I figured there was no tool or script to backup the most essential partition on your Tab 10.1, so I decided to make a script that does one thing, and one thing only.
It makes a backup of the /efs partition.
This is for the Tab 10.1 (P7500) only! Don't run it on any other device, or you might get some strange results when restoring it.
I am not responsible for anything you do to your device. If your cat starts overheating when your doorbell rings, IT IS NOT MY RESPONSIBILITY.
Now, on to the real thing.
I haven't tested the restore function and there is none as of yet. When people need it, I'm willing to take a look at it but restoring this partition is always risky.
Making a backup is strongly recommended though.
You should get an output similar to this picture, which shows the needed steps as well.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requirements:
- A rooted Tab 10.1
- Busybox
- Terminal emulator, adb or a scripting app.
Here's what you need to do:
1. Download the script, unzip it and place efs_backup.sh on the root of your sdcard.
2. Enter the following command in the terminal: 'su'
3. A prompt will appear, press 'Allow'
4. Enter 'chmod 755/sdcard/efs_backup.sh'
5. Enter 'sh /sdcard/efs_backup.sh'
6. All done! It is wise to upload your file, /sdcard/efsbackup/efsbackup.img, to a cloud service like Dropbox to make sure you don't lose your backup.
Now remember, this is only for the P7500 and the P7510. If requested, I am willing to port it to other devices as well.
I'll try to make an app for this, but for now you can use this script.
Changelog
---Version 1---
Initial release
---Version 1.1---
Added secondary backup ***Thanks fusionjack!***
Added checking of the first backup
If you appreciate my work, you can always click the Thanks button or buy me a soda. I most certainly appreciate that.

whats different with
Code:
cat /proc/mounts
dd if=/dev/block/mmcblk0p1 of=/sdcard/efs.img
and i think its working with P7501 too

There is no difference, I never said there was. This is just a scripted version.
Sent from my GT-I9100 using XDA App

can u make a restore script to?

Basically, you just need to switch the content of 'if' and 'of' to restore it (correct me if I'm wrong). But...ONLY restore it if you have REALLY problem with IMEI!

True, but I won't let people mess with their phones this way unless they absolutely need it. So there won't be a restore script until someone loses his efs data.
Sent from my Galaxy Nexus using XDA App

Agreed. Additionally, I made a .tar.gz backup for my efs with this following command:
/system/xbin/busybox tar zcvf /sdcard/efsbackup.tar.gz /efs​The reason I made this backup just in case if .img file cannot be restored.

Might add that too, having a secondary backup is never a bad plan.
Sent from my Galaxy Nexus using XDA App

Uploaded version 1.1. Changelog available in the OP.

Related

Testers Needed!!!

Sorry guys. I was hoping there was a backdoor that I may have missed to get this to work. After working with a couple folks there is no way to make this a user friendly install even with the corrected partition map info. As soon as you guys get unlocked I will revisit this and I will be checking back on a regular basis.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am looking at yet another Universal release. This time it's not a universal MotoBlur ROM but a possible Universal Ubuntop/Webtop+ release but I need testers. It is based on the latest Webtop release for the Photon (WT-1.2.0-180) and is successfully running on the Atrix, Electrify and Photon. We've been running Ubuntop/Webtop+ since September with minimal issues and I have received multiple requests to port. If successful, the advantage of this universal release is that any improvements and enhancements will carry over to all devices. ​
Prerequisites:
Unlocked
CWM Recovery (Bootstrap MAY work)
GB Blur based ROM with Webtop support (for now)
/osh be located at /dev/block/mmcblk0p13 (if osh is not located at mmcblk0p13 PM me with the correct partition location)
/osh be atleast 755.9MB
Not afraid of using terminal
Latest version of 7Zip
Ubuntop.7z - 264.3 MB (MD5- AA02B21D7A8D733621AD48B1425E95C8)
DO NOT POST RESULTS - PM ME YOUR RESULTS - IF THIS WORKS I WILL BE RELEASING TODAY​
Installing:
Make a full backup including webtop (this is key so you can revert any changes)
Extract the UbunTop.7z file (this requires you have the latest version of 7zip installed)
Copy the Ubuntop folder to internal storage (again this is a must)
From CWM recovery, flash the Univ_Ubuntop_v1.0.0.zip
Reboot and launch webtop
Follow the instructions in the "READ ME!!!" file in the Ubuntop folder
(Right now I'm looking for install success and menupatch success. If you want to install applications and report on that as well that's great.)
Haven't slept in over 24hrs and just realized I need to use Aroma Installer. Gonna get some sleep, fix and reup Universal Ubuntop. For those that know what they are doing, edit the scripts to point ot the proper partition to play with it.

Testers Needed!!!

Sorry guys. I was hoping there was a backdoor that I may have missed to get this to work. After working with a couple folks there is no way to make this a user friendly install even with the corrected partition map info. As soon as you guys get unlocked I will revisit this and I will be checking back on a regular basis.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am looking at yet another Universal release. This time it's not a universal MotoBlur ROM but a possible Universal Ubuntop/Webtop+ release but I need testers. It is based on the latest Webtop release for the Photon (WT-1.2.0-180) and is successfully running on the Atrix, Electrify and Photon. We've been running Ubuntop/Webtop+ since September with minimal issues and I have received multiple requests to port. If successful, the advantage of this universal release is that any improvements and enhancements will carry over to all devices. ​
Prerequisites:
Unlocked
CWM Recovery (Bootstrap MAY work)
GB Blur based ROM with Webtop support (for now)
/osh be located at /dev/block/mmcblk0p13 (if osh is not located at mmcblk0p13 PM me with the correct partition location)
/osh be atleast 755.9MB
Not afraid of using terminal
Latest version of 7Zip
Ubuntop.7z - 264.3 MB (MD5- AA02B21D7A8D733621AD48B1425E95C8)
DO NOT POST RESULTS - PM ME YOUR RESULTS - IF THIS WORKS I WILL BE RELEASING TODAY​
Installing:
Make a full backup including webtop (this is key so you can revert any changes)
Extract the UbunTop.7z file (this requires you have the latest version of 7zip installed)
Copy the Ubuntop folder to internal storage (again this is a must)
From CWM recovery, flash the Univ_Ubuntop_v1.0.0.zip
Reboot and launch webtop
Follow the instructions in the "READ ME!!!" file in the Ubuntop folder
(Right now I'm looking for install success and menupatch success. If you want to install applications and report on that as well that's great.)
Haven't slept in over 24hrs and just realized I need to use Aroma Installer. Gonna get some sleep, fix and reup Universal Ubuntop. For those that know what they are doing, edit the scripts to point ot the proper partition to play with it.

[Q] Can Someone Please Port Clockwork Mod Recovery 6.x for our Device?

Friends,
Clockwork Mod Recovery 6 is out and the sources are at github to grab and as the title suggests can someone port it to our devices, Here's changelog
Now It's The Final build
Here is what Koush said on his G+ Account
New backup format that deduplicates data between backups.
Faster backups.
Fixed restores > 2GB.
Minor UI tweaks (new background, animated Android)
Click to expand...
Click to collapse
Here Koush explains how the new CWM method works that makes the backup files so small in size
New ClockworkMod Backup Format
Don't delete /sdcard/clockworkmod/blobs
I've gotten a few questions about how this works, so I figured I'd make a post on it.
Basically, here's what happens:
The files being backed up are hashed (sha256, not that it matters). Then it checks for a file with the name of the hash in
/sdcard/clockworkmod/blobs
So, if the hash of the file was c5273884b90d490134e7737b29a65405cea0f7bb786ca82c63 37ceb24de6f5ed, it looks for /sdcard/clockworkmod/blobs/c5273884b90d490134e7737b29a65405cea0f7bb786ca82c63 37ceb24de6f5ed
If the hash file is found, it continues on to the next file. Otherwise, it copies the file to the blobs directory with the file name being the hash.
ROMs and user data, for the most part, do not change too much between builds and backups. So, your APKs, system files, etc, are generally only stored once. This saves a ton of space. Especially between incremental backups.
Some of you may be thinking "well, how do I delete a backup?".
First, never delete the blobs directory. This would actually delete all your backups by rendering them unusable.
Simply delete the usual backup directory, and the next time you run a backup, all the unused hash files will be automatically delete (a process known as garbage collection). The recovery will show "Freeing space..." while this is happening.
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The original Post on G+ : http://goo.gl/jGgl5
Post courtesy
I specially request TJ, Napster (if he reads this ), ardX, CK and Aben to look into this as they are the people those who can work on this.
Thanks for reading it.
wait a moment, still learning and testing it
*update: sorry, still have minor bugs, as I's still learning it, maybe tomorrow, as now I'm sleepy
you can test it here,but its not stable enough, so don't use it as daily
and please post bug if you can find
known bugs :
- cant mount usb
- random reboot
As I don't find any official section for the huawei u8650 can I ask if someone could port this recovery for my device here?
ardX said:
wait a moment, still learning and testing it
*update: sorry, still have minor bugs, as I's still learning it, maybe tomorrow, as now I'm sleepy
you can test it here,but its not stable enough, so don't use it as daily
and please post bug if you can find
known bugs :
- cant mount usb
- random reboot
Click to expand...
Click to collapse
Is it for .35 kernel base or .32 or will work on both
Edit: It Crashes during restore of old backups made by CWM 5.x on .35 kernel baseband

Backup EFS

EFS backup under Linux (UBUNTU, MINT)
Requirements:
1 ROOT device
2 Included debugging USB, the parameters of the developer.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
View attachment NEXUS_5_EFS_backup_restore_LINUX.zip
Backup EFS under WINDOWS
Requirements:
1 ROOT device
2 Included debugging USB, the parameters of the developer.
3 Installed driver on the PC
View attachment 2628530 | View attachment 2628531
View attachment NEXUS_5_EFS_Backup_Restore_WIN.zip
Tested on Windows 7 -64 bit
Backups are stored in the folder with the utility.
DependentShake said:
EFS stands for Encrypting File System, which is really important part of networking and communication for Android Smartphones, It also contains your device IMEI data. When installing the Custom ROMs, it is always recommended to backup EFS Data, because these are the places, where you might loose this data and when you lose it, it means you may no longer be able to use your smartphone for communication, ultimately which becomes just a multimedia toy!! Therefore if you’re an advance Android user, then you’ve to learn, How to Backup EFS Folder on your Samsung device.
Today, I will guide you, using the step by step instructions, How to Backup and Restore EFS from any Android Samsung Device using the EFS Professional tool. There are also many other methods and Tools which lets you perform the same task but in this tutorial we’ll be using the EFS Professional, which is developed by a recognized xda developer.
Guidelines and Requirements:-
1. Make sure you’ve already got Root Access on your Samsung Android Phone.
2. This EFS Backup tool is only for Samsung devices, do not try it on another device.
REMOVED REST OF PROCEDURE........ Not for the Nexus 5.
Click to expand...
Click to collapse
Ummmmm.....this is the nexus 5 forum, not a Samsung device.
It even says for Samsung only and not to try on another device.
Maybe delete your post....to avoid confusion. Thanks!!
Step 1: install TWRP.
Step 2: select backup EFS.
Thanks for reading.
Ya you don't even need to backup the efs for this device ...
Unlike my nexus s... (Samsung)
Sent from my Nexus 5 using Tapatalk
Actually you should always backup your EFS even on this phone. I remember in the earlier days people were having issues with TWRP wiping their EFS. Always back it up as soon as you unlock and put custom recovery. Save to PC and cloud storage just in case. Always. :good:
Twr will back it up. Then save it elsewhere
From my mobile telephony device.
Guys if EFS is broken and i have a EFS backup how can restore? If EFS is broken we dont havê access to sdcard ?
Enviado do meu Nexus 7 através de Tapatalk

System App Installation Issue (My Files)

I wasn't thinking straight, and for some reason I tried installing the My Files app from the Galaxy S5 because I find it more better than the one in the Galaxy S6. In order to do this, I backed up the stock Galaxy S6 My Files app (/system/priv-app/SecMyFiles2015/), including the odex files. After that, I deleted those files then put the My Files app from the Galaxy S5 there. Then I rebooted my phone, and expected it to work for some reason. Obviously after I rebooted it, it didn't work. Since it was late at night, I left it at that. The next day after I realized why it wouldn't work, I began to attempt to restore the Galaxy S6 My Files app. I've tried several different methods, and none have worked yet. I researched this issue too, and all of the solutions which have worked for others in the past don't seem to be working for me.
Methods I've attempted so far, which haven't worked:
Copy the My Files app + odex files into "/system/priv-app/SecMyFiles2015/", set correct permissions, and reboot
Copy the My Files app into "/system/priv-app/SecMyFiles2015/", set correct permissions, and reboot
Copy the My Files app into "/system/app", set correct permissions, and reboot
Restore through Titanium Backup, as I backed this app up through this app before getting rid of it (TB just hangs when I initiate the restore process)
Installing the app through android's package installer
I attempted many other methods too, however I can't remember them right now. If I remember them, I'll add it to the list.
If someone could help me out with this issue, that would be great! Thanks in advance guys!
Bump! I would appreciate it if someone could help me out! I also obtained a screenshot of an error from logcat, which occurs when I start the app up.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
seems to be some sort of sammy protecting system integrity!
since 5.0 for example the restore of system apps with titanium seems to be impossible, it won't work...

Categories

Resources