• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Samsung J2 Prime TWRP + ROOT

Search This thread

4ld0u5

Member
May 31, 2016
22
18
Rooting And TWRP for Samsung J2 Prime SM-G5325
By: Aldous M.C

https://forum.xda-developers.com/member.php?u=7506444

warning: not for noobs who dont know anything about odin/flashing/rooting

I found this in 4pda.ru forums i could not really understand even the page was translated from russian to english. though i figured out how they did this
The concept was to create a odin package with a patched boot.image of samsung a3 with twrp recovery.img inside odin package then flashing it thru odin and after that flashing back the stock boot.img of Samsung J2 Prime then booting directly to recovery to flash SuperSU to patch the Stock Boot.img to make TWRP stick and not be replaced by stock recovery or giving a SEAndroid enforing error when booting to TWRP

So this is how you do it. First you need A full official firmware of Samsung SM-G532G (J2 Prime) Odin, and a Tar-Tool to convert boot.img from firmware to a odin package

WHAT YOU NEED (download links below)

1. Download latest firmware for J2 prime
2. Open Firmware file open the AP file, inside you will see folders and the boot.img. extract the boot image by draging it out from the AP file
3. Download tar-tool and extract folder to deskop or anywhere then Place boot.img inside TAR-Tool
4. then run the ImgToTar.MD5.bat file and you will see a boot.tar.md5 file appear. (do not rename it to anything else odin will not recognize this as boot.img and will not flash)
5. Now you have a Odin flashable boot.img from your original firmware. place it somewhere you can easily access we will use it later.

FLASHING THE TWRP

1. on your phone go to developer options and enable usb debbuging and toggle oem unlock to ON
2. power of your phone
3. Open odin on pc and click AP then select/browse the A3 boot img+TWRP odin package select it.
4. then go to options tab uncheck the auto reboot and do not check anything else just the auto-reboot
5. Open your phone to ODIN mode Press and hold home key + Volume down then power
6.Plug in your phone to your pc and press volume up to continue download
7. in PC start the download in Odin if it says pass go to next step
8. at this point you cannot power off the device all you have to do is remove the battery and put it back in BUT DO NOT TURN IT ON YET!
9. Go to ODIN mode again on your phone and the flash the stock boot.img you created with the TAR-Tool (REMEMBER TO ALWAYS UNCHECK AUTO-REBOOT in Odin so you will not end up with a reboot after a succesful flash. again you cannot turn off the phone, just pull the battery and put it back in. Do not turn it on yet dont boot it else your TWRP recovery will be replaced by stock or put you in a boot loop
10. Now Go to Recovery mode, while phone is powered off Press and hold home key + volume up + power key.
11, Tadaa, you have your TWRP recovery booted, now you can flash SUPERSU (use flashable SuperSU 2.79 or latest)
[almost forgot before doing all this place the SuperSU flashable zip on both storages internal and sdcard]
12. now the stock boot.image is patched by SuperSU and it will now hold the TWRP even after reboot.
13. Your done turn your phone on and you have a rooted Samsung J2 Prime.

DOWNLOADS

https://yadi.sk/d/zsYDiUSk3FJHPX - A3+TWRP odin package
https://forum.xda-developers.com/showthread.php?t=2446269 - TAR-Tool
https://drive.google.com/uc?id=0B4fZWSYgVIIOR2kxSVBsYTdmWFE - SAMSUNG J2 Prime FIRMWARE (SM-G532G) you can also find other sources with updated firmwares for your region.

BIG thanks to:

Mk.Mourad for the Tar-Tool script
A Russian comrade JacobN of 4pda,ru forum for the A3+twrp odin package

i am not responsible for anything that happens to your phone while doing this. tested by me and will work if you follow carefully all procedures.

Aldous M.C
 

pheak28

New member
May 20, 2017
4
0
twrp keep read only ....

thanks it's worked :):):):):)
but my phone stuck on bootloop samsung logo......it won't start up .......
e : failed to mount / efs (invalid argument )
e : failed to mount / efs (invalid argument )
e : failed to mount / efs (invalid argument )
dm-variety failed...........
how to fix it ...
please help me :(
thanks
 

room4two

Senior Member
Sep 21, 2014
52
23
thanks for this. my phone's AP is G532GDXU1AQC1 will this work?. BL is G532GDXU1AQC1 and CP is G532GDXU1AQA3. thank yo:good:u!. i've been waiting for someone speaking in english to make a root for j2 prime. it seems that the forum in 4pda only supports g532f variant of j2 prime.
 

room4two

Senior Member
Sep 21, 2014
52
23
thanks for this. my phone's AP is G532GDXU1AQC1 will this work?. BL is G532GDXU1AQC1 and CP is G532GDXU1AQA3. thank yo:good:u!. i've been waiting for someone speaking in english to make a root for j2 prime. it seems that the forum in 4pda only supports g532f variant of j2 prime.

i am already rooted. thanks for this method!. no problems at all
 

chuckytito

New member
Jun 10, 2017
1
0
thanks bro, this method is done, sorry my english
Phone: samsung j2 prime (SM-G532M)
Pais: Bolivia
Empresa: VIVA
Compilacion: MMB29T.G532MUMU1AQD2
Para los de habla hispana remarco lo importante en el procedimiento desmarcar en odin el reseteo automatico y no tocar nada mas
para salir del menu download quiten la bateria y la colocan de nuevo, por nada del mundo prendan el telefono hasta realizar todo el procedimiento
resumen:
1.- entrar al menu download y flashear con odin el A3_boot_twrp_recovery.tar.md5. Quitar bateria y volver a colocarla
2.- entrar al menu donwload y flashear con odin boot.tar.md5 creado por ustedes en base del original. Quitar bateria y volver a colocarla
3.- entrar al menu de twrp con vol+,menu,power e instalar super su (SuperSU-v2.82-201705271822.zip)
4.- encender normalmente y vuala root 100%
 

ziishii

Member
Nov 16, 2015
11
1
Thanks

OHHHHH WAOOOOW.....
THANKS a Lot Man....You Are Great.....
Finally, I have found for which i was searching since i bought my j2 prime....
Finally,i have Rooted the latest firmware of my Grand Prime+/j2 prime g532f available on Samsung website...Now I have TWRP and Have installed Xposed....Now I Can Download Direct Files Into SD Card From Uc Browser and have full access to sd card....
I Can Instal Large Games In SD Card.....
Wow I am very Happy and Satisfied with my Mobile now....
 
Last edited:

metafaniel

Member
May 7, 2015
31
5
CDMX
Procedure continues to apply Magisk

0FeqigMQcdbjsxoXmvwreERoDvW8zjaIGzrKyR9mTZzDrX4I05pRsYPDI6VP2MaQlg=w200


Following the procedure given in the first post, Magisk can also be installed. I'll continue with a new step 10:

10) If you followed the original thread and installed SuperSU, you'll need to uninstall it in order to proceed. Unroot your phone using this unSU script. If you haven't yet, ignore this.

11) To install latest Magisk, DOWNLOAD the following:
Latest Magisk
Latest Magisk Manager
(Verify you're downloading the latest versions in this thread here.)
Place these downloads in your SD Card and also extract the stock boot.img from your firmware AP file, as described before. We'll need it.

12) Now press and hold Vol Up + Home + Power will boot usa into TWRP. Now we need to first install the stock boot.img. This is done because Magisk installer will complain if it detects this patched boot.img we used in earlier steps to boot TWRP and thus fail. Installing the stock boot.img will let us install Magisk successfully. SO in TWRP, go to Install / Install Image and browse to the boot.img file; then select "Select Partition to Flash Image: Boot" and flash it.

13) Go back to TWRP home and proceed to install Magisk Zip file. The installer should end without any errors.
14) Reboot your Samsung to system, and you can now install Magisk Manager (allow unknown sources, you know this already). Once done, open it. You'll be greeted with beautifil green ticks :good:


TWRP will still be there when you need it.

ENJOY!!!!
Thanks to a lot to @4ld0u5 for the original thread.
 
  • Like
Reactions: yudibilly

yudibilly

New member
Apr 5, 2014
2
1
SURABAYA
Following the procedure given in the first post, Magisk can also be installed. I'll continue with a new step 10:

10) If you followed the original thread and installed SuperSU, you'll need to uninstall it in order to proceed. Unroot your phone using this unSU script. If you haven't yet, ignore this.

11) To install latest Magisk, DOWNLOAD the following:
Latest Magisk
Latest Magisk Manager
(Verify you're downloading the latest versions in this thread here.)
Place these downloads in your SD Card and also extract the stock boot.img from your firmware AP file, as described before. We'll need it.

12) Now press and hold Vol Up + Home + Power will boot usa into TWRP. Now we need to first install the stock boot.img. This is done because Magisk installer will complain if it detects this patched boot.img we used in earlier steps to boot TWRP and thus fail. Installing the stock boot.img will let us install Magisk successfully. SO in TWRP, go to Install / Install Image and browse to the boot.img file; then select "Select Partition to Flash Image: Boot" and flash it.

13) Go back to TWRP home and proceed to install Magisk Zip file. The installer should end without any errors.
14) Reboot your Samsung to system, and you can now install Magisk Manager (allow unknown sources, you know this already). Once done, open it. You'll be greeted with beautifil green ticks :good:


TWRP will still be there when you need it.

ENJOY!!!!
Thanks to a lot to @4ld0u5 for the original thread.
Thanks
 
  • Like
Reactions: metafaniel

J3batDerhaka

Senior Member
Sep 9, 2011
63
4
Putrajaya
I'm sorry. I couldn't understand this part..
2. Open Firmware file open the AP file, inside you will see folders and the boot.img. extract the boot image by draging it out from the AP file

Please assist. TQ..
 

RaizelVinz

New member
Feb 20, 2018
3
0
i have the problem with my twrp . are u already solve the problem u faced?

thanks it's worked :):):):):)
but my phone stuck on bootloop samsung logo......it won't start up .......
e : failed to mount / efs (invalid argument )
e : failed to mount / efs (invalid argument )
e : failed to mount / efs (invalid argument )
dm-variety failed...........
how to fix it ...
please help me :(
thanks

I have the same problem with my twrp too sir . just like yours. can anyone help me?
 

xchoii

New member
Feb 24, 2018
1
0
Hello brother. Im already rooted with SuperSU. I want to try Magiisk. Is it okay if I flash my J2 Prime with the stock rom and then root it directly using Magisk? :confused:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Rooting And TWRP for Samsung J2 Prime SM-G5325
    By: Aldous M.C

    https://forum.xda-developers.com/member.php?u=7506444

    warning: not for noobs who dont know anything about odin/flashing/rooting

    I found this in 4pda.ru forums i could not really understand even the page was translated from russian to english. though i figured out how they did this
    The concept was to create a odin package with a patched boot.image of samsung a3 with twrp recovery.img inside odin package then flashing it thru odin and after that flashing back the stock boot.img of Samsung J2 Prime then booting directly to recovery to flash SuperSU to patch the Stock Boot.img to make TWRP stick and not be replaced by stock recovery or giving a SEAndroid enforing error when booting to TWRP

    So this is how you do it. First you need A full official firmware of Samsung SM-G532G (J2 Prime) Odin, and a Tar-Tool to convert boot.img from firmware to a odin package

    WHAT YOU NEED (download links below)

    1. Download latest firmware for J2 prime
    2. Open Firmware file open the AP file, inside you will see folders and the boot.img. extract the boot image by draging it out from the AP file
    3. Download tar-tool and extract folder to deskop or anywhere then Place boot.img inside TAR-Tool
    4. then run the ImgToTar.MD5.bat file and you will see a boot.tar.md5 file appear. (do not rename it to anything else odin will not recognize this as boot.img and will not flash)
    5. Now you have a Odin flashable boot.img from your original firmware. place it somewhere you can easily access we will use it later.

    FLASHING THE TWRP

    1. on your phone go to developer options and enable usb debbuging and toggle oem unlock to ON
    2. power of your phone
    3. Open odin on pc and click AP then select/browse the A3 boot img+TWRP odin package select it.
    4. then go to options tab uncheck the auto reboot and do not check anything else just the auto-reboot
    5. Open your phone to ODIN mode Press and hold home key + Volume down then power
    6.Plug in your phone to your pc and press volume up to continue download
    7. in PC start the download in Odin if it says pass go to next step
    8. at this point you cannot power off the device all you have to do is remove the battery and put it back in BUT DO NOT TURN IT ON YET!
    9. Go to ODIN mode again on your phone and the flash the stock boot.img you created with the TAR-Tool (REMEMBER TO ALWAYS UNCHECK AUTO-REBOOT in Odin so you will not end up with a reboot after a succesful flash. again you cannot turn off the phone, just pull the battery and put it back in. Do not turn it on yet dont boot it else your TWRP recovery will be replaced by stock or put you in a boot loop
    10. Now Go to Recovery mode, while phone is powered off Press and hold home key + volume up + power key.
    11, Tadaa, you have your TWRP recovery booted, now you can flash SUPERSU (use flashable SuperSU 2.79 or latest)
    [almost forgot before doing all this place the SuperSU flashable zip on both storages internal and sdcard]
    12. now the stock boot.image is patched by SuperSU and it will now hold the TWRP even after reboot.
    13. Your done turn your phone on and you have a rooted Samsung J2 Prime.

    DOWNLOADS

    https://yadi.sk/d/zsYDiUSk3FJHPX - A3+TWRP odin package
    https://forum.xda-developers.com/showthread.php?t=2446269 - TAR-Tool
    https://drive.google.com/uc?id=0B4fZWSYgVIIOR2kxSVBsYTdmWFE - SAMSUNG J2 Prime FIRMWARE (SM-G532G) you can also find other sources with updated firmwares for your region.

    BIG thanks to:

    Mk.Mourad for the Tar-Tool script
    A Russian comrade JacobN of 4pda,ru forum for the A3+twrp odin package

    i am not responsible for anything that happens to your phone while doing this. tested by me and will work if you follow carefully all procedures.

    Aldous M.C
    1
    Can I use this with Baseband version AQA3 and Build number AQC1 ?
    ive tried this and it worked for aqa3 aqc1
    1
    Procedure continues to apply Magisk

    0FeqigMQcdbjsxoXmvwreERoDvW8zjaIGzrKyR9mTZzDrX4I05pRsYPDI6VP2MaQlg=w200


    Following the procedure given in the first post, Magisk can also be installed. I'll continue with a new step 10:

    10) If you followed the original thread and installed SuperSU, you'll need to uninstall it in order to proceed. Unroot your phone using this unSU script. If you haven't yet, ignore this.

    11) To install latest Magisk, DOWNLOAD the following:
    Latest Magisk
    Latest Magisk Manager
    (Verify you're downloading the latest versions in this thread here.)
    Place these downloads in your SD Card and also extract the stock boot.img from your firmware AP file, as described before. We'll need it.

    12) Now press and hold Vol Up + Home + Power will boot usa into TWRP. Now we need to first install the stock boot.img. This is done because Magisk installer will complain if it detects this patched boot.img we used in earlier steps to boot TWRP and thus fail. Installing the stock boot.img will let us install Magisk successfully. SO in TWRP, go to Install / Install Image and browse to the boot.img file; then select "Select Partition to Flash Image: Boot" and flash it.

    13) Go back to TWRP home and proceed to install Magisk Zip file. The installer should end without any errors.
    14) Reboot your Samsung to system, and you can now install Magisk Manager (allow unknown sources, you know this already). Once done, open it. You'll be greeted with beautifil green ticks :good:


    TWRP will still be there when you need it.

    ENJOY!!!!
    Thanks to a lot to @4ld0u5 for the original thread.
    1
    Following the procedure given in the first post, Magisk can also be installed. I'll continue with a new step 10:

    10) If you followed the original thread and installed SuperSU, you'll need to uninstall it in order to proceed. Unroot your phone using this unSU script. If you haven't yet, ignore this.

    11) To install latest Magisk, DOWNLOAD the following:
    Latest Magisk
    Latest Magisk Manager
    (Verify you're downloading the latest versions in this thread here.)
    Place these downloads in your SD Card and also extract the stock boot.img from your firmware AP file, as described before. We'll need it.

    12) Now press and hold Vol Up + Home + Power will boot usa into TWRP. Now we need to first install the stock boot.img. This is done because Magisk installer will complain if it detects this patched boot.img we used in earlier steps to boot TWRP and thus fail. Installing the stock boot.img will let us install Magisk successfully. SO in TWRP, go to Install / Install Image and browse to the boot.img file; then select "Select Partition to Flash Image: Boot" and flash it.

    13) Go back to TWRP home and proceed to install Magisk Zip file. The installer should end without any errors.
    14) Reboot your Samsung to system, and you can now install Magisk Manager (allow unknown sources, you know this already). Once done, open it. You'll be greeted with beautifil green ticks :good:


    TWRP will still be there when you need it.

    ENJOY!!!!
    Thanks to a lot to @4ld0u5 for the original thread.
    Thanks