[J5108/J7108][GUIDE]how to root the Galaxy J5/J7 2016 models J5108/J7108

Search This thread

avicohh

Senior Member
Dec 8, 2009
369
1,098
Modiin
iandroid.co.il
Hi Evryone.

Because I didn't found CWM or TWRP Recovery or any root method for the galaxy J5 J5108 and the J7 J7108, I made a pre-rooted firmwares for those models.
This firmware base on the hong kong firmware which include the Google apps, this a full firmware exactly like the original, except the root.
After flash you will see the SuperSU app in the app drawer.
Also, this firmware contains the bootloader from the china firmware which doesn't have frp lock.

The root include the binary files in the system, and a pathed boot. (from Android 6.0 or samsung 5.1.1 pathing the boot is necessary for the root work properly)

Flashing this firmware will not wipe data automaticly. you should not lose anything.

This file will work on any firmware/baseband/csc. you can always flash it like a stock firmware.

J5 - base on - J5108ZHU1APD2.
Android version: 5.1.1

J7 - base on - J7108ZHU1APD1.
Android version: 5.1.1



Downloads
J5
http://www.mediafire.com/download/o8hfu81j3j4irjt/J5108ZHU1APD2_Rooted_by_avicohh.exe
J7
http://www.mediafire.com/download/z7bh4sdmzqer6nb/J7108ZHU1APD1_rooted_by_avicohh_v2.exe


Installation instructions

  • Before flashing check the CROM Service status in Download mode, if it locked you will need to unlock the bootloader first with the app attached.
  • Install samsung usb drivers from here.
  • Download the self extracting 7z file above and extract it (just double tap) to some folder, you should receive a tar.md5 file.
  • Open odin 3 (attached in the zip)
  • Put the tar.md5 file in AP.
  • Put the device in download mode. (vol down + home + power button, and then click on vol up)
  • Connect your phone to usb and wait for odin detect the device.
  • Click start.
  • After it finish choose reboot system now in recovery.

Enjoy.


If you want to thank me for this work, you can do this by donating.. :good:
 

Attachments

  • CROM.apk
    1.3 MB · Views: 4,215
Last edited:

billeuze

Member
Feb 1, 2012
39
11
Victoria
Thanks a lot avicohh. This was simple and painless. I now have google services on my mainland China phone. And root too! And like you said - I did not loose anything.
 
  • Like
Reactions: avicohh

billeuze

Member
Feb 1, 2012
39
11
Victoria
well now i am stuck. I enabled my google account, installed and updated my apps through google play, shutdown and now I can't boot. The message in red on the top of the boot screen is:
"KERNEL IS NOT SEANDROID ENFORCING
Custom Binary blocked by FRP lock."

I also cannot reflash the same HK rooted firmware using Odin

apparently I should have enabled developer options then enabled OEM unlocking before rebooting. But I didn't know that so for now I am bricked

Also apparently, the fix for it is to reflash the original firmware using Odin. I am now downloading the firmware from http://updato.com/firmware-archive-select-model?record=1F170CA05E5611E6B055FA163EE8F90B but it is still another 2-3 hours to complete the download (yes, poor internet connection here.)... So I'll see how that goes...
 

billeuze

Member
Feb 1, 2012
39
11
Victoria
OK, that didn't work. Now the message on the download mode screen says:
SW REV. Invalid type.
FRP is enabled, not allow download non FRP bootloader binary
 

avicohh

Senior Member
Dec 8, 2009
369
1,098
Modiin
iandroid.co.il
Well..
I just recently had the same problem in another device.
I don't think the "Oem unlock" has nothing to do with this. the problem is that when you're adding Google account the frp (factroy reset protection) is automaticly enabled, and then it blocks the pathed boot.
The reason reflash the original firmware didn't work for you is because you tried to flash the china version, that doesn't have google service and also doesn't have frp in the bootloader. (apparently once frp is enabled this kind of operation is not allowed because you are actually trying to remove the frp lock by flashing bootloader..)

I think the solution will be to flash the original hong kong firmware with the frp bootloader and original boot. (or just the original boot)
http://updato.com/firmware-archive-select-model?record=5C13445B54D811E6B055FA163EE8F90B

Then, try to enable the "Oem unlock" option and finally flash the rooted firmware again.
maybe it will work, I'm not sure about it but I would like to know.

If this won't work, I'll try to combine the rooted hong kong firmware with the non-frp bootloader from the china firmware.
 
Last edited:

billeuze

Member
Feb 1, 2012
39
11
Victoria
Thanks so much for replying avicohh

Well..
The reason reflash the original firmware didn't work for you is because you tried to flash the china version, that doesn't have google service and also doesn't have frp in the bootloader. (apparently once frp is enabled this kind of operation is not allowed because you are actually trying to remove the frp lock by flashing bootloader..)

This makes sense. I was actually suspecting this and was considering trying the 6.01 HK version since that is the only one I could find: http://updato.com/firmware-archive-select-model?record=5C13445B54D811E6B055FA163EE8F90B

Now that you've posted a link to your original 5.1 HK firmware I'll try what you suggest. I'll wait to get home before I start the download.

But I still wonder if the 6.01 would work on my phone?
 

billeuze

Member
Feb 1, 2012
39
11
Victoria
yes, I see, the website says its 6.01, but its actually 5.1.1. How do I know? BECAUSE IT WORKED!!! It took 7 hours to download but when I got up this morning it was done, I flashed and it worked!!!

I'm going to read up some more on this FRP business before flashing the rooted version again. My old phone (very old) had no such thing. I'd never heard of it till this unpleasant way of learning about it.
 

Tukuvai

Member
Aug 16, 2016
5
0
downloading

Same problem downloading the stock firmware from http://forum.xda-developers.com/gal...108-how-to-root-galaxy-j7-2016-model-t3426967
I hope this works.... :)

---------- Post added at 12:27 AM ---------- Previous post was at 12:26 AM ----------

I meant http://updato.com/firmware-archive-s...55FA163EE8F90B
 

avicohh

Senior Member
Dec 8, 2009
369
1,098
Modiin
iandroid.co.il
Hi guys.
Thanks for your replies.

I've just checked it now on another device.
As it turn out after a several tests, this "custom binary blocked by frp lock" problem occurs only if the oem unlock option is disabled.

Here is what I did, step by step:
  • First, I enabled the oem unlock option and then I added Google account - nothing happened. frp lock in Download mode is still off and everything working fine.
  • I removed the google account, turned off the oem unlock option and finally added the google account again - frp lock in download mode immediately switch to on, and when I tried to restart, the device has stuck on the boot. (custom binary..)
  • I flashed stock firmware (from the link above), the device now bootup normally but the frp lock in download mode is still on. (I didn't remove the google account yet)
  • Final check - I enabled the oem unlock again, and the frp lock in download mode switch to off.

So..
I can safely say that all you need to do is just enable oem unlock in developer options, and then flash the rooted firmware.

Anyway, to be even more sure, I made a new firmware with the china bootloader, frp now is not even exist in download mode.
You can download the new firmware from here
http://www.mediafire.com/download/z7bh4sdmzqer6nb/J7108ZHU1APD1_rooted_by_avicohh_v2.exe

Good luck!
 

Tukuvai

Member
Aug 16, 2016
5
0
Hi guys.
Thanks for your replies.

I've just checked it now on another device.
As it turn out after a several tests, this "custom binary blocked by frp lock" problem occurs only if the oem unlock option is disabled.

Here is what I did, step by step:
  • First, I enabled the oem unlock option and then I added Google account - nothing happened. frp lock in Download mode is still off and everything working fine.
  • I removed the google account, turned off the oem unlock option and finally added the google account again - frp lock in download mode immediately switch to on, and when I tried to restart, the device has stuck on the boot. (custom binary..)
  • I flashed stock firmware (from the link above), the device now bootup normally but the frp lock in download mode is still on. (I didn't remove the google account yet)
  • Final check - I enabled the oem unlock again, and the frp lock in download mode switch to off.

So..
I can safely say that all you need to do is just enable oem unlock in developer options, and then flash the rooted firmware.

Anyway, to be even more sure, I made a new firmware with the china bootloader, frp now is not even exist in download mode.
You can download the new firmware from here
http://www.mediafire.com/download/z7bh4sdmzqer6nb/J7108ZHU1APD1_rooted_by_avicohh_v2.exe

Good luck!

Hey, How do I enable OEM unlock when I can't even boot my device. it simply refuses to boot.
 

billeuze

Member
Feb 1, 2012
39
11
Victoria
Thanks for making the root version of mainland firmware. I'm going to stick with the HK version as I want to have google services. and thanks for testing the oem unlock

I informed myself some more about FRP and OEM unlock and I am now feel safe to use the rooted HK firmware. Except, I came across one note for which I want further clarification before proceeding. The note is from http://www.androidcentral.com/factory-reset-protection-what-you-need-know and it says:

"A couple notes need added here. This doesn't undo Samsung's (or anyone else's) version of Reactivation Lock. If you've enabled data reset protection through your Samsung account, you'll need to turn that off in your Security settings. You can find the switch under the "Find My Mobile" section."

So, I want to be sure I don't have this samsung Reactivation Lock enabled. and that I am in no danger of it auto-enabling. I believe I am safe but I would like to know if anyone has more clear information.

What I do know is before I flashed to HK ROM, when I went into download mode, there displayed a setting:
"REACTIVATION LOCK: OFF"
now, using the HK ROM, it is gone, but in that exact same location is the setting:
"FRP LOCK: OFF"

I think, that means the mainland version of the FRP lock (Samsung Reactivation Lock), is now replaced with the google FRP lock and as I don't have to worry about the samsung reactivation lock anymore. Is that so?

even so, as the article says, I look in "Settings" >> "Lock screen and security" >> "Find my mobile" >> log into Samsung Account when prompted, then it does not display the "Reactivation Lock" option that is shown in at least one guide that I found. I really think this is further proof I don't have to worry about Samsung Reactivation Lock. Can anyone confirm?
 

avicohh

Senior Member
Dec 8, 2009
369
1,098
Modiin
iandroid.co.il
Yes I can confirm.

But pay attention that because of the FRP, is not possible to make a pre-rooted firmware for Android 6.0 and above or 5.1.1 Samsung devices, from firmware contains FRP protection like the HK one.
From those android versions (and above), a pre-rooted firmware (or any root method) must include a patched kernel.

Due to the FRP protection, once it turn on, it detect the custom kernel (boot) and not allow the device to boot. (custom binary blocked by FRP lock)
That's the reason I had to replace the HK bootloader which contain FRP protection, with the China bootloader which contain the Samsung reactivation lock. (instead of FRP, because china firmwares doesn't include any google services)

I don't know what the policy of the Samsung reactivation lock, about custom kernels.
And also I don't know if the Samsung reactivation lock turns on automaticly if you are adding Samsung account. (Like the FRP lock)
And one more thing, I beleive most people don't use Samsung account at all.

So after all this,
If it come to decision what to use, the FRP lock or the Samsung one (depends only in the bootloader), I'm pretty sure that in this case (custom boot), the best is to use the Samsung lock, and just dont add Samsung account, or add Samsung account if needed but turn off the Reactivation lock in the Find my mobile settings.

I hope it help you a bit.
Good luck.

btw, If you can check the Samsung lock after root and report here, it would be great.
 

billeuze

Member
Feb 1, 2012
39
11
Victoria
Anyway, to be even more sure, I made a new firmware with the china bootloader, frp now is not even exist in download mode.
You can download the new firmware from here
http://www.mediafire.com/download/z7bh4sdmzqer6nb/J7108ZHU1APD1_rooted_by_avicohh_v2.exe
Good luck!

Oh, at first I thought you meant you rooted the mainland firmware. Now, based on your later post, I believe what you did was to put the mainland bootloader in the rooted HK firmware. Is this the case? If so, that means I can still have google services, and root, and no possibility of FRP issues because its a mainland bootloader. OK, I will try tonight. The Samsung reactivation lock is off by default. Even adding a Samsung account does not turn it on, you have to go into "find my phone" to turn it on. So it should be safe. I will confirm tonight after I download your new firmware.
 
  • Like
Reactions: avicohh

billeuze

Member
Feb 1, 2012
39
11
Victoria
yes, this new version with mainland bootloader is good. It seems almost impossible to lock.

Now when I go to download mode, there is no more "FRP LOCK: OFF". in its place is "REACTIVATION LOCK: OFF".

Just for fun I tested by going inter developer options and turned off OEM unlock - then I tried to reboot = success. Enter download mode = still "REACTIVATION LOCK: OFF". Of course I turned it back on again after the test.

and in settings, find my mobile, there is still not a setting for "REACTIVATION LOCK". I have seen an example on the web that this reactivation lock setting should be at the bottom of the options under find my mobile. So, actually now I cannot find any way to turn on the reactivation lock - this is good, its what we want.

Of course to even enter the "find my mobile" section I can do nothing at all (in fact it does not even show me what the options are) untill I give my samsung account credentials. Once I give credentials I can see the options but there is no option to turn on reactivation lock. There is just one thing, maybe, is that in "find my mobile", there a place that says: for more information go to findmymobile.samsung.com. When I go there I have 2 options:
-1) FIND - Find, Lock, Wipe my device
-2) PREPARE - Ready device for Find my Mobile
this "prepare" option I am afraid to try, I am afraid it may be the one to enable reactivation lock. Clearly it is not required to actually find my mobile because I just click the "Find" button and it it finds it for me. So, what would be the use of "prepare"?

At any rate, we know that just creating a samsung account does not activate the lock. I never had a Samsung account before. When I set up this new phone I never did enter developer mode to turn on oem unlock but i did create the samsung account. It was after that I flashed version 1 of avicohh's rooted firmware and when I went into download mode, it said REACTIVATION LOCK: OFF, so creating the Samsung account does not turn it on.
 
  • Like
Reactions: avicohh
D

Deleted member 7611474

Guest
Hi Evryone.

Because I didn't found CWM or TWRP Recovery or any root method for the galaxy J5 J5108 and the J7 J7108, I made a pre-rooted firmwares for those models.
This firmware base on the hong kong firmware which include the Google apps, this a full firmware exactly like the original, except the root.
After flash you will see the SuperSU app in the app drawer.
Also, this firmware contains the bootloader from the china firmware which doesn't have frp lock.

The root include the binary files in the system, and a pathed boot. (from Android 6.0 or samsung 5.1.1 pathing the boot is necessary for the root work properly)

Flashing this firmware will not wipe data automaticly. you should not lose anything.

This file will work on any firmware/baseband/csc. you can always flash it like a stock firmware.

J5 - base on - J5108ZHU1APD2.
Android version: 5.1.1

J7 - base on - J7108ZHU1APD1.
Android version: 5.1.1



Downloads
J5
http://www.mediafire.com/download/o8hfu81j3j4irjt/J5108ZHU1APD2_Rooted_by_avicohh.exe
J7
http://www.mediafire.com/download/z7bh4sdmzqer6nb/J7108ZHU1APD1_rooted_by_avicohh_v2.exe


Installation instructions

  • Before flashing check the CROM Service status in Download mode, if it locked you will need to unlock the bootloader first with the app attached.
  • Install samsung usb drivers from here.
  • Download the self extracting 7z file above and extract it (just double tap) to some folder, you should receive a tar.md5 file.
  • Open odin 3 (attached in the zip)
  • Put the tar.md5 file in AP.
  • Put the device in download mode. (vol down + home + power button, and then click on vol up)
  • Connect your phone to usb and wait for odin detect the device.
  • Click start.
  • After it finish choose reboot system now in recovery.

Enjoy.


If you want to thank me for this work, you can do this by donating.. :good:
sir, you are awesome!!
 
  • Like
Reactions: avicohh

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Hi Evryone.

    Because I didn't found CWM or TWRP Recovery or any root method for the galaxy J5 J5108 and the J7 J7108, I made a pre-rooted firmwares for those models.
    This firmware base on the hong kong firmware which include the Google apps, this a full firmware exactly like the original, except the root.
    After flash you will see the SuperSU app in the app drawer.
    Also, this firmware contains the bootloader from the china firmware which doesn't have frp lock.

    The root include the binary files in the system, and a pathed boot. (from Android 6.0 or samsung 5.1.1 pathing the boot is necessary for the root work properly)

    Flashing this firmware will not wipe data automaticly. you should not lose anything.

    This file will work on any firmware/baseband/csc. you can always flash it like a stock firmware.

    J5 - base on - J5108ZHU1APD2.
    Android version: 5.1.1

    J7 - base on - J7108ZHU1APD1.
    Android version: 5.1.1



    Downloads
    J5
    http://www.mediafire.com/download/o8hfu81j3j4irjt/J5108ZHU1APD2_Rooted_by_avicohh.exe
    J7
    http://www.mediafire.com/download/z7bh4sdmzqer6nb/J7108ZHU1APD1_rooted_by_avicohh_v2.exe


    Installation instructions

    • Before flashing check the CROM Service status in Download mode, if it locked you will need to unlock the bootloader first with the app attached.
    • Install samsung usb drivers from here.
    • Download the self extracting 7z file above and extract it (just double tap) to some folder, you should receive a tar.md5 file.
    • Open odin 3 (attached in the zip)
    • Put the tar.md5 file in AP.
    • Put the device in download mode. (vol down + home + power button, and then click on vol up)
    • Connect your phone to usb and wait for odin detect the device.
    • Click start.
    • After it finish choose reboot system now in recovery.

    Enjoy.


    If you want to thank me for this work, you can do this by donating.. :good:
    3
    I've created a pre-rooted firmware for Galaxy J5 android v6.0.1. The exact PDA version is J5108ZMU1BQB3 and the firmware was released in 2017/02. The firmware is not HK, it's for Open China.

    Download link :
    mediafire.com
    /file/z7o2lk2zzoaibtl/SM-J5108_v6.0.1_J5108ZMU1BQB3.tar.md5

    I had to split the link into 2 parts because I have to write up to 10 posts in order to include external links. :eek:
    Just flash with ODIN and your phone should be rooted! :)

    Thanks a TON to avicohh for guiding me through the steps and helping me fix all the problems. You are the best!! XD
    3
    avicohh, would you please be kind enough to outline the steps you used to create the pre-rooted firmware?

    Also, if it's not too much to ask, could you please post the link to where you got the original (unmodified) Hong Kong firmware?

    Thank you.

    Firmwared downloaded from this site
    http://updato.com/firmware-archive-select-model

    Steps to root:
    Convert system.img to normal ext4 format with simg2img (ext4_utils) and mount it under linux.
    Insert the su binaries, set permissions and context (chmod, chcon), according to the documentation in the SuperSU zip. (update binary)
    Unmount and convert it back to odin format. (ext2simg)
    This is normal root (not systemless root), so you need to patch the boot too (Anroid image kitchen), se here
    http://forum.xda-developers.com/apps/supersu/wip-android-6-0-marshmellow-t3219344
    2
    Well..
    I just recently had the same problem in another device.
    I don't think the "Oem unlock" has nothing to do with this. the problem is that when you're adding Google account the frp (factroy reset protection) is automaticly enabled, and then it blocks the pathed boot.
    The reason reflash the original firmware didn't work for you is because you tried to flash the china version, that doesn't have google service and also doesn't have frp in the bootloader. (apparently once frp is enabled this kind of operation is not allowed because you are actually trying to remove the frp lock by flashing bootloader..)

    I think the solution will be to flash the original hong kong firmware with the frp bootloader and original boot. (or just the original boot)
    http://updato.com/firmware-archive-select-model?record=5C13445B54D811E6B055FA163EE8F90B

    Then, try to enable the "Oem unlock" option and finally flash the rooted firmware again.
    maybe it will work, I'm not sure about it but I would like to know.

    If this won't work, I'll try to combine the rooted hong kong firmware with the non-frp bootloader from the china firmware.
    2
    OK, as I said above, I've had issues with the rooted solution in this thread. The solution I am now using is TWRP. I have 2 resources to share with you. The first is the solution and the custom ROM I installed and am still using on my J7108 (Mainland, China Mobile version).

    I used the ROM and instructions from this thread: https://forum.xda-developers.com/galaxy-j7/development/rom-edge-panel-stable-rom-sm-j7108-t3604617

    Before using doulc's steps 1,2 & 3 in his first post I checked to ensure my phone was at revision J7108ZHU1BQB1 which is the March 5 Android 6.01 official Samsung ROM for Hong Kong: http://updato.com/firmware-archive-select-model?record=C3A4F592029611E79215FA163EE8F90B. Mine was already at that version so I left it as is. (at some point later in this thread the anther recommends doing this update first. Then I did his steps 1,2 & 3 listed in his first post. Note that his 3 steps do not include instruction, (he just lists the steps). I used Odin to apply his step 1. His step 2 was installing TWRP. I wanted more detailed instructions on installing TWRP so I used the following "How to Safely Root & Install TWRP On Samsung Galaxy J7": http://rootmygalaxy.net/root-install-twrp-on-samsung-galaxy-j7/

    Note that although I followed the TWRP instructions above, I did not use the TWRP source files linked from that post. I used the TWRP file supplied by doulc in his post, in other words I used: https://mega.nz/#!ycc3nLBR!_do-RBTeOfIWvDK5enea8tJXDn5w1hyWuL7j7ZCuh5I. This TWRP works for the J7108. It is probably not the correct one for J5108. For J5108, I imagine you can find it in the link supplied by the "How to Safely Root & Install TWRP On Samsung Galaxy J7" instructions.

    One final note on the installation of TWRP that is not mentioned in the above instructions is something I learned from a different source (not saved). Apparently some models of phone will restore their default recovery partition on first boot if it sees a non-official recovery partition. So, when I let Odin reboot after flashing TWRP, it automatically "fixed" this so when I then booted into recovery, it was the official Samsung recovery. So I flashed TWRP again, this time, I was had my fingers ready on the volume up, power, and home buttons so I could press them to boot into TWR Recovery before Samsung could erase it. This was a success and I was then able to do doulc's final step 3 of installing his custom ROM.

    So That is all I have done so far, I have not yet rooted my phone, but once TWRP is installed. it is trivial to follow the last step in "How to Safely Root & Install TWRP On Samsung Galaxy J7" to use SuperSU to get root access.