[Miscellaneous Android Development] darknaio:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Warning

This recovery will

TRIP

your Knox Counter and your warranty will be void.

This recovery is only for Samsung Galaxy J3 (SM-J320P) msm8916 variant running 5.1.1 (Lollipop).

Tested Safely on following devices.

Samsung Galaxy J3 (SM-J320P)

Why use TWRP ? Why not just use some rooted firmware which keeps my warranty safe?

TWRP is a custom recovery. Thus, it has many more features than stock recovery, such as making full NAND backups, flashing zips through recovery, ADB sideload, and more! Plus, if something goes wrong while flashing something, you can always restore from a backup using TWRP, meaning you're much safer when flashing new ROM's, etc!​

Screenshots

Instructions

Follow the instructions carefully.

DOWNLOAD LINKS ARE UNDER THE "WITH PC" INSTRUCTIONS. A SEPARATE DOWNLOAD LINK IS PROVIDED UNDER "WITHOUT PC" FOR THE .IMG FILE YOU NEED FOR THOSE INSTRUCTIONS​

WITH PC:

Step 1 :

Install Samsung Drivers and connect your device to PC. Let it install the drivers and any updates that may be required. The device drivers should install without failure.

Link to Samsung Drivers

Step 2 :

Download Odin 3 you can use 3.07 or 3.09

You can download Odin from here

Download the TWRP Recovery ---- Google Drive Mirror for TWRP

(DISCLAIMER: I HAVE NOT USED GOOGLE DRIVE EXTENSIVELY FOR FILE SHARING, SO THERE MAY ALSO BE A BANDWIDTH/DOWNLOAD NUMBER LIMIT PER DAY, SO IF YOU ARE UNABLE TO USE EITHER LINK, TRY AGAIN THE NEXT DAY FOR THE TIME BEING UNTIL WE DECIDE ON A BETTER FILE HOSTING SERVICE.)

Step 3:

Power down your device, then when turning it on hold [ Vol down + power + home button (all at the same time) ] in order to boot the phone into Odin mode. Release it when you see the warning about entering "Download Mode".

Press vol up to confirm

Step 4:

Now that you are in Odin Mode, connect your device via USB cable.

Now open Odin 3.09 or 3.07 that you have downloaded.

If there is a pop-up regarding Installing ADB drivers let it finish, it usually updates.

Make sure the COM : xx (xx is usb port number it can be any number so don’t worry about it, just verify COM is lit up)

Now select

AP

and browse to where you have .tar file and select it

Make Sure only Default

Auto Reboot

and

F. Reset Time

is ticked and nothing else. Very important! Double check that only these are ticked.

Untick Auto Reboot if you are installing recovery for first time!

Click Start and wait for the process to end. DO NOT Interrupt during this time.

Once it says PASS. BOOT INTO RECOVERY USING VOL UP + HOME + POWER BUTTON.

Done.

OR ​

WITHOUT PC:

Instructions:

1. Make sure you have temp root available (Yes, this means likely using Kingroot one more time).

2. Download the recovery.img file (essentially what is in the Odin flashable .tar file) from here. Make sure you are aware of it's download path to find it with Flashify.

3. Download Flashify from the Play Store.

4. Open Flashify, grant root access, and click Recovery Image. Navigate to where you downloaded the .img file and select it.

5. A dialog should pop up asking if you want to continue with flashing the recovery. Click "Yup!" and wait for it to finish. Afterwards if it doesn't ask you to reboot, do so yourself into recovery (Vol-UP+Home+Power in case you forgot). If things went right, you should boot into TWRP smoothly!

A few helpful things for the "just in case" moments(most of these require a PC with Odin, unfortunately):

* Stock Recovery Odin flashable .tar

* Stock Boot Odin flashable .tar

* Both of the above are flashed the same as the instructions above detail flashing TWRP. Use either depending on what you've flashed/messed up, or flash both if you aren't sure. These are NOT a replacement for flashing full stock firmware through Odin in case of a thorough brick (I.E. combinations of boot/recovery/system/etc being corrupted together). Use these when you're flashing TWRP or the root zip, as it's faster and you shouldn't need to flash full firmware if you didn't brick your device in some other way.

* Raw kernel source for anyone wanting to start their own project for this device.

Credits:

TWRP Team i.e. [MENTION=912474]Dees_Troy[/MENTION] for his awesome recovery!

[MENTION=7133498]androidlover5842[/MENTION] for compiling TWRP, and for creating the flashable supersu.zip to give us PERM ROOT!

[MENTION=7284909]darknaio[/MENTION] for testing recovery!

*** IMPORTANT UPDATE: WE HAVE SOLVED THE ROOT PROBLEM ***

​

We have a working permanent root solution available for testing by anyone who would like to give it a try and get back to me with your results. So far on my device root has persisted through several reboots. Make sure you pay attention to the instructions when you flash it, and you should be good to go! Download the following file and flash it through TWRP, and make sure you DON'T let TWRP flash it's own supersu when you reboot. SuperSU TWRP Flashable ZIP

Source Code: https://github.com/Grace5921/android_device_j3ltespr

ROM OS Version: 5.1.x Lollipop

Twrp version: 3.0.2 Lollipop

ROM Kernel: Linux 3.10.x

Based On: Cyanogenmod

Version Information

Status: Stable

Created 2016-04-11

Last Updated 2016-04-11