[Need help]Rooting moto g4 plus in stock june security patch level. - Moto G4 Plus Questions & Answers

I want to root my moto g4 plus(unlocked bootloader and twrp flashed). Anyone knows how to root moto g4 plus. And i also want to know that how to increase battery backup after rooting(is it a myth).

@ADITYA_KUMAR this has been asked and explained many times and once more.
- Take Backup
- get Elemental-X kernel (see development section and download correct one )
- flash with TWRP
- get latest SuperSU : SuperSU
- now you can follow same guide of MM from step 5 : Guide
Don't Forget to Take Backup..

____Mdd said:
@ADITYA_KUMAR this has been asked and explained many times and once more.
- Take Backup
- get Elemental-X kernel (see development section and download correct one )
- flash with TWRP
- get latest SuperSU : SuperSU
- now you can follow same guide of MM from step 5 : Guide
Don't Forget to Take Backup..
Click to expand...
Click to collapse
How to take backup and restore it. I flashed twrp image. Before rebooting twrp works fine. But after rebooting i am not able to open twrp. I think it got removed.

ADITYA_KUMAR said:
How to take backup and restore it. I flashed twrp image. Before rebooting twrp works fine. But after rebooting i am not able to open twrp. I think it got removed.
Click to expand...
Click to collapse
What happens if you select Recovery from Bootloader ? Is it booting in Stock Recovery ?
In TWRP go to Backup and make backup of /system /data /boot.
If anything bad happens while flashing/Rooting then you can restore it.

The first time, you must open TWRP from the bootloader directly or the recovery gets overwritten.
For rooting, you can flash Magisk instead of flashing SuperSu. Other steps remain exactly the same.

____Mdd said:
What happens if you select Recovery from Bootloader ? Is it booting in Stock Recovery ?
In TWRP go to Backup and make backup of /system /data /boot.
If anything bad happens while flashing/Rooting then you can restore it.
Click to expand...
Click to collapse
When i booted into recovery mode. It shows no command.

ADITYA_KUMAR said:
When i booted into recovery mode. It shows no command.
Click to expand...
Click to collapse
That's stock Recovery, you need to flash TWRP again.

____Mdd said:
That's stock Recovery, you need to flash TWRP again.
Click to expand...
Click to collapse
I flashed twrp 2 times. But every time i restarted my phone it removed automatically.

ADITYA_KUMAR said:
I flashed twrp 2 times. But every time i restarted my phone it removed automatically.
Click to expand...
Click to collapse
Did you flashed TWRP and with the next command booted immediately into twrp?

strongst said:
Did you flashed TWRP and with the next command booted immediately into twrp?
Click to expand...
Click to collapse
Commands used:
Fastboot flash recovery name.img
It gives output as image not signed or corrupt.
After that i typed command fastboot reboot bootloader.
I open recovery mode. It opens twrp. But after i restart my phone. It automatically removes the twrp.

ADITYA_KUMAR said:
Commands used:
Fastboot flash recovery name.img
It gives output as image not signed or corrupt.
After that i typed command fastboot reboot bootloader.
I open recovery mode. It opens twrp. But after i restart my phone. It automatically removes the twrp.
Click to expand...
Click to collapse
This is your problem. You must open recovery from the bootloader menu the very first time. Or TWRP is overwritten with stock recovery. I don't know why that is. But that is how it is...

baunthiyal said:
This is your problem. You must open recovery from the bootloader menu the very first time. Or TWRP is overwritten with stock recovery. I don't know why that is. But that is how it is...
Click to expand...
Click to collapse
It means that i don't have to run the fasboot reboot bootloader command and after finishing the flashing i have to open the recovery mode directly?

Yes
ADITYA_KUMAR said:
It means that i don't have to run the fasboot reboot bootloader command and after finishing the flashing i have to open the recovery mode directly?
Click to expand...
Click to collapse
Reboot into bootloader.
Flash recovery - fastboot flash recovery twrp-xxx.img
Open recovery from bootloader menu (by using the volume and power buttons)
From there you can reboot and your recovery will work normally after this, most probably.

baunthiyal said:
Reboot into bootloader.
Flash recovery - fastboot flash recovery twrp-xxx.img
Open recovery from bootloader menu (by using the volume and power buttons)
From there you can reboot and your recovery will work normally after this, most probably.
Click to expand...
Click to collapse
I need to root my stock nougat( june version).What should i do after that.

I'll tell you what I did.
1. Flash Elemental Ex kernel. https://forum.xda-developers.com/moto-g4-plus/development/kernel-elementalx-g4-0-01-t3424836
2. Flash Magisk. https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

baunthiyal said:
Reboot into bootloader.
Flash recovery - fastboot flash recovery twrp-xxx.img
Open recovery from bootloader menu (by using the volume and power buttons)
From there you can reboot and your recovery will work normally after this, most probably.
Click to expand...
Click to collapse
It didn't work. I flashed twrp. I opened recovery mode by using volume down to scroll to recovery mode and power button to select it. I booted in twrp mode and rebooted system from there. After that i power off my phone and tried to open twrp again, but it is showing no commands only. I didn't boot into twrp again.

ADITYA_KUMAR said:
It didn't work. I flashed twrp. I opened recovery mode by using volume down to scroll to recovery mode and power button to select it. I booted in twrp mode and rebooted system from there. After that i power off my phone and tried to open twrp again, but it is showing no commands only. I didn't boot into twrp again.
Click to expand...
Click to collapse
Try commands,
fastboot oem fb_mode_set
fastboot flash recovery name.img
Fastboot oem fb_mode_clear
Then directly boot into recovery,
Then again boot into recovery through twrp itself (there is option for it in reboot) or try anything.

Thank you guys i successfully rooted my moto g4 plus(xt1643)

Related

[Recovery][LG-H901] Updated TWRP 3.0.0.0 (Still unofficial)

Here is your unofficial TWRP
Please report all issues on my github so I can track them
Download the update!
Merged in TWRP 3.0.0.0
Fixed the time issue Bug in LG's kernel (however daylight savings time does not work when set on/off in recovery)
3.0.0.0
https://www.androidfilehost.com/?fid=24407100847293244
md5: f7c84c5328fb073a1a57fb75dc70191a
2.8.7.1
https://www.androidfilehost.com/?fid=24269982086988199
md5: 736456843ecaa2b65fbbb749008e1ff3
2.8.7.0
https://www.androidfilehost.com/?fid=24052804347853160
md5: f6d38b88b51d8cc39635534b559f719f
This requires you to have an unlocked bootloader which will wipe data if you have not unlocked already.
Recovery does take some time to boot It has taken up to 45 seconds for the TWRP curtain to show for me
To get to bootloader without adb:
Turn device off
Hold Vol Down
Insert USB plug while plugged into your PC
Hold Vol Down until fastboot pops up
Instructions:
If you have issues with adb or fastboot follow this post: HERE
If bootloader is unlocked:
reboot into bootloader
Code:
adb reboot bootloader
fastboot flash recovery twrp-2.8.7.1-h901.img
fastboot boot twrp-2.8.7.1-h901.img
If your bootloader is locked:
enabled developer options
in developer options "Enable OEM unlock"
reboot into bootloader
Code:
adb reboot bootloader
fastboot oem unlock
fastboot reboot-bootloader
fastboot flash recovery twrp-2.8.7.1-h901.img
fastboot boot twrp-2.8.7.1-h901.img
Known issues:
You get to see that it's not truly 2 displays
Time is not saved from Android to Recovery
Display does not turn off when it times out
TheJesus said:
I've messaged @KAsp3rd to include it in his OP.
ONLY PERFORM IF YOU HAVE ALREADY FLASHED TWRP AND CREATED AN EXTERNAL BACKUP!!!
1. Hold Volume Down
2. Hold Power button until you see LG screen
3. Release Power button and then rehold Power button
4. Follow on-screen prompts to perform a Factory Reset (If you have TWRP, this should not actually factory reset, but there has been one case of it doing it, that's why I suggest keeping a copy of your backup on your computer), may take a minute to boot into TWRP
5. Enjoy TWRP without fastboot
EDIT: On hold until verified on latest TWRP/more devices.
Click to expand...
Click to collapse
Device tree is here https://github.com/KAsp3rd/android_device_lge_h901
Compiled using omnirom 5.1 with 6.0 bootable/recovery
Get superSU from chainfire http://download.chainfire.eu/supersu
Thanks to @TheJesus @shabbypenguin @Dees_Troy @_that @bigbiff @helicopter88 @savoca @autoprime and anyone I've forgotten.
I'm getting the android with his guts (triangle exclamation) open when I do a
{adb reboot recovery}
Am I doing something wrong or have done something wrong?
My bootloader is UNLOCKED.
geeserver said:
I'm getting the android with his guts (triangle exclamation) open when I do a
{adb reboot recovery}
Am I doing something wrong or have done something wrong?
My bootloader is UNLOCKED.
Click to expand...
Click to collapse
I get the same thing
geeserver said:
I'm getting the android with his guts (triangle exclamation) open when I do a
{adb reboot recovery}
Am I doing something wrong or have done something wrong?
My bootloader is UNLOCKED.
Click to expand...
Click to collapse
Did you reboot to bootloader and fastboot flash recovery "img"?
re-read the op
adb reboot bootloader
then do the fastboot commands
KAsp3rd said:
Did you reboot to bootloader and fastboot flash recovery "img"?
Click to expand...
Click to collapse
Here are the commands
-In OS, Android with ADB Debugger on with UNLOCKED bootloader checked
{adb reboot bootloader}
-Welcome to Fastboot Mode:
{fastboot flash recovery twrp-2.8.7.0-h901.img}
{fastboot reboot}
-Phone back in Android
{adb reboot recovery}
NO TWRP
Right now I'm using stock.img files to restore everything and retrying.
I'm currently using Minimal ADB and Fastboot [8-28-15] to push commands.
geeserver said:
Here are the commands
-In OS, Android with ADB Debugger on with UNLOCKED bootloader checked
{adb reboot bootloader}
-Welcome to Fastboot Mode:
{fastboot flash recovery twrp-2.8.7.0-h901.img}
{fastboot reboot}
-Phone back in Android
{adb reboot recovery}
NO TWRP
Right now I'm using stock.img files to restore everything and retrying.
Click to expand...
Click to collapse
Flashing stock.img myself to make sure
same issues here also
Mine worked first try... I personally change the recovery img file's name to recovery.img, but other than that I use the same commands.
yeah, mine has the android open door with "no command" under it
KAsp3rd said:
Flashing stock.img myself to make sure
Click to expand...
Click to collapse
I can't push stock.img from fastboot. Reading from mickeyinid post in that thread, "Make sure you have the newest fastboot binary or it won't flash the system.img" It has a cap at 53MB but the filesize for system.img is 4.2GB.
android has a file /system/etc/install-recovery.sh when you boot up it overwrites teh recovery with stock, chances are its doing that.
boot into fastboot, flash it, then use
fastboot boot twrp-2.8.7.0-h901.img
that will drop you into recovery (it takes like 30 seconds) form there you can do a syou wish, then click on reboot system and it will remove that file so youll have twrp always.
shabbypenguin said:
android has a file /system/etc/install-recovery.sh when you boot up it overwrites teh recovery with stock, chances are its doing that.
boot into fastboot, flash it, then use
fastboot boot twrp-2.8.7.0-h901.img
that will drop you into recovery (it takes like 30 seconds) form there you can do a syou wish, then click on reboot system and it will remove that file so youll have twrp always.
Click to expand...
Click to collapse
Didn't catch that one shabby thanks for pointing it out. I'll update op
this worked. Thanks!!
and thank you so much @KAsp3rd for this recovery
shabbypenguin said:
android has a file /system/etc/install-recovery.sh when you boot up it overwrites teh recovery with stock, chances are its doing that.
boot into fastboot, flash it, then use
fastboot boot twrp-2.8.7.0-h901.img
that will drop you into recovery (it takes like 30 seconds) form there you can do a syou wish, then click on reboot system and it will remove that file so youll have twrp always.
Click to expand...
Click to collapse
Once I put in the fastboot boot twrp-2.8.7.0-h901.img command, I heard the computer disconnect and it took more like a minute or a minute in a half but it worked. Then I flashed SuperSU and now I'm ROOTED!!! Thanks!!!!
All rooted. Thank you @KAsp3rd!!
Sent from my LG-H901 using Xparent Skyblue Tapatalk 2
that worked. TWRP installed and rooted. FYI it does take a little time to boot into TWRP with the fastboot command and normal also.
Thanks for the help all
shabbypenguin said:
android has a file /system/etc/install-recovery.sh when you boot up it overwrites teh recovery with stock, chances are its doing that.
boot into fastboot, flash it, then use
fastboot boot twrp-2.8.7.0-h901.img
that will drop you into recovery (it takes like 30 seconds) form there you can do a syou wish, then click on reboot system and it will remove that file so youll have twrp always.
Click to expand...
Click to collapse
Xposed
Can you flash xposed in this recovery?
huynh727 said:
Can you flash xposed in this recovery?
Click to expand...
Click to collapse
Yes. I have it. Use the arm64 for Lollipop version. It does however break the second screen occasionally (it FC's when I get/make a phone call, but that's it). BUT it has RootCloak which lets me use Android Pay while rooted
Success! The whole process was very easy and worked the first time! Thanks for posting this!

Cannot flash TWRP. Stock recovery is persistent

Hi,
In order to update my phone to oxygenOS 2.2. I flashed oxygenOS 2.1.1 full rom and installed the OTA update for 2.2. Because of this the phone switched back to stock recovery. So I tried to install TWRP recovery through fastboot. The installation was successful but after reboot, it looks like the phone is keep switching back to stock recovery. I have tried this many times but same result everytime.
Note1: I did turned on the USB debugging before this.
Note2: Bootloader is unlocked.
Any help would be great. Thanks in advance!!
When TWRP asks you to modify system partition give it permission to do so at the start of booting to recovery
Akhil701 said:
When TWRP asks you to modify system partition give it permission to do so at the start of booting to recovery
Click to expand...
Click to collapse
The problem is that I dont see TWRP even once after flashing it. After flashing when I reboot to recovery, it directly shows me default recovery. When I said its switching back to stock recovery, because the flashing of twrp was successful, I am assuming that it is switching back to stock recovery.
Dreckk said:
The problem is that I dont see TWRP even once after flashing it. After flashing when I reboot to recovery, it directly shows me default recovery. When I said its switching back to stock recovery, because the flashing of twrp was successful, I am assuming that it is switching back to stock recovery.
Click to expand...
Click to collapse
I also experienced this the first time. But I just ran fastboot flash recover openrecover-twrp-2.8.7.0.img one more time and then rebooted the phone and pressed volume down until it entered TWRP.
pitrus- said:
I also experienced this the first time. But I just ran fastboot flash recover openrecover-twrp-2.8.7.0.img one more time and then rebooted the phone and pressed volume down until it entered TWRP.
Click to expand...
Click to collapse
Did that many times, but it keeps getting entering in the default recovery.
What happens when you boot twrp with fastboot instead of flashing?
Also probably shouldn't flash an ota 2 versions different than the full. If that was the full version you already had, should have flashed 2.1.2 ota then the 2.2.0 ota.
I'm having the same issue. I was able to boot into TWRP once from Fastboot, flashed SuperSU it said it was successful, then I rebooted. Root was not available, and stock recovery was back.
Chris_el said:
I'm having the same issue. I was able to boot into TWRP once from Fastboot, flashed SuperSU it said it was successful, then I rebooted. Root was not available, and stock recovery was back.
Click to expand...
Click to collapse
Don't know if will work... but boot to twrp from fastboot then flash twrp from within twrp.
khaos64 said:
Don't know if will work... but boot to twrp from fastboot then flash twrp from within twrp.
Click to expand...
Click to collapse
Hmm i'll give that a shot when I get home from work. Thanks.
Chris_el said:
Hmm i'll give that a shot when I get home from work. Thanks.
Click to expand...
Click to collapse
fastboot boot /path/to/twrp
then Swipe to allow modifications!
Yash98 said:
fastboot boot /path/to/twrp
then Swipe to allow modifications!
Click to expand...
Click to collapse
I get the error "FAILED remote: dtb not found'

Yoga Tab 2 (830,1050,1380) - TWRP 2.8.7.0(6)

'what? lol'
1050F - All Good!
Thanks!
YamYam
ionioni said:
you tried to flash a partition from dnx mode
Click to expand...
Click to collapse
Doh... Been so confused lately....
workdowg said:
Doh...
Click to expand...
Click to collapse
maybe you should put that SMT AoL on a break... the YT2 one is almost forgotten.
ionioni said:
maybe you should put that SMT AoL on a break... the YT2 one is almost forgotten.
Click to expand...
Click to collapse
Probably... I had 3 or 4 more people interested... I posted the working MicroSD install files... But I do feel lonely...
Thanks brother, I will test in upcoming Saturday and will revert back.
a beginner's guide....tnx[emoji1] [emoji1]
@workdowg now that we have a permanent recovery does this mean we can start building cm and kernels? I am almost setup with my machine (just configuring Ubuntu). From what I have read on lenovo website is they messed something up with the charging and battery life in the last update
pug1 said:
@workdowg now that we have a permanent recovery does this mean we can start building cm and kernels? I am almost setup with my machine (just configuring Ubuntu). From what I have read on lenovo website is they messed something up with the charging and battery life in the last update
Click to expand...
Click to collapse
Since the bootloader is unlocked you may do what you wish. Permanent TWRP will make the job easier. Have at it!
As far as the current ROM from Lenovo.... It is really stable for me. I froze the usual suspects and I get about 3-4 days with 8-9hrs SOT. I don't game on this tablet and keep the brightness down to about 1/3.
updated: added compilation from 6.0 sources - TWRP 2.8.7.0(6)
ionioni said:
updated: added compilation from 6.0 sources - TWRP 2.8.7.6
Click to expand...
Click to collapse
Pretty... all good on the 1050F.
1050F (Latest LP OTA): I am able to flash it (bl is unlocked), but cannot access it after that. Stock recovery is still present... am I missing sth??
dtrail1 said:
1050F (Latest LP OTA): I am able to flash it (bl is unlocked), but cannot access it after that. Stock recovery is still present... am I missing sth??
Click to expand...
Click to collapse
it works in the 'live' mode? from dnx (PwrOn with both Vol pressed, screen shows 'fastboot starting...' message):
fastboot flash osloader bootx64.efi
fastboot boot twrp-1050f-b.img
you should also try to boot in the recovery right AFTER you flash it and if it goes twrp means that recovery from boot is still active on your build (and will write the recovery partition with a fresh image that he builds from the boot partition on each normal android start)
what is the OTA you're on?
ionioni said:
it works in the 'live' mode? from dnx (PwrOn with both Vol pressed, screen shows 'fastboot starting...' message):
fastboot flash osloader bootx64.efi
fastboot boot twrp-1050f-b.img
you should also try to boot in the recovery right AFTER you flash it and if it goes twrp means that recovery from boot is still active on your build (and will write the recovery partition with a fresh image that he builds from the boot partition on each normal android start)
Click to expand...
Click to collapse
Already figured it, but thx!! I forgot to FIRST boot it from DNX mode once, and then flash it permanently from fb mode. thx
I have followed each steps mentioned to flash perm. twrp recovery on my YOGA Tablet 2-830LC lollipop, unlocked bootloader; the process of flashing completes successfully yet I am unable to enter into recovery... When ever I try to enter into recovery it simply boots up normally... I have tried entering recovery by both hardware and software modes, but it fails... Kindly help me out of this mess...
Thank you
QuazIqbal said:
I have followed each steps mentioned to flash perm. twrp recovery on my YOGA Tablet 2-830LC lollipop, unlocked bootloader; the process of flashing completes successfully yet I am unable to enter into recovery... When ever I try to enter into recovery it simply boots up normally... I have tried entering recovery by both hardware and software modes, but it fails... Kindly help me out of this mess...
Thank you
Click to expand...
Click to collapse
while i don't know 100% whether it is working or not on your model and since those who download the files don't give their feedback...
try rebooting in recovery, when in normal android, send a adb reboot recovery or boot in fastboot mode and chose the RECOVERY as target with Volkeys and activate with Power button
check also that you flashed the correct img file (you did unzipped the file before flashing no? ) fastboot flash recovery twrp....img
ionioni said:
while i don't know 100% whether it is working or not on your model and since those who download the files don't give their feedback...
try rebooting in recovery, when in normal android, send a adb reboot recovery or boot in fastboot mode and chose the RECOVERY as target with Volkeys and activate with Power button
check also that you flashed the correct img file (you did unzipped the file before flashing no? ) fastboot flash recovery twrp....img
Click to expand...
Click to collapse
I tried all the ways including 'adb reboot recovery and also tried to enter recovery through droidboot but each time it simply rebooted without going into recovery.... I also tried the temp recovery, by these commands "fastboot flash osloader bootx64.efi" & "fastboot boot twrp-830f-b.img" in this case also it simply rebooted in to android os.
P. S. I am able to enter twrp recovery through social design recovery.
any 830 owner can confirm if it is working or not on his device?
QuazIqbal said:
I tried all the ways including 'adb reboot recovery and also tried to enter recovery through droidboot but each time it simply rebooted without going into recovery.... I also tried the temp recovery, by these commands "fastboot flash osloader bootx64.efi" & "fastboot boot twrp-830f-b.img" in this case also it simply rebooted in to android os.
P. S. I am able to enter twrp recovery through social design recovery.
Click to expand...
Click to collapse
1. when you are entering the above two commands are you in DNX mode? ('fastboot starting' on screen)
2. when you upgraded to Lollipop did you used the OTA update process or you just flashed a stock Lollipop rom?
3. boot to your normal Android OS and open Contacts and in the search contacts box enter ####0000# it will open a VersionInfo window, tell me what it says under BIOS version line
by these commands "fastboot flash osloader bootx64.efi" & "fastboot boot twrp-830f-b.img" in this case also it simply rebooted in to android os.
Click to expand...
Click to collapse
4. right after you entered the commands it rebooted (ie you heard the tab buzzing as if you power on from off state) or just continued and booted t Android?

How to flash TWRP and Root Moto X Style on Marshmallow

I am using moto x style and unlocked bootloader with 'Windroid Universal Android Toolkit' v2.5 but cannot flash TWRP and root this apl. Today I tried flash TWRP and then root but after showing 'Congratulation' pop up,my phone stucked on 'No command' page. I tried twice and same result. Later i check there is either no TWRP or root by SuperSU. And i see youtube video and and read many XDA forum and comments and most of the users says the phone stuck on M logo page when reboot after the root process. And all says its a issue with Marshmallow. And most of the xda posts and youtube video are made during 5.1.1 so there is no problem in that video during flash TWRP and root. So i need a seamless process to flash TWRP and root on Marshmallow so that it doesnot stuck on M logo. And I dont want to downgrade to L for root. And unluckily if it stuck M logo thwn what to do to go back to home screen?Thank you.
http://forum.xda-developers.com/moto-x-style/general/guide-how-to-root-pure-style-t3503958
Look in my sig...
It's in my signature... There are multiple links to what your looking for and other threads, if you are on computer they should be immediately below the message, if you're in the XDA app you have to look in the user profile (don't think it's possible in Tapatalk though).
http://forum.xda-developers.com/moto-x-style/general/guide-how-to-root-pure-style-t3503958
acejavelin said:
It's in my signature... There are multiple links to what your looking for and other threads, if you are on computer they should be immediately below the message, if you're in the XDA app you have to look in the user profile (don't think it's possible in Tapatalk though).
http://forum.xda-developers.com/moto-x-style/general/guide-how-to-root-pure-style-t3503958
Click to expand...
Click to collapse
My build no is 24.49-18-4. So is this process suitable for this build no? And still i dont flash TWRP. I tried with "Windroid Universal Android Toolkit app" to flash TWRP. though it showed a 'Successful' pop up but it didn't. Can I go with any old process to flash TWRP or u have a new process?
Atanu Mukherjee said:
My build no is 24.49-18-4. So is this process suitable for this build no? And still i dont flash TWRP. I tried with "Windroid Universal Android Toolkit app" to flash TWRP. though it showed a 'Successful' pop up but it didn't. Can I go with any old process to flash TWRP or u have a new process?
Click to expand...
Click to collapse
Step 1 - Stop using toolkits! They rarely work right on modern Android devices. With the Moto the only safe, reliable way to root is manually.
I don't know what the 'old way' is to flash TWRP your referring to here... I recommend one time booting twrp with "fastboot boot twrp.img" command (replace twrp.img with your actual twrp image file) then perform a backup to the SD card or USB OTG device and put it away for safe keeping. Then flash twrp either with twrp you have booted, or manually with "fastboot flash recovery twrp.img"
The rooting method I linked before is valid for all Marshmallow builds, if you have Lollipop or Nougat you need to find a different method.
acejavelin said:
Step 1 - Stop using toolkits! They rarely work right on modern Android devices. With the Moto the only safe, reliable way to root is manually.
I don't know what the 'old way' is to flash TWRP your referring to here... I recommend one time booting twrp with "fastboot boot twrp.img" command (replace twrp.img with your actual twrp image file) then perform a backup to the SD card or USB OTG device and put it away for safe keeping. Then flash twrp either with twrp you have booted, or manually with "fastboot flash recovery twrp.img"
The rooting method I linked before is valid for all Marshmallow builds, if you have Lollipop or Nougat you need to find a different method.
Click to expand...
Click to collapse
On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type:
adb reboot bootloader
You should now be in fastboot mode.
Download the correct image file and copy the file into the same folder as your adb and fastboot binaries. Rename the image to twrp.img and type:
fastboot flash recovery twrp.img
fastboot reboot
Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
I am saying about this official method which is on twrp.me site. And after typing 'fastboot reboot' what I have to do to go home page? Sorry to ask u so many things. Actually I am totally new in this thing and very much worry after facing issues 2-3 times. And thank u very much for fast reply.
One more ques, I have unlocked bootloader with that "Windroid Universal Android Toolkit". Now in fastboot it shows 'bootloader unlocked,code 3' is that ok? As u say toolkit doesnot work on modern devices.
Atanu Mukherjee said:
On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type:
adb reboot bootloader
You should now be in fastboot mode.
Download the correct image file and copy the file into the same folder as your adb and fastboot binaries. Rename the image to twrp.img and type:
fastboot flash recovery twrp.img
fastboot reboot
Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
I am saying about this official method which is on twrp.me site. And after typing 'fastboot reboot' what I have to do to go home page? Sorry to ask u so many things. Actually I am totally new in this thing and very much worry after facing issues 2-3 times. And thank u very much for fast reply.
One more ques, I have unlocked bootloader with that "Windroid Universal Android Toolkit". Now in fastboot it shows 'bootloader unlocked,code 3' is that ok? As u say toolkit doesnot work on modern devices.
Click to expand...
Click to collapse
So Moto is a tad different... After you flash recovery, do not reboot with fastboot, instead use the Vol Dn key select Recovery and press Power to start it. When the splash screen comes up, allow changes to system, then I the TWRP main menu select Reboot - Recovery, the device will start TWRP again and it should be "locked" in. From there perform the rooting.
acejavelin said:
So Moto is a tad different... After you flash recovery, do not reboot with fastboot, instead use the Vol Dn key select Recovery and press Power to start it. When the splash screen comes up, allow changes to system, then I the TWRP main menu select Reboot - Recovery, the device will start TWRP again and it should be "locked" in. From there perform the rooting.
Click to expand...
Click to collapse
That mean after typing fastboot flash recovery twrp.img press enter and then i can plug off the usb keeping my device on fastboot then changes to recovery and do the rest?
Btw suppose if i dont want to root it at that time,then what i do? I mean just after flash recovery how to go to home screen without rooting?
And when i want to perform root process later,after installing SuperSU zip if I press power button and vol down then may I go to twrp recovery or ph stock recovery?
Atanu Mukherjee said:
That mean after typing fastboot flash recovery twrp.img press enter and then i can plug off the usb keeping my device on fastboot then changes to recovery and do the rest?
Btw suppose if i dont want to root it at that time,then what i do? I mean just after flash recovery how to go to home screen without rooting?
And when i want to perform root process later,after installing SuperSU zip if I press power button and vol down then may I go to twrp recovery or ph stock recovery?
Click to expand...
Click to collapse
OK... I'm confused, why are you unlocking and installing twrp if your not going root or flash a custom ROM?
acejavelin said:
OK... I'm confused, why are you unlocking and installing twrp if your not going root or flash a custom ROM?
Click to expand...
Click to collapse
I will definately do so. I also want to use CM14.1 but i want to do so step by step. Actually after facing issues 2-3 times i am little bit worry now. That is true. So hesitate to perform both at a single time.
Atanu Mukherjee said:
I will definately do so. I also want to use CM14.1 but i want to do so step by step. Actually after facing issues 2-3 times i am little bit worry now. That is true. So hesitate to perform both at a single time.
Click to expand...
Click to collapse
You don't need to root if your going CM, flash TWRP, backup, and flash CM. You don't need to over complicate it.
If you boot (not flash) TWRP and backup then get a copy to safe place there is little risk of anything going wrong.
acejavelin said:
You don't need to root if your going CM, flash TWRP, backup, and flash CM. You don't need to over complicate it.
If you boot (not flash) TWRP and backup then get a copy to safe place there is little risk of anything going wrong.
Click to expand...
Click to collapse
Ok. But is there any regular chance of going wrong during flash TWRP or flash CM? I backed up all internal important data to external sd card and when I perform these process I just remove that sd from phone.
You pls tell me how to go to home screen after flashing TWRP?
And if I need to root it later then also what to do then? I mean if then I press power and vol minus then will I get TWRP recovery to root it or it will be redirectred to phone custom recovery?
Atanu Mukherjee said:
Ok. But is there any regular chance of going wrong during flash TWRP or flash CM? I backed up all internal important data to external sd card and when I perform these process I just remove that sd from phone.
You pls tell me how to go to home screen after flashing TWRP?
And if I need to root it later then also what to do then? I mean if then I press power and vol minus then will I get TWRP recovery to root it or it will be redirectred to phone custom recovery?
Click to expand...
Click to collapse
There is always a chance of something going wrong, no one can guarantee everything will be fine. We have had people do everything perfectly but something happens and it's bricked... It's rare but does happen.
After you flash TWRP in the bootloader, press Vol Dn until it says Recovery and press power to start it, after several seconds you will get a screen that will ask if it can write to system, select yes, the next screen will be the TWRP home screen.
Once you flash TWRP, your stock recovery is gone, but you access it the same way... Power off, press and hold PWR+Vol Dn and in the bootloader menu select Recovery and press power.
acejavelin said:
There is always a chance of something going wrong, no one can guarantee everything will be fine. We have had people do everything perfectly but something happens and it's bricked... It's rare but does happen.
After you flash TWRP in the bootloader, press Vol Dn until it says Recovery and press power to start it, after several seconds you will get a screen that will ask if it can write to system, select yes, the next screen will be the TWRP home screen.
Once you flash TWRP, your stock recovery is gone, but you access it the same way... Power off, press and hold PWR+Vol Dn and in the bootloader menu select Recovery and press power.
Click to expand...
Click to collapse
Thank you very much for your kind guidance and quick reply. I will perform this may be tomorrow and then inform you. If it is bricked or stucked in any stage/page then is there any instant process to go back to safety?
acejavelin said:
There is always a chance of something going wrong, no one can guarantee everything will be fine. We have had people do everything perfectly but something happens and it's bricked... It's rare but does happen.
After you flash TWRP in the bootloader, press Vol Dn until it says Recovery and press power to start it, after several seconds you will get a screen that will ask if it can write to system, select yes, the next screen will be the TWRP home screen.
Once you flash TWRP, your stock recovery is gone, but you access it the same way... Power off, press and hold PWR+Vol Dn and in the bootloader menu select Recovery and press power.
Click to expand...
Click to collapse
I am listing here only the commands,u just tell me is this ok?
adb devices
adb reboot bootloader
fastboot devices
fastboot flash recovery twrp.img
fastboot boot twrp.img
Will these commands directly take me to twrp page?
And here I put a pic of the twrp page. If I dont want to root it then what to do? Click reboot option or anything else to do?
Atanu Mukherjee said:
I am listing here only the commands,u just tell me is this ok?
adb devices
adb reboot bootloader
fastboot devices
fastboot flash recovery twrp.img
fastboot boot twrp.img
Will these commands directly take me to twrp page?
And here I put a pic of the twrp page. If I dont want to root it then what to do? Click reboot option or anything else to do?
Click to expand...
Click to collapse
Your last two are redundant, either flash or boot, you don't have to do both, but each has a purpose... Flash is permanent, boot is transient and will disappear on a reboot.
Boot TWRP first, the first time it will not take you to the main page initially but show you a notification page asking if you want allow it to make changes to the system or keep it read-only, this time only do not allow changes... Then the main screen of TWRP will be displayed and you should do a full backup of all partitions to the SD card.
Flash will just write the recovery partition, it doesn't start anything, you select recovery from the fastboot menu to start it.
acejavelin said:
Your last two are redundant, either flash or boot, you don't have to do both, but each has a purpose... Flash is permanent, boot is transient and will disappear on a reboot.
Boot TWRP first, the first time it will not take you to the main page initially but show you a notification page asking if you want allow it to make changes to the system or keep it read-only, this time only do not allow changes... Then the main screen of TWRP will be displayed and you should do a full backup of all partitions to the SD card.
Flash will just write the recovery partition, it doesn't start anything, you select recovery from the fastboot menu to start it.
Click to expand...
Click to collapse
So after "fastboot boot twrp.img" i have to allow to make changes and have to do a nandroid backup. After that will I get option to "Reboot?"
And later when I went to recovery I will get twrp page instead of stock recovery? 1st I think I should flash cm13 then root then upgrade to 14.1 bcz still a feel little worry to root it on stock rom.
Atanu Mukherjee said:
So after "fastboot boot twrp.img" i have to allow to make changes and have to do a nandroid backup. After that will I get option to "Reboot?"
And later when I went to recovery I will get twrp page instead of stock recovery? 1st I think I should flash cm13 then root then upgrade to 14.1 bcz still a feel little worry to root it on stock rom.
Click to expand...
Click to collapse
No, almost every part of what your saying is wrong...
Boot twrp and do not allow changes first time and backup. This will give a clean backup to restore from if things go badly.
After this is complete, in TWRP go to Reboot menu and select Bootloader, flash TWRP, do not reboot but use the bootloader menu to start TWRP. This time allow it to make changes to system. At the main menu if twrp go to Reboot - Recovery the device will restart and TWRP will load automatically, this step will lock in twrp so the stock OS doesn't replace it.
You only need to root stock rom, you don't need to root CM roms as they are already rooted (there are a few roms that are not pre-rooted but they are rare and none of the ones your talking about). As far as CM 13 vs 14.1 I can't really help you but from I've read both are stable enough for a daily driver device.
acejavelin said:
No, almost every part of what your saying is wrong...
Boot twrp and do not allow changes first time and backup. This will give a clean backup to restore from if things go badly.
After this is complete, in TWRP go to Reboot menu and select Bootloader, flash TWRP, do not reboot but use the bootloader menu to start TWRP. This time allow it to make changes to system. At the main menu if twrp go to Reboot - Recovery the device will restart and TWRP will load automatically, this step will lock in twrp so the stock OS doesn't replace it.
You only need to root stock rom, you don't need to root CM roms as they are already rooted (there are a few roms that are not pre-rooted but they are rare and none of the ones your talking about). As far as CM 13 vs 14.1 I can't really help you but from I've read both are stable enough for a daily driver device.
Click to expand...
Click to collapse
After typing 'fastboot flash recovery twrp.img' i switch to recovery and select it. But it shows recovery failed,bla bla in red colour. I tried 3 times but same result. What to do? now again when I go to the recovery,i see still it is the stock recovery.

Huawei p8 lite twrp problem

I have huawei p8 lite dual sim android 6 marshallow and i tried all tools to root it but failed.Finally i tried to install twrp.I unlock the bootloader and with adb i wrote adb reboot bootloader,fastboot devices,fastboot flash recovery recovery.img and fastboot reboot but twrp didn't saved.When i boot to recovery the stock recovery was still there..What i have to do?
nikriga said:
I have huawei p8 lite dual sim android 6 marshallow and i tried all tools to root it but failed.Finally i tried to install twrp.I unlock the bootloader and with adb i wrote adb reboot bootloader,fastboot devices,fastboot flash recovery recovery.img and fastboot reboot but twrp didn't saved.When i boot to recovery the stock recovery was still there..What i have to do?
Click to expand...
Click to collapse
Did fastboot gave some error message, also did you only test to go to recovery straight from fastboot, because that is other recovery which can't be changed.
keikari said:
Did fastboot gave some error message, also did you only test to go to recovery straight from fastboot, because that is other recovery which can't be changed.
Click to expand...
Click to collapse
Fastboot didnt gave me error and i tried to go recovery from fastboot without reboot and i tried recovery with reboot.i cant understand whats going on made it all correct
nikriga said:
Fastboot didnt gave me error and i tried to go recovery from fastboot without reboot and i tried recovery with reboot.i cant understand whats going on made it all correct
Click to expand...
Click to collapse
Just to make sure because the recovery stuff with this device can be at start a bit confusing. Please check does the recovery you boot into have factory reset option in it.
Also can you give a link for the twrp you flashed?
keikari said:
Just to make sure because the recovery stuff with this device can be at start a bit confusing. Please check does the recovery you boot into have factory reset option in it.
Also can you give a link for the twrp you flashed?
Click to expand...
Click to collapse
I tried a lot of versions of twrp from forum here for p8 lite.Today i tried 3.0.2.I cant select factory reset because the phone crashed because the bootloader is unlocked i think.But if you think that the phone has to be in factory reset i will relock bootloader.Another question.If i downgrade firmware to android 5.0 tools such king root will be success?I have firmware from my county greece.If i choose android 5 firmware from other country i will have problem?
nikriga said:
I tried a lot of versions of twrp from forum here for p8 lite.Today i tried 3.0.2.I cant select factory reset because the phone crashed because the bootloader is unlocked i think.But if you think that the phone has to be in factory reset i will relock bootloader.Another question.If i downgrade firmware to android 5.0 tools such king root will be success?I have firmware from my county greece.If i choose android 5 firmware from other country i will have problem?
Click to expand...
Click to collapse
1. Booloader unlocking only affects to what you can flash in fastboot, it doesn't affect stock recovery funtionality.
I asked about factory reset option, because I wanted to make sure you aren't booting to "recovery2/eRecovery". (It doesn't have factory reset option)
2. Avoid using kingoroot and other oneclick root apps if it is possible.
3. Your firmware version doesn't matter.
4. Bootloader unlocking can't cause crash. Locked bootloader could cause crash if system is modified(I think), but you would still be able to get recovery.
One way to make sure you boot to normal recovery is to connect your phone to pc --> open command line --> type "adb reboot recovery". This won't take you to erecovery
I can't do any better help with the current information.
After you successfully flash the recovery with fastboot (always use the latest!) You need to do these things in order (and fast) in order to but to TWRP. If you don't it will boot to stock recovery and you have to fastboot flash again.
You must
a) write fastboot reboot in the console but don't pass Enter!!
b) hold VOLUME UP
c) (still holding VOL UP) presss Enter and remove the USB cable immediately once it says your device is booting now.
Keep holding VOL UP until you boot to TWRP. Allow modifications.
For root you will flash Magisk (you know, normal zip), which a) is open source, so no sneaky stuff and b) can hide root from apps as a bonus. You can always get the zip here: http://tiny.cc/latestmagisk
Important: If you have other root solutions install them for example SuperSU has an uninstall option. Then flash Magisk
JpegXguy said:
After you successfully flash the recovery with fastboot (always use the latest!) You need to do these things in order (and fast) in order to but to TWRP. If you don't it will boot to stock recovery and you have to fastboot flash again.
You must
a) write fastboot reboot in the console but don't pass Enter!!
b) hold VOLUME UP
c) (still holding VOL UP) presss Enter and remove the USB cable immediately once it says your device is booting now.
Keep holding VOL UP until you boot to TWRP. Allow modifications.
For root you will flash Magisk (you know, normal zip), which a) is open source, so no sneaky stuff and b) can hide root from apps as a bonus. You can always get the zip here: http://tiny.cc/latestmagisk
Important: If you have other root solutions install them for example SuperSU has an uninstall option. Then flash Magisk
Click to expand...
Click to collapse
The recovery you go from fastboot is eRecovery. You can't boot to stock or TWRP recovery directly from fastboot. If you choose shutdown from eRecovery then you can just go to TWRP with normal way (power + VOL UP). Going to eRecovery doesn't undo TWRP installation. (This also means you can do force update even with TWRP installed, I think, not 100% sure)
keikari said:
The recovery you go from fastboot is eRecovery. You can't boot to stock or TWRP recovery directly from fastboot. If you choose shutdown from eRecovery then you can just go to TWRP with normal way (power + VOL UP). Going to eRecovery doesn't undo TWRP installation. (This also means you can do force update even with TWRP installed, I think, not 100% sure)
Click to expand...
Click to collapse
I do this every time. See surdu's post here. Fastboot reboo is just a reboot, so the familiar key combo will boot to recovery.
JpegXguy said:
I do this every time. See surdu's post here. Fastboot reboo is just a reboot, so the familiar key combo will boot to recovery.
Click to expand...
Click to collapse
I just wanted to point out that you don't need to re-flash if you happen to only press vol up in fastboot.

Categories

Resources