[TOOL][LINUX] mmcblk0 Extractor (v1.0.1 - 3/16/16) - Android

Disclaimer: I am not responsible for anything bad that may occur from the use of this tool, but I will take all the credit you can give me if it works for you
{
"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"
}
This tool in intended to extract the full disk image from your Android device (mmcblk0). Once extracted, it allows you to open the image in testdisk to extract individual partitions.
Source
Commits/Changes
XDA:DevDB Information
mmcblk0 Extractor, Tool/Utility for the Chef Central
Contributors
SuperR.
Version Information
Status: Stable
Created 2016-02-02
Last Updated 2016-03-16

Usage:
In your terminal, type the following where "/home/user/extractor/" is the directory where the tool lives:
Code:
cd /home/user/extractor/
./extract
NOTE: the above code is 2 separate commands and requires ENTER to be pressed after each command
OR
Double-click the extract file and choose "Run in Terminal" if your OS supports it.

reserved2

Awesome.
Testing it

I'm not sure mmcblk0 is a full disk image. And once you have it, what do you do with it?

jayvl said:
I'm not sure mmcblk0 is a full disk image. And once you have it, what do you do with it?
Click to expand...
Click to collapse
I am sure. And the OP says what you can do with it.

SuperR. said:
I am sure. And the OP says what you can do with it.
Click to expand...
Click to collapse
What about hidden sectors? the partition table? i.e. stuff that is not inside the supervolume but still occupies NAND memory? For example using MTK droid tools, or just browsing an OEM firmware folder, I can see more data than that listed in the mmcnlk0 partitions.

jayvl said:
What about hidden sectors? the partition table? i.e. stuff that is not inside the supervolume but still occupies NAND memory? For example using MTK droid tools, or just browsing an OEM firmware folder, I can see more data than that listed in the mmcnlk0 partitions.
Click to expand...
Click to collapse
This tool does exactly what it says. Nothing more, nothing less. If it is useful for you feel free to use it. If not I won't have hurt feelings

My point is that mmcblk0 is not the same as a "full disk image" because it does not include every sector on the NAND. So it does not do exactly what it says.

jayvl said:
My point is that mmcblk0 is not the same as a "full disk image" because it does not include every sector on the NAND. So it does not do exactly what it says.
Click to expand...
Click to collapse
Ok, you win

So this will work exactly how?
It dd the partition to internal storage? Then pulls the file from storage. Little confused. If so you might want to add that you'll need a x.xxGB space
The tool looks interesting though

LastStandingDroid said:
So this will work exactly how?
It dd the partition to internal storage? Then pulls the file from storage.
Click to expand...
Click to collapse
Correct. The point was to get aboot, boot, modems, system, recovery ect.. All in one pull.
Sent from my N9515 using Tapatalk

LastStandingDroid said:
So this will work exactly how?
It dd the partition to internal storage? Then pulls the file from storage. Little confused. If so you might want to add that you'll need a x.xxGB space
The tool looks interesting though
Click to expand...
Click to collapse
In addition to what @bcrichster said, if you choose the custom recovery booted option it does not pull to sdcard first. It adb pulls directly from device to pc. If you choose the Android booted option, it uses dd to sdcard, then adb pull to pc.
edit: Just pushed an update adding info about space requirements to the Android booted option

Thank you @SuperR. your contribution is appreciated as always man

Extra help pls.
I downloaded your zip, and on unzipping, found 2 files and 3 directories.
06/03/2016 01:17 PM <DIR> .
06/03/2016 01:17 PM <DIR> ..
03/16/2016 03:51 PM 5,239 extract
03/16/2016 03:52 PM 496 README.md
06/03/2016 01:17 PM <DIR> tools
2 File(s) 5,735 bytes
3 Dir(s) 115,831,672,832 bytes free
I cannot execute the ./extract command that you instructed. I am running Window7. Please give me a pointer, thanks.

forever_naive said:
I downloaded your zip, and on unzipping, found 2 files and 3 directories.
06/03/2016 01:17 PM <DIR> .
06/03/2016 01:17 PM <DIR> ..
03/16/2016 03:51 PM 5,239 extract
03/16/2016 03:52 PM 496 README.md
06/03/2016 01:17 PM <DIR> tools
2 File(s) 5,735 bytes
3 Dir(s) 115,831,672,832 bytes free
I cannot execute the ./extract command that you instructed. I am running Window7. Please give me a pointer, thanks.
Click to expand...
Click to collapse
I think you missed the [LINUX] in the thread title.....

forever_naive said:
I downloaded your zip, and on unzipping, found 2 files and 3 directories.
06/03/2016 01:17 PM <DIR> .
06/03/2016 01:17 PM <DIR> ..
03/16/2016 03:51 PM 5,239 extract
03/16/2016 03:52 PM 496 README.md
06/03/2016 01:17 PM <DIR> tools
2 File(s) 5,735 bytes
3 Dir(s) 115,831,672,832 bytes free
I cannot execute the ./extract command that you instructed. I am running Window7. Please give me a pointer, thanks.
Click to expand...
Click to collapse
In Windows a .exe extension stands for executable (code is hard coded into the binary). That's why you can just double click on windows os and a .exe will self execute (also why you get tons of viruses if you don't know what your doing ).
In Linux os when you put a ./ in front of shell script or binary and depending if it already has the correct permissions coded in or it's intended for the end user to do this you chmod a+x (0755-77) and that's basically the equivalent of being on windows and double clicking a .exe

@SuperR.
Wait a second...
This is in your sources:
Code:
$adb shell su -C "dd if=/dev/block/mmcblk0 of=/sdcard/mmcblk0.img bs=64k"
Think about this for a second. If you have a 32GB device, and /sdcard is on the INTERNAL STORAGE, than how do you put a 32GB file on a 32GB device that's not empty? You're going to run out of storage, right? Am I just crazy or what?

Lightn1ng said:
@SuperR.
Wait a second...
This is in your sources:
Code:
$adb shell su -C "dd if=/dev/block/mmcblk0 of=/sdcard/mmcblk0.img bs=64k"
Think about this for a second. If you have a 32GB device, and /sdcard is on the INTERNAL STORAGE, than how do you put a 32GB file on a 32GB device that's not empty? You're going to run out of storage, right? Am I just crazy or what?
Click to expand...
Click to collapse
There is a warning to be sure you have enough space. Alternatively you can use the custom recovery option and transfer the data directly to your pc bypassing the space requirements on your device.

SuperR. said:
There is a warning to be sure you have enough space. Alternatively you can use the custom recovery option and transfer the data directly to your pc bypassing the space requirements on your device.
Click to expand...
Click to collapse
Is mmcblk0 the same size as the device storage? (e.g. a 16gb phone would have a 16gb mmcblk0.img)?

Related

[MOD] Run Ubuntu 10.10 on your SGS2

http://forum.xda-developers.com/showthread.php?t=1223128
^Original thread in the I9100 forum by: Jdouce^
Should work on SGH-i777 as well... Just thought I'd share.
(edit) TESTED -and this does in fact work. You can even access the Linux UI via any VNC viewer as long as you're on the same network as your phone or tethered. I have added to the tutorial below to specify. You can also access your Android file system and access everything via this image. I leave you to drool.
***(edit 2) If you can't figure it out, I have found Ubuntu installers available on the Market, but they require you to use your internal storage space. This version can be installed on either internal OR external memory. The performance and UI of this version is better too. The versions available via app are not optimized as well as this one. =) - Just know that there is a foolproof way to accomplish this if you can't read directions... Just search "ubuntu" in the Market.
-----Original Post (with clarifications and additions by Monsieurtalbot)-----
DO NOT UPDATE UBUNTU TO 11.04/11.10 IT'S HORRIBLY SLOW AND BREAKS THE .IMG! -
YOU CAN HOWEVER INSTALL ANY OTHER UPDATES AND APPS JUST FINE.
1. Download the Ubuntu files (2 part .rar)
File sizes should be;
Part1 = 900 MB
Part2 = 572 MB
Part1 Download
Part2 Download
2. Open Part1 and unrar the folder and copy to your internal sdcard (/sdcard) OR external SD card (/sdcard/external_sd) - this unrar's both parts.
**there should be 2 files - "ubuntu.img" & "ubuntu.sh" - these go into an "ubuntu" folder in one of these locations.
3. Open the Market (now Play Store) - download and install terminal emulator and Android VNC viewer - Both free.
4. Open Terminal emulator. Depending on where you copied the files mentioned in step 1/2, enter ONE of the following sets of commands.
**Remember. Commands and directories are case sensitive, so make sure everything (including the file names and folder title) is lowercase to make it work.
(if you copied to the INTERNAL sdcard)
Code:
cd /sdcard/ubuntu
su
sh ubuntu.sh
(if you copied to the EXTERNAL sdcard)
Code:
cd /sdcard/external_sd/ubuntu
su
sh ubuntu.sh
press home - and DO NOT CLOSE the terminal. You need to keep this shell open.
(you can also get an app called "Script Manager" from the Play Store to make re-entering these commands simple later.)
5. Open the Android VNC viewer and connect using the following settings.
Code:
address: localhost
port: 5900
password: ubuntu
set color to 24 bit
You can also use a VNC viewer on a PC or tablet to access the Linux UI, and use the keyboard and mouse using your favorite VNC viewer (I was using TightVNC on Windows) with the following settings while both devices are connected to the same WIFI (or tethered to the phone)
Code:
address: (your phone's local IP address here)
port: 5900
password: ubuntu
set color to 24 bit
VOILA - You now have Ubuntu 10.10 running on your device.
6. WHEN FINISHED- Shut down Ubuntu in the UI, disconnect VNC, then in the Terminal Shell type: "exit" without quotes and press <enter> to clean up the Linux image mount for next boot. Failure to do this may result in a corrupt install. Once you see a "#" with no commands, it is safe to close the terminal window.
_______________________________________________________
Whats Working?
USB Host - Using adapter cable available online to attach keyboard, mouse, or Flash drives.
WiFi
3G
Browsers- any of them... I suggest Chromium over Firefox, but they both do the trick.
Installing Applications
Updating (NOT UPGRADING to 11.04/.10)
Its pretty much working, let the OP (linked above) know if you have issues.
***HELP! UBUNTU WORKED BEFORE, BUT NOW IT WON'T BOOT-
The image creates a new folder to mount the Linux files at "data/local/mnt"... Connecting USB to a PC, unmounting the storage device the image is stored to, a forced shut down, or unexpected occurance in the shut down procedure CAN cause this. It's due to "stuck" files in that directory. -Attempt to clear the contents of this folder - followed by a reboot if you have any issues. You can do this using root explorer, or with the following terminal commands.
Code:
su
rm r /data/local/mnt
GOOD LUCK!
{
"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"
}
-----END OF ORIGINAL POST-----
Downloading now. I would love a great workiing version of this os on my sgs2
May I ask what kernel you use? I get a "VNC connection failed" when trying to connect, on Siyah 2.6.12.
Fallen Advocate said:
May I ask what kernel you use? I get a "VNC connection failed" when trying to connect, on Siyah 2.6.12.
Click to expand...
Click to collapse
Entropy's Daily... Latest always... Although it shouldn't matter.
How do you clear the memory?
Interesting tweak, thanks for sharing.
Very interesting will definitely try this out. Has anyone got.it running yet?
Sent from my SAMSUNG-SGH-I777
What does an OS do on android? Does it make it like a PC? Hows it look/interact on the screen?
Sent from my SAMSUNG-SGH-I777 using XDA App
IVIadness said:
How do you clear the memory?
Click to expand...
Click to collapse
By shutting down, disconnecting VNC, and closing the terminal window.
Edgarhighman said:
What does an OS do on android? Does it make it like a PC? Hows it look/interact on the screen?
Sent from my SAMSUNG-SGH-I777 using XDA App
Click to expand...
Click to collapse
It is a FULL version of Ubuntu 10.10.
Google, FOOL! ;-)
Nizda1 said:
Very interesting will definitely try this out. Has anyone got.it running yet?
Sent from my SAMSUNG-SGH-I777
Click to expand...
Click to collapse
If you can copy 2 files to an ubuntu folder on the root of your SD, install 2 apps in the market, and type in 3 commands, you can get this running.
Simple, eh?
What happens if I want to go back to android os?
EDIT: Sorry, I skipped the part that said that it was an emulator.
EDIT 2: I didn't know anything about Android back then...
Having problems running this past terminal. What Kernels can be used with this? NEAK? Siyah? I get this in terminal.
a/local/bin: $PATH
[email protected]:/ $
What am I doing wrong?
---------- Post added at 10:03 PM ---------- Previous post was at 09:57 PM ----------
I'm on ICS 4.0.3 XWLPD (Shostock)
lolol i'm gonna build cm10 with this on my GS2. I'll see you guys in a few weeks.
The download links aren't working :/
I know this is an older post but can we get the links working again?
Sent From My SGH-S959G Using Tapatalk 2

Team Infernal FakeCid AUTOMATIC bootloader unlock

First of all i want to thank captainrewind without his help and his device this wouldnt be possible, i didnt even own the device myself im just planning to buy it and with him offering himself to test everything, well we combined knowledges and made it all you need to do is simple:
Anyone wanting to know how this Started read http://forum.xda-developers.com/showthread.php?t=1984936
mdmower experienced issues with ril(calls and else) and contacts not syncing so i worked with him and we discovered supercid is responsable for this so the only thing you got to do is reverse cid(thats option number 3 on script) and you are ready to go, no need to relock bootloader!!, they are 2 versions of script one with recovery one without its your choice, the recovery one is pretty big 8mb and without only a few kbytes, screenshots below
the one with recovery
{
"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 one without recovery
mdmower said
mdmower said:
I have another script update. The temproot method is no longer used to change the cid after you're unlocked. Those procedures now assume you have superuser installed (root) and are much faster and more reliable.
My package still does not include a recovery image to reduce the size of the download, but I have included a menu option to install recovery - you simply need to download either CWM or TWRP and put recovery.img in the same directory as the script.
Special Note: If you run the script multiple times, be sure to remove mmcblk0p4 and mmcblk0p4.backup from the directory each time. I purposely leave these in case you want to make a backup. mmcblk0p4 corresponds to SuperCID and mmcblk0p4.backup corresponds to VZW__001.
Click to expand...
Click to collapse
Also please note as mdmower said Special Note: If you run the script multiple times, be sure to remove mmcblk0p4 and mmcblk0p4.backup from the directory each time. I purposely leave these in case you want to make a backup. mmcblk0p4 corresponds to SuperCID and mmcblk0p4.backup corresponds to VZW__001.
The script is attached below, script unlocks bootloader and installs a recovery for you, not root but you can find intructions on next post
THANKS:
Bin4ry for temproot method
Grankin01 for the cid base
mdmower for correcting script
Superdave for discovering temp root(forgot to mention before sorry)
The manual way!!!!
DO AN ADB BACKUP BEFORE STARTING AS THIS WILL RESTORE TO FACTORY DEFAULTS!
EVERYTIME WE SAY TYPE IT MEANS TYPING THE CODE AND PRESSING ENTER
SOME USERS ARE HAVING ISSUES TEMPROOTING. IF SO PLEASE DO FACTORY RESET AND/OR REINSTALL THE RUU BEFORE STARTING. Also, verify you are NOT using a USB 3.0 port by looking at the inside of the port itself on your computer. If it's blue, it's USB 3.0 and you need to use a different port.
Requirements:
•A hex editor
•Android sdk(fastboot and adb at least)
•Recommended 50% battery or more and usb debugging on
•Be updated to the latest ruu with sense 4.1 (version 2.17.605.2)
Quick how-to temproot (written by captainrewind):
Read here for some detail (FOR REFERENCE ONLY, all instructions are below): http://forum.xda-developers.com/showthread.php?t=1886460
Download the file http://ul.to/h44f6vni
So lets start:
First, if you haven't already, download and install the HTC drivers.
On your phone, go to Settings -> Developer options, and enable USB debugging.
Next, go to Settings -> Connect to PC and change Default connection type to Disk drive and disable Ask me.
Plug your phone into the computer, and wait until it pops up asking what you want to do with the newly plugged in phone.
Close the pop ups and go press the Start button and type "cmd". It should pop up with "cmd.exe". Right click on it and click Run as Administrator.
Download this file with the fake backup in it.
Once downloaded, unzip it to C:\Root.
Navigate to the folder in the command Prompt by typing
Code:
cd c:\Root\stuff
Now that you're there, type:
Code:
adb devices
If your phone pops up in the list, you're good to go!
Next, type
Code:
adb restore fakebackup.ab
DO NOT click OK to the restore on the device just yet!
Now type:
Code:
adb shell "while ! ln -s /data/local.prop /data/data/com.android.settings/a/file99; do :; done"
(errors will appear, ignore)
Accept the restore on the device, then type:
Code:
adb reboot
(At this time, you are temprooted, and the phone UI will be in an unusable state, with temproot shell.)
After reboot type:
Code:
adb shell
Verify that the prompt is "#" (meaning root) or "$" (meaning normal user). If it's not "#", please start over.
At this point, you can optionally do this ONLY if you want to revert changes:
Code:
rm /data/local.prop
exit
adb reboot
if everything went right proceed to second part
2nd part(written by me)
Obtaining supercid
type
Code:
dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4
Close cmd and start a new one then type
Code:
adb pull /sdcard/mmcblk0p4
Open the file (mmcblk0p4) with your hex editor.
Look for offset 00000210 and you should see VZW__001 with your imei on the right
Change VZW__001 to 11111111 and save the file as mmcblk0p4MOD
Now go back to your command prompt and type
Code:
adb push mmcblk0p4MOD /sdcard/mmcblk0p4MOD
Type
Code:
adb shell
Type
Code:
dd if=/sdcard/mmcblk0p4MOD of=/dev/block/mmcblk0p4
If suceeded close the window and start a new one and type "adb reboot bootloader" then "fastboot oem readcid" and that should show you 11111111
Now, go to htcdev.com website, sign up, login, and select the "Unlock Bootloader" option from their site and follow the instructions, selecting other supported devices from their dropdown menu.
bugs:
If you experience issues with com.android.phone crashing when placing/receiving calls or your contacts refuse to sync, you may need to change your cid back to its origintal state (VZW__001). This is proceure 3 in the script and will not affect your unlock or data (perform a backup just in case though!).
After that you can install a recovery or root the rom following captainrewind post below
Honorable mention goes to superdave for discovering the temproot method by Bin4ry works after the latest RUU.
This is no joke people and it shows what a lot of support from those who came before us, a little persistence to try a combination of things, and collaboration can accomplish.
I made a new friend today as well. NOW BRING ON THE CUSTOM ROMS!
I've now successfully flashed TWRP and SU binary and Superuser.apk. Here's how:
CM Recovery:
See this thread for details on the CWM Recovery.
TWRP:
THANKS TO ANDYBONES FOR THE UPDATED TWRP LINKS AND INSTRUCTIONS!
TWRP Download:
http://dl.dropbox.com/u/26383143/HTC Incredible 4G/TWRP2.2_recovery.img
TWRP Instructions:
Code:
adb reboot bootloader
Once in the bootloader:
Code:
fastboot flash recovery TWRP2.2_recovery.img
Code:
fastboot reboot
Once TWRP is flashed:
Download the Superuser apk and binaries from here:
http://androidsu.com/superuser/
Then, push them to your EXTERNAL SD:
Code:
adb push "Superuser-3.1.3-arm-signed.zip" /sdcard/ext_sd
Then, reboot into recovery:
Code:
adb reboot recovery
From the TWRP Recovery, use the "Install" feature to select and install the zip.
Reboot
YOU ARE NOW ROOTED!
bad ass guys!! i knew somneone out in xda land could figure it out!!
I flipping love you guys
So why don't we have cm10 yet?
Sent from my ADR6410LVW using Xparent Blue Tapatalk 2
now this is f***ing awesome!!
great job guys!
http://www.youtube.com/watch?v=VLnWf1sQkjY&sns=em
Sent from my Nexus 7 using Tapatalk 2
i think we should wait for yall to finish whatever yall are doing before we (especially me) start asking boot questions about how to use this
---------- Post added at 07:04 PM ---------- Previous post was at 06:42 PM ----------
But seriously what does this mean
, and cd to the stuff/ dir inside the zip
So what do you recommend for a hex editor?
brycekerr said:
So what do you recommend for a hex editor?
Click to expand...
Click to collapse
I use this one,
download.cnet.com/HxD-Hex-Editor/3000-2352_4-10891068.html
check out our ViperROM once rooted!
---------- Post added at 07:15 PM ---------- Previous post was at 07:11 PM ----------
Should def do a shout out to
Bin4ry
in the OP.
without that exploit this wouldn't be possible
Perfect, thanks! And that's why I wanted root lol, I ran that on my Rez
Error:
"while is not recognized as an internal/external command"
Is that the error we are supposed to ignore? and also I need a device encryption password to restore, anybody know what it is?
brycekerr said:
So what do you recommend for a hex editor?
Click to expand...
Click to collapse
UltraEdit is a 30-day trial, download here: http://www.ultraedit.com/.
If you've used it before and are outside the 30-days, go OpenSource and use Frhed: http://frhed.sourceforge.net/en/
---------- Post added at 05:22 PM ---------- Previous post was at 05:19 PM ----------
Linch89 said:
i think we should wait for yall to finish whatever yall are doing before we (especially me) start asking boot questions about how to use this
---------- Post added at 07:04 PM ---------- Previous post was at 06:42 PM ----------
But seriously what does this mean
, and cd to the stuff/ dir inside the zip
Click to expand...
Click to collapse
Jose is updating it... it just means after you unzip it and open terminal to CD to the c:\path\of\unzipped\file\stuff\ dir
---------- Post added at 05:28 PM ---------- Previous post was at 05:22 PM ----------
brycekerr said:
Perfect, thanks! And that's why I wanted root lol, I ran that on my Rez
Error:
"while is not recognized as an internal/external command"
Is that the error we are supposed to ignore? and also I need a device encryption password to restore, anybody know what it is?
Click to expand...
Click to collapse
Whoops, sorry that's my mistake... that needs to be run from adb shell. Hang on, Jose is fixing. Encryption password should be blank.
tried from adb shell, get a looping error
"link failed no such file or directory"
brycekerr said:
tried from adb shell, get a looping error
"link failed no such file or directory"
Click to expand...
Click to collapse
You should get that, just ignore it and click restore the backup on the phone and those messages should go away.
Does this void the warranty through the htcdev unlock? Not a big deal just curious
Sent from my Nexus 7 using Tapatalk 2
Works great , nice work guys!
Upon reboot my phone starts to boot into the OS....I can see its connected to the network and stuff in the notification bar, but all I can see is the wallpaper and the screen is completely unresponsive
This is after adb reboot
jamminjon82 said:
Does this void the warranty through the htcdev unlock? Not a big deal just curious
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Yes
brycekerr said:
Upon reboot my phone starts to boot into the OS....I can see its connected to the network and stuff in the notification bar, but all I can see is the wallpaper and the screen is completely unresponsive
This is after adb reboot
Click to expand...
Click to collapse
That is expected, the OP has been updated with that detail.
Edit: NVM
the file has no MOD on the end...should it just read mmcblk0p4?
brycekerr said:
Edit: NVM
the file has no MOD on the end...should it just read mmcblk0p4?
Click to expand...
Click to collapse
you would need to cd to the directory where the MOD file (the one you altered with the hex editor) lives.

[IMPORTANT] How To Do EFS Backup And Restore For GT-I8552

[IMPORTANT] HOW TO DO EFS BACKUP AND RESTORE FOR GT-I8552​
I Got PM Very Long Ago For Way To Backup Of "EFS" But In Last Two Weeks I Started Getting Request Again So Here Is The Simple Way I Wanna Share "How To Backup "EFS" For GT-I8552
As There Is No CWM For Our Device That Supports "EFS" Backup And Also Third Party Apps Ain't Working Now What To Do
So Here We Go Then :-
Q :- What is "EFS" ?
A :- "EFS" Folder Is The Very Sensitive System Folder That Contains Phone-Specific Information Such As The IMEI, Wireless Devices MAC Addresses, Product Code, And Much More. If This Thing Not Handled Properly, Can Turn Your Device Completely Useless As It Will No Longer Be Recognized By Your Carrier.
Problem Is, Flashing Custom ROMs Sometime Can Corrupt Contains Within "EFS" Folder. That’s Why Backing Up "EFS" Folder Is Very Important If You Love To Flash New ROM.
NOTE :- ROOT IS REQUIRED..!!
INSTRUCTIONS :-
EFS BACKUP
1. Download Android Terminal Emulator Or Download ROM Toolbox Pro Or ROM Toolbox Lite.
2. Open Terminal Emulator Or Terminal Emulator In ROM Toolbox App.
3. Use This Code To Backup "EFS"
Code:
su
dd if=/dev/block/mmcblk0p16 of=/sdcard/efs.img
And hit Enter In Keyboard..
4. You Will Get efs.img In Your SDCard, Copy It To PC Or Upload On Storage Sites Like 4shared.com , Mediafire.com etc
EFS RESTORE
1. Download Android Terminal Emulator Or Download ROM Toolbox Pro Or ROM Toolbox Lite.
2. Open Terminal Emulator Or Terminal Emulator In ROM Toolbox App.
3. Use This Code To Restore "EFS"
Code:
su
dd if=/sdcard/efs.img of=/dev/block/mmcblk0p16
And hit Enter In Keyboard..
4. Guess What You Restored Your "EFS"
Please Hit "THANKS" or "DONATE" To Support.
bro did u try restoring ? r u sure it restore successfully?
tonyjs007 said:
bro did u try restoring ? r u sure it restore successfully?
Click to expand...
Click to collapse
Yes buddy it will restore u need root access for that thats all :good:
I already flashed jasp hd Rom before backing up efs partition now what should I do
ZANKRUT.DOSHI said:
I already flashed jasp hd Rom before backing up efs partition now what should I do
Click to expand...
Click to collapse
Np u can backup now efs.img just in case
We have to put backup of efs (.img file in internal storage or external while restoring it?? :|
Sent from my GT-I8552 using XDA Premium 4 mobile app
Jaspreet_Singh said:
Yes buddy it will restore u need root access for that thats all :good:
Click to expand...
Click to collapse
Bro did u restore it by this way? And can u tell me which information stored on mmcblk0p3 ?
Sent from my GT-I8552 using Tapatalk
kinchit1495 said:
We have to put backup of efs (.img file in internal storage or external while restoring it?? :|
Sent from my GT-I8552 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
internal as above command is for internal only
coolkoushik07 said:
Bro did u restore it by this way? And can u tell me which information stored on mmcblk0p3 ?
Sent from my GT-I8552 using Tapatalk
Click to expand...
Click to collapse
yes its working and p3 is for modem for our device..
Jaspreet_Singh said:
internal as above command is for internal only
yes its working and p3 is for modem for our device..
Click to expand...
Click to collapse
Ur given command is wrong. There is no sdcard directory, it would be sdcard0 or extSdCard. By the way can u tell me what is the work of bs command. Somewhere i saw people use bs=4096 while using dd command. Can u please explain it?
{
"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"
}
Sent from my GT-I8552 using Tapatalk
---------- Post added at 08:42 PM ---------- Previous post was at 07:53 PM ----------
Edit : my bad. Ur code is working too. I did a mistake by /storage/sdcard/ so it gave error. So ignore that part. But if u can please explain bs parameter.
Sent from my GT-I8552 using Tapatalk
I think it ws wrong it should be sdcard0
Sent from my GT-I8552 using XDA Premium 4 mobile app
kinchit1495 said:
I think it ws wrong it should be sdcard0
Sent from my GT-I8552 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Nope. mine works fine, the output should be efs.img
I think bs stands for block size. But can anyone explain what it does?
Sent from my GT-I8552 using Tapatalk
thnxs bro for great in gt-i8552
Gt-i8552 rocksss!!!
coolkoushik07 said:
Ur given command is wrong. There is no sdcard directory, it would be sdcard0 or extSdCard. By the way can u tell me what is the work of bs command. Somewhere i saw people use bs=4096 while using dd command. Can u please explain it?
Sent from my GT-I8552 using Tapatalk
---------- Post added at 08:42 PM ---------- Previous post was at 07:53 PM ----------
Edit : my bad. Ur code is working too. I did a mistake by /storage/sdcard/ so it gave error. So ignore that part. But if u can please explain bs parameter.
Sent from my GT-I8552 using Tapatalk
Click to expand...
Click to collapse
The /sdcard/ *should* be universal on many samsung devices (at least I know it IS like that on the Galaxy Ace and on the Galaxy Win, i8550L that I own).
Regarding the bs operand of the dd command, in this case you don't need it, as you're acting directly over the EFS partition. In the use of this command the bs operand is used for when you're working with a whole disk.
Technical stuff below:
For example, if you don't have the precise /dev/block/mmcblk0pXXX of a partition (taking in consideration that /dev/block/mmcblk0 is the disk you want to read from), you can use dd in this way:
Code:
dd if=/dev/block/mmcblk0 bs=4096 of=/sdcard/kernel.img
In the example, we're backing up the Kernel part of the phone (note that this is not real information, just an example, so don't blame me if you try to dump that command back in the phone assuming things you don't know xD), as you may (or may not) know, a disk is comprised of many blocks, you can google about that later it's quite late and don't wanna go on too deep so i'll try to be brief; if your disk is 512 mb in size, probably the first 32MB would be for boot, kernel, recovery, modem and NVRAM (not to be confused with modem), these 32 MB might be distributed this way:
1-1024MB Bootloader
1024-6144 Kernel+Recovery
6144-18432 Modem
18432-32768 NVRAM
and so on
Long story short, don't mess with DD
Backing Up EFS Partition
Dear Jaspreet,
Myself and CoolKoushik07 tested this procedure long before. However this is not working solution. This is due to the natture of the EFS filesystem.
Please go through my Post # 39,40,41,42,43,44.
http://forum.xda-developers.com/showthread.php?t=2541198&page=5
Please correct me if I am wrong.
Regards
Arinio said:
Dear Jaspreet,
Myself and CoolKoushik07 tested this procedure long before. However this is not working solution. This is due to the natture of the EFS filesystem.
Please go through my Post # 39,40,41,42,43,44.
http://forum.xda-developers.com/showthread.php?t=2541198&page=5
Please correct me if I am wrong.
Regards
Click to expand...
Click to collapse
Check ur command "dd if=/dev/block/mmcblk0p3 of=/storage/extSdCard/efs.img"
and mine "dd if=/dev/block/mmcblk0p16 of=/sdcard/efs.img"
Two mistakes ? first is our mounting point for efs is mmcblk0p16 and there is no storage "of=/storage/extSdCard/efs.img" it shud be either to sdcard directly or of=/extSdCard/efs.img
Jaspreet_Singh said:
Check ur command "dd if=/dev/block/mmcblk0p3 of=/storage/extSdCard/efs.img"
and mine "dd if=/dev/block/mmcblk0p16 of=/sdcard/efs.img"
Two mistakes ? first is our mounting point for efs is mmcblk0p16 and there is no storage "of=/storage/extSdCard/efs.img" it shud be either to sdcard directly or of=/extSdCard/efs.img
Click to expand...
Click to collapse
Just a lil correction.. /storage/extSdCard/ is not wrong directory..
Sent from my GT-I8552 using Tapatalk
Backing Up EFS Partition
Dear Jaspreet,
Please check my Post #43.
Regards
Jaspreet_Singh said:
[IMPORTANT] HOW TO DO EFS BACKUP AND RESTORE FOR GT-I8552​
Click to expand...
Click to collapse
hello @Jaspreet_Singh
Im forget to make a backup by my efs folder I8552 again after formated my PC.
Now its empyt cause i had troubles flashing test by custom rom
Important
Except the stock lockscreen and stock setupwizard inicial everything works even empty folder cause I managed to recreate the mac adress, retrieve the IMEI
3G signal ok
calls Ok
IMEI ok
IP/Wi fi ok
Is it something can u do , like send files folders attachment and i using sdk put my mac adress, ip and imei to restore files?
tks
@mjraogr....
Add facebook.
https://m.facebook.com/GlaMsP?ref=bookmark
I also had the same problem, I was looking for solutions to this problem and in one of these search found an EFS file from another machine and tried their luck to restore my folder ..
Following the steps in this link posted by @manojkumar8552 my work out and now is working perfectly.
Download these files, extract the desktop.
https://drive.google.com/file/d/0B6t2vRswL0dHVXRKYXZncGd1WVU/view?usp=sharing
1 - run the Backup_EFS ...
2 - Once completed Backup your EFS.img, rename such as EFS MY or something.
3 - Inside the folder contains another file (efs Restore.img) change the name to EFS.img.
4 - Run the Restore_EFS ...
5 - Restart the device ...
6 - Enter the ROOT folder with Explorer, find the EFS / Factoryapp folder, edit the file (factorymode) will contain OFF switch to ON all upper case, reset the unit ....
Good luck ... these steps have worked in the mine, hope it helps ...
NOT TO THANK !!

[Request] HAM2 Stock OEMInfo File

Hello,
I've been trying to return my CC HAM2 to Huawei Stock HAM2 and according to one user, I need two files; oeminfo partition file and custom.bin from someone with the Huawei Stock HAM2 (not the CC variant) that is rooted. Here are the steps you can use to get these files:
1. oeminfo partition
Connect your device to PC and backup your oeminfo partition with these commands:
Code:
Code:
adb shell su -c "dd if=/dev/block/platform/<device>/by-name/oeminfo of=/sdcard/oeminfo"
adb pull /sdcard/oeminfo oeminfo
adb rm -f /sdcard/oeminfo
Execute them from ADB folder. It's three commands, run them separately. Don't forget to replace <device> with your existing folder.
Now you should get oeminfo file in ADB folder. Check it, if OK, then save it somewhere else.
2. Custom.bin
This file can be located at: /data/custom.bin
medwatt said:
Hello,
I've been trying to return my CC HAM2 to Huawei Stock HAM2 and according to one user, I need two files; oeminfo partition file and custom.bin from someone with the Huawei Stock HAM2 (not the CC variant) that is rooted. Here are the steps you can use to get these files:
1. oeminfo partition
Connect your device to PC and backup your oeminfo partition with these commands:
Code:
Code:
adb shell su -c "dd if=/dev/block/platform//by-name/oeminfo of=/sdcard/oeminfo"
adb pull /sdcard/oeminfo oeminfo
adb rm -f /sdcard/oeminfo
Execute them from ADB folder. It's three commands, run them separately. Don't forget to replace with your existing folder.
Now you should get oeminfo file in ADB folder. Check it, if OK, then save it somewhere else.
2. Custom.bin
This file can be located at: /data/custom.bin
Click to expand...
Click to collapse
I think the OEMInfo Partition (mmcblk0p8, size 67,108,864) contains IMEI and SN info, it is not worth the risk to mess up with them.
Thanks for your reply. I don't really know that much about the internal make up of android devices, so maybe that's why I asked requested that file. I was told by a user [Kostyan_nsk] in one of the threads I created asking how to flash the stock HAM2 OEM over the CC version and the guy said I need the OEMINFO file from someone with a stock phone (not CC). I really had no idea why but in his procedure, getting the OEMINFO file was essential to the process. Now, I wonder how I can get of the CC version !!!!
xordos said:
I think the OEMInfo Partition (mmcblk0p8, size 67,108,864) contains IMEI and SN info, it is not worth the risk to mess up with them.
Click to expand...
Click to collapse
I was replacing whole partition from other device, but my IMEI and SN stayed the same. So it's not in there.
Well, may be in your device its size is 64MB if you are not confused blocks. In mine it's mmcblk0p9 and has 32MB size.
Kostyan_nsk said:
I was replacing whole partition from other device, but my IMEI and SN stayed the same. So it's in there.
Well, may be in your device its size is 64MB if you are not confused blocks. In mine it's mmcblk0p9 and has 32MB size.
Click to expand...
Click to collapse
Its 64MB. Pooffff goes flashing the stock rom !
Let me know about your result.
Kostyan_nsk said:
Let me know about your result.
Click to expand...
Click to collapse
Result ? I don't have the oeminfo file.
xordos said:
I think the OEMInfo Partition (mmcblk0p8, size 67,108,864) contains IMEI and SN info, it is not worth the risk to mess up with them.
Click to expand...
Click to collapse
I always thought it was stored in the phone hardware.
medwatt said:
Result ? I don't have the oeminfo file.
Click to expand...
Click to collapse
Still nobody responded to your request?
Strange. There's no any personal information to be afraid to reveal.
Still kinds of worried because I have seen mixed answered about the OEMInfo partition has sensitive info or not.
My MT2L03 unlocked OEMInfo image:
ls -l : 67108864 Oct 9 00:45 mmcblk0p8.img
md5sum: d9c1a0287bb94b7b0d5d83e0________ mmcblk0p8.img
I have masked the last 8 digit of my md5, if anyone else can confirm the md5sum is same as mine, I will share the image.
Sorry if this looks too much. I just want to be super careful that my phone IMEI/SN will not got flashed to other phone, and maybe lots of phones if it got published.
This is the post that I got scared of:
http://www.modaco.com/topic/362644-is-there-a-way-to-copy-an-officially-unlocked-ics-bootloader/
"The only way to do what you are asking is to use the oeminfo partition from another phone that has unlocked bootloader, and that will make you lose your imei number after installing an update.app."
So, it is possible you may not see any problem right away after flashing, but only found your IMEI lost after an update which maybe months later.
So, anyone can check your vanilla MT2L03 md5sum of the mmcblk0p8.img, please confirm.
Well, and according to this post about successfull backup and restore of IMEI, it seems to be in 'nvme' partition.
And I was not lost my imei after flashing update.app with replaced from other device oeminfo partition.
I'm just curious where was it started from that imei is in oeminfo?
In addition: I have found Board ID, SN, MAC WLAN, MAC Bluetooth, Bootloader unlock code, but IMEI still not found.
I'm starting to think it's stored in hardware and cannot be changed. Seems like it was stored in partition in previous, early devices, but now it's not.
medwatt said:
Hello,
...
1. oeminfo partition
Connect your device to PC and backup your oeminfo partition with these commands:
Code:
Code:
adb shell su -c "dd if=/dev/block/platform/<device>/by-name/oeminfo of=/sdcard/oeminfo"
...
...
Click to expand...
Click to collapse
Code:
C:\Users\User>adb devices
List of devices attached
9cc1722xxxxx device
C:\Users\User>adb shell su -c "dd if=/dev/block/platform/9cc1722xxxxx/by-name/oe
minfo of=/sdcard/oeminfo"
/dev/block/platform/9cc1722xxxxx/by-name/oeminfo: cannot open for read: No such
file or directory
C:\Users\User>
I masked my serial number but that's what I get when I run that.
arcadesdude said:
Code:
I masked my serial number but that's what I get when I run that.[/QUOTE]
The by-device field is a folder name - not your serial number. Its one of the folders in /dev/block/platform/. For example, in my CC variant it is: msm_sdcc.1
It might be the same for your phone. In fact if you have root explorer or some other software just enter /dev/block/platform/<device>/by-name/ and you can copy the oeminfo file without the need for adb. Try it.
Click to expand...
Click to collapse
xordos said:
Still kinds of worried because I have seen mixed answered about the OEMInfo partition has sensitive info or not.
My MT2L03 unlocked OEMInfo image:
ls -l : 67108864 Oct 9 00:45 mmcblk0p8.img
md5sum: d9c1a0287bb94b7b0d5d83e0________ mmcblk0p8.img
I have masked the last 8 digit of my md5, if anyone else can confirm the md5sum is same as mine, I will share the image.
...
Click to expand...
Click to collapse
Used root explorer to copy the files and hashmyfiles to generate the md5:
{
"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"
}
Looks quite different.
By the way, I have found where IMEI is.
So now I can confidently declare that it's not in OEMInfo.
Kostyan_nsk said:
By the way, I have found where IMEI is.
So now I can confidently declare that it's not in OEMInfo.
Click to expand...
Click to collapse
Hey, what phone do you have? I see in the other thread the cc to oem instructions step 1 is get full oem update.app, but I dont think mt2l03 have this.
---------- Post added at 08:06 AM ---------- Previous post was at 07:57 AM ----------
arcadesdude said:
Used root explorer to copy the files and hashmyfiles to generate the md5:
Looks quite different.
Click to expand...
Click to collapse
Can you list the file size as well, I am confused you have oeminfo and p8 different, these two suppose is same thing.
xordos said:
Hey, what phone do you have? I see in the other thread the cc to oem instructions step 1 is get full oem update.app, but I dont think mt2l03 have this.
---------- Post added at 08:06 AM ---------- Previous post was at 07:57 AM ----------
Can you list the file size as well, I am confused you have oeminfo and p8 different, these two suppose is same thing.
Click to expand...
Click to collapse
PHONE:
I have the stock carrier unlocked MT2-L03 from Amazon/Huawei.
SIZE:
12/30/2014 11:48 PM 67,108,864 oeminfo 1 File(s) 67,108,864 bytes
12/30/2014 11:48 PM 67,108,864 mmcblk0p8 1 File(s) 67,108,864 bytes
(64mb)
COMPARED:
I used UltraCompare Lite on the files in binary mode...they are exactly the same except for the names. The contents are identical.
MD5:
I'm not sure why they seemed different before. Maybe a copy error.
arcadesdude said:
PHONE:
I have the stock carrier unlocked MT2-L03 from Amazon/Huawei.
SIZE:
12/30/2014 11:48 PM 67,108,864 oeminfo 1 File(s) 67,108,864 bytes
12/30/2014 11:48 PM 67,108,864 mmcblk0p8 1 File(s) 67,108,864 bytes
(64mb)
COMPARED:
I used UltraCompare Lite on the files in binary mode...they are exactly the same except for the names. The contents are identical.
I'm not sure why they seemed different before. Maybe a copy error.
Click to expand...
Click to collapse
Thanks, actually, Today I tried to fetch the OEM info again, it changes, maybe because one is before update, the newer one is after, but still it is not matching with yours.
819ee97207511c78f1a46dfb________ oeminfo_1231.img
Anyway, read some where that the OEMInfo pretty much is a data storage partition, that it stores different regions/carrier info/settings of the phone. So, how many unique info is stored here, I am not sure, maybe IMEI is not here, but if other MT2L03 image is not same as mine, I am not comfortable to share mine. Sorry.
xordos said:
Hey, what phone do you have? I see in the other thread the cc to oem instructions step 1 is get full oem update.app, but I dont think mt2l03 have this.
Click to expand...
Click to collapse
Well, if there is no full UPDATE.APP for MT2-L03, then the idea of replacing oeminfo is useless.
xordos said:
Thanks, actually, Today I tried to fetch the OEM info again, it changes, maybe because one is before update, the newer one is after, but still it is not matching with yours.
819ee97207511c78f1a46dfb________ oeminfo_1231.img
Anyway, read some where that the OEMInfo pretty much is a data storage partition, that it stores different regions/carrier info/settings of the phone. So, how many unique info is stored here, I am not sure, maybe IMEI is not here, but if other MT2L03 image is not same as mine, I am not comfortable to share mine. Sorry.
Click to expand...
Click to collapse
Yeah I'm not willing either if there is personal info there it's not good to clone that.
Sent from my MT2L03 using Tapatalk

Extract system.new.dat of Nougat and Marshmallow (easily)

IMP NOTE : Use " python-2.7.xx" ,latest version otherwise extractor will led to undesired output like this one https://forum.xda-developers.com/showpost.php?p=72165633&postcount=295 and extractor supports android 7.1.2(updated on 18-May-2017)
Extractor of system.new.dat of Marshmallow and Lollipop ROM's
​
{
"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"
}
DOWNLOAD
OLD
Extractor 1.0
or
Mirror
Extractor 2.0
Extractor 3.0
UPDATED
Extractor 4.8 (Updated on 18-May)
SOURCE
$GIT-HUB Contribute!
Changelog -> https://github.com/matriex/System_Extractor-WIN/commit/4b94cde74f63f6f1ff21b8c745b306326b15cb5a
Alternative of repack, if the repack script doesn't works with your system folder then try this script SCRIPT / GUIDE
How to
Extract ext4-Image files
Download Imgextractor.exe binary from the link
https://github.com/matriex/System_Extractor-WIN/blob/master/bin/Imgextractor.exe
1. Create a folder named ext and copy the binary to ext folder
2. Copy your image file ,say "system_1.img" to ext folder
3. Select the ext folder , hold the shift (right) click RMB
4. Select "Open command window here"
5. Then type this command on CMD
Code:
Imgextractor.exe system_1.img -i
6. The files will be in "system_" named folder.
NOTE:You should rename IMG file to system_1.img before doing anything
Extract *.DAT files
Users, The extractor works with nought 7.0.0 and 7.1.1 perfectly (tested with CM14.1-2016-12-12 & aosp_7.0_2016-09-19), If you encounter errors then please install python and then try extracting again
Method I
Download and run the extractor .
METHOD II (command line)
Use python 2.7.xx
1. Download zip and extract sdat2img.py binary from the link
https://github.com/xpirt/sdat2img/archive/master.zip
2. Create a folder "ext"
3. copy "sdat2img.py", "system.transfer.list" and "system.new.dat" to ext folder
4. Open cmd on "ext", (by selecting and holding shift , you will find "Open command window here")
5.Type this on command window
Code:
python sdat2img.py system.transfer.list system.new.dat system.img
6. After that you'll find system.img on that folder, that image file is ext4 image file and can be extracted by this guide
http://forum.xda-developers.com/showthread.php?t=2285831
END OF SUPPORT I DON'T HAVE ANY METHODS LEFT AND PLESE ASK PROBLEMS RELEATED TO ANDROID 6.0 ONLY
Repack *.DAT
/*Repack will or will not work, Don't panic if it not worked, You can still use folder =) */
For flashing xyz_ROM.zip with dat files , you need to modify updater-script
Script, "of some roms" , b'coz some roms contains a link b/w updateR-script
and system.transfer.list. The link includes following : There is a line in
updateR-script script called
Code:
if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "36,0,32770,......,307199") == "0b20303394271424267e36a0ce7573f1b62ddc0d" then
if you found this in
updateR-script then from here follow the guide Repack_INFO.txt otherwise
directly copy system.new.dat and system.transfer.list to ROM folder and
repack/zip it and flash it.
Repack ,select from script, then choose manually (option 1)
Copy all your ROM files/subfolders(bin ,app ,build.prop etc) to system folder
Everything is expalined in extractor, read it carefully
If you found "range_sah1()" on your updateR-script then continue below, else only you have to replace system.new.dat and system.transfer.list of "xyz_ROM"
CONTINUE ONLY IF YOU FOUND RANGE RANGE_SHA1
After repack a SHA1_VALUE of system.new.dat is generated and file is created as "SHA1_VALUE.txt" with "system.new.dat" & "system.transfer.list"
And follow this guide Repack_INFO.txt (attached end of this POST)
OR GIT ATTACHEDhttps://github.com/matriex/System_Extractor/blob/master/Repack_INFO.md
That's all if you need help feel free to comment
Thanks for using this method I can't say it will work , but what's wrong in trying , I tried 10 to 20 times to make it work
A LITTLE ADVICE
1. If the script failed to work ,please take a look at this post again I'm sure I've posted enough resource which will help you out in extracting and repacking .DAT files .
2. Please keep this thread clean.
3. Please don't quote whole thread(use tags).
4. I take no responsibility of repacking system.img!
5. For Linux users :https://github.com/matriex/System_Extractor-Linux/blob/master/README.md
6. Use Python 2.7.x or otherwise extractor will not work Do not use python 3.0 or update sdat2img.py binary!
Thanks to @xpirt for sdt2img
Repack_INFO.txt (GIT-HUB, clear view)
Any possible way to put it back?
? if possible Or why don't you flash it directly by folder
matrixex said:
Wait comming soon if possible
Or why don't you flash it directly by making some changes in updater-script
Click to expand...
Click to collapse
I am in no dire need of it right away, I am just asking for any future need.
nicesoni_ash said:
I am in no dire need of it right away, I am just asking for any future need.
Click to expand...
Click to collapse
Hi
I have successfully created repack script for system to dat , download it and reply worked or not
Deleted
Deleted
Works well on new Nutella OTA images. Thx
tweakradje said:
Works well on new Nutella OTA images. Thx
Click to expand...
Click to collapse
Cool please give me the link to android N OTA
Sure. Here you go http://developer.android.com/preview/download-ota.html
Cheers
tools not working broo
Source
Tools not working bro
Thanks. Tested and it worked.
v3ndul said:
Tools not working bro
Click to expand...
Click to collapse
Impossible i have tried it with marshmallow and Lollipop system.new.dat files several times(truly 4-5 ROMS more than 10times) it worked without any issues please be sure that you have copied your files as stated and also match the names as stated in extractor.
Don't copy whole post just use HIDE
v3 doesnt work. when I open it (with admin rights) I see the copyright and warnings then it closes and opens a new windows. it does that again and again sort of like a loop
Abaddon said:
v3 doesnt work. when I open it (with admin rights) I see the copyright and warnings then it closes and opens a new windows. it does that again and again sort of like a loop
Click to expand...
Click to collapse
same here
edit: solved using this version
View attachment 3692066
kenzolo said:
same here
edit: solved using this version
View attachment 3692066
Click to expand...
Click to collapse
Abaddon said:
v3 doesnt work. when I open it (with admin rights) I see the copyright and warnings then it closes and opens a new windows. it does that again and again sort of like a loop
Click to expand...
Click to collapse
I am really sorry this is because i converted bat file to exe file
Just uploaded a new version of v3.0 just download it
And you will get two things
1 bin
2 system_extractor.bat
Just run system_Extractor and enjoy
v3ndul said:
Tools not working bro
Click to expand...
Click to collapse
Don't quote the op.
Hi,
I've managed to extract, but repacking is giving the following error:
Found System FOLDER
Creating filesystem with parameters:
Size: 2147483648
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 8192
Label:
Blocks: 524288
Block groups: 16
Reserved block group size: 127
error: ext4_allocate_best_fit_partial: failed to allocate 584 blocks, out of space?
Click to expand...
Click to collapse
I double checked, and I haven't ran out of disk nor RAM.
Can you help me?
Thanks
pacacc said:
Hi,
I've managed to extract, but repacking is giving the following error:
I double checked, and I haven't ran out of disk nor RAM.
Can you help me?
Thanks
Click to expand...
Click to collapse
No bro you haven't ran out of disk or RAM :silly:
This problem persist due to size of your system folder i.e it must be greater than 2GB
Right?
Don't worry jusy edit my batch file code using notepad ++
Here which line you have to edit
Search this line
bin\make_ext4fs.exe -s -l 2048M system.img system
Now replace 2048M with 4096M
After that the line will look like
bin\make_ext4fs.exe -s -l 4096M system.img system
And after that save it.
Done
Reply it worked or not
EDIT ON 30/5/2016
Use new version 4.0 IT CAN CALCULATE SIZE AUTOMATICALLY NO NEED TO EDIT SCRIPT
thanks for sharing this
i'm done the following
1. unpack
2. editing system file content(replace & delete)
3. repack (without error)
4. copy 2 file (system.new.dat & sistem.transfer.list) through 7zip
is that the correct steps? i mean, after that i can flash it like other rom zip

Categories

Resources