Related
I have a VS980(24A)
I want to get data working on AT&T, so I want to install a custom ROM, which requires TWRP, which in turn requires root. Here is my problem: I believe the latest OTA version (24A) must be rooted using IOroot v.25 which apparently DOES NOT backup the EFS unlike the previous versions. So I went to adb shell and typed in su so I could backup the EFS. I got "su: not found"
I'm trying to run these commands:
adb shell
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img
Is there any way to backup the EFS??
Your help is much appreciated,
Nathan
FOR SPRINT M8 NON-H/K MODELS ONLY
Well everyone I'm here to bring you a little tool set i use to take official OTAs.I am not a dev nor do I take credit for the work. This is mainly just a collection of things I used to get OFFICIAL OTA updates. I've used this on 2 Sprint m8's with STOCK Hboots so I am sure this will work. Please feel free to share this with others JUST GIVE CREDIT WHERE IT IS DUE.
To start off there are some requirements...
S-OFF is needed
STOCK HBOOT
HTC One M8 (Sprint non-Harmon Kardon)
UNLOCKED Bootloader (If you are LOCKED and rooted PLEASE use UNLOCK Bootloader method included in zip. DO NOT use HTCDEV to unlock... Your internal storage will be wiped if you do. YOU HAVE BEEN WARNED
MAKE SURE TO UNLOCK BOOTLOADER before doing any of this (instructions are included in zip)
1. Copy the stock nand to backup folder in twrp
2. Make a backup of your setup
3. Restore the stock nand provided
4. Flash stock recovery provided
5. Boot up and do all otas up to latest
6. Flash custom recovery
7. Restore your backup
8. Flash modified firmware
9. Lock bootloader
10. Flash asdp for hk mod.zip in ruu mode (same as flashing FIRMWARE) if audio is not working in htc music
Locking-Unlocking & Remove Tampered flag
***NEED TO BE S-OFF!!***
TO LOCK BOOTLOADER
1. Phone on with adb debugging enabled to confirm this open cmd prompt type adb devices should show device serial number
2.Type adb shell
3.Type su to get # prompt
4. Copy paste exactly as is
Code:
echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
5.Type exit you may need to enter that command 2x to get out of adb shell
6.Type adb reboot bootloader You should be ***LOCKED***
TO UNLOCK BOOTLOADER
1. Phone on with adb debugging enabled to confirm this open cmd prompt type adb devices should show device serial number
2.Type adb shell
3.Type su to get # prompt
4. Copy paste exactly as is
Code:
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
5.Type exit you may need to enter that command 2x to get out of adb shell
6.Type adb reboot bootloader You should be ***UNLOCKED***
TO REMOVE ***TAMPERED*** text
1. Phone on with adb debugging enabled to confirm this open cmd prompt type adb devices should show device serial number
2.Type adb shell
3.Type su to get # prompt
4. Copy paste exactly as is
Code:
echo -ne '\x00' | dd of=/dev/block/mmcblk0p6 bs=1 seek=5314564
5.Type exit you may need to enter that command 2x to get out of adb shell
6.Type adb reboot bootloader You should not see ***TAMPERED***
Flashing Firmware
IN HBOOT MODE
1. Label the file to exactly 0P6BIMG.zip
2. Put zip in root of external SD card
3. Boot into HBOOT to flash (bootloader should detect zip automatically and prompt you to flash)
IN FASTBOOT MODE
1. Boot device into FASTBOOT mode (device should show FASTBOOT USB)
2. Put the firmware file to be flashed in the folder with fastboot.
3. Open a command prompt from the folder where fastboot is located.
4. Run the following commands:
fastboot oem rebootRUU (this will reboot the device into RUU mode in preparation for zip flashing)
fastboot flash zip 0P6BIMG_M8WHL_x.xx.xxx.x_firmware.zip (the name of the zip should match the name of the file you're flashing)
5. Once complete, you can fastboot reboot or fastboot reboot-bootloader depending on what you want to do next. If you choose bootloader, you can confirm that your radio is now updated to the one from the file you flashed
Links needed ...
For Locking and Unlocking bootloader (ONLY WORKS WITH ROOTED ROM AND S-OFF!!)
For Removing Tampered Flag (ONLY WORKS WITH ROOTED ROM AND S-OFF!!)
For Modified Firmware
I'd like to give thanks to the people that have made this possible
if i forget someone I'm sorry send me a pm I'll add you to the list
Team420 for taking me in showing me the basics
BADSEED for allowing me to break so many test roms lol
BD619 for hooking me up with adb files
scotty1223 for making those awesome guides
Captain_Throwback for providing the collection of firmware ... Oh yeah and the TWRP recovery
TEAMWIN for making TWRP in the 1st place
HTC for making such an awesome phone
DISCLAIMER: I AM IN NO WAY HELD LIABLE FOR DAMAGES MADE TO YOUR PHONE OR IF YOUR DEVICE TRANSFORMS INTO A DECEPTICON CAUSING WORLD DESTRUCTION...YOU ARE FOLLOWING AND FLASHING THIS AT YOUR OWN RISK
DOWNLOADS
Main Link on Mega HERE
Mirror Link on AFH HERE
And this as well
Hi,
Added to FAQ Guide Q15
Nice work Miggs:thumbup:
Sent from my HTC M8
Great work Bro, very helpful. Thank you
Just one thought on your thread title. You might change it to "How to Return to Stock" since most of those steps aren't needed to take a OTA. Very useful for those who need to go back to a stock device though.
Sent from my HTC M8
Magnum_Enforcer said:
Just one thought on your thread title. You might change it to "How to Return to Stock" since most of those steps aren't needed to take a OTA. Very useful for those who need to go back to a stock device though.
Sent from my HTC M8
Click to expand...
Click to collapse
GOOD CATCH!! THANKS ... That was actually how this idea came about lol
Good work Miggsr!
Need stock apps to take OTA
I'm in need of a list of the stock apps so I can figure out what ones I'm missing so I can take the OTA. Also has someone made a zip of the stock apps. Any help would be great.
Piroman024 said:
I'm in need of a list of the stock apps so I can figure out what ones I'm missing so I can take the OTA. Also has someone made a zip of the stock apps. Any help would be great.
Click to expand...
Click to collapse
Why not just keep a backup of the latest stock rom on your sdcard?
BD619 said:
Why not just keep a backup of the latest stock rom on your sdcard?
Click to expand...
Click to collapse
Or look in the first post of this thread for stock backups:
http://forum.xda-developers.com/showthread.php?t=2736048
Sent from my HTC M8
Piroman024 said:
I'm in need of a list of the stock apps so I can figure out what ones I'm missing so I can take the OTA. Also has someone made a zip of the stock apps. Any help would be great.
Click to expand...
Click to collapse
in my zip i have included a STOCK backup made with TWRP that is also included in the zip it has ALL stock apps that you may be looking for to make things easier just copy that folder to your TWRP backup folder whether its on your internal sd or external sd restore that and boot up
Tring to upgrade "dirty"
I do keep a copy of the stock rom for when stuff hits the fan. I also have a backup i made before I went S-off. I deleted a few of the system apps that were bugging me before I learned that OTA also checks apps.
I'm trying to get the OTA without wiping my phone and all the setup time I have so far spent on it.
I just try to install the OTA again this time i checked the log. I get "/system/app/Plusone.apk" has unexpected contents. I guessing this is caused from my removing apps. I'm thinking i can use this to find what the installer thinks is missing.
My last question, is there a way to extract .apk and .odex files from the ruu?
Piroman024 said:
I do keep a copy of the stock rom for when stuff hits the fan. I also have a backup i made before I went S-off. I deleted a few of the system apps that were bugging me before I learned that OTA also checks apps.
I'm trying to get the OTA without wiping my phone and all the setup time I have so far spent on it.
I just try to install the OTA again this time i checked the log. I get "/system/app/Plusone.apk" has unexpected contents. I guessing this is caused from my removing apps. I'm thinking i can use this to find what the installer thinks is missing.
My last question, is there a way to extract .apk and .odex files from the ruu?
Click to expand...
Click to collapse
okay with the first half of what you said... i have not had an ota check for apps... when removing google plus you probably left a second apk that works with it hence your error message. if you are looking to be able to take an official ota you should NOT be rooted. honesty if you meet ALL REQUIREMENTS i listed then just follow the guide you should be fine. the backup i have there is based on initial rom that came with the device. so you will have to do 3 ota updates to be exact. i made it that way out of personal preference. now for the second half of your post ... as i mentioned i am not a dev unfortunately i can not answer that question for you... slightly above my pay grade. not to put you on the spot either i'd like to keep thread on topic in OP.
so Harmon Kardon edition can not be unroot?
hhhstonehhh said:
so Harmon Kardon edition can not be unroot?
Click to expand...
Click to collapse
Sure it can...same steps just use HK files
BD619 said:
Sure it can...same steps just use HK files
Click to expand...
Click to collapse
I could not have said it any better lol
Great Tut Miggs !!!
cbrown245 said:
Great Tut Miggs !!!
Click to expand...
Click to collapse
thanks CB i just making things easier for others
SPRINT FACTORY SYSTEM IMAGE FILES
LG LS991 ZV5/ZV6
I have compressed and uploaded FACTORY SYSTEM image files for both ZV5 and ZV6.
NOTE: You should only flash the image version you are currently running!
Sprint LS991 ZV5 Factory System Image File:
ZV5 System Image Link
MD5: 29f64a55862a5f43e5ac450d073a6a84
Sprint LS991 ZV6 Factory System Image File:
ZV6 System Image Link
MD5: e31125d22df1882d5247b046476b04c5
You may flash these by using the same command from the software you used to root your G4
1.) Unzip and copy the img file to your phones internal memory.
2.) Open an administrator command prompt in windows with your phone plugged in and go to original directory you used to root your phone. (LG ROOT)
3.) Type 'Ports.bat' in the window prompt to view what port your LG G4 is connected to.
4.) Type in the window (change COM4 to your port number if different):
Code:
Send_Command.exe \\.\COM4
5.) In the command prompt type (change to ZV5 to ZV6 if you are restoring that version):
Code:
dd if=/data/media/0/systemZV5.img bs=8192 seek=65536 count=557312 of=/dev/block/mmcblk0
Once completed, reboot and you will have a fully stock system again.
/.
SPRINT FACTORY ROOTED SYSTEM IMAGE FILES
LG LS991 ZV5/ZV6
I have compressed and uploaded ROOTED FACTORY SYSTEM image files for both ZV5 and ZV6.
NOTE: You should only flash the image version you are currently running!
Sprint LS991 ZV5 Factory System ROOTED Image File:
ZV5 Rooted System Image Link
MD5: 06c7820e317d0870a5e6e35325eed29e
Sprint LS991 ZV6 Factory System ROOTED Image File:
ZV6 Rooted System Image Link
MD5: 703cc7070911e009ece40d960763a4d3
You may flash these by using the same command from the software you used to root your G4
1.) Unzip and copy the .img file to your phones internal memory.
2.) Open an administrator command prompt in windows with your phone plugged in and go to original directory you used to root your phone. (LG ROOT)
3.) Type 'Ports.bat' in the window prompt to view what port your LG G4 is connected to.
4.) Type in the window (change COM4 to your port number if different):
Code:
Send_Command.exe \\.\COM4
5.) In the command prompt type (change to ZV5 to ZV6 if you are restoring that version):
Code:
dd if=/data/media/0/rootedsystemZV5.img bs=8192 seek=65536 count=557312 of=/dev/block/mmcblk0
Once completed, reboot and you will have a fully ROOTED stock system.
/.
OTA Update File: (From OTA Captured)
Warning: Once you take the ZV6 Upgrade, you can NEVER TOT back to ZV5 (at this time) or you will brick your device! There is protection in-place to prevent reverting versions.
Sprint LS991 ZV5--->ZV6 Factory Update File:
ZV6 Update Link
MD5: 42ceb7516080e2d20d7ce56d4581707e
Update ZV6 Instructions:
Update ZV5 To ZV6 Update File Instructions:
*you may need to update your adb/drivers first*
http://forum.xda-developers.com/htc-one/general/tool-updated-adb-version-1-0-32-fastboot-t2932160 -thanks to @misteroh
1.) Put Back To Factory ZV5 (No Root or Modded Files!)
2.) Copy the updateZV6.zip file to the same directory you have the ADB files / command you used for root
3.) Plug in phone to computer and open an Admin Command Prompt in the ADB files directory you used to root
3.) Boot your phone to RECOVERY (turn off - hold down power and vol down till you see recovery txt and release)
4.) From phone recovery menu scroll down and select 'Apply Update From ADB'
5.) In your admin command prompt, type 'ADB SIDELOAD updateZV6.zip'
Wait for the update to finish before touching! Don't turn of power or interrupt! When ADB terminal returns after completion, remove cable and reboot. You now should have ZV6!
* Developers *
Kernel/Modem Files: (Use At Your Own Risk - More For Developers!)
ZV6 Kernel Image Link
MD5: c53b75439e4baad9f7309366d454db70
ZV6 Modem Image Link
MD5: 7ec96d6c92e599f0f621fe3e93c8d932
ZV5 Kernel Image Link
MD5: c18bc2cc8d68b19e808011953040d69d
ZV5 Modem Image Link
MD5: e9e59fa19964fa1682c96092fa47118b
Thanks so much for doing this for us!
Just to make sure I got this right: I'm currently on ZV5 rooted. If I wanted to take the ZV6 OTA I would use the method above with the ZV5 image and then I'll be totally stock? What will get wiped? Once I take ZV6 OTA is there a way to root it?
---------- Post added at 06:50 PM ---------- Previous post was at 06:50 PM ----------
Agimax said:
Request: I forgot to pull ZV5 Modem and Kernel partition images before i updated to ZV6. If someone could be so kind as to pull both of those, i will upload and add them to the link also.
Click to expand...
Click to collapse
I'll do it you tell me how. I'm on rooted ZV5
Yes, you can root ZV6.
If you do it right you won't lose anything.
I posted a thread on ZV6 root in general forum.
mswlogo said:
Yes, you can root ZV6.
If you do it right you won't lose anything.
I posted a thread on ZV6 root in general forum.
Click to expand...
Click to collapse
Thanks, i am also posting Stock Rooted Images in post #2 for those that want them. It will be a few hours before the Images finish uploading. I'll also upload the ZV6 update zip for those that need it. I'm about 60% done with the UltraPOP V1 ROM for the G4 also
SantinoInc said:
Thanks so much for doing this for us!
I'll do it you tell me how. I'm on rooted ZV5
Click to expand...
Click to collapse
Thank you!
Open Command Prompt (Admin rights) In Windows or Linux or Android Terminal
1.) type 'adb shell' then at the $ prompt type 'SU' to gain superuser rights in the shell window and accept the prompt on the Phone
2.) Type For The Kernel:
Code:
dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/kernelZV5.img
3.) Type for the Modem:
Code:
dd if=/dev/block/bootdevice/by-name/modem of=/sdcard/modemZV5.img
I already have them for ZV6. I appreciate this!
Agimax said:
Thank you!
Open Command Prompt (Admin rights) In Windows or Linux or Android Terminal
1.) type SU to gain superuser rights in the shell window and accept the prompt on the Phone
2.) Type For The Kernel:
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/sdcard/kernelZV5.img
3.) Type for the Modem:
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/modem of=/sdcard/modemZV5.img
I already have them for ZV6. I appreciate this!
Click to expand...
Click to collapse
My ADB skills are garbage. Do I just open a command prompt in C>program files> ...platform tools
When I type SU there it says its not recognized as a command.
Edit: On terminal editor when I typed the command for the Kernel I get: NO such file or directory.
I've been rooting since EVO 4G and I still can't do shiiiiit on ADB. It's sad.
SantinoInc said:
My ADB skills are garbage. Do I just open a command prompt in C>program files> ...platform tools
When I type SU there it says its not recognized as a command.
Edit: On terminal editor when I typed the command for the Kernel I get: NO such file or directory.
I've been rooting since EVO 4G and I still can't do shiiiiit on ADB. It's sad.
Click to expand...
Click to collapse
Sorry, type 'adb shell' from command prompt first then after you get a $ prompt type `su' which you will have to accept prompt on phone.
Was my fault not yours, I also gave you the commands for the G2 instead of G4 by accident, use these: (I corrected original post too)
dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/kernelZV5.img
dd if=/dev/block/bootdevice/by-name/modem of=/sdcard/modemZV5.img
/.
So, I think I messed up. I reverted to v5 unrooted, then tried to upgrade to v6 rooted and Im getting a security error on the LG screen.
Agimax said:
Sorry, type 'adb shell' from command prompt first then after you get a $ prompt type `su' which you will have to accept prompt on phone.
Was my fault not yours, I also gave you the commands for the G2 instead of G4 by accident, use these: (I corrected original post too)
dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/kernelZV5.img
dd if=/dev/block/bootdevice/by-name/modem of=/sdcard/modemZV5.img
/.
Click to expand...
Click to collapse
Getting permission denied for both the modem and kernel. Thoughts? Also, if this was successful where exactly would the MODEM and KERNEL be saved? I'm guessing the rootfolder of the internal SD card?
---------- Post added at 09:55 PM ---------- Previous post was at 09:53 PM ----------
jaxbierley said:
So, I think I messed up. I reverted to v5 unrooted, then tried to upgrade to v6 rooted and Im getting a security error on the LG screen.
Click to expand...
Click to collapse
From rooted V5 you used the method in the OP of this thread? Did following the instructions in the OP lead you to stock unrooted V5? If so, were you able to take the OTA to V6? At what step did stuff get messed up exactly? I'm asking because I'm going to be attempting this soon too but I'm being overly cautious with this phone.
SantinoInc said:
Getting permission denied for both the modem and kernel. Thoughts? Also, if this was successful where exactly would the MODEM and KERNEL be saved? I'm guessing the rootfolder of the internal SD card?
---------- Post added at 09:55 PM ---------- Previous post was at 09:53 PM ----------
From rooted V5 you used the method in the OP of this thread? Did following the instructions in the OP lead you to stock unrooted V5? If so, were you able to take the OTA to V6? At what step did stuff get messed up exactly? I'm asking because I'm going to be attempting this soon too but I'm being overly cautious with this phone.
Click to expand...
Click to collapse
I first did V5 unrooted. All worked well. Then I did the exact same thing, except with V6 rooted and got a security error. I did not receive the OTA either. I just did a TOT restore, and still no OTA. I'm going to try to upgrade V6 with the images in the OP and see what happens. Perhaps I should have done the stock unrooted image before trying the rooted image.
jaxbierley said:
So, I think I messed up. I reverted to v5 unrooted, then tried to upgrade to v6 rooted and Im getting a security error on the LG screen.
Click to expand...
Click to collapse
You need to put v5 unrooted back on the phone, then use the 'UpdateZV6.zip' smaller file to update (in the third post -has dropdown step instructions).
jaxbierley said:
I first did V5 unrooted. All worked well. Then I did the exact same thing, except with V6 rooted and got a security error. I did not receive the OTA either. I just did a TOT restore, and still no OTA. I'm going to try to upgrade V6 with the images in the OP and see what happens. Perhaps I should have done the stock unrooted image before trying the rooted image.
Click to expand...
Click to collapse
Also important:
After taking the ZV6 update - WE CAN NEVER USE TOT GOING BACK TO ZV5, there is protection in place and will brick your device. I posted in the ZV5 TOT thread hoping the OP would attach the disclaimer a few days ago.
Luckily, you didn't take the ZV6 update yet so you are safe.
SantinoInc said:
Getting permission denied for both the modem and kernel. Thoughts? Also, if this was successful where exactly would the MODEM and KERNEL be saved? I'm guessing the rootfolder of the internal SD card?
Click to expand...
Click to collapse
Would be saved on the root of your internal memory SDCARD (Not External).
Permission Denied Possibilities:
1.) You aren't rooted or your superuser prog is set to deny
2.) You didn't type SU in the shell that changes the $ to the # and asks your phone with a popup for root permission.
3.) You denied the popup for the shell asking your phone for root.
If after you ran 'adb shell' command and then typed 'su' there should be a popup for permission to access on your phone and then the '#' sign will appear in the shell prompt.
* also i don't want to confuse others about the instructions for pulling the Modem & Kernel from the ZV5 with flashing System images or thinking this is part of the process in the OP when it is not. *
/.
Agimax said:
Also important:
After taking the ZV6 update - WE CAN NEVER USE TOT GOING BACK TO ZV5, there is protection in place and will brick your device. I posted in the ZV5 TOT thread hoping the OP would attach the disclaimer a few days ago.
Luckily, you didn't take the ZV6 update yet so you are safe.
Click to expand...
Click to collapse
yea, i had thought i was screwed. thanx for the help, sideloading update now. Then going to root with info in post 2. Thanx for all of this information
jaxbierley said:
yea, i had thought i was screwed. thanx for the help, sideloading update now. Then going to root with info in post 2. Thanx for all of this information
Click to expand...
Click to collapse
Glad you finally got it!:good:
I wish they would change the ZV5 TOT method with a huge RED warning for people on ZV6.
I need a DEODEX ROM!
Is there anyone who make deodex rom?
Agimax said:
Glad you finally got it!:good:
I wish they would change the ZV5 TOT method with a huge RED warning for people on ZV6.
Click to expand...
Click to collapse
Ok, I finally got it to work w/o an issue. I just overlooked granting SU permission on the phone as you pointed out. Now I just have to find where it saved the modem and kernel img...
EDIT: Found them. Where is the best place to upload them? I think they are too big to upload here on XDA
---------- Post added at 11:41 AM ---------- Previous post was at 11:20 AM ----------
modem ZV5: http://expirebox.com/download/fba59672c924499cc80c414e4374b11d.html
kernel ZV5: http://expirebox.com/download/5be7fe2143d04fd4ca51ccd3164ba124.html
These files will self delete in TWO days. Feel free to mirror them or do whatever you like with them!
SantinoInc said:
Ok, I finally got it to work w/o an issue. I just overlooked granting SU permission on the phone as you pointed out. Now I just have to find where it saved the modem and kernel img...
EDIT: Found them. Where is the best place to upload them? I think they are too big to upload here on XDA
Click to expand...
Click to collapse
Wherever you would like just PM or Post the link please and i will re-upload them to the Androidfilehost site with the rest of them.
Thank you for doing this!
EDIT: just saw the edited links. I will grab them tonight. Thanks again.
I made a script to backup any partition in our A7:
YOU HAVE TO BE ROOT, TO USE IT.
To run it simply push to the sdcard fire up adb shell to launch the script.
from the computer while connected to the A7 with usb debugging turned on
Code:
adb push PATH_to_the_script/full-backup.sh /sdcard
and
Code:
adb shell
su
cd /sdcard/
sh full-backup.sh
you will see a menu to choose which partition to backup.
As in the attachment.
enjoy, and please hit the thanks button.
the script v1.00
and a terminal screenshot.
Could you use terminal emulator to run this from on the phone thus cutting out the need for a pc?
ultramag69 said:
Could you use terminal emulator to run this from on the phone thus cutting out the need for a pc?
Click to expand...
Click to collapse
yes you could run it directly form the device:
fire up a terminal emulator app:
RUN IT AS ROOT
Code:
su
sh /sdcard/full-backup.sh
thank you. we can backup unmodified firmware via this tool right?
RealSchule said:
thank you. we can backup unmodified firmware via this tool right?
Click to expand...
Click to collapse
So you need to be root to use this script, so not really..
RealSchule said:
thank you. we can backup unmodified firmware via this tool right?
Click to expand...
Click to collapse
The root modifed just the boot partition so you could backup every stock partition but the stock boot... but you could get the stock boot from other places...
manu7irl said:
The root modifed just the boot partition so you could backup every stock partition but the stock boot... but you could get the stock boot from other places...
Click to expand...
Click to collapse
we can backup all images except boot.img with this tool but we can find boot.img from other topic. so we have full stock images right?
If you have root you can backup every single partition. This is not full stock rom! This is for backup and restore easily.
manu7irl said:
If you have root you can backup every single partition. This is not full stock rom! This is for backup and restore easily.
Click to expand...
Click to collapse
So what is the process to restore these images? Is it as simple as flashing in twrp?
Go in TWRP, fire up adb shell on your PC, then do:
Code:
dd if=/sdcard/[backup_folder]/[partition].img of=/dev/block/bootdevice/by-name/[partition_name]
example:
Code:
dd if=/sdcard/backup-part/[date-folder]/system.img of=/dev/block/bootdevice/by-name/system
I will also make a restore part in this little script. If you are intersting in one to do so.
Sure that would be great. Thanks.
manu7irl said:
Go in TWRP, fire up adb shell on your PC, then do:
Code:
dd if=/sdcard/[backup_folder]/[partition].img of=/dev/block/bootdevice/by-name/[partition_name]
example:
Code:
dd if=/sdcard/backup-part/[date-folder]/system.img of=/dev/block/bootdevice/by-name/system
I will also make a restore part in this little script. If you are intersting in one to do so.
Click to expand...
Click to collapse
Been waiting for just that.
I have flashed gpt.bin file of Potter and I am unable to downgrade or move back to sanders in my Moto G5s Plus (Sander). Help Please!!
khatrimann said:
I have flashed gpt.bin file of Potter and I am unable to downgrade or move back to sanders in my Moto G5s Plus (Sander). Help Please!!
Click to expand...
Click to collapse
I was assited with a dev on here named pizzaboy192
He had me for load oem.img through the terminal commands.
He uploaded the oem.zip and he has a special recovery.img file to use to do a proper oem backup.
Here is a quote of our converstation.
After all that i am still not perfect. I used a twrp backup of oreo I found. It is the only way I can load anything on my phone is though a backup/restore.
I can't flash anything, and I can't adbside load anything either.
You can download the twrprecovery file from his post.
"Visit my XDA profile (I'm on mobile right now) and find my post about TWRP for stock. It's a special version I threw together to backup the OEM partition properly since TWRP normally doesn't.
What we're going to do is fastboot boot TWRP (not flash it) and then restore a backup of the Oreo OEM partition using TWRP.
Then fastboot flash all other Oreo partitions. Any Oreo ROM will work just to get you running, and it should take otas too."
next message:
"OK we're going to force OEM onto it.
https://drive.google.com/file/d/1WUw...ew?usp=sharing
That is the OEM partition but compressed. It should extract to a 768MB file (roughly that size)
copy it somewhere on the phone (TWRP should allow you to mount the internal storage as a USB drive, if that doesn't work, try ADB Push and push it to somewhere like \tmp
Then you will need to use adb to do the following (TWRP is broken for ADB and the stuff it spits out to your computer is garbled. I wasn't ever able to fix it.)
type adb shell and it should dump you down into some garbled mess
hit enter a few times to make sure you're at the shell (it's a root user)
load up notepad, paste the following into it and edit it so it shows the right path for the extracted .img file on your phone
dd if=/tmp/oemoreoaug.img of=/dev/block/bootdevice/by-name/oem
Copy that string and paste it into the adb window on your computer and hit enter. It will take a while to process it and then return an error about it running out of space before you hit the end of the file. that is OK (since your partition is too small)
Once it's finished, copy that result and send it to me just so I can have a clear idea what is going on.
Reboot into fastboot, reflash the oreo firmware but skip the line for OEM (it's kinda global, but not 100% but since moto hasn't released any updates since the oreo one and they don't seem to care, who cares as long as it works, right?) and then see if it boots. "
so if you get that to work,
then I was only able to do a restore using this file
MotoG5sPlus_Sanders_Android8.1Oreficial(ByYoungRockTech).rar
after that I did a full backup using Pizzaboys recovery, and now I am able to restore it at anytime.
Hyde1234 said:
I was assited with a dev on here named pizzaboy192
He had me for load oem.img through the terminal commands.
He uploaded the oem.zip and he has a special recovery.img file to use to do a proper oem backup.
Here is a quote of our converstation.
After all that i am still not perfect. I used a twrp backup of oreo I found. It is the only way I can load anything on my phone is though a backup/restore.
I can't flash anything, and I can't adbside load anything either.
You can download the twrprecovery file from his post.
"Visit my XDA profile (I'm on mobile right now) and find my post about TWRP for stock. It's a special version I threw together to backup the OEM partition properly since TWRP normally doesn't.
What we're going to do is fastboot boot TWRP (not flash it) and then restore a backup of the Oreo OEM partition using TWRP.
Then fastboot flash all other Oreo partitions. Any Oreo ROM will work just to get you running, and it should take otas too."
next message:
"OK we're going to force OEM onto it.
https://drive.google.com/file/d/1WUw...ew?usp=sharing
That is the OEM partition but compressed. It should extract to a 768MB file (roughly that size)
copy it somewhere on the phone (TWRP should allow you to mount the internal storage as a USB drive, if that doesn't work, try ADB Push and push it to somewhere like \tmp
Then you will need to use adb to do the following (TWRP is broken for ADB and the stuff it spits out to your computer is garbled. I wasn't ever able to fix it.)
type adb shell and it should dump you down into some garbled mess
hit enter a few times to make sure you're at the shell (it's a root user)
load up notepad, paste the following into it and edit it so it shows the right path for the extracted .img file on your phone
dd if=/tmp/oemoreoaug.img of=/dev/block/bootdevice/by-name/oem
Copy that string and paste it into the adb window on your computer and hit enter. It will take a while to process it and then return an error about it running out of space before you hit the end of the file. that is OK (since your partition is too small)
Once it's finished, copy that result and send it to me just so I can have a clear idea what is going on.
Reboot into fastboot, reflash the oreo firmware but skip the line for OEM (it's kinda global, but not 100% but since moto hasn't released any updates since the oreo one and they don't seem to care, who cares as long as it works, right?) and then see if it boots. "
so if you get that to work,
then I was only able to do a restore using this file
MotoG5sPlus_Sanders_Android8.1Oreficial(ByYoungRockTech).rar
after that I did a full backup using Pizzaboys recovery, and now I am able to restore it at anytime.
Click to expand...
Click to collapse
Thanks for your help. I'll give it a shot and will revert back to you ASAP
PS: the google link isn't working
Corrupted google link
Hyde1234 said:
I was assited with a dev on here named pizzaboy192
He had me for load oem.img through the terminal commands.
He uploaded the oem.zip and he has a special recovery.img file to use to do a proper oem backup.
Here is a quote of our converstation.
After all that i am still not perfect. I used a twrp backup of oreo I found. It is the only way I can load anything on my phone is though a backup/restore.
I can't flash anything, and I can't adbside load anything either.
You can download the twrprecovery file from his post.
"Visit my XDA profile (I'm on mobile right now) and find my post about TWRP for stock. It's a special version I threw together to backup the OEM partition properly since TWRP normally doesn't.
What we're going to do is fastboot boot TWRP (not flash it) and then restore a backup of the Oreo OEM partition using TWRP.
Then fastboot flash all other Oreo partitions. Any Oreo ROM will work just to get you running, and it should take otas too."
next message:
"OK we're going to force OEM onto it.
https://drive.google.com/file/d/1WUw...ew?usp=sharing
That is the OEM partition but compressed. It should extract to a 768MB file (roughly that size)
copy it somewhere on the phone (TWRP should allow you to mount the internal storage as a USB drive, if that doesn't work, try ADB Push and push it to somewhere like \tmp
Then you will need to use adb to do the following (TWRP is broken for ADB and the stuff it spits out to your computer is garbled. I wasn't ever able to fix it.)
type adb shell and it should dump you down into some garbled mess
hit enter a few times to make sure you're at the shell (it's a root user)
load up notepad, paste the following into it and edit it so it shows the right path for the extracted .img file on your phone
dd if=/tmp/oemoreoaug.img of=/dev/block/bootdevice/by-name/oem
Copy that string and paste it into the adb window on your computer and hit enter. It will take a while to process it and then return an error about it running out of space before you hit the end of the file. that is OK (since your partition is too small)
Once it's finished, copy that result and send it to me just so I can have a clear idea what is going on.
Reboot into fastboot, reflash the oreo firmware but skip the line for OEM (it's kinda global, but not 100% but since moto hasn't released any updates since the oreo one and they don't seem to care, who cares as long as it works, right?) and then see if it boots. "
so if you get that to work,
then I was only able to do a restore using this file
MotoG5sPlus_Sanders_Android8.1Oreficial(ByYoungRockTech).rar
after that I did a full backup using Pizzaboys recovery, and now I am able to restore it at anytime.
Click to expand...
Click to collapse
Could you send the link again? For the same is corrupted
I did the same thing, flashed potter firmware on my sanders, and now ican't revert. Please help, also, the google link isn't working.