[ROOT] [Xperia X] [STOCK KERNELS] - [LATEST] 34.4.A.2.118 -25-SEPT-2018

YasuHamed

Senior Member
Dec 17, 2013
2,152
850
183
Hi thank you for giving this a try, did you try installing without checking the buildprop tweaks? How about factory reset in TWRP before/after flashing the ROM as this should help

Edit 1 : if wiping data won't help it can be the display/audio libs that are embedded into the ROM files .. I will make them optional in next update anyway
Edit 2 :
I typed aroma4.1 but the actual rom i test was 4.2 downloaded from
https://drive.google.com/open?id=1LdARat0U62gxATfcF6H91TnJgLJVzf9o
it doesnt have drm fix nor magisk
the other one having both i didnt test but i will test and let you know in few hours


update2
tried Aroma4.2 (with rootable kernel) flashed drmfix after magisk--- this time no booloops but stuck at black xperia screensaver
tried aroma4.2 without rootable kernel, flashed kernel given in OT, flash magisk+drmfix from your post--- stuck at screensaver

update3
FLASHED 34.4.A.2.85
flashed twrp
flashed AROMA4.2 - selected rootable kernel - skipped Debloat and Build Prop Script


BOOTED :D
so basically the build prop script for X is not working
1 question, on the device selection menu, how Aroma decided which kernel to flash for X ? single or dual ?
 
Last edited:

YasuHamed

Senior Member
Dec 17, 2013
2,152
850
183
Yes I understand all the capabilities that comes with a root but I'm stuck and i want to be sure i fully understand the instructions

I've done most of whats already posted here: https://forum.xda-developers.com/showpost.php?p=72141176&postcount=7

My phone already had an unlocked bootloader. From the start my bootloader was unlocked. I bought my xperia unlocked since there was no carrier for it in the US.

it appears my main issue at the time was that windows 10 wasnt allowing me to install the drivers, but that has been resolved since I did an advance restart and was able to install the fastboot drivers.

Now my issue is with the instructions. I'm unsure what to do.

2. FLASH THE LATEST ROM VIA FLASHTOOL , if DURING FLASHING you get script error then
2B. Paste 34.4.fsc from folder1 to [C:\Users\<username>\.flashTool\devices\F51XX] and try TRY flashing again.
3. boot you device in to OREO , enable USB DEBUGGING and Switchoff you device​

on step two itsays to flash the latest rom. So does that mean run the flashtool in flashmode? and as for the selected rom, in my case is that going to be the last nougat firmware download?
Is this where I need to be at this point?
POINT 2B wont happend to you since flashtool (latest) have all the keylogger files
.. you are on right path of flashing last Nougat rom .252
https://img.xda-cdn.com/Xn_dnHoAyRahlvrVyO1_rPQpQ9k=/https://puu.sh/AQWVf/72fce5818d.png
its recomended that you perform CLEAN FLASHING by ticking all the check boxes uder WIPE area, this will delete all data in your device! , click flash and flashtool will start preparing FILES and at one point it will ask you to CONNECT DEVICE in FLASHMODE (at this time you will connect device in flashmode and it will ask you to include FSC SCRIPT click OK .... flashing will be done and then

do point 3. (it applies on Nougat too )
then switchoff
connect device in FASBOOT MODE and flash MODIFIED kernel given in OT via flashtool
open adb and flash twrp3.2.1 and remove cable.
now goto twrp (power+ volume down button) pressed continuesly unless you see twrp.
connect USB device to X via otg cable orrr if you have magisk in sdcard, flash magisk
options
flash thermel scirpt 1.3 by serajr
flash debloat scrip 1.8 by serajr
wip cache/delvik cache
reboot


plz note that the last nougat rom was very nice but has horrible battery life!
 

alusays

Member
Jun 23, 2018
8
0
0
POINT 2B wont happend to you since flashtool (latest) have all the keylogger files
.. you are on right path of flashing last Nougat rom .252
https://img.xda-cdn.com/Xn_dnHoAyRahlvrVyO1_rPQpQ9k=/https://puu.sh/AQWVf/72fce5818d.png
its recomended that you perform CLEAN FLASHING by ticking all the check boxes uder WIPE area, this will delete all data in your device! , click flash and flashtool will start preparing FILES and at one point it will ask you to CONNECT DEVICE in FLASHMODE (at this time you will connect device in flashmode and it will ask you to include FSC SCRIPT click OK .... flashing will be done and then

do point 3. (it applies on Nougat too )
then switchoff
connect device in FASBOOT MODE and flash MODIFIED kernel given in OT via flashtool
open adb and flash twrp3.2.1 and remove cable.
now goto twrp (power+ volume down button) pressed continuesly unless you see twrp.
connect USB device to X via otg cable orrr if you have magisk in sdcard, flash magisk
options
flash thermel scirpt 1.3 by serajr
flash debloat scrip 1.8 by serajr
wip cache/delvik cache
reboot


plz note that the last nougat rom was very nice but has horrible battery life!
Ok, now i'm stuck again. Whenever I try to flash twrp using adb I get this error
 

YasuHamed

Senior Member
Dec 17, 2013
2,152
850
183
Ok, now i'm stuck again. Whenever I try to flash twrp using adb I get this error
well dear such happens when bootloader is LOCKED
how sure you are that you bootloader is UNLOCKED?
when you reboot, do u see WARNING "this device cannot be trusted" ??? before SONY LOGO ?

if not..
then your bootloader is LOCKED and TA.img is INTACT :D

immediately flash the android 6.0.1 build ... download it via flashtool>xperifirm >suzu > f512x (your variant) select STOREFRONT build from list of countries (last one).

flash it, boot it, enable usb debugging, download (on pc) universial TA bckupv2 AKA dirtyCow Script, EXTRACT your TA img file (you can run multimple times the Dcow script and it will spew same copy of ta.img file with different filenames... it will be 2mb

now upgrade again to 8.0

unlock bootloader (as sony , they will send you KEY)

once unlocked!

then do this twrp step

;)
 

alusays

Member
Jun 23, 2018
8
0
0
well dear such happens when bootloader is LOCKED
how sure you are that you bootloader is UNLOCKED?
when you reboot, do u see WARNING "this device cannot be trusted" ??? before SONY LOGO ?

if not..
then your bootloader is LOCKED and TA.img is INTACT :D

immediately flash the android 6.0.1 build ... download it via flashtool>xperifirm >suzu > f512x (your variant) select STOREFRONT build from list of countries (last one).

flash it, boot it, enable usb debugging, download (on pc) universial TA bckupv2 AKA dirtyCow Script, EXTRACT your TA img file (you can run multimple times the Dcow script and it will spew same copy of ta.img file with different filenames... it will be 2mb

now upgrade again to 8.0

unlock bootloader (as sony , they will send you KEY)

once unlocked!

then do this twrp step

;)
I was sure it was unlocked, but i'll just start again from marshmallow since that seems to be the safest route
https://puu.sh/AReoR/2de698e26f.png


---------------UPDATE
ok I reflashed back to nougat after downgrading and I did get the message saying the device couldn't be trusted this time around. I'll update once I attempt to twrp etc again



--------------UPDATE 2
So I got twrp installed now and just flashed magisk via twrp, but now I'm waiting for it to reboot. Should it take a long time? I think I may be in a boot loop. Not sure yet.
 
Last edited:

YasuHamed

Senior Member
Dec 17, 2013
2,152
850
183
I was sure it was unlocked, but i'll just start again from marshmallow since that seems to be the safest route
https://puu.sh/AReoR/2de698e26f.png


---------------UPDATE
ok I reflashed back to nougat after downgrading and I did get the message saying the device couldn't be trusted this time around. I'll update once I attempt to twrp etc again



--------------UPDATE 2
So I got twrp installed now and just flashed magisk via twrp, but now I'm waiting for it to reboot. Should it take a long time? I think I may be in a boot loop. Not sure yet.
did you flash the modded kernel ? before flashing magisk?
if not then flash the modded kernel,
boot into twrp, flash magisk and DRMFIX.zip
then reboot
 
  • Like
Reactions: alusays

Gainer5

Senior Member
Mar 3, 2013
73
69
0
Hi. I'm new to the Xperia X and I unlocked it yesterday (34.4.A.2.85; Telekom DE). I installed Magisk and TWRP, those two work. But I have problems installing xposed, is there anyone who got it working on the newest oreo rom?

Thanks in advance :)
 

YasuHamed

Senior Member
Dec 17, 2013
2,152
850
183
Hi. I'm new to the Xperia X and I unlocked it yesterday (34.4.A.2.85; Telekom DE). I installed Magisk and TWRP, those two work. But I have problems installing xposed, is there anyone who got it working on the newest oreo rom?

Thanks in advance :)
Xposed on X (specially on Oreo) doesn't work! (atleast it never worked for me! )
 
  • Like
Reactions: Gainer5

hector1414

Member
Oct 29, 2011
13
1
0
Hi, could you please make a video, doing the root from scratch, I have android 8, version 34.4.A.2.85, and I have not managed to root.

I would really appreciate it, do a video tutorial. Thank you.
 

YasuHamed

Senior Member
Dec 17, 2013
2,152
850
183
Hi, could you please make a video, doing the root from scratch, I have android 8, version 34.4.A.2.85, and I have not managed to root.

I would really appreciate it, do a video tutorial. Thank you.


I will try to Make Video Tutorial on this subject. However even if I try to sum it up in a simple manner , Rooting Xperias (in general) and then rooting specific device (such as X) has so many details to remember that I might have to first type whole draft! and then execute!

however, meanwhile i can sum up in simple YES /NO manner by giving you guiding simple options !
1. your BOOTLOADER is LOCKED ?
YES- then before rooting you must save your DRM KEYS (not necessary but HIGHLY RECOMMENDED) ( downgrade to android MM 6.0 and use DIRTY COW SCRIPT
NO- this means drm keys either lost or you already had backup taken.

2. do you want to flash MODDED kernel OVER ORIGINAL STOCKROM {OREO} 34.4.A.2.85 ?
YES- then (a) flash modded kernel given in Opening thread under OREO KERNELS section (b) FLASH TWRP, BOOT in to twrp and from Twrp.. (c) FLASH MAGISK (d) flash Nightlight.zip (activator) (e) flash FCS Thermal.zip to keep device cool down (optional) (f) Flash Debloat Script v1.8 by Serajr (Optional) (but I use it) - (g) wipe Cache / Delvik cache and Reboot
NO - if you don't wana use Original Stockrom (rooted), then XGEN1-0-9 is the NEXT BEST modded Stockrom build on 34.4.A.2.85. SImply (A) flash TWRP, boot into TWRP, and from twrp (b) FLASH XGEN1-0-9.zip , (c) when you are asked choice between SuperSU or Magisk, CHOOSE MAGISK ( I use magisk but you can go with SuperSU also)


PREFACE for YOU
1. you must be aware of SONY XPERIAS in General
2. FLASHTOOL software (flashtool.net)
3. method of downloading STOCKROM via XPERFIRIM (inbuilt in flashtool) (list of given stock rom w.r.t to countries & original android 6.0 is also given)
4. Making Auto FTF FILE
5. if not then there is post in xda Xperia X form about Collected firmwares, you may download android 6.0 from there (if you boot is locked and you wana EXTRACT drmkeys (TA.img) file
6. Xperia Companion to be Installed (latest)
7. flasthool comes with drivers.exe , once you install flshtool goto c\flasthool\drivers and install this file, select (common drivers for flashmode/fastboot mode and all Z series devices (there is no X in the series) (z5 Z5p drivers works for X and XZ) ///////// if you are on windows 10 then these drivers can only be installed once you disable Digital Signature Verification in W10. , however on Windows7 (recomended) , you will not face such errors, only PROMPTS which you can ALLOW installation of UNSIGNED drivers....
8. minimal ADB and Fastboot (GOOGLE) MUST be installed. and you have knowledge of using Adb and Fastboot commands and correct MODE for device to be connected (flashmod and/or Fastboot mode)

ref
https://forum.xda-developers.com/showpost.php?p=72141176&postcount=7 BASICS
https://forum.xda-developers.com/showpost.php?p=70504721
https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648
 

trompilh

New member
Aug 7, 2018
3
0
0
Hi,
I can't manage to root my device.
I made the same mistake as the first answer sent to this post : I didn't downgrade to 6.0.1 before unloccking the bootloader. BL is unlocked then. I flashed the lastest CLEAN rom, then tried to flash the kernel, but then my phone bootlooped. I tried several times, but always the same problem occured.
Now, i try to flash the CLEAN 6.0.1 , but can't manage to do it, i get errors from flashtool. I tried to rename the fsc files, but without success. What can I do now so my device gets rooted ?
 
Last edited:

YasuHamed

Senior Member
Dec 17, 2013
2,152
850
183
Hi,
I can't manage to root my device.
I made the same mistake as the first answer sent to this post : I didn't downgrade to 6.0.1 before unloccking the bootloader. BL is unlocked then. I flashed the lastest CLEAN rom, then tried to flash the kernel, but then my phone bootlooped. I tried several times, but always the same problem occured.
Now, i try to flash the CLEAN 6.0.1 , but can't manage to do it, i get errors from flashtool. I tried to rename the fsc files, but without success. What can I do now so my device gets rooted ?
(ASSUMING YOU ARE STILL ONE OREO...)
1. if you couldn't save TA.img, its okay, it is HIGHLY recommended but not mandetory
2. if you don't flash (a)drmfix.zip and (b) Magisk VIA TWRP. and boot device simply by flashing the kernel. (even if the kernel is the correct one) you will end-up having bootloops ~ ~~~~~~ flash kernel, flash twrp, boot in to twrp, flash drmfix.zip and magisk16.0.zip and then boot!

there is no point in downgrading to 6.01 however since the problem lead to flashing error then this could be
1. FLASHTOOL DRIVER ISSUE ( GOTO C:\DRIVERS and install the file (select all devices)
2. paste log here so that i can see what flashtool saying when the flashing fails
3. fsc script error is FIXED! in 2017 August, the files were updated! so make sure you have the LATEST version x64 FLASHTOOL O-N-L-Y
 

trompilh

New member
Aug 7, 2018
3
0
0
Ok thank you very much ! I will try again, as you said, I didn't flash drmfix and magisk, so this is the point obviously. I will try again then !
And I don't have the latest version of flashtool, as for unknown reason, it doesn't work properly on my linux. I tried to fix the problem but that was too many problems to solve at once, then I decided to work with my old version...
 

YasuHamed

Senior Member
Dec 17, 2013
2,152
850
183
Ok thank you very much ! I will try again, as you said, I didn't flash drmfix and magisk, so this is the point obviously. I will try again then !
And I don't have the latest version of flashtool, as for unknown reason, it doesn't work properly on my linux. I tried to fix the problem but that was too many problems to solve at once, then I decided to work with my old version...
Old version flashtool cannot flash OREO ( atleast in theory) but you can try!
and yes plz keep me posted!
 

YasuHamed

Senior Member
Dec 17, 2013
2,152
850
183
If i want go back to stock, is it just simply flash the stock rom? After rooting from 8.0

rooting is exclusive to that build only! if you flash again (any stockrom , current or old) rooting is void
thats why all sort of kernels are given in the OT of various popular builds through out update life of X