• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Rooting a Moto G4 Android 6.0.1

Hoegali

Newbie
Nov 20, 2016
14
5
Hi,

I originally posted this over at android central where I was told it is not possible to root a Moto G4, so I am trying here hoping for a different answer = )

I am attempting to install Cyanogenmod on my handset using the below guide:

http://wiki.cyanogenmod.org/w/Install_CM_for_peregrine

I have unlocked the handset, copied the Cyanogenmod zip file to my sdcard, booted in recovery mode and attempted to install the zip package. At this point I get an error "E:failed to verify whole-file signature". I have tried both the stable and nightly build with the same result. Also when I have attempted to install SuperSU using the same process have received the same error so I suspect it is not a corrupted file.

I believe this is being caused by the signature check and to get around this have been following the below guide to disable signature check:

http://galaxyvarchive.blogspot.co.uk/2015/07/tutorial-how-to-disable-signature-check.html

When it comes to the step "Then find a option Called "Patch To Android", I don't see this option, and from what I understand this may be due to not having my phone rooted.

I have installed Kingo ROOT to resolve this but it failed to root the handset (error 0x1C5C33 if that means anything to anybody), checking the list of phones which Kingo ROOT can root, Moto is not one of them. What are the other options?

Any advice greatly appreciated. Thanks in advance.
 
Hey @Hoegali, welcome to AF :).

I don't specifically know anything about the Moto G4, but I have some thoughts and questions for you:

1. What exactly do you mean by "unlocked the handset"? Did you unlock the bootloader or are you just talking about unlocking the home screen?

2. If you've not previously installed a custom recovery (and it looks like you haven't), the stock recovery cannot and will not flash/install a .zip file unless it has been signed using the manufacturer's keys (i.e., literally provided by either Motorola or your carrier).

3. Not sure how the app/tool listed in the second link you provided does a signature check disabling...I'm guessing it simply strips-off some of the asserts at the beginning of the updater-script file in the flashable .zip file, which is almost always a bad idea as the assert checks typically validate that you've got the right device and version. Its likely immaterial in any case if you don't have a custom recovery installed. True signature checking (i.e., "jarsigner -v" type of checking) is done by the recovery and is not related to the updater-script file, but rather the META-INF folder inside the .zip.

4. Like I said, I'm not familiar with the G4, so I don't really have any idea if King(o) Root (or any other root method) will root your device, but you'll also have to have a custom recovery installed to install CyanogenMod. Installing a custom recovery typically requires having an unlocked bootloader and/or the ability to overwrite the recovery partition.

Your best bet would probably be to check over at XDA and see if they have a section about rooting the G4.

Cheers!
 
Upvote 0
Thanks for the welcome.

Yes the bootloader is unlocked to answer your question.

Funnily enough I had also posted on XDA where someone pointed me in the direction of a helpful youtube video and the phone is now rooted (can't post the link, soz).

So now that the phone is rooted the below options have become available in Lucky Patcher and I have applied them:
  • Signature Verification Status always True
  • Disable .apk Signature Verification
  • Disable signature verification in the package manager
Which looks promising....however I am still getting the "E:failed to verify whole-file signature" error on installing the rom.
 
Upvote 0
Also, re-reading your post #3 above about that "LP" app (we don't usually condone discussion of that particular app because it can also be used for nefarious purposes (getting paid apps for free)) is that you might be changing your system (i.e., the package manager) and not anything related to the .zip file that you're trying to install.
 
  • Like
Reactions: badcatz
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones