[TWRP][Android 6.0][3.1.0-0][c9lte][c9 pro][Indian][Root][decrypt] Work in Progress

k2wl

Senior Member
Apr 19, 2008
3,166
7,573
0
TWRP 3.1.0-0 for Samsung Galaxy C9 pro (SM-C900F) indian variant

This recovery is tested only on indian variant but should work on other variants too.​
Code:
Flashing custom recovery and boot images will trip knox flag 
and it can not be reverted. Your warranty will be void. 
I am not responsible for any data loss or damage happens to device.
THIS PROCEDURE CAN CAUSE DATA LOSS . PLEASE MAKE A BACK UP BEFORE PROCEEDING.
This TWRP is built from source. It support back up of system,efs persist partitions.
As default samsung encrypts data and internal storage so by default you cannot mount data, system or internal storage.
So for removing encryption we have to format data and load decryption script given below.

Steps
1.Boot into Download mode
[Vol. Down + Home + Power]

2.Flash recovery.tar.md5 from odin [use latest 3.12 version and put tar.md5 in AP slot] and keep pressing Vol. Up + Home while flashing tar.md5 so that it will boot directly into recovery after reboot.

3. In recovery keep system read only.

4. go to backup menu and backup all partitions. Now reboot to normal OS

5. connect the phone to PC and copy the TWRP folder from storage to PC. (this is back up for restoring)

6. Back up your data, pictures, contacts, sms, whats up, telegram messages etc.

7. reboot to recovery [Vol up + Home + Power] and format data and in advanced wipe - format system,data,internal storage,cache,davlik from wipe menu.

8. connect phone to pc , now you can see internal storage.
Download & Copy
i) no-verity-no-encrypt_ashyx from https://forum.xda-developers.com/sa...wrp-3-0-2-1-samsung-galaxy-a9-pro-sm-t3426701
ii) SuperSu https://forum.xda-developers.com/showpost.php?p=55256620&postcount=1
to storage
Now copy your TWRP back up to storage.

9.Now from restore menu install the back up. > Go to install and select the above 2 zips for install.

10. after installing all this you have rooted phone with decrypted twrp . Now boot to os

Remember to make back up of this rooted configuration in TWRP so that you can always get back to this configuration when ever you want.

Download
https://forum.xda-developers.com/attachment.php?attachmentid=4104671&d=1491593451

Source
1. Manifest
https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni/tree/twrp-6.0

2. Device tree
https://github.com/k2wl/c9lte-twrp

3. Kernel
built from opensource.samsung.com
http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=c900f

Credits
*Samsung for kernel source.
*Omni rom and TWRP team
*@jcadduono @ashyx for dm-verity and forced encryption patcher.
*LineageOS team
*@pawitp (for being an inspiration :))
*@Chainfire for supersu
 

Attachments

Last edited:

k2wl

Senior Member
Apr 19, 2008
3,166
7,573
0
things i tested
1.back up and restore
2.format data
3. wipe all mounts from advance wipe
4.language settings
5.root by supersu
6.dm-verity and encryption removal
7.MTP after data format
8.adb sideload
9.reboot to recovery, system,download,power off
10.file manager

so i think all basic things working properly if you follow the steps i listed above.:)
 
Last edited:

Pariki

Senior Member
Jan 24, 2010
234
52
0
Atlast... Feeling blessed..

Thank you K2wl for working on this phone.

Will flash this TWRP & Let you know the status.

Is this TWRP version same as the one in the other thread? Because I already tested the TWRP in the other thread & posted few issues. Are they rectified?


Please let us know.
:good::laugh:

---------- Post added at 01:21 AM ---------- Previous post was at 12:40 AM ----------

K2wl,

Any chances of porting Custom Roms on C9 Pro like Cynogen Mod 6.0 or Lineage OS.
Simple roms for this beast phone would be great.
Any plans for this from your side?
Just curious.. :good:
 

k2wl

Senior Member
Apr 19, 2008
3,166
7,573
0
Atlast... Feeling blessed..

Thank you K2wl for working on this phone.

Will flash this TWRP & Let you know the status.

Is this TWRP version same as the one in the other thread? Because I already tested the TWRP in the other thread & posted few issues. Are they rectified?


Please let us know.
:good::laugh:

---------- Post added at 01:21 AM ---------- Previous post was at 12:40 AM ----------

K2wl,

Any chances of porting Custom Roms on C9 Pro like Cynogen Mod 6.0 or Lineage OS.
Simple roms for this beast phone would be great.
Any plans for this from your side?
Just curious.. :good:
yes ..i am planning for lineage :)
and if you follow my instructions this twrp works good!!!
@rajdeep312 this is recovery and not a rom so you can install xposed in your os if you want to...(i personally does not use exposed)
 
Last edited:
  • Like
Reactions: Pariki

Pariki

Senior Member
Jan 24, 2010
234
52
0
things i tested
1.back up and restore
2.format data
3. wipe all mounts from advance wipe
4.language settings
5.root by supersu
6.dm-verity and encryption removal
7.MTP after data format
8.adb sideload
9.reboot to recovery, system,download,power off
10.file manager

so i think all basic things working properly if you follow the steps i listed above.:)
========================

Great. Will work on the phone tomorrow & check on the TWRP & Xposed framework..

Will post updates on the new recovery & for any issues.

Eagerly waiting for K2wl to work on Lineage OS.
Thanks K2wl. :good::laugh:
 

Pariki

Senior Member
Jan 24, 2010
234
52
0
I am not able to format /data & an SD card more than 8 GB is needed to backup the system.
I was able to format system.
 

k2wl

Senior Member
Apr 19, 2008
3,166
7,573
0
I am not able to format /data & an SD card more than 8 GB is needed to backup the system.
I was able to format system.
use format data from advanced wipe.
type yes for formating data
after that go back to install and install no-verity-no-encrypt script above from internal storage.

if that does not solve your problem then copy the recovery log here.
 

Attachments

Last edited:
  • Like
Reactions: Pariki

Pariki

Senior Member
Jan 24, 2010
234
52
0
Lineage OS..

Hi Karthik ( K2wl ),

Any update or tentative date by when we can expect Lineage OS..
Please let us know about this...
:good: :good:
 

amk

Senior Member
Oct 16, 2006
249
17
0
i am waiting for my c9p, may be china version.
can i change to india version so i can flash the above twrp?
tks.
 

Pariki

Senior Member
Jan 24, 2010
234
52
0
Successfully installed Wanam Xposed..

I followed the instructions by K2wl & installed Wanam Xposed.

Format System, Data & Restoring backup worked fine.

Then installed
xposed-v87.1-sdk23-arm64-custom-build-by-wanam
XposedInstaller_3.1.1.apk

All good now.

Eagerly waiting for K2wl's Lineage OS now..

:good: :laugh:
 
  • Like
Reactions: melanjae02

k2wl

Senior Member
Apr 19, 2008
3,166
7,573
0
I followed the instructions by K2wl & installed Wanam Xposed.

Format System, Data & Restoring backup worked fine.

Then installed
xposed-v87.1-sdk23-arm64-custom-build-by-wanam
XposedInstaller_3.1.1.apk

All good now.

Eagerly waiting for K2wl's Lineage OS now.....but i am working on it..:)

:good: :laugh:
i know it is taking time as development on samsung is bit difficult..
 
  • Like
Reactions: Pariki