Related
just a quick tool i put together that unlocks bootloader, flashes a recovery image, installs root, s-off and writes superCID!
simply install the exe file and run it off your desktop(sorry windows only)
FULL FEATURES:
Free Me (Unlock Bootloader, Flashes Recovery, Roots Device, S-OFF, Writes SuperCID)
Show oem token code
Flash oem token
Flash recoveries
Flash recovery themes
My GraffStyleZ TWRP Theme Included
S-Off
Enable root permissions
Force Update
Flash any .zip file
Flash a rom
Create a logcat
Show CID
Write superCID
Backup device
Restore device
Relock bootloader
Flash custom radio
Fix sdcard errors
Fix low batter error
Reboot options
Advanced wipe Options
Pulls Files From Server
Wipe Data
Wipe Cache
Wipe System
Wipe Dalvik Cache
Wipe Android Secure
Wipe Recovery
Wipe Boot img
Wipe Data,Cache
Wipe Data,Cache,System,Dalvik
Automatically Kills adb Upon Completion Of Task
Unlock bootloader guide
Install custom recovery guide
Install recovery theme guide
Enable root permissions guide
Install roms or .zip files guide
Restore device to defaults guide
Click to expand...
Click to collapse
Download Here
REMEMBER! IF YOU LIKE MY TOOL HIT THE THANKS BUTTON OR EVEN BUY ME A KANGAROO!
Ehm..... Just wanted to add a reminder, only use fastboot when it is the only way out. Fastboot can be dangerous, but nice made.
Also here is my testresults:
i did use the function : INSTALL A DOWNLOADED ROM
but:
fastboot erase data -- should be userdata
fastboot erase dalvik -- does not exsist, dalvik-cache is either /cache/dalvik-cache or if i remeber correctly some cm roms uses /data partition to handle dalvik-cache.
and last:
fastboot flash zip --- does not allow you to flash a rom, it complains about it is not allowed to do it, and as i remeber it is our bootloader that are locked on that part.
i tried also with a kernel.zip
sendng "zip" (4029 KB)...
OKAY [ 2.571s]
writing "zip"...
FAILED (remote: not allowed) <----i am s-off and rooted and so on
Finished....
so try do it like a openrecovery scripts using recovery
and last:
the fix low battery error, can you explain how that works
fastboot getvar battery-voltage
fastboot reboot-bootloader
ping /n 6 localhost >nul
ehm
anders3408 said:
Ehm..... Just wanted to add a reminder, only use fastboot when it is the only way out. Fastboot can be dangerous, but nice made.
Also here is my testresults:
i did use the function : INSTALL A DOWNLOADED ROM
but:
fastboot erase data -- should be userdata
fastboot erase dalvik -- does not exsist, dalvik-cache is either /cache/dalvik-cache or if i remeber correctly some cm roms uses /data partition to handle dalvik-cache.
and last:
fastboot flash zip --- does not allow you to flash a rom, it complains about it is not allowed to do it, and as i remeber it is our bootloader that are locked on that part.
i tried also with a kernel.zip
sendng "zip" (4029 KB)...
OKAY [ 2.571s]
writing "zip"...
FAILED (remote: not allowed) <----i am s-off and rooted and so on
Finished....
so try do it like a openrecovery scripts using recovery
and last:
the fix low battery error, can you explain how that works
fastboot getvar battery-voltage
fastboot reboot-bootloader
ping /n 6 localhost >nul
ehm
Click to expand...
Click to collapse
i have flashed .zip files on other phones like nexus and desire hd, it was successful, but i have not tried it on sxl as do not have the device anymore but seeing as developers gave so much to me from this forum, i thought id give a little back before i move on to learning ios development, try manual adb and executing adb root then flashing your kernel or zip
i havent tested roms yet though
as of the flashing kernel.zip, i do not know why it did not flash, maybe also try the adb root command before flashing?
and on some devices your phone will not charge it bootloader or recovery and when you want to revert back to stock os, no root, no custom recovery etc. some peoples devices fail to restore after the phone wipes system, data and cache partitions while there battery is below i think 18 percent, and fastboot wont allow you to boot into recovery until battery is above that amount.
why dont they turn their phone off abd let it charge? because when they connect the charger the phone boot into bootloader
i found a guide on google the other week as a request of adding the feature and those commands worked
this is a beta, thanks for the bug reports, will update it and fix the bugs later tonight
our bootloader does not support flashing zip files, that part is locked even if s-off
anders3408 said:
our bootloader does not support flashing zip files, that part is locked even if s-off
Click to expand...
Click to collapse
well thanks for your advice great help, need more people who give great accurate feedback like you will fix most of these errors in the update!
ricky310711 said:
well thanks for your advice great help, need more people who give great accurate feedback like you will fix most of these errors in the update!
Click to expand...
Click to collapse
You can try something like this example:
make a OpenRecoveryScript called flash_rom
adb shell mkdir /cache/recovery/openrecoveryscript
adb push flash_rom /cache/recovery/openrecoveryscript
adb reboot bootloader
fastboot boot twrp-recovery.img
i dont know how to get it to start the script, perhaps it is enough to push the script to correct folder and then boot recovery up.
The reason for fastboot boot ..... is for all can use it also if they uses cwm or a outdated recovery
More info :
http://www.teamw.in/OpenRecoveryScript
https://github.com/JBirdVegas/andro...installer/OpenRecoveryScriptSupport.java#L265
and here is what i also found, that is being done via an app called tasker from android, but i guess it should give us an idear on how it works
1) Use the Secure Settings plugin to run the command as root:
date=`date +%Y.%m.%d-%H.%M`;echo -e "wipe cache\nwipe dalvik\nbackup SDBO $date" > /cache/recovery/openrecoveryscript
2) then choose task > wait and set it for 5 seconds (giving time for things to settle
3) Use Secure Settings plugin as root again to run the command:
echo 'boot-recovery' > /dev/block/mmcblk0p3; sync; reboot <--------mmcblk..... should ofc be changed so it fits runnymede.
i think that is the only way you can flash a rom automaticly on runnymede, but what you can do is, push the rom to zip and when done reboot to recovery and i guess people knows how to press a few buttons
anders3408 said:
You can try something like this example:
make a OpenRecoveryScript called flash_rom
adb shell mkdir /cache/recovery/openrecoveryscript
adb push flash_rom /cache/recovery/openrecoveryscript
adb reboot bootloader
fastboot boot twrp-recovery.img
i dont know how to get it to start the script, perhaps it is enough to push the script to correct folder and then boot recovery up.
The reason for fastboot boot ..... is for all can use it also if they uses cwm or a outdated recovery
More info :
http://www.teamw.in/OpenRecoveryScript
https://github.com/JBirdVegas/andro...installer/OpenRecoveryScriptSupport.java#L265
and here is what i also found, that is being done via an app called tasker from android, but i guess it should give us an idear on how it works
1) Use the Secure Settings plugin to run the command as root:
date=`date +%Y.%m.%d-%H.%M`;echo -e "wipe cache\nwipe dalvik\nbackup SDBO $date" > /cache/recovery/openrecoveryscript
2) then choose task > wait and set it for 5 seconds (giving time for things to settle
3) Use Secure Settings plugin as root again to run the command:
echo 'boot-recovery' > /dev/block/mmcblk0p3; sync; reboot <--------mmcblk..... should ofc be changed so it fits runnymede.
i think that is the only way you can flash a rom automaticly on runnymede, but what you can do is, push the rom to zip and when done reboot to recovery and i guess people knows how to press a few buttons
Click to expand...
Click to collapse
i will look into that, as im sure you know i have only just started development, im still learning from people like, but am gonna give back as much as i have took
So this tool basicly roots the sxl for ya am I right going to give it a try today if it does
Sent from my GT-N7105 using xda premium
Disclaimer: If you are not comfortable with using Fastboot and ADB and editing system files than this guide might not be for you. At this point this is what I have to offer.
Click here for the unofficial twrp image - Latest version as of 12/27/14
So getting right into it.
1. Turn on ADB mode on the watch by going to about and tapping the build info 7 times.
2. Download ADB and Fastboot utilties
3. Plug the watch into the computer and your phone should vibrate and ask you to accept the computers fingerprint, tick the check box to always allow and hit ok
4. Open up a command prompt or terminal inside of where the ADB utilities are located and enter
Code:
adb reboot bootloader
This next step will wipe your data!
5. Now you should be in fastboot, go ahead and on the terminal use the next code and follow prompts to unlock
Code:
fastboot oem unlock
6. Now after you re-set up your watch again you will need to do step 1 and 3 again.
Please do not skip step 6!
7. Go ahead and issue
Code:
adb reboot bootloader
8. Flash unofficial twrp, make sure the recovery image file is in the same location as fastboot than issue
Code:
fastboot flash recovery YOURIMGNAMEHERE.img
9. Upon successfully doing that you should have twrp installed
10. Lots in one step here, download the latest supersu.zip flashable file and put it in the same folder as ADB use the proper name of what you downloaded. Issue
Code:
adb push SUPERSUNAMEHERE.zip /sdcard/
11. Issue
Code:
adb reboot recovery
12. than using the very tiny TWRP and somewhat messed up go ahead and use it to install the supersu.zip under the folder /sdcard
13. Enjoy root and twrp.
I will make this guide into a much easier Java program in the very near future to make it easier to use.
This was typed up pretty fast and it is kinda hacky, I will work on a bat script and a shell script if we have enough osx users here. I'm sure someone will come along and make this better if I don't get around to it.
Credits:
Dees-Troy for his TWRP support for dory our fish brother device which worked on our device
Chainfire for all his hard work these many years
Q: ADB complains there is no device listed.
A: Install universal ADB drivers and then go to device manager and under the device with a yellow warning icon go to update driver, Browse my computer, let me pick from list of device drivers, than Google ADB interface. If it still complains turn off debugging, than turn it back on, revoke authorization, then disable and re-enable again.
One more just in case.
Great work!!
Just got the watch today and couldn't be happier. Custom kernel, TWRP and root (well sort of) all within 6 hours of having this watch.
I say root (sort of) because SU is force closing when running su in adb shell. First time it crashed adb on PC and had to reboot watch. Now it just force closes on my watch and adb exits on PC. What is the most current version of SuperSU? I have 1.94 from Chainfire's site.
Thank you SO MUCH for this! Do you or your team have a paypal?
hatefuel19 said:
Just got the watch today and couldn't be happier. Custom kernel, TWRP and root (well sort of) all within 6 hours of having this watch.
I say root (sort of) because SU is force closing when running su in adb shell. First time it crashed adb on PC and had to reboot watch. Now it just force closes on my watch and adb exits on PC. What is the most current version of SuperSU? I have 1.94 from Chainfire's site.
Thank you SO MUCH for this! Do you or your team have a paypal?
Click to expand...
Click to collapse
The latest supersu is version 2.36 dated 11.27.2014. 1.94 is well over a year old, you need to update for sure that is why you are force closing.
I figured that's what it was. Feeel real dumb for not finding the newest version the first time. Also most current is now 2.37 XD
Edit: That got it! Thanks tonu!
hatefuel19 said:
I figured that's what it was. Feeel real dumb for not finding the newest version the first time. Also most current is now 2.37 XD
Edit: That got it! Thanks tonu!
Click to expand...
Click to collapse
I'm here to help! I'm working on adding other mods to my other thread right now I'm working on getting busybox working.
Thanks for doing all of this work.
I was hoping you could help me with a step I am stuck on.
10. Lots in one step here, download the latest supersu.zip flashable file and put it in the same folder as ADB. Issue "adb push SUPERSUNAMEHERE.zip /sdcard/
When I do this it is saying permission denied. Also, should the watch be in recovery or fully booted when I run this command?
Thanks
---------- Post added at 09:31 PM ---------- Previous post was at 09:28 PM ----------
jimmydigital00 said:
Thanks for doing all of this work.
I was hoping you could help me with a step I am stuck on.
10. Lots in one step here, download the latest supersu.zip flashable file and put it in the same folder as ADB. Issue "adb push SUPERSUNAMEHERE.zip /sdcard/
When I do this it is saying permission denied. Also, should the watch be in recovery or fully booted when I run this command?
Thanks
Click to expand...
Click to collapse
Disregard I did it again and for some reason it worked. Maybe I need to reboot first.
Recovery
I went through your command and everything worked until I ran:
fastboot flash recovery UNOFFICIAL-openrecovery-twrp-2.8.0.0-lenok.img
Now the device just boots into the recovery and not into the system. The system/data partitions keep saying:
E:Unable to mount /data
E:Unable to mount /system
I am very comfortable with fastboot and adb so I do not know what I did wrong here.
Any ideas?
adamrobles said:
I went through your command and everything worked until I ran:
fastboot flash recovery UNOFFICIAL-openrecovery-twrp-2.8.0.0-lenok.img
Now the device just boots into the recovery and not into the system. The system/data partitions keep saying:
E:Unable to mount /data
E:Unable to mount /system
I am very comfortable with fastboot and adb so I do not know what I did wrong here.
Any ideas?
Click to expand...
Click to collapse
Try reflashing the recovery IMG again. And check back here.
Sent from my A0001 using XDA Free mobile app
reflashed
tonu42 said:
Try reflashing the recovery IMG again. And check back here.
Sent from my A0001 using XDA Free mobile app
Click to expand...
Click to collapse
I reflashed the recovery you provided and I keep rebooting to system but it takes me to twrp.
I am in the process of downloading the system dump from another thread to hopefully flash those to get back into the system.
adamrobles said:
I reflashed the recovery you provided and I keep rebooting to system but it takes me to twrp.
I am in the process of downloading the system dump from another thread to hopefully flash those to get back into the system.
Click to expand...
Click to collapse
The dump is extracted from the system.img, you won't be able to flash it in any way. None of this guide touches system files besides the root stuff which shouldn't affect boot. Try flashing the stock recovery.img instead.
tonu42 said:
The dump is extracted from the system.img, you won't be able to flash it in any way. None of this guide touches system files besides the root stuff which shouldn't affect boot. Try flashing the stock recovery.img instead.
Click to expand...
Click to collapse
Thank you for that information, I stopped the download of the dump.
Downloading the stock recovery now.
---------- Post added at 02:24 PM ---------- Previous post was at 02:10 PM ----------
tonu42 said:
The dump is extracted from the system.img, you won't be able to flash it in any way. None of this guide touches system files besides the root stuff which shouldn't affect boot. Try flashing the stock recovery.img instead.
Click to expand...
Click to collapse
I must have skipped a step...
installed stock recovery
booted into the watch system
enabled adb debugging
reboot to bootloader
install your recovery image
rebooted
pushed supersu
rebooted to twrp
installed supersu
rebooted to system
adb shell - verified root!
You are awesome! Thank you for taking the time to help me!
HYPE for 5.0.1
'm Hype! can't wait to flash the first 5.0.1 system dump on this as stated by +Darek Ross we MAY be receiving update as early as today!
I did this yesterday, and run into the same problem - TWRP spitting out errors when flashing
It was caused by NOT rebooting after unlocking bootloader, but proceeding with the flash rightaway - this apparently leaves the watch in an empty state (no /sdcard or /system contents) and it needs to boot up at least once before you flash anything
So the correct procedure is like this
1) enable development options
2) enable usb debugging
3) adb reboot-bootloader
4) fastboot oem unlock
5) let the watch boot normally, pair with your phone, enable development options and usb debugging again
6) adb reboot-bootloader
7) fastboot flash recovery recovery.img
8) fastboot reboot
9) adb push supersu.zip /sdcard/
10) adb reboot recovery
11) flash supersu.zip
Apparently, there is a problem when the original kernel is not present after "fastboot oem unlock" - the watch will be left empty, while on the original kernel it "reinstalls"
I typed this from memory, but I think you should know how these things work anyway, as there's not much for a "normal" user to do anyway... yet...
zvieratko said:
I did this yesterday, and run into the same problem - TWRP spitting out errors when flashing
It was caused by NOT rebooting after unlocking bootloader, but proceeding with the flash rightaway - this apparently leaves the watch in an empty state (no /sdcard or /system contents) and it needs to boot up at least once before you flash anything
So the correct procedure is like this
1) enable development options
2) enable usb debugging
3) adb reboot-bootloader
4) fastboot oem unlock
5) let the watch boot normally, pair with your phone, enable development options and usb debugging again
6) adb reboot-bootloader
7) fastboot flash recovery recovery.img
8) fastboot reboot
9) adb push supersu.zip /sdcard/
10) adb reboot recovery
11) flash supersu.zip
Apparently, there is a problem when the original kernel is not present after "fastboot oem unlock" - the watch will be left empty, while on the original kernel it "reinstalls"
I typed this from memory, but I think you should know how these things work anyway, as there's not much for a "normal" user to do anyway... yet...
Click to expand...
Click to collapse
My guide is setup like the one you put there. In order to get adb working again you need to re setup the watch step 6. Read the instructions carefully. I'll post a batch script later to simplify this.
Sent from my A0001 using XDA Free mobile app
Step 6 doesn't really say "you need to do this, OR ELSE", it seems like you just rehash the factory reset thing
And you should put step 10 before step 6, it can't really be done in that order...
but again, I guess the people trying this should now how it works, so no biggie, but since a few of us got hit by that "no initial boot" issue, it would be better to put a note in there
zvieratko said:
Step 6 doesn't really say "you need to do this, OR ELSE", it seems like you just rehash the factory reset thing
And you should put step 10 before step 6, it can't really be done in that order...
but again, I guess the people trying this should now how it works, so no biggie, but since a few of us got hit by that "no initial boot" issue, it would be better to put a note in there
Click to expand...
Click to collapse
By default debugging is disabled, I'm not sure how you were able to issue an ADB command on step 7 with out first performing step 6.
Aaah, sorry, should have been "after step 6"
another option is to do adb push with recovery loaded
I guess that's why I got that error before, because I combined 5+8 and flashed the recovery, but TWRP was unable to revive the watch from factory reset state (which makes me think it should not be on the watch unless needed...)
zvieratko said:
Aaah, sorry, should have been "after step 6"
another option is to do adb push with recovery loaded
I guess that's why I got that error before, because I combined 5+8 and flashed the recovery, but TWRP was unable to revive the watch from factory reset state (which makes me think it should not be on the watch unless needed...)
Click to expand...
Click to collapse
Ah I see, yea the guide is written as the absolute minimum to work right now. Like I said later today I'll try to post a script that automates all of this, its much easier.
This is my Situation:
I was using a ROM Based in Android 5.1.1 in specific ([5.1.1_r29] Team Razor), everything was good but I read that I had to update bootloader and radio but never saw a link, looking for internet for help found this GHOST_RETAIL_5.1_LPA23.12-15_cid9_CFC.xml.zip version to install via RSD Lite, everything was good, but when I tried to flash the recovery I get that I couldnt flash it 'cuz is not compatible:
Code:
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8498 KB)...
OKAY [ 6.193s]
writing 'recovery'...
(bootloader) Battery Low!!
FAILED (remote failure)
finished. total time: 7.660s
My device start normally, but I want too install the Recovery and root it, I couldnt find any information about my problem or a real solution.
I've read about flash a system.img but what "system.img"?, I'm looking for some help, if anyone pass thru this and have the answer would be awesome if you share it.
Thank you in advance.
[SOLVED]
Unzip mfastboot.exe into \platform-tools\
flashing: mfastboot flash recovery recovery.img
done!
The info in your post is kind of confusing. What does ghost_retail*.xml.zip have to do with looking for a custom recovery which is what I am guessing you want on your "working" device? All you could get out of the .xml.zip file would be something like stock_recovery.img which wouldn't allow you do recoveries. Sounds like you want to download TWRP (or Philz) from somewhere and boot into fastboot mode, then use "fastboot flash recovery {whatever_recovery.img}" to flash the custom recovery.
If that's not your intent then post back and try to explain better. It seems like you had things "working well" on TR511 but still decided to update BL & Rad anyway. There's no need to update anything if it's all working OK and there's no new features (like a working speakerphone or something) in there for you.
Also: the 'reported output' in your
Code:
section is pretty inconclusive for troubleshooting. It almost sounds as if you tried to flash (or RSDLite) something huge like the entire image (805,306,368 bytes?). I've built lots of recoveries and they average more like 5-10MB. , not 800MB. Also it says something about "battery low" in there. I'm lost on that output ;;)
And another note: System.img has little or nothing to do with getting recovery back together. It's just the packed up version of /system/.... in the "SYSTEM" partition.
Maybe for starters: tell us once again what ROM is working right now including version. Then tell us what recovery you want to flash. Someone can likely help out if we know those things. You appear to have unlocked BL since you're flashing ROMs so there's hope.
Anyway, good luck.
[QUOTE="Mexickano, post: 64350799, member: 4488447"]This is my Situation:
I was using a ROM Based in Android 5.1.1 in specific ([5.1.1_r29] Team Razor), everything was good but I read that I had to update bootloader and radio but never saw a link, looking for internet for help found this[B] GHOST_RETAIL_5.1_LPA23.12-15_cid9_CFC.xml.zip[/B] version to install via RSD Lite, everything was good, but when I tried to flash the recovery I get that I couldnt flash it 'cuz is not compatible:
[code](bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8498 KB)...
OKAY [ 6.193s]
writing 'recovery'...
(bootloader) Battery Low!!
FAILED (remote failure)
finished. total time: 7.660s
My device start normally, but I want too install the Recovery and root it, I couldnt find any information about my problem or a real solution.
I've read about flash a system.img but what "system.img"?, I'm looking for some help, if anyone pass thru this and have the answer would be awesome if you share it.
Thank you in advance.[/QUOTE]
I was on 5.1.1 and downgraded to 5.1 stock, everything ok till now?
when I'm trying to flash TWRP this appears
Code:
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8498 KB)...
OKAY [ 6.193s]
writing 'recovery'...
(bootloader) Battery Low!!
FAILED (remote failure)
finished. total time: 7.660s
Mexickano said:
I was on 5.1.1 and downgraded to 5.1 stock, everything ok till now?
when I'm trying to flash TWRP this appears
Code:
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8498 KB)...
OKAY [ 6.193s]
writing 'recovery'...
(bootloader) Battery Low!!
FAILED (remote failure)
finished. total time: 7.660s
Click to expand...
Click to collapse
Thanks. I'm assuming the battery low message is just a confused response and not really true? Also, I see that the recovery.img (whatever you are calling TWRP) is ~8.5MB which seems fine. It looks like fastboot on the PC (whatever) isn't happy talking to the xt1053 booted into fastboot/bootloader. Could you try doing a "fastboot devices" and show the output back here? If it's anything other than an OK ID number for the device, then it might be interesting.
I'll attach a version of fastboot I just recently used to flash a recovery in case you want to try it.
Another thing: I've never had this happen myself, but have heard about it a few times: When booted, use some explorer to look in your /system folder for a file with a name like this "recovery-from-boot.p". If it's there, supposedly it will keep forcing the default non-custom recovery to be written regardless of what you do. I'm sure there's a work-a-round for that like ..
What about using the "Fastboot boot "your-custom-recovery.img" if you have that "recovery-from-boot.p" problem? It should take you into the recovery you're trying to write without bothering to write it to the recovery partition. From there, you would be root if you can open the TWRP console, and get rid of the recovery-from-boot.p file, install root, etc, then finally, flash recovery with whatever combination of stuff ^^ it takes.
hachamacha said:
Thanks. I'm assuming the battery low message is just a confused response and not really true? Also, I see that the recovery.img (whatever you are calling TWRP) is ~8.5MB which seems fine. It looks like fastboot on the PC (whatever) isn't happy talking to the xt1053 booted into fastboot/bootloader. Could you try doing a "fastboot devices" and show the output back here? If it's anything other than an OK ID number for the device, then it might be interesting.
The battery message is because the Battery is low, that's it, no big deal.
I can boot into fastboot w/o issues and I will post back the result of "fastboot devices".
I'll attach a version of fastboot I just recently used to flash a recovery in case you want to try it.
how can I use it, excuse my ignorance, but I see a .exe inside a .zip
Another thing: I've never had this happen myself, but have heard about it a few times: When booted, use some explorer to look in your /system folder for a file with a name like this "recovery-from-boot.p". If it's there, supposedly it will keep forcing the default non-custom recovery to be written regardless of what you do. I'm sure there's a work-a-round for that like ..
What about using the "Fastboot boot "your-custom-recovery.img" if you have that "recovery-from-boot.p" problem? It should take you into the recovery you're trying to write without bothering to write it to the recovery partition. From there, you would be root if you can open the TWRP console, and get rid of the recovery-from-boot.p file, install root, etc, then finally, flash recovery with whatever combination of stuff ^^ it takes.
Click to expand...
Click to collapse
There's a "recovery-from-boot.p" but I cant delete it or change the name because I'm not root, can I be root without installing Recovery?
Mexickano said:
There's a "recovery-from-boot.p" but I cant delete it or change the name because I'm not root, can I be root without installing Recovery?
Click to expand...
Click to collapse
Should be able to work around that, but the workaround is to find a way to become root, so I was mentioning this in the last post of mine:
What about using the "Fastboot boot "your-custom-recovery.img" if you have that "recovery-from-boot.p" problem? It should take you into the recovery you're trying to write without bothering to write it to the recovery partition. From there, you would be root if you can open the TWRP console, and get rid of the recovery-from-boot.p file, install root, etc, then finally, flash recovery with whatever combination of stuff ^^ it takes.
Click to expand...
Click to collapse
I'm trying to think of ways to do this above and I think that is actually one of them and there should be another way as well.
Way one: There's a fastboot command "fastboot boot "{name-of-your-recovery-img-for-twrp}". That command causes it to boot (well, if all goes well) into recovery without writing recovery. If it works, you're a root user because that's how recovery is. In TWRP, I'm sure there's a console command as well as a file explorer or some kind. You'll have to remount as read-write /system partition. From a console it'd look like this "sudo mount -o remount,rw /system" (I'm pretty sure that's it). You can look it up or try it with a w where the rw is right now. Also you can just do a plain "mount" command and look at the output to see what it's mounted as in case you need it.
If you get into whatever file explorer twrp has available, then navigate to that file 'recovery_from_boot.p' and see if the file system is in read-write mode by trying to rename it (like to recovery_from_boot.p.orig). If that doesn't work, then go to the special commands or advanced (sorry, not recalling twrp that well) and mount /system as read-write whatever that takes, like an unmount & a mount. Then go back to file explorer and do the rename. I hate deleting files I'm not 100% sure about, but you can do what you like there.
Way two: If you can boot into the version of twrp.img on your PC, then I'm not seeing why you can't install root from it too. Worth a try. You might have some other remaining problem between whatever fastboot you've got on the pc and the bootloader, but it's worth a shot. There's a number of write-ups on how to do this if you google it. Anyway, once you've rooted you can reboot and you should only lose recovery, not root. Once booted, install supersu, etc. usual stuff, then if it all checks out, flash the recovery and it should stay once you've dumped that file.
Way two and a half: If I understand how the normal boot works on androids, then you should be able to avoid having recovery erased at least one time by using the buttons either to go directly to recovery (volume_up + power) or (volume_down+volume_up + power) RIGHT after you flash recovery. I'm just thinking that /system isn't going to execute if you pick the right combo of buttons to get into recovery but it'll be a pita because you have to burn recovery then hit it on the first boot after or it's gone.
Cheers.
hachamacha said:
Way one: There's a fastboot command "fastboot boot "{name-of-your-recovery-img-for-twrp}". That command causes it to boot (well, if all goes well) into recovery without writing recovery. If it works, you're a root user because that's how recovery is. In TWRP, I'm sure there's a console command as well as a file explorer or some kind. You'll have to remount as read-write /system partition. From a console it'd look like this "sudo mount -o remount,rw /system" (I'm pretty sure that's it). You can look it up or try it with a w where the rw is right now. Also you can just do a plain "mount" command and look at the output to see what it's mounted as in case you need it.
there is a "recovery-from-bot.p", I cant delete it, rename it or anything else since I aint get root privileges.
I can get into fastboot and when I type fastboot devices I get:
TA0000143X fastboot
If you get into whatever file explorer twrp has available, then navigate to that file 'recovery_from_boot.p' and see if the file system is in read-write mode by trying to rename it (like to recovery_from_boot.p.orig). If that doesn't work, then go to the special commands or advanced (sorry, not recalling twrp that well) and mount /system as read-write whatever that takes, like an unmount & a mount. Then go back to file explorer and do the rename. I hate deleting files I'm not 100% sure about, but you can do what you like there.
Way two: If you can boot into the version of twrp.img on your PC, then I'm not seeing why you can't install root from it too. Worth a try. You might have some other remaining problem between whatever fastboot you've got on the pc and the bootloader, but it's worth a shot. There's a number of write-ups on how to do this if you google it. Anyway, once you've rooted you can reboot and you should only lose recovery, not root. Once booted, install supersu, etc. usual stuff, then if it all checks out, flash the recovery and it should stay once you've dumped that file.
I cant boot into recovery because I can't flash the Recovery, that's the reason why I created this topic because I CANT flash recovery.
Way two and a half: If I understand how the normal boot works on androids, then you should be able to avoid having recovery erased at least one time by using the buttons either to go directly to recovery (volume_up + power) or (volume_down+volume_up + power) RIGHT after you flash recovery. I'm just thinking that /system isn't going to execute if you pick the right combo of buttons to get into recovery but it'll be a pita because you have to burn recovery then hit it on the first boot after or it's gone.
I cant get into Recovery because there is no Recovery flashed.
What about that fastboot.zip, how I flash it or install it because I see a fastboot.exe inside the zip.
Cheers.
Click to expand...
Click to collapse
I need to know if there's a way to flash another bootloader or anything else?
If I try to delete the "recovery-from-boot.im" in fastboot this message appear:
X:\Android\sdk\platform-tools>fastboot erase /system/recovery-from-boot.img
(bootloader) Variable not supported!
erasing '/system/recovery-from-boot.img'...
(bootloader) Invalid partition name /system/recovery-from-boot.img
FAILED (remote failure)
finished. total time: 0.094s
FINALLY!!
I solved putting mfastboot.exe into /platform-tools/ and typing
mfastboot flash recovery [recovery].img
Thank you for your effort and time.
Mexickano said:
I need to know if there's a way to flash another bootloader or anything else?
If I try to delete the "recovery-from-boot.im" in fastboot this message appear:
X:\Android\sdk\platform-tools>fastboot erase /system/recovery-from-boot.img
(bootloader) Variable not supported!
erasing '/system/recovery-from-boot.img'...
(bootloader) Invalid partition name /system/recovery-from-boot.img
FAILED (remote failure)
finished. total time: 0.094s
FINALLY!!
I solved putting mfastboot.exe into /platform-tools/ and typing
mfastboot flash recovery [recovery].img
Thank you for your effort and time.
Click to expand...
Click to collapse
Cool! I think I also was trying to say "try other versions of fastboot" (like mfastboot). Good deal.
Hi, I am reading that TWRP will not even work with this device, I keep getting a fail every time I try to install it. I have the US Beckham model T1929. I see that Magisk can be installed with TWRP, but there are no details on how this is done. I am kind of rusty and have not done any rooting since I got my moto G5 a couple of years ago.
So I quick walk through would be awesome. I would love to get this phone ready to go and put my sim in it, but for now I wait.
I tried to do the systemless install, from the magisk manager and got this error in my log.
- Copying image to cache
- Device platform: arm64-v8a
- Existing zip found
- Extracting files
MagiskBoot v18.0(18000) (by topjohnwu) - Boot Image Modification Tool
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
- Unpacking boot image
No boot image magic found!
! Unable to unpack boot image
! Installation failed
Click to expand...
Click to collapse
I guess I did not understand, you can run the TWRP image but can't install TWRP.
I will try this tomorrow.
https://forum.xda-developers.com/z3-play/how-to/official-twrp-moto-z3-play-released-t3848414
TWRP should be booted on A/B phones, a separate installer can inject it (not available yet).
Edit: The non-VZ Z3 can use Magisk.
After unlocking the BL you can do "fastboot boot twrpfile.img". Do not use fastboot flash. You've been warned.
Ace42 said:
TWRP should be booted on A/B phones, a separate installer can inject it (not available yet).
Edit: The non-VZ Z3 can use Magisk.
After unlocking the BL you can do "fastboot boot twrpfile.img". Do not use fastboot flash. You've been warned.
Click to expand...
Click to collapse
I tried to use the fastboot boot twrpp.img and got an error?
C:\Program Files (x86)\ClockworkMod\Universal Adb Driver>fastboot boot twrp-3.2.3-1-beckham.img
Downloading 'boot.img' OKAY [ 0.846s]
booting (bootloader) permission denied!
FAILED (remote: '')
Finished. Total time: 1.106s
Click to expand...
Click to collapse
Finally got it, I had to get the bootloader unlock code from Motorola, funny I did not see a mention of this anywhere. Good thing it was not my first Moto, and I had a vague idea that I might need the code.
Thanks for the help, and hopefully this will help someone else.
Use this link https://support.motorola.com/us/en/solution/MS87215
Droid_Nut said:
Finally got it, I had to get the bootloader unlock code from Motorola, funny I did not see a mention of this anywhere. Good thing it was not my first Moto, and I had a vague idea that I might need the code.
Thanks for the help, and hopefully this will help someone else.
Use this link https://support.motorola.com/us/en/solution/MS87215
Click to expand...
Click to collapse
Great that you could do it . Usually that error appears when BL is locked.
I'm trying the same but on a Z3 (messi XT1929-15). Booting TWRP goes fine, but for any reason I'm having bootloop after flashing Magisk v18, I think it could have to do with encripted data partition..
Could you finally install Magisk? If so, could you please share the steps you did?
Thanks!
Matiascx said:
Great that you could do it . Usually that error appears when BL is locked.
I'm trying the same but on a Z3 (messi XT1929-15). Booting TWRP goes fine, but for any reason I'm having bootloop after flashing Magisk v18, I think it could have to do with encripted data partition..
Could you finally install Magisk? If so, could you please share the steps you did?
Thanks!
Click to expand...
Click to collapse
If you made it to TWRP, you are almost there, you must have the magisk.zip downloaded to your phone, then you install it with install through TWRP. When its all done perform clear cache and delvik cache, and reboot. I only root every couple of years when I get a new phone, so I am not a wealth of knowledge, but I am a survivor. Only thing I ever perma bricked was a cheap tablet and a Sony SW3. You might want to be sure that you have no security locks on you phone, such as fingerprint, pin, etc.
I have a beckham Z3, so not the same version as you.
Damn.
My Moto Z3 doesn't qualify for bootloader unlock. That's a shame because my old Shamu qualified 2 days after I signed on with a contract. :/
I successfully rooted mine after updated to Pie, and flashed boot.img patched with Magisk
Shadow Death said:
Damn.
My Moto Z3 doesn't qualify for bootloader unlock. That's a shame because my old Shamu qualified 2 days after I signed on with a contract. :/
Click to expand...
Click to collapse
I want to root my moto z play without computer which application to use, please thanks
mingkee said:
I successfully rooted mine after updated to Pie, and flashed boot.img patched with Magisk
Click to expand...
Click to collapse
Moto Z3 Play LOST IMEI'S AND MAC WIFI NUMBERS;
and now ?:rolar os olhos:
Shadow Death said:
Damn.
My Moto Z3 doesn't qualify for bootloader unlock. That's a shame because my old Shamu qualified 2 days after I signed on with a contract. :/
Click to expand...
Click to collapse
I just went through this, over and over it kept telling me my phone wasn't eligible but I knew better. For me it was the spaces.
.Try Pasting it into notepad first, remove spaces, then copy and past it.
---------- Post added at 03:27 PM ---------- Previous post was at 03:22 PM ----------
Anyone know how to cover the Bootloader unlocked warning? On Z2-play you could flash a logo file. does that work on Z3?
thanks.
I'm having a problem rooting my Z3 Play with Magisk. My procedure:
1. unlocked the bootloader after getting the code from Motorola (success)
2. downloaded the firmware image from lolinet and extracted boot.img (success)
3. patched boot.img in Magisk Manager and got magisk_patched.img, then copied it to my iMac (success)
4. booted the phone to fastboot mode, ran "fastboot flash boot magisk_patched.img" and got this output (looks normal, not sure about the "is-logical:boot_a:not found" part):
(bootloader) is-logical:boot_a: not found
Sending 'boot_a' (24421 KB) OKAY [ 0.808s]
Writing 'boot_a' OKAY [ 0.713s]
Finished. Total time: 1.524s
5. rebooted phone, Magisk Manager says "Magisk is not installed". Phone otherwise behaves normally.
Any suggestions?
Mcdan333 said:
I'm having a problem rooting my Z3 Play with Magisk. My procedure:
1. unlocked the bootloader after getting the code from Motorola (success)
2. downloaded the firmware image from lolinet and extracted boot.img (success)
3. patched boot.img in Magisk Manager and got magisk_patched.img, then copied it to my iMac (success)
4. booted the phone to fastboot mode, ran "fastboot flash boot magisk_patched.img" and got this output (looks normal, not sure about the "is-logical:boot_a:not found" part):
(bootloader) is-logical:boot_a: not found
Sending 'boot_a' (24421 KB) OKAY [ 0.808s]
Writing 'boot_a' OKAY [ 0.713s]
Finished. Total time: 1.524s
5. rebooted phone, Magisk Manager says "Magisk is not installed". Phone otherwise behaves normally.
Any suggestions?
Click to expand...
Click to collapse
same here. any tips? I had root before, but a magisk/xposed update made me lose root status, and haven't been able to root it again ever since!
saaber.shoyeb said:
same here. any tips? I had root before, but a magisk/xposed update made me lose root status, and haven't been able to root it again ever since!
Click to expand...
Click to collapse
Hmm, that is interesting. Did you try going back to the previous version of Magisk that actually worked? Do you remember what version it was? Maybe I'll try that.
saaber.shoyeb said:
same here. any tips? I had root before, but a magisk/xposed update made me lose root status, and haven't been able to root it again ever since!
Click to expand...
Click to collapse
I think it's the A/B slot things. Possibly, you're installing on the wrong slot. Maybe "b" is active, when "a" was before?
kewlzter said:
I think it's the A/B slot things. Possibly, you're installing on the wrong slot. Maybe "b" is active, when "a" was before?
Click to expand...
Click to collapse
New information: magisk is actually installed, and magiskd is running as root, but something is wrong with the permissions. From an ADB shell,
beckham:/ $ ps -A|grep magisk
root 1060 1 19356 1480 0 0 S magiskd
beckham:/ $ magisk -c
20.3:MAGISK (20300)
beckham:/ $ magisk --list
su
resetprop
magiskhide
130|beckham:/ $ magisk su ls
Permission denied
13|beckham:/ $
Mcdan333 said:
New information: magisk is actually installed, and magiskd is running as root, but something is wrong with the permissions. From an ADB shell,
beckham:/ $ ps -A|grep magisk
root 1060 1 19356 1480 0 0 S magiskd
beckham:/ $ magisk -c
20.3:MAGISK (20300)
beckham:/ $ magisk --list
su
resetprop
magiskhide
130|beckham:/ $ magisk su ls
Permission denied
13|beckham:/ $
Click to expand...
Click to collapse
Problem solved! In the Magisk Manager app settings, I had storage set to use the SD card. When I switched it to internal storage, magisk works fine now!
kewlzter said:
I think it's the A/B slot things. Possibly, you're installing on the wrong slot. Maybe "b" is active, when "a" was before?
Click to expand...
Click to collapse
i tried flashing the A/B partitions copy zip from twrp, tried flashing magisk.zip (different versions), tried the boot.img (patched both from pc and twrp), magisk app & terminal show no root status.
Google Pay, however, insists that my phone is rooted, so it won't work on my device. Certain other apps still have root privileges!
Update: success flashing magisk 17.0 from twrp-3.3.1-v4-z3p-SEPT.img... but updated magisk from the manager right now (direct install), and hit reboot: phone says "factory reset..." and now waiting for it to come back up again...
Per https://topjohnwu.github.io/Magisk/install.html#magisk-in-recovery installing Magisk as recovery due to No RAMDISK on my Moto E6.
"If your device does not have ramdisk in boot images, Magisk has no choice but to be installed in the recovery partition.
Click to expand...
Click to collapse
The phone was successfully unlocked per Motorola Unlock Your Bootloader.
Magisk_Manager generated magisk_Patched Img. Recovery_Image was extracted on PC with WinRAR from Get Droid Tips, Moto E6 Stock Collection, current download matches my Moto E6 build#, PPB29.73-81. My model is XT2005-5. To avoid corruption, I used ADB, not MTP to transfer files. ADB pushed WinRAR Extracted recovery image, and ADB pulled magisk_Patched image.
However, the Execution of ADB Fastboot flash recovery was "Image not signed or corrupt" per the following log:
Code:
C:\adb>fastboot flash recovery C:\adb\magisk_patched_k54ii.img
target reported max download size of 535822336 bytes
sending 'recovery' (16341 KB)...
OKAY [ 0.533s]
writing 'recovery'...
(bootloader) Image not signed or corrupt
OKAY [ 0.285s]
finished. total time: 0.820s
Why am I getting a corrupt image? Does anyone recommend a better Stock Recovery-Image source, perhaps where I can confirm the hashtag of the download and image extraction? TWRP does not seem to be an option for MotoE6/ No-RAMdisk devices.
I don't recommend images from Get Droid Tips, Moto E6 Stock Collection while they have the build numbers for the downloads, they did not show that there are various model numbers for the Moto E6. My guess is this is the likely cause of the "corrupt" image message from my flash recovery attempt.
I will use a stock image from https://mirrors.lolinet.com/firmware/moto/surfna/official/
kem827 said:
Per https://topjohnwu.github.io/Magisk/install.html#magisk-in-recovery installing Magisk as recovery due to No RAMDISK on my Moto E6.
The phone was successfully unlocked per Motorola Unlock Your Bootloader.
Magisk_Manager generated magisk_Patched Img. Recovery_Image was extracted on PC with WinRAR from Get Droid Tips, Moto E6 Stock Collection, current download matches my Moto E6 build#, PPB29.73-81. My model is XT2005-5. To avoid corruption, I used ADB, not MTP to transfer files. ADB pushed WinRAR Extracted recovery image, and ADB pulled magisk_Patched image.
However, the Execution of ADB Fastboot flash recovery was "Image not signed or corrupt" per the following log:
Code:
C:\adb>fastboot flash recovery C:\adb\magisk_patched_k54ii.img
target reported max download size of 535822336 bytes
sending 'recovery' (16341 KB)...
OKAY [ 0.533s]
writing 'recovery'...
(bootloader) Image not signed or corrupt
OKAY [ 0.285s]
finished. total time: 0.820s
Why am I getting a corrupt image? Does anyone recommend a better Stock Recovery-Image source, perhaps where I can confirm the hashtag of the download and image extraction? TWRP does not seem to be an option for MotoE6/ No-RAMdisk devices.
Click to expand...
Click to collapse
I don't know why this occurs, but it's "normal". What the installer guide doesn't tell you is:
- when you flash the patched recovery, you can't then use fastboot to get to recovery mode (well, you can...but it doesn't work). Instead, you MUST use the fastboot navigation keys (vol up/down and power) to go to recovery. When you do that, you'll boot the whole system into a rooted state (you won't see a recovery menu of any kind).
- at least on my phone, when you do this you are rooted for exactly one session. Next time you boot, the recovery image you flashed will be replaced with the "factory" original one. There is a work-around for this, but that's the behavior.
- if you are trying to install EdXposed, I don't believe you can do so just with the recovery-image method. You have to install the whole of Magisk (many MB) and I haven't figured out how to do this yet. (many, many false starts...)
dav0dav0 said:
I don't know why this occurs, but it's "normal". What the installer guide doesn't tell you is:
- when you flash the patched recovery, you can't then use fastboot to get to recovery mode (well, you can...but it doesn't work). Instead, you MUST use the fastboot navigation keys (vol up/down and power) to go to recovery. When you do that, you'll boot the whole system into a rooted state (you won't see a recovery menu of any kind).
- at least on my phone, when you do this you are rooted for exactly one session. Next time you boot, the recovery image you flashed will be replaced with the "factory" original one. There is a work-around for this, but that's the behavior.
- if you are trying to install EdXposed, I don't believe you can do so just with the recovery-image method. You have to install the whole of Magisk (many MB) and I haven't figured out how to do this yet. (many, many false starts...)
Click to expand...
Click to collapse
Ok, Thanks. Looks like my attempt to flash ( from Get Droid Tips, Moto E6 Stock Collection, ) was not the correct Moto E6 model. Phone boots still to the factory, and not rooted, but has a "bad key" error.. Boot to Recovery just responds "no command"
I did find now download the correct image from https://mirrors.lolinet.com/firmware/moto/surfna/official/ (matched by the Correct Moto E6 XT2005 model and build) but now ADB does not want to push or pull files. Unsure how to proceed.
I got my "stock ROM" by using Moto's "Rescue and Smart Assistant" tool -- it interrogates the phone, and lets you download the correct ZIP file automatically. Obviously, you do'nt want to actually install the ZIP -- you just want it downloaded. It puts the ZIP into a location it discloses, so you can find it. ;-)
Was ADB pushing/pulling files before? That's really weird if it did...but in any case, when the phone is booted to the normal system you can just copy the files over to the phone via the standard USB file sharing connection. If that's not working, you may need to reainstall the USB drivers on your PC. Don't forget to enable USB file sharing on the phone!
dav0dav0 said:
I got my "stock ROM" by using Moto's "Rescue and Smart Assistant" tool -- it interrogates the phone, and lets you download the correct ZIP file automatically. Obviously, you do'nt want to actually install the ZIP -- you just want it downloaded. It puts the ZIP into a location it discloses, so you can find it. ;-)
Was ADB pushing/pulling files before? That's really weird if it did...but in any case, when the phone is booted to the normal system you can just copy the files over to the phone via the standard USB file sharing connection. If that's not working, you may need to reainstall the USB drivers on your PC. Don't forget to enable USB file sharing on the phone!
Click to expand...
Click to collapse
ADB was pushing and pulling. I found the XDA posting that might help solve this official-tool-windows-adb-fastboot-and-drivers-15-seconds-ADB-installer-v1-4-3.2588979/. I'll update my drivers per the video found here, and try again.
While deleting some old Samsung Drivers was probably necessary, the error remained. Searched and found that the directory "/SD Card" is incorrect, even though topjohnwu.github failed to explain that "SD Card" is not the same folder as seen in the windows USB Link. It is the Internal SD Card which the ADB uses, which I find on windows at "Internal Shared Storage/Download". Once I moved the file on my phone to that folder , I was able to Pull the file using the command "ADB Pull \Sdcard\download.."
Reflashed my patched majesk recovery image. But, I can not boot recovery. Fastboot gives me a "no command" message. Screen always displays "bad key" on any boot. Holding power and tapping upkey does nothing in attempt to Boot to Recovery.
kem827 said:
Reflashed my patched majesk recovery image. But, I can not boot recovery. Fastboot gives me a "no command" message. Screen always displays "bad key" on any boot. Holding power and tapping upkey does nothing in attempt to Boot to Recovery.
Click to expand...
Click to collapse
I believe that the "bad key" message will occur whenever you have an unlocked bootloader. There is a way to hide it (search within XDA forums, you'll find several posts), but I leave it as is so I get a positive indicator of where I really am.
You say "Fastboot gives me a 'no command' message": I think what you mean is "when I go from Fastboot to Recovery mode, a get a 'no command' message." -- because the only time I've ever seen that message is under the Android-robot icon, which indicates "you're in stock recovery mode." When you are there, you should be able to get to the command menu by clicking power-on and volume-up simultaneously. If you don't, do a power cycle and try again.
You'll know you've booted the root mode when you don't see the "bad key" message, but instead see something like "Unsigned or corrupt image" when you go into recovery mode (and you won't see the normal Android icon or "no command" message).
In my experience with this phone, if you are in bootloader and use your PC to get you to recovery mode (fastboot reboot recovery from the command line), it may not work. The only way to reliably get into real recovery mode is to do a power cycle on the phone, go into fastboot, and then use the phone's buttons to get to recovery.
Also note that if all that you have done is the Magisk modify-recovery-image strategy, you get one (and only one) attempt to run as rooted. Any time you go thru a power-on reset of the phone, your modded-recovery image will be erased and replaced with the factory one.
In my various runs, I've determined that once you've achieved root access you can soft-reboot the phone and remain in root. Anything you install there will survive soft-reboots. But if you do a hard reboot, next time you go into root you may have to reinstall EdXposed and supporting libraries, and reactivate stuff for everything to work.
Sadly, the Xposed module I was doing all this for doesn't seem to work under EdXposed, even though it's supposed to. So it was a days-long wild goose chase.
dav0dav0 said:
I believe that the "bad key" message will occur whenever you have an unlocked bootloader. There is a way to hide it (search within XDA forums, you'll find several posts), but I leave it as is so I get a positive indicator of where I really am.
You say "Fastboot gives me a 'no command' message": I think what you mean is "when I go from Fastboot to Recovery mode, a get a 'no command' message." -- because the only time I've ever seen that message is under the Android-robot icon, which indicates "you're in stock recovery mode." When you are there, you should be able to get to the command menu by clicking power-on and volume-up simultaneously. If you don't, do a power cycle and try again.
You'll know you've booted the root mode when you don't see the "bad key" message, but instead see something like "Unsigned or corrupt image" when you go into recovery mode (and you won't see the normal Android icon or "no command" message).
In my experience with this phone, if you are in bootloader and use your PC to get you to recovery mode (fastboot reboot recovery from the command line), it may not work. The only way to reliably get into real recovery mode is to do a power cycle on the phone, go into fastboot, and then use the phone's buttons to get to recovery.
Also note that if all that you have done is the Magisk modify-recovery-image strategy, you get one (and only one) attempt to run as rooted. Any time you go thru a power-on reset of the phone, your modded-recovery image will be erased and replaced with the factory one.
In my various runs, I've determined that once you've achieved root access you can soft-reboot the phone and remain in root. Anything you install there will survive soft-reboots. But if you do a hard reboot, next time you go into root you may have to reinstall EdXposed and supporting libraries, and reactivate stuff for everything to work.
Sadly, the Xposed module I was doing all this for doesn't seem to work under EdXposed, even though it's supposed to. So it was a days-long wild goose chase.
Click to expand...
Click to collapse
Thanks for you help. I finally got a correct flash and boot to a rooted recovery. Looks like Top Johns' Magisk Instruction Page needs some corrections: Like explaining that "SDCard" shows as [internal storage] on the PC and that the external Storage is the [SD Card] directory. He fails to tell to rename the magisk_patched file to "recovery. img" before flashing it. (An obvious error but easy to overlook when you are following an unfamiliar command syntax) . The "bad key" message and "corrupt signature" message explanation is useful info too. He fails to let you know how to even check for a successful root
kem827 said:
Thanks for you help. I finally got a correct flash and boot to a rooted recovery. Looks like Top Johns' Magisk Instruction Page needs some corrections: Like explaining that "SDCard" shows as [internal storage] on the PC and that the external Storage is the [SD Card] directory. He fails to tell to rename the magisk_patched file to "recovery. img" before flashing it. (An obvious error but easy to overlook when you are following an unfamiliar command syntax) . The "bad key" message and "corrupt signature" message explanation is useful info too. He fails to let you know how to even check for a successful root
Click to expand...
Click to collapse
And to add to the fun...Magisk Manager has/had a bug where it will tell you that your phone *doesn't* have a RAMdisk but it actually does....sometimes. So you might try to do the boot.img patch instead of the recovery.img one--that would give you a permanent root, rather than a transitory one. I didn't bother to check that out, as the whole reason I was rooting was to use an Xposed module that doesn't seem to work.
Let me know if you try that strategy out and it works...
kem827 said:
Thanks for you help. I finally got a correct flash and boot to a rooted recovery. Looks like Top Johns' Magisk Instruction Page needs some corrections: Like explaining that "SDCard" shows as [internal storage] on the PC and that the external Storage is the [SD Card] directory. He fails to tell to rename the magisk_patched file to "recovery. img" before flashing it. (An obvious error but easy to overlook when you are following an unfamiliar command syntax) . The "bad key" message and "corrupt signature" message explanation is useful info too. He fails to let you know how to even check for a successful root
Click to expand...
Click to collapse
The instructions assume that you are somewhat familiar with Android, adb and fastboot. There's plenty of info and guides on that around the web, so it would be redundant for John to add that too (and the instructions would become way too long).
There are also many devices specific things that he's never gonna be able to cover. The fractured nature of Android is just too much for that...
If you have suggestions though, you can always open a PR on GitHub with your proposed changes and clarifications.
dav0dav0 said:
Magisk Manager has/had a bug where it will tell you that your phone *doesn't* have a RAMdisk but it actually does....sometimes
Click to expand...
Click to collapse
That's not a bug with Magisk, but yet another issue with Android's fractured ecosystem. John actually covers that in his documentation. Check this page, and in particular the last paragraph:
https://topjohnwu.github.io/Magisk/boot.html