[GUIDE][Oreo 8.0] Stock Kernel + ROOT + TWRP + DRM Fix | 41.3.A.2.149

deboopi2

Senior Member
Nov 12, 2011
499
36
0
MECHELEN
I tried to install it but I have problems..
I installed 41.3.A.2.24
I flashed the boot_oreo image, thereafter the twrp recovery 3.2.0.0 and then booted, so far so good.
Installed the drm fix, no problems.
But then I needed magisk, installed version 15.1 and tried to boot but got stuck at the sony logo.
Reflashed the boot_oreo.img and then booted up, installed the magisk manager 5.5.2 but this version asked me to install the manager 5.5.3 and magisk 15.2. Installed all of these and was able to boot
Safety net control in magisk manager failed: ctsprofile false, basicintegrity false.
I tried to enable root mode in es file manager and got the message :device does not support this, so root is not complete.

What to do next, I already tried with safety net cleaner, did not hhelp
 

deboopi2

Senior Member
Nov 12, 2011
499
36
0
MECHELEN
Ok I started all over again and I noticed I didn't follow the procedure first time.
  • So I excluded the FOTA kernel but whatever else I check no full wipe is done, I can always see the previous installed apps, it does not matter if I check Cust-reset, master-reset or reset-wipe-reason, the system is not wiped.
    So that's my first problem, how to wipe the previous install.
  • Flashing the rom seems to be OK, same thing for flashing boot_oreo.img and twrp-3.1.1-0-dora.img.
    I'm not sure about twrp 3.2.0.0 because this version is off-line now, so I tried with TWRP 3.1.1.0 and 3.2.1.0 but they all gave me the same result.
  • Problems start when I have to flash drmfix.zip, safety-net cleaner or magisk 15.2. The procedure tells me the flash is ok but have a look at thet attached images, I get errors while flashing. One picture for drmfix, one for safety-net-cleaner and one for magisk 15.2
  • After flashing all of this I can boot successfully but when I try to get root in ES File Explorer pro, it does not work. When I go into Magisk and try the afety-net check I get ctsProfile false and basicIntegrity False.
    So the rom does work but I do not get root.
  • I tried all of this with the Italian rom 41.3.A.2.24.R1E ? I can start all over again with the UK version 41.3.A.2.24.R2E but I do not know if this makes any sense.
So can anybody tell me what to do to get it all going?
 

Attachments

nickcaper

Senior Member
Jun 2, 2012
308
65
0
This seems fluffy and great but where is the FTF file? Where is the Kernel File?
You people domt seem to know how to LINK files... You really think we want to play the search game all day?
POST LINKS...


Its rather difficult, impossible actually, to update without a FTF file...


ok i got it all to work,

steps i performed, on my laptop windows 7 ult x64

downloaded and installed the following

ADB and FASTBOOT extracted it on my c:/adb
Xperia X Performance drivers extracted it on c:/
FlashTool installed it and it's drivers located in the install folder of flashboot

downloaded the folowing files

Oreo Kernel Image copy to c:/adb
https://mega.nz/#!OA5BBJDY!lQ9Xojv5DN45QPbUQt-iQGhI409B7l7WoWvo0GTqYlY]DRM fix patch copy to to phone memory
TWRP 3.1.1.0 have not tried latest yet but 3.1.1.0 works fine, copy to c:/adb
Magisks 14.5 Beta copy to phone memory

folowed the guide methode 1 with slightly changes
01- Flash Oreo FTF via Flashtool ([color=redFull wipe in TWRP since i don't quite know how to use flashtool[/color], exclude FOTAKERNEL !! )
02- When done flashing unplug device .. (Do not boot yet !!)
03- Enter fastboot mode and flash the given kernel image (hold vol up + plug usb)
Code: fastboot flash boot boot_oreo.img
04- Flash TWRP 3.1.1.0 have not tried latest yet but 3.1.1.0 works fine
Code: fastboot flash recovery twrp.img
05- Unplug and enter TWRP (Hold vol down + power button) and did full wipe except system and micro sd
06- Flash drmfix.zip
07- Flash Magisks 14.5 Beta
08- Reboot and enjoy

everything works fine
 
Last edited:

nickcaper

Senior Member
Jun 2, 2012
308
65
0
Would be nice if you actually offered files... I assume we are all suppose to guess where to get the kernel and other files? SMH

Stock Kernel + ROOT + TWRP + DRM Fix​


*This is for .401 fw if you're looking for latest fw kernel use this tool to patch stock kernel extract it from .ftf file


Code:
** 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 MOD
** 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.
**
Requirements
- If you haven't unlocked bootloader yet check this guide
- TWRP image get it here
- Oreo Kernel Image from get it here
- DRM fix patch get it here
- Magisk (ROOT) get it here
- SafetyNet Cleaner (optional) get it here
And obviously :
- ADB and FASTBOOT : https://forum.xda-developers.com/showthread.php?t=2317790
- Xperia X Performance drivers : https://developer.sonymobile.com/downloads/drivers/xperia-x-performance-driver/
- FlashTool : http://www.flashtool.net/downloads.php



What are DRM Keys ?


Kernel features
this is pure stock kernel
- RIC disabled
- added DRM patch support
- SELinux state changed to PERMISSIVE


Instructions (Updated)
Before proceed backup all you important data like pictures, files to another device.. !
Make sure you follow all steps carefully with caution .. !


01- Flash Oreo FTF via Flashtool (Full wipe is recommened exclude nothing )
02- When done flashing unplug device .. For Single sim XP(F8131) users do not boot yet skip step 03 .. Dual sim users (F8132) follow step 03
03- (F8132 only) boot your phone and finish the boot setup then go to the settings menu and make sure storage is recognized as 64GB and not 32GB
04- Enter fastboot mode and flash TWRP (hold vol up + plug usb)
Code:
fastboot flash recovery twrp-3.2.1-0-kagura.img
then flash oreo kernel

05-
Unplug and enter TWRP (Hold vol down + power button)
If it doesn't ask for password you can skip step 06 .. If not turn off the phone (from TWRP if you can or hold vol up and power button till the phone vibrates 3 times)
06- (Only if TWRP asks for password)
Enter Fastboot and format user data partitions
Code:
fastboot format userdata

07- Flas oreo kernel
Code:
fastboot flash boot boot.img
08- In TWRP Flash drmfix.zip + SafetyNet Cleaning Tools.zip then Magisk v14.5.zip
09- Reboot and enjoy

Recommendations (optional)


Credits @serjar for unofficial rootkernel update
Old DRM restore by @tobias.waldvogel
Magisk by @topjohnwu
SafetyNet Cleaner by @sceryavuz
TWRP by TeamWin
 

nickcaper

Senior Member
Jun 2, 2012
308
65
0
well it seems Oreo is NOT root enabled yet. obviously the person that claims this is lying.
I'm close to going buy a iPhone cause at this point it seems Android and Android devices are all locking everything down and the root Glory days is over. smh. sad.. very sad.
 

deboopi2

Senior Member
Nov 12, 2011
499
36
0
MECHELEN
well it seems Oreo is NOT root enabled yet. obviously the person that claims this is lying.
I'm close to going buy a iPhone cause at this point it seems Android and Android devices are all locking everything down and the root Glory days is over. smh. sad.. very sad.
If you follow the guieline on this page OREO is rootable, but first you have to unlock your phone
 

Stoffl_

Senior Member
Jan 18, 2007
823
190
0
I used OPs guide + this one https://forum.xda-developers.com/showpost.php?p=74724162&postcount=2793(to make my own boot image and kernel) and successfully flashed 41.3.A.2.58, TWRP, rooted and installed Magisk.

Seems to have worked. :)
Rom F8132_Customized FR_1302-9341_41.3.A.2.58_R2E
twrp-3.2.1-0-dora
rootkernel_v5.23_Windows_Linux_UNOFFICIAL_2.3_OREO + DRM-Fix_System_Mode from the above link
Magisk + SafetyNet Cleaning Tools from OPs post

Thanks OP
 
Last edited:

Stoffl_

Senior Member
Jan 18, 2007
823
190
0
!

Also if you're on F8132 don't forgot about 3.)
03- (F8132 only) boot your phone and finish the boot setup then go to the settings menu and make sure storage is recognized as 64GB and not 32GB
in your possibly multiple attempts of flashing..like I did. :p It's not optional and I only did so on my first attempt.

Just realized after setting everything up nicely that It's only showing 32gb internal storage. Well back to the start!
 

Stoffl_

Senior Member
Jan 18, 2007
823
190
0
Ok I started all over again and I noticed I didn't follow the procedure first time.
  • So I excluded the FOTA kernel but whatever else I check no full wipe is done, I can always see the previous installed apps, it does not matter if I check Cust-reset, master-reset or reset-wipe-reason, the system is not wiped.
    So that's my first problem, how to wipe the previous install.
  • Flashing the rom seems to be OK, same thing for flashing boot_oreo.img and twrp-3.1.1-0-dora.img.
    I'm not sure about twrp 3.2.0.0 because this version is off-line now, so I tried with TWRP 3.1.1.0 and 3.2.1.0 but they all gave me the same result.
  • Problems start when I have to flash drmfix.zip, safety-net cleaner or magisk 15.2. The procedure tells me the flash is ok but have a look at thet attached images, I get errors while flashing. One picture for drmfix, one for safety-net-cleaner and one for magisk 15.2
  • After flashing all of this I can boot successfully but when I try to get root in ES File Explorer pro, it does not work. When I go into Magisk and try the afety-net check I get ctsProfile false and basicIntegrity False.
    So the rom does work but I do not get root.
  • I tried all of this with the Italian rom 41.3.A.2.24.R1E ? I can start all over again with the UK version 41.3.A.2.24.R2E but I do not know if this makes any sense.
So can anybody tell me what to do to get it all going?
Any chance you have a ‎F8132 or did boot up the device once after flashing stock image ?

I just ran into your issue...I think it's related to booting up the phone after flashing and going through the setup steps.
Had to
Code:
fastboot format userdata
and
Code:
fastboot flash boot boot.img
To fix the "cannot mount storage" error in twrp.
Then I could successfully flash drmfix/safetynet/magisk and everythings working now.
Also don't setup any security features when you do bootup to check storage or you'll run into the problem where TWRP requests a password and then you'll also have to start from scratch. Just formatting userdata from fastboot didn't really fix it, yeah I could flash the ZIPs but then I'd run into problems when going through the Android setup wizard.



tl;dr I didn't have those issues yesterday where I ended up with only 32gb of internal storage so it's gotta be related to booting the Rom after flashing.


*edit*
mhm also ran into issues with security settings, app would crash when trying to setup fingerprint and screen security. Had to factory reset and reflash magisk.
Maybe there should be a cache/user data wipe at some point during the rooting steps ?
 
Last edited:

nickcaper

Senior Member
Jun 2, 2012
308
65
0
If you follow the guieline on this page OREO is rootable, but first you have to unlock your phone
First let me say NO.. it didnt work, I have the F8132 dual.
Second,, If you are going to provide a tutorial to root the device with factory kernel, maybe you need to provide teh factory kernel and all the required tools. It seems 99% of this forum loves to posts things and does not offer the required tools and files. What happens is, people get a bricked device and no way to repair it.
This in itself is one big reason why rooting has become a very unpopular thing these days,
Aint no body got time to be reading all day on how to do one simple thing that someone said on pag 125 of some post in some random subject.
In my ipinion, and my opinion DOES count, cause i have posted tutorials.. I am rather sick and tired of the struggle to simply find the proper methods and tools t root even an old phone. The F8132! In other threads for other devices there are assH**les literally requiring payment to get files whcih root and fix bricked phones,.

I swaer if this bullsh*t dont stop, Iphone will stay at number one and for good reason Cause teh Android scene is turning into a greedy, for profit debochery which i do nto care to invest in.. bye
 

Stoffl_

Senior Member
Jan 18, 2007
823
190
0
First let me say NO.. it didnt work, I have the F8132 dual.
Second,, If you are going to provide a tutorial to root the device with factory kernel, maybe you need to provide teh factory kernel and all the required tools. It seems 99% of this forum loves to posts things and does not offer the required tools and files. What happens is, people get a bricked device and no way to repair it.
This in itself is one big reason why rooting has become a very unpopular thing these days,
Aint no body got time to be reading all day on how to do one simple thing that someone said on pag 125 of some post in some random subject.
In my ipinion, and my opinion DOES count, cause i have posted tutorials.. I am rather sick and tired of the struggle to simply find the proper methods and tools t root even an old phone. The F8132! In other threads for other devices there are assH**les literally requiring payment to get files whcih root and fix bricked phones,.

I swaer if this bullsh*t dont stop, Iphone will stay at number one and for good reason Cause teh Android scene is turning into a greedy, for profit debochery which i do nto care to invest in.. bye
Except it does work on the F8132 dual.

Make your own patched kernel/boot image https://forum.xda-developers.com/showpost.php?p=74724162&postcount=2793 the kernel.elf can be extracted from kernel.sin with flashtool\tools\sin-editor
twrp download is on the official site: https://dl.twrp.me/dora/

You get the most recent rom download from XPeriFirm which is included in flashtool
https://forum.xda-developers.com/xzs/how-to/tutorial-step-step-guide-to-gain-root-t3612624
(Guide is for the XZ but same rules apply)

Now, as I mentioned in my post above(which you didn't have time to read) there's some issues related to the F8132 dual if you boot it up to check storage size. Skip through everything security related, don't setup fingerprint or pattern or anything...just check if internal storage shows as 64gb.
Then continue according to the OPs guide.
If you completed the guide and successfully booted the rooted ROM and run into issues in the setup wizard, do a factory reset and reflash magisk from recovery.

If at some point you **** up you'll have to go back to the start and reflash the entire rom.
 
Last edited:
  • Like
Reactions: ajerkdude

ajerkdude

Member
Sep 1, 2010
24
3
0
Austin
Except it does work on the F8132 dual.

Make your own patched kernel/boot image https://forum.xda-developers.com/showpost.php?p=74724162&postcount=2793 the kernel.elf can be extracted from kernel.sin with flashtool\tools\sin-editor
twrp download is on the official site: https://dl.twrp.me/dora/

You get the most recent rom download from XPeriFirm which is included in flashtool
https://forum.xda-developers.com/xzs/how-to/tutorial-step-step-guide-to-gain-root-t3612624
(Guide is for the XZ but same rules apply)

Now, as I mentioned in my post above(which you didn't have time to read) there's some issues related to the F8132 dual if you boot it up to check storage size. Skip through everything security related, don't setup fingerprint or pattern or anything...just check if internal storage shows as 64gb.
Then continue according to the OPs guide.
If you completed the guide and successfully booted the rooted ROM and run into issues in the setup wizard, do a factory reset and reflash magisk from recovery.

If at some point you **** up you'll have to go back to the start and reflash the entire rom.
This post is what got me over the hump. I was previously just taking the supplied boot.img and flashing that. The key for me was pulling out the kernel elf using the sin editor, running the rootscript on that to create the boot.img.

Still not perfect, but I am a lot closer.
I am rooted on oreo on my F8131.
 

nickcaper

Senior Member
Jun 2, 2012
308
65
0
Here is the thing.. Post a Kernel. Dont post a instruction to make my own kernel. Those instructions are not very good.
Also, this seems to be allot of trouble for a old phone. I appreciate all the efforts but it seems Sony just does not want anyone to buy their products.. Therefore I will not...
 

Beetle84

Recognized Contributor
Oct 24, 2013
2,243
1,244
183
Hervey Bay
Here is the thing.. Post a Kernel. Dont post a instruction to make my own kernel. Those instructions are not very good.
Also, this seems to be allot of trouble for a old phone. I appreciate all the efforts but it seems Sony just does not want anyone to buy their products.. Therefore I will not...
Thank God you arent getting anymore sonys, all you do is whinge about everyones threads, oh I have to make a kernel, I cant figure out these instructions, my device wont get oreo, blah blah blah.
 

Stoffl_

Senior Member
Jan 18, 2007
823
190
0
Here is the thing.. Post a Kernel. Dont post a instruction to make my own kernel. Those instructions are not very good.
Also, this seems to be allot of trouble for a old phone. I appreciate all the efforts but it seems Sony just does not want anyone to buy their products.. Therefore I will not...
How about no ?

My post was a general how to and should work on any rom version. Posting a kernel would probably just result in lazy folks like yourself bricking their device by flashing a mismatched kernel/rom version.
 

nhtu1997

Member
Apr 7, 2016
33
2
0
If my phone is lock bootloader, can i root it?
My phone is SO-04H (docomo), flash rom oreo8 41.3.A2.58 of F8131
Sorry my english is not well