[TOOL][EFS][LINUX][ROOT]Simple efs backup S2 Plus - Samsung Galaxy S II Plus

Hello XDA,
because I saw more and more development for our device ( :good: ), I created a simple script for backing up the efs partition.
It is only tested using a GT-I9105P using Cyanogenmod 10.2
Instructions
1. Download the .zip file
2. Extract it
3. Open terminal and "cd" to the directory, where you extracted it.
4. type
Code:
./efs_backup.sh
if you got "rm failed for /sdcard/efs_tmp.img, No such file or directory", just ignore it
5. You can now find a file named "efs_backup_cwm.zip", you can flash it with cwm to restore your efs-partition
Why should I do that?
That's a simple question: Every Rom you flash and every root-app you use could have a simple bug and override/delete your efs-partition
What is the efs-partition?
It's a partition, wich is needed for any device-specific number like IMEI, Wlan-MAC-adress and so on. If it gets deleted/damaged, your mobile
will nothing more than a Mp3-player, unless you can flash back your old efs-partition.
Can you release it for Windows?
No, because I think every android-user should have linux installed on their pc and it doesn't cost anything. I have a dual-boot, too. If you want it on Windows, feel free to port it, it
won't be hard. If you want to install linux, I suggest you a debian-based distribution, because there will be the best support for android.
I WILL NOT ANSWER TO STUPID QUESTIONS!
I AM NOT RESPONSIBLE FOR ANY DAMAGE ON YOUR DEVICE!

where can i find efs_backup_cwm.zip??

jetwoot said:
where can i find efs_backup_cwm.zip??
Click to expand...
Click to collapse
In the directory where the script is.
Sent from my GT-I9105P using XDA Premium 4 mobile app

Sorry I made a mistake and it couldn't work. I uploaded a fixed version with some other improvements.

Awesome tool man.. :thumbup:
Sent from my Android using xda premium

Related

Installing APK's

Hey there, I just recently downloaded perception custom rom and all of the APK's were taken out to keep the initial download and install of perception small, and now I have no idea how to install them onto my phone to use. Can someone instruct me on how to do so? Thank you
Sent from my GT-I9000 using XDA App
I used Sideload Wonder Machine to install APK files onto my non-rooted stock phone. Not sure if that would work for you or not, but it's available at: http://www.androidcentral.com/sideload-android-apps-all-you-want-sideload-wonder-machine
Yea you could use side load wonder machine. Also, you could just root and enable off market installations.
or u can use the new app that can install multiple apk at a time
Sent from my SAMSUNG-SGH-I897 using XDA App
If u already have the apk stored on ur sd from a separate theme for the same rom, could you extract the apk u want and move it to a different theme?
Sent from my SAMSUNG-SGH-I897 using XDA App
from command line
Code:
adb install name_of.apk
is what I use, there is no need for root.
If you are on windows you can put loads of these commands into a batch file and automate your re-installation.(You'll have to look that up yourself) If you are on linux you use a shell script or do like I have and make it a script for your file manager (Nautilus) so you just right click a group of .apk files and select install...
Sideload wonder machine works wonders.
Perception is an I9000 rom you don't need to do anything special to enable non market installation. Find the file on your SD card and just click on it to install.

[Q] Need tool to access phone using PC, cant access phone

I have accidentally installed a theme that is probably of higher resolution than my phone screen. Now in locked mode the unlocking option/pattern/graphics is not visible as it is 'spilling out of screen'.Only a part of large lockscreen wallpaper is occupying my entire screen. Android debugging is on in my device (thankfully). Please suggest me a tool/method using which i can control the phone using PC(or atleast unlock the phone). I (obviously) cannot install anything on my phone, i found some such apps that need installation on phone.
Last option is to flash my phone in recovery with a ROM, but i dont want to do that if other ways possible. my phone is on MIUI ROM developed on 26/9/12
You can wipe your /data in recovery if you don't mind
Or you can manually delete the theme using adb(the apk will be in /data/app).
PS: make a nandroid backup first in case anything goes wrong...
Edit: if you don't know the Apk name, navigate to /data/app and type find(Idk if it will work on windows, cause I tested it in android )
Sent from my LG-P500 using xda premium
how to i enter in my phone's system dir using command line??
what commands to enter?
thankfully i am able to atleast see files and folders in my phone's system using http://code.google.com/p/androidscreencast/
Why would you enter in your system dir.
Btw now that you have access to your phone, download rootexplorer or es file explorer and you'll have access to /data, /system and more
Sent from my LG-P500 using xda premium
but my friend i am not able to access my device,meaning i am not able to unlock it, how do i install it (even if installation possible how to open that app without accessing phone)
i dont know if i am expressing my case properly, i am a noob you see.
Jigar Gada said:
how to i enter in my phone's system dir using command line??
what commands to enter?
thankfully i am able to atleast see files and folders in my phone's system using http://code.google.com/p/androidscreencast/
Click to expand...
Click to collapse
FIRST YOU STOP SPAMMING EVERYWHERE
What is the problem when you can see all system files and folder. Go to data /app.. and delete it. Or if you have moved the theme apk to sdcard.. just browse your sdcard using an adapter and delete that appname.apk from ".android_secure" folder.
Use these (if you havent moved the app to sdcard)
adb shell
login as.. su
cd data/app
ls
rm appname.apk
reboot
problem solved
Sorry 'senior member' , i did not mean to spam but if u can understand my desperation. btw problem solved- a noobie like me suggested to call from a different phone and while on the call change the theme....
i myself tried a lot fiddling with command line but wasnt able to figure out.
Peace \/
Jigar Gada said:
how to i enter in my phone's system dir using command line??
what commands to enter?
thankfully i am able to atleast see files and folders in my phone's system using http://code.google.com/p/androidscreencast/
Click to expand...
Click to collapse
FPChaim said:
Why would you enter in your system dir.
Btw now that you have access to your phone, download rootexplorer or es file explorer and you'll have access to /data, /system and more
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Sorry I was sleeppy when I replied that...
Sent from my LG-P500 using xda premium

[02/10/13][TOOL][NANDROID] md5 mismatch FIXER

if there is a thread that the same with this then inform me and i will personally lock this one
kindly move this thread if it was in the wrong section. :laugh:
okay, i wrote this simple script to easily fix and regenerate the md5sum of our Nandroid backup to avoid mismatching when restoring it.
Please don't blame me if anything happens on your phone by doing this.
Requirements:
- Terminal Emulator
- Brain.apk
- Experience on flashing
Instruction
- flash the Nandroid_md5_fixer.zip thru cwm or stock recovery
- go to terminal emulator and type "md5fix"
- select your damaged backup and wait until it finish!
02/10/13 UPDATE!
http://qfs.mobi/f397801
- fix bootloop problem
- compatible with console provided by Aroma File Manager
NOTE: avoid using 'space' when renaming backup's folder. It must be in one word.
i hope this will help you
goodluck
Good Work!
is the link broken?
i open the link,it shows '410 - Gone'
Sent by Schoolar Boy who wanna help and being a devs
Droid_beginner_student said:
is the link broken?
i open the link,it shows '410 - Gone'
Sent by Schoolar Boy who wanna help and being a devs
Click to expand...
Click to collapse
ooh so sorry., wait i'll fix it..
EDIT: link fixed
Sent from my Android System using Busybox Commands.
Wow good will try this, in the same time I always got error message while backup sd-ext n there's no nandroid.md5 file in the folder :thumbup:
Sent from my GT-S5360 using xda premium
Access to the web page was blocked by ESET Smart Security. The web page is on the list of websites with potentially dangerous content.
lol.. can you upload using another way?
rio. said:
ooh so sorry., wait i'll fix it..
EDIT: link fixed
Sent from my Android System using Busybox Commands.
Click to expand...
Click to collapse
thank you
will try in my corrupt nand..
pressed
Sent by Schoolar Boy who wanna help and being a devs
Why avoid using space???
Does using \ not work in terminal emu???
Ex. Name\ of\ Backup\ Rom
Sent from my GT-S5360 using xda premium
thirdzcee said:
Why avoid using space???
Does using \ not work in terminal emu???
Ex. Name\ of\ Backup\ Rom
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
ClockWorkMod can't read folder's name with space (two words)
it's not on my script.
my script can only fix a corrupted md5sum on every piece of nandroid backup but can not rename folders
Sent from my Android System using Busybox Commands.
unsupported
rio. said:
i wrote this simple script to easily fix and regenerate the md5sum of our Nandroid backup to avoid mismatching when restoring it.
Instruction
- flash the Nandroid_md5_fixer.zip thru cwm or stock recovery
- go to terminal emulator and type "md5fix"
- select your damaged backup and wait until it finish!
NOTE: avoid using 'space' when renaming backup's folder. It must be in one word.
Click to expand...
Click to collapse
the zip file has an unsupported compression method . I cannot unzip it on my PC.
mai77 said:
the zip file has an unsupported compression method . I cannot unzip it on my PC.
Click to expand...
Click to collapse
i zipped it using busybox i didn't use PC in working with it..
edit: try to unzip it using 7zip
Sent from my Android System using Busybox Commands.
Good Tool...... Very Nice Work...
..::[email protected]::.. said:
Good Tool...... Very Nice Work...
Click to expand...
Click to collapse
thanks bro!
Sent from my Android System using Busybox Commands.
md5 recalc tool
rio. said:
i zipped it using busybox i didn't use PC in working with it..
edit: try to unzip it using 7zip
Sent from my Android System using Busybox Commands.
Click to expand...
Click to collapse
7zip no luck but winrar works.
So the script recalculates the md5 sums. this assumes, that when you switch between various builds of "CWM recovery shell" the md5 calculation somehow calculates kinda "wrong" md5 sums.
a very useful tool. :good::good:
I flashed the zip then used terminal emulator. Typed "md5fix" and responded, "sh: md5fix: command not found"
ajdevera said:
I flashed the zip then used terminal emulator. Typed "md5fix" and responded, "sh: md5fix: command not found"
Click to expand...
Click to collapse
flash it thru CWM
Sent from my Android System using Busybox Commands.
is this working on all rom backup? coz i have a backup of jellyblast v3, jellyblast v3 with stock kernel and stock backup..after apply this can i restore the backup? coz i dont want to always flash the rom from the beginning...
how to use the script ? any example ?
encik_racun said:
is this working on all rom backup? coz i have a backup of jellyblast v3, jellyblast v3 with stock kernel and stock backup..after apply this can i restore the backup? coz i dont want to always flash the rom from the beginning...
Click to expand...
Click to collapse
yes!
mai77 said:
how to use the script ? any example ?
Click to expand...
Click to collapse
after flashing just call it from terminal emulator.. the command is "md5fix"
rio. said:
yes!
after flashing just call it from terminal emulator.. the command is "md5fix"
Click to expand...
Click to collapse
recommend which CWM is working to restore?

[TOOL] RomGen

Tool for making a flashable zip directly by dumping rom from your phone, enjoy!
Disclaimer:
Since many noobs use this tool with poor linux knownlegde... I am not responsible for any damage produced by this tool! You, noobs and all non experienced users must use this tool on own risk, I am not responsible for anything!
Code:
cd /data/local/tmp
chmod 755 romgen
./romgen -h
--------------------------------------------------------
.::::.. ROMGEN by Munjeni @ XDA 2013 ..::::.
** Tool for making a flashable zip. Enjoy! :) **
**--------------------------------------------------**
------ USAGE -----
Simple command:
./romgen device device2 system data cache boot out_zip
1. device mean: name of the device in updater-script
2. device2 mean: another name of the device in updater-script
3. system mean: block device for the system partition updater-script,
for example: /dev/block/mmcblk0p10
4. data mean: block device for the data partition updater-script,
for example: /dev/block/mmcblk0p11
5. cache mean: block device for the cache partition updater-script,
for example: /dev/block/mmcblk0p12
6. boot mean: block device for the boot partition updater-script,
for example: /dev/block/mmcblk0p9
7. out_zip mean: where to write final zip file
for example: /sdcard/rom.zip
/data/local/tmp #
gr8 idea
gonna try it
can it be used as backup / restore without cwm ?
removed
New version. Improved logic and checks, added function for boot.img dump + updater-script generator. Now remain thing for storing META-INFO folder. Will post beta version soon, hope in next post.
Sorry, not have free time to finish this but soon I will give you full working version!
Promising at least for me. Thanks will wait for a fully version
Great work! Just tried this on a K2_CL (Boost Mobile CDMA) device. Placed it in my system/bin. Ran it, and it works good. Only issue I have seen so far is the location it writes the ROM.zip to. Goes directly to data/local/tmp. Not good at all. In the midst of it running it abruptly stopped due to lack of space available. If could be taken to int or ext sdcard then would be flawless in that regard. In midst of it stopping abruptly the .zip file became corrupted so even if I were to want to make manual changes I still could not access the contents. Anyways, GREAT WORK!
Heads up.... In the updater-script you have the format () set for 4 arguements, but just so you are aware it will not work. The update-binary you are using only allows for three arguements so it will ultimately fail. You will need to use one that allows for 4 arguements.
Modding.MyMind said:
Great work! Just tried this on a K2_CL (Boost Mobile CDMA) device. Placed it in my system/bin. Ran it, and it works good. Only issue I have seen so far is the location it writes the ROM.zip to. Goes directly to data/local/tmp. Not good at all. In the midst of it running it abruptly stopped due to lack of space available. If could be taken to int or ext sdcard then would be flawless in that regard. In midst of it stopping abruptly the .zip file became corrupted so even if I were to want to make manual changes I still could not access the contents. Anyways, GREAT WORK!
Click to expand...
Click to collapse
I can easilly add another command line argument (zip path), and for sure I will improve whole tool! Need help now since not understand how to generate certs and metadata to META-INF folder. Want to implement openssl libs into by tool which will be used for generating these things and finaly for signing whole zip. But some one need to help me because I need an step by step tutorial for generating meta-inf things with openssl (since I not understand how it is generated)!
I wouldn't worry too much about the meta-inf folder and what not. Anyone can go in the zip and add that themselves. I usually always do that manually anyways, because I always handle the updater-script manually or at minimum I will make some modifications. However, it would definitely be good to redirect the zip file to either the internal or external sdcard simply for space reasons. I tried to edit the file myself to make some adjustments but couldnt figure out how to restore it without having to use a hex editor. A hex editor I can accomplish some changes but it will cause for more work in my opinion then what it would be if I actually could view the file in its originality, but not sure how to do that on a windows computer. Also, you have the command built only to work if all four listed partitions are being included. I tried to run it by only going for one or two of the listed partitions but wouldn't work unless I used all four. Any way you can make it an option? I would prefer to just pull the boot.img and system.img instead of all four that you list. The option to choose only one, or two, or three, or all four would be awesome. Especially since I would like to make some roms and pulling only the system and boot would speed this up vice having to wait for all of it to be pulled which can take a while to do lol.
Sent from my C525c using XDA Premium 4 mobile app
---------- Post added at 12:44 PM ---------- Previous post was at 12:35 PM ----------
I have no problem testing your tool . What you are trying to accomplish will eliminate in a sense the need for a pc. I am all for those who find ways to implement such work on a device without needing to use a pc. Most of my work is done on my device and I hardly ever use my computer so something like this is a must have for me lol. If you need me to run some tests, let me know. Shoot me a PM .
Sent from my C525c using XDA Premium 4 mobile app
---------- Post added at 12:49 PM ---------- Previous post was at 12:44 PM ----------
Oh, forgot to mention... When I ran your tool again after making some room on my phone the zip file can't be open on the device when wanting to make some changes. It comes up with an error regarding a duplication which aborts opening to view the contents in the zip. The only way I could view it was by placing it on my pc. Afterwards, I flashed it and my phone failed to boot... I think because of this duplication... Need to run more tests. Can't remember the exact error off the top of my head. I will let you know soon.
Sent from my C525c using XDA Premium 4 mobile app
Alright, I took a screenshot of the error while trying to view the contents in the zip. See attachment below.
Sent from my C525c using XDA Premium 4 mobile app
Not sure why I get that error? I have another Rom using a kitchen and that same file is there as well but it doesn't give me the duplication error... Maybe something to do with the compression level? Not sure honestly.
Sent from my C525c using XDA Premium 4 mobile app
Modding.MyMind said:
Not sure why I get that error? I have another Rom using a kitchen and that same file is there as well but it doesn't give me the duplication error... Maybe something to do with the compression level? Not sure honestly.
Sent from my C525c using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Compresion level is 9 ! You can compare context of these errored folder in my zip and your working zip, to make sure if its realy duplicated! If you found what cause these problem please let me know!
About 4 arguments to romgen: I not going to change these arguments because every android device model have diferent blok device number so user must to define them (I thinked to automate them but that have no priority by now, maybe later)!
munjeni said:
Compresion level is 9 ! You can compare context of these errored folder in my zip and your working zip, to make sure if its realy duplicated! If you found what cause these problem please let me know!
About 4 arguments to romgen: I not going to change these arguments because every android device model have diferent blok device number so user must to define them (I thinked to automate them but that have no priority by now, maybe later)!
Click to expand...
Click to collapse
I agree, I basically just removed the format () line in the updater-script all together because I format my device using the custom recovery anyways so I find no need to format it again lol. Personal preference. But yea, those who get errors regarding the arguements will just need to use an update-binary that accepts such arguments or else remove the line altogether. I will update you if I find out what is causing the duplication error. As I said before, I have two roms currently on my device and both have the exact same information in them. One rom I created based on your tool and the other I used a kitchen, but only your rom based on your tool gives me that error while the other rom opens up just fine. I will look in to it.
New version is out, just added 5.th parameter for zip out and added meta-inf update-binary and some otacerts.. bla, but need to make real metadata and otacerts and to sign final zip... need help (tutorial) for them since not understand how it is generated with openssl.
I need a tutorial on how to make these files to work on android period. Lol, I usually have to edit these things with a hex editor but downloading now
Sent from my C525c using XDA Premium 4 mobile app
Looking great my friend
I not tried on not-rooted devices but if some one have a free time for trying them... please let me know if tool can make ota on not-rooted devices!
@munjeni
Is this project open source? If not, then that is ok; I just wanted to ask.
Sent from my K2_CL using Tapatalk
No, all things which have no licence is private projects and I not going to open them public. Is latest version ok now?

Rom Builder

Rom Builder​ Hi guys this is me a small utility for creating flashable zip custom firmware for recovery I think will help many​how to use​unzip the contents of a folder on your computer
connect your phone via usb and enable USB debug
run the program and press enter
Click OK on your phone
We are waiting for the completion
So almost all ready, we go on a memory card and look for the folder "ROM" and see there copy 4 files to your computer
almost finished
Now we take update.zip to move all the files
That's just what we've created custom firmware for recovery
Download RomBuilder​
Automaticaly Version​
thanks Symbuzzer ​
XDA:DevDB Information
[dev tools] Rom Builder, Tool/Utility for the Nokia X2
Contributors
y-bee4pda
Version Information
Status: Beta
Created 2015-08-01
Last Updated 2015-08-01
Thanks, will try on Monday.
I have 2 questions:
-Which partitions are created?
-Can we modify updater-binary vs without resigning?
Thanks again.
Sent from my NokiaX2DS using XDA Free mobile app
yes
symbuzzer said:
Thanks, will try on Monday.
I have 2 questions:
-Which partitions are created?
-Can we modify updater-binary vs without resigning?
Thanks again.
Sent from my NokiaX2DS using XDA Free mobile app
Click to expand...
Click to collapse
-partitions
recovery.img
boot.img
system.img
custom.img
You can easily modify the file update script in Notepad ++ and update binary can take on any of the other newer firmware example of CM
nice ,the recovery build also
@ybee4pda
I enhanced your code a bit and make it fully automatic. How can I send you new codes?
Sent from my NokiaX2DS using XDA Free mobile app
thanks
symbuzzer said:
@ybee4pda
I enhanced your code a bit and make it fully automatic. How can I send you new codes?
Sent from my NokiaX2DS using XDA Free mobile app
Click to expand...
Click to collapse
Thank you, you can submit it here
y-bee4pda said:
Thank you, you can submit it here
Click to expand...
Click to collapse
Thanks
It can:
-back up boot, system and custom partitions as img file to sdcard (recovery partition not supported for now)
-move these 3 img files from sdcard to PC
-make flashable zip (update.zip)
-clean img files from sdcard and PC
Note: When you start build_Rom.bat again, it deletes update zip. So you should backup your update.zip for every process.
All credits to go this topics creator. I only modified a bit to automate process.
I have flash the update.zip with 2 partitrions inside and i get NokiaVariantManager has stopped message when boot up the phone...how can i fix it
kaotd99 said:
I have flash the update.zip with 2 partitrions inside and i get NokiaVariantManager has stopped message when boot up the phone...how can i fix it
Click to expand...
Click to collapse
it wipes 3 partitions. so you probably lost your custom partition. try to reflash it.
@y-bee4pda , thanks for your work. One thing, why the rom zip size is always 600mb+ ?
Nokia variant manager has stopped
symbuzzer said:
it wipes 3 partitions. so you probably lost your custom partition. try to reflash it.
Click to expand...
Click to collapse
Hi.I installed one Rom and I get this problem when I want restore my back up. I try any thing but I can't find any things for this.cm roms work correct ly but I want restored my stock Rom .please help.....:crying:

Categories

Resources