[KERNEL][41.2-41.3.A.2.24][G8231-2] Rootable kernel with disabled force-encryption.

Search This thread

zlRampageSlz

Senior Member
Jul 14, 2016
65
32
Pennsylvania
This kernel is good, but I have a question: When I brush the kernel, I can't enter TWRP through the combination of the volume key and the power button. Instead, my phone switch between the logo and the black screen. Do I need to write a TWRP again?(My English is not good, please fogive me:crying:)
Keep hold power, vol. up, and vol. down for 5 seconds until it vibrates 3 times. It will do force-shutdown, then you can try booting into TWRP again. Which build number are you using? (eg. 41.2.A.7.53) It won't work if the version doesn't match. Make sure you flash the kernel correctly. Flash it in the "boot" partition. Don't replace your recovery.
 

zlRampageSlz

Senior Member
Jul 14, 2016
65
32
Pennsylvania
I've added 41.2.A.7.65 kernel. Please flash the kernel version corresponding to your build number, otherwise you'll get bootloop.
I still couldn't figure out how to enable dt2w.
 
  • Like
Reactions: QPR_FC

AtulaKing

Senior Member
Nov 11, 2012
59
18
HaiPhong
Some of you guys might have a problem with TWRP encryption password. With stock kernel, /data will be encrypted in a few boots even if you set no password.

About this kernel:
- Working camera (DRM-patch)
- Disabled dm-verity (so we can use magisk)
- Can mount /data in recovery (it means we can install magisk inside /data)
- Pass both safetynet
- You can still encrypt any time
- It will not decrypt your data. In other words, you have to do factory reset (wipe data) if it's already encrypted.
- See encryption status in Setting->Security

You can download from the attachments.
41.2.A.7.65
G8231 - View attachment 4274409
G8232 Dual - View attachment 4274410

41.2.A.7.53
G8231 - View attachment 4251599
G8232 Dual - View attachment 4246515
It's not flashable zip, so please extract before use.
It will bootloop if you flash wrong version.

View attachment 4246527

How to disable by yourself?
Prerequisite:
- 32-bit linux (you can use it on liveboot drive or VM)
It doesn't work on cygwin (windows) because of its native executable. So use linux 32 bit (i386), or 64 bit (amd64) with multiarch.
- Unpack using mkbootimg tool made by xiaolu (I tried kitchen and it won't work)
- Open fstab.qcom
- Replace "forceencrypet" with "encryptable"
- Pack again
- Done!
Thanks tobias.waldvogel and xiaolu for their awesome tools.

If you have any question, feel free to ask me or some nice guys here.

Please update the fw 7.76. Many thanks bro
 

AtulaKing

Senior Member
Nov 11, 2012
59
18
HaiPhong
Some of you guys might have a problem with TWRP encryption password. With stock kernel, /data will be encrypted in a few boots even if you set no password.

About this kernel:
- Working camera (DRM-patch)
- Disabled dm-verity (so we can use magisk)
- Can mount /data in recovery (it means we can install magisk inside /data)
- Pass both safetynet
- You can still encrypt any time
- It will not decrypt your data. In other words, you have to do factory reset (wipe data) if it's already encrypted.
- See encryption status in Setting->Security

You can download from the attachments.
41.2.A.7.76
G8231 - View attachment 4307800
G8232 Dual - View attachment 4307799

41.2.A.7.65
G8231 - View attachment 4274409
G8232 Dual - View attachment 4274410

41.2.A.7.53
G8231 - View attachment 4251599
G8232 Dual - View attachment 4246515
It's not flashable zip, so please extract before use.
It will bootloop if you flash wrong version.

View attachment 4246527

How to disable by yourself?
Prerequisite:
- 32-bit linux (you can use it on liveboot drive or VM)
It doesn't work on cygwin (windows) because of its native executable. So use linux 32 bit (i386), or 64 bit (amd64) with multiarch.
- Unpack using mkbootimg tool made by xiaolu (I tried kitchen and it won't work)
- Open fstab.qcom
- Replace "forceencrypet" with "encryptable"
- Pack again
- Done!
Thanks tobias.waldvogel and xiaolu for their awesome tools.

If you have any question, feel free to ask me or some nice guys here.

The Oreo firm has been released, plz update bro. Thanks!
 
Last edited:

zlRampageSlz

Senior Member
Jul 14, 2016
65
32
Pennsylvania
FYI, I switched to Xperia X Performance since I broke the screen, but it's still functioning so I can tinker as much as I want.
X Performance, XZ, and XZs is basically almost the same. The same patches can be used except for kernels.
 
Last edited:

Top Liked Posts