yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
we cannot make zips of ORIGINAL ftf from sony, since it cannot be flashed. signatures will be void and devicewon't boot.

SONY is NOT developer friendly devices! it used to be perhaps! but not anymore!

as time passes ANDROID became stronger! and so does SONY's rules and stockroms, over the years and devices to devices

following happend since towelroot days

1. Android crack to xploit android filled up by Google so TOWELROOT, kingroot, kingoroot usually FAILS

2. last android with xploits were 5 (lollypop) which kingroot can root

3. google introduced DM VARITY which checks signatures of firmware and if any changes found , device won't boot

4. sony made thier security RIC even stronger! no one can by pass RIC

5. SONY keep changing the KEYLOGGER PATTERN (fsc SCRIPT) , thats why when u open flashtool , 100 device LOADED from GITHUB, appears! every device has its OWN set of RULES of flashing firmware! xperia z5 fsc script CANNOT be used for XPERIA X. ALL these toying around by sony is (may be to make device better) but definately makes flashtool's work hard. if flashtool doesn't keep up with the patterns of sony devices, it will fail to flash and/or may brick your expensive sony device!. --- XPERIA XZ PREMIUM is the most complicated device by sony! has no drm fix (direct) no kernel level alternation works! and once bootlocked! you can never relock it because drmkeys are lost for ever! --- sony is going to keep the same pattern for all its new devices! xz series, xa series, and L series! so trust me! sony is not developer friendly !

if you wana know what device is developers heaven! its ONEPLUS devices! ( onplus x, oneplust 3 and ofcourse oneplus 3T) they even support dual boot!
[Sony Xperia X Guides, News, & Discussion] nova001:
oke, but can you send me a tutorial how can i install the twrp ? (stock oreo rom)
[Sony Xperia X Guides, News, & Discussion] Gray47Maxx:
Can't agree, we can. I have made one for 5121, it's already available on 4PDA. If someone wants - I'll make a thread on XDA soon. But I need some testers with 5122, so I can test everything on them.
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
i will check

please give me your work's post and thread
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
twrp has nothing to do with any rom!

1. you can download the twrp from the link given in OT

2. install minimal adb and fastboot (google it) (2mb setupfile)

3. connect your device in fastboot mode

4. open adb, type fastboot devices , it will give you some hexa decimal code; indicating that device is connected

5. type fastboot flash recovery ........ (and drag download twrp on adb window from desktop) (assuming you saved twrp on desktop )

6. press ENTER , and adb will flash recovery

7. no disconnect device, after few second switch it on by keep pressing volume down and power key, until you see twrp screen

8. keep system readonly

9. install----- select storage------- (sd card) or (OTG) ---- browse for magisk, and other zips and flash them one by one!

10. clear cache and click power-off device from twrp buttons

11. after few seconds boot mobile normally, first boot may take time and/or even once goto bootloops!

WOLA
[Sony Xperia X Guides, News, & Discussion] Gray47Maxx:
Already tested: everything is working with your kernel and DRM-fix. Here's the link.
[Sony Xperia X Guides, News, & Discussion] Shailie:
Hi,

I followed the guide in the OT, flashed the firmware formatting everything but I encountered problems.

At first, I thought that something was wrong in TWRP not showing me internal storage, but then I read again all the recent post and find out in #204 that it was okay (gg Sony). I also read that someone solved this issue formatting internal data, that this decrypts the storage, is this possible?

The problems come when I try to flash a zip, a Magisk module (iYTBP) in this case:

- using Magisk, it appears to me the error "*Please install Magisk v15.0+!* Installation failed", even if I have v15.3...

[screen]

- using TWRP the error "Failed to decrypt", "Unable to mount storage", "Error installing zip files"...

[screen]

Is this okay too? If so, it's like not having a rooted phone. I have no idea how to solve this, can someone please help me?

I'm a bit disappointed about this update, might just go back to Nougat... :/
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
Wow, really? SuperSU is dead?

Guess good riddance. Systemless is the way to go.
[Sony Xperia X Guides, News, & Discussion] depressed_:
EDIT:

Debloat and DRM fix doesn't work even with busybox and commands written in terminal for Android.

Any hint?
[Sony Xperia X Guides, News, & Discussion] BiaBertK:
hi Guys

Have a problem with the contacts app.

when opening the app is always "contacts has ended"

Can someone tell me what that is,

and what i can do that it works.

Thank you
[Sony Xperia X Guides, News, & Discussion] depressed_:
Reflash OS if it happens from the beginning. I've root and apps working fine.

---------- Post added at 10:38 PM ---------- Previous post was at 10:33 PM ----------

I can see you tried to install injected YouTube background playback. It's modified magisk and it's bad.

Go to TWRP and flash normal magisk in a zip file.
[Sony Xperia X Guides, News, & Discussion] BiaBertK:
Thank you

I started over again

1. flash - 34.4.A.0.364 (VIA FLASHTOOL)

2. boot device in to OREO , enable USB DEBUGGING and Switchoff device

3. flash - twrp-3.1.1-suzu-2017.08.22.img (via FASTBOOT command using Adb command prompt , unplug the device)

4. flash KERNEL - F512X_34.4.A.0.364_CLEAN.img (using FLASHTOOL (fastboot MODE) and unplug device)

5. boot to TWRP, click KEEP READONLY button

5a. flash - DRM-Fix_System_Mode.zip

5b. flash - Magisk-v15.3(1531).zip

5c. flash - FCS_thermal_Xperia_X_V.1.3.zip

5d. flash - v1.8_Xperia_X_Debloat_By_Serajr_Combined.zip -> does not work, get error message!

5e. flash - Sony_Stock_ScreenRecording_Flashable.zip

6. clear cache ->start device

7. install magisk_5.5.5.apk (later via GooglePlay update ->v.5.6.0

8. install rootcheck_615.apk and check root access

everything works!

9. install - v1.8_Xperia_X_Debloat_By_Serajr_Combined.zip (Unpack and run debloat.bat)

After restart, the contact app stops working and can not dial a number!

What do I need to restore from "/system/_debloat_backup/" that everything works again?

Please help me!
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
1. twrp for SUZU is silent on Oreo decryption so at this point you cannot FLASH anything in to /system partition via twrp

2. you can only flash magisk in to KERNEL since boot image is IMG file.

3. however if you just flashed oreo, (CLEAN WIPE) then before BOOTING , flash twrp and directly BOOT in to TWRP before booting in to system. HOWEVER this will make you 64gb device as 32gb only :( because TWRP will alter the system paritition accordingly to its will and on next boot sony will not make it 64gb again and start settling; thinking as its 32gb variant!

however

you can always patch some modules via magisk withing android system!
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
I have no idea why it was discontinued! i guess something to do with project change!
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
not all the busybox are installing in to OREO

I tried two three busybox vendors and only one got installed! which lead me run linux command!
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
you mean its crashing ?

did you uninstall any system core module?

anways I am using GOOGLE CONTACTS and i have disabled sony contact app! since the sync is slow in sony contacts app, google shows real time contacts on server!
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
please read red below
[Sony Xperia X Guides, News, & Discussion] Shailie:
Well, the fact is that I tried to flash again Magisk using the zip in its official thread, but it still gives me the same error when I flash a module using Magisk:

"*Please install Magisk v15.0+!* Installation failed",

even if I have v15.3.

1. Will a new version of TWRP (maybe in this thread) make it possible? I hope so, otherwise, it's a bit useless...

3. I followed your guide so I booted the system (to enable USB debugging) and then flashed TWRP, my device F5121 was already 32 GB only when I bought it, so no problem with that.

Like I said before, Magisk doesn't let me flash anything and it gives me that error...
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
-- there is no OFFICIAL TWRP for SUZU so the one given in that post, i am using that one

--- since your variant is 32GB only then i would suggest that flash ROM again, WIPE CLEAN and don't boot / FLASH kernel / FLASH TWRP all before booting. NOW boot in to twrp. you should NOT get decryption error
[Sony Xperia X Guides, News, & Discussion] BiaBertK:
5d. flash - v1.8_Xperia_X_Debloat_By_Serajr_Combined.zip -> does not work, get error message! twrp cannot read OREO for SUZU (yet) so it will give you error

-> OK :o

TWRP!?

how did you install it?

-------------

9. install - v1.8_Xperia_X_Debloat_By_Serajr_Combined.zip (Unpack and run debloat.bat) how did you ran this? on PC ?

-> I'm sorry, I forgot to mention:( - Yes, install via PC (Windows 10)

-----------

the debload script don't disable core app such as contacts! however it worked fine with me. either you do the whole process again OR use google contacts ( iam using google contact app as i feel its more realtime )

-> OK

I started again from the beginning, and now everything works! :confused: All good things are 3 ;):)

Thanks for the tip, I'll take a look at the Google Contacts app
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
1. assuming you have downloaded twrp.img file on your desktop, and FLASHTOOL is CLOSED

2. open adb (minimal adb and fastboot) (google it)

3. connect device in fastboot mode (blue LED)

4. check your connection by typing fastboot devices (& enter), it should show u some hexadecimal code, this menas device is connected.

5. now type "fastboot flash recovery " & DRAG/DROP twrp.img from DESKTOP to adb window. and PRESS enter,

6. it will flash your /recovery partition in a sec

7. disconnect device and boot in to twrp (power+volume down button until PINK led
[Sony Xperia X Guides, News, & Discussion] FoxTheLegend:
Hey there! For eliminating confusions, I updated my guide and I pasted a link for your guide for OREO (and credited you)

because mine is still OK for Nougat and other simple stuff and we don't need another one for oreo.
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
Hmm... TWRP says the zip file is corrupt... (DRM Fix)
[Sony Xperia X Guides, News, & Discussion] FoxTheLegend:
Mine works fine. Re-download it and make sure you followed YasuHamed instructions
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
I did and no luck. SHA-256 value is 053121467C39F942E15E892D00D61A7BABD2919F17AAA6BD73073AE471F9D00E on both files.
[Sony Xperia X Guides, News, & Discussion] FoxTheLegend:
Ive got no clue.. could it be because of twrp.. what version you on
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
As provided by the MEGA folder linked in OP's post.

One thing that I did do differently is that I didn't flash the Oreo ROM with FlashTool, but I simply used my already updated setup. (I updated using Xperia Companion)

Is that a major difference? Other than that I unlocked the bootloader normally and proceeded with the instructions.

Edit: I should add that the kernel flashed no problem with FlashTool 0.9.24.2.

I went: Flash device > Fastboot mode > Select kernel to Flash > and then proceeded
[Sony Xperia X Guides, News, & Discussion] FoxTheLegend:
I don't think there is a (major?) difference? Both are official files

---------- Post added at 08:11 PM ---------- Previous post was at 08:11 PM ----------

anyway if I were you I would just reflash oreo and clean kernel and drm fix all over again, without wiping my data partition
[Sony Xperia X Guides, News, & Discussion] Shailie:
I just wanted to let you know that it worked! It's all okay now, even flashing the module with Magisk, so thank you. :3
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
Getting this error: "ERROR - Processing of system.sin finished with errors."

When I unplug the phone and try to boot it up it just sits on the Sony logo screen...

I had this error before. For some reason the ftf's I create never work. Downloaded the latest German generic ROM with XperiFirm and had it unpack it for me and then bundled with the latest version of FlashTool (64bit).

Wiped everything but the user data. Had it skip unsafe debugging or whatever it is that isn't part of that 34.4.fsc script...

Really lost here.
[Sony Xperia X Guides, News, & Discussion] FoxTheLegend:
Wow.. Btw I used the same. ftf you used. Ugh, sorry, no idea. Wait for YasuHamed..
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
Do you mind sending me yours? Or verifying your hash of the created FTF with mine?

SHA-256 is 7CDDEA9A5E585450ECCC56D4E5B56673EA207F4FA229F8477EAE3150D61FE2B9
[Sony Xperia X Guides, News, & Discussion] FoxTheLegend:
I cannot do that right now, but I will search for the specific site I used. hang on.

---------- Post added at 11:08 PM ---------- Previous post was at 11:01 PM ----------

Ugh, sorry cannot find it.. but mine was DE too. And same version fw obviously so I guess its same. I cant access desktop now sadly to check more advanced information
[Sony Xperia X Guides, News, & Discussion] linpe:
Just to confirm that this method works for F5122 (build 34.4.A.0.364)! All functions works as they should except one thing - "Screen Mirroring" and so far there is no workaround for this.

Hope that some workaround for "Screen Mirroring" on Oreo will come eventually!

P.S. I have tested all "Screen Mirroring" fixes for Nougat and Marshmallow but unfortunately no luck with Oreo and unlocked bootloader :(

UPDATE:

I solved screen mirroring issue by restoring my DRM keys with unofficial "rootkernel" and "ta poc"!

https://xdaforums.com/showpost.php?p=74724162&postcount=2793

Now have rooted stock Oreo with all DRM functions working...
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
[MENTION=5613633]YasuHamed[/MENTION] pinging you to ask if it's absolutely necessary to flash Oreo with FlashTool which so far has yet to bundle a working FTF just even once. (previous attempts for some Nougat ROMs downloaded with XperiFirm also never worked)

I must be missing something that either isn't mentioned in any guide for FlashTool (most of which are outdated anyways) or my setup messes with the bundling process.

FlashTool does however work fine when using pre-made FTFs, however I always prefer getting things from the original source and since Sony doesn't offer their firmwares in FTF format... I'm a bit at a loss what to do.

If you could help me out here it'd be ridiculously helpful, especially for any future flashing endeavors too.

Bonus question: If I were to re-flash Oreo with Sony's own EMMA tool, would that wipe my user data partition? I forgot what it did last time. :/
[Sony Xperia X Guides, News, & Discussion] linpe:
1. Download ROM files from Xperifirm

2. With that files, make FTF in Flashtool

3. Flash FTF on device through Flashtool

Here is one .mp4 where you can see all necessary steps in flashtool:

https://drive.google.com/uc?id=1_iFjbpBUfvUw7htSp5SnyYYegoZRzPuC&export=download

P.S. When trying to flash Oreo in Flashtool, if you see some error at the beginning of flash process, make sure you download "34.4.fsc" file, put it in [C:\Users\<username>\.flashTool\devices\F51XX] and try flashing again.
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
ALWAYS MENTION your device bootloader status...

if its locked, then use xperia companion to repair, however if its unlocked then

....

when you say you bundled with latest version of flashtool, please explain , did you manually created bundle by your self? or you let flashtool automatically create bundle for you AS YOU CLOSED the XPERIFIRM ?

manually created bundle may lead to unknown problems.

my suggestions,

1. try different ftf OR try the same FTF by redownloading and AUTO PACKING method via flashtool, call expfirim from within flashtool, download ROM , close xperifirm and as you close, flashtool with automatically create ftf for you (asking fsc script dialog box)

2. try now

another workaround would be (risky)

1 flash everything accept system.sin by flashtool.

once done,

2. unplug device and DONOT BOOT !!!!

3. use 7zip to extract system.sin (3gb) file from ftf and put it under " C:\Program Files (x86)\Minimal ADB and Fastboot " as "system.sin" (DON"T CHANGE NAME)

4. open Minimal ADB and Fastboot , connect your device in FASTBOOT mode (blue led) and check connection by typing and entering "fastboot devices" ,

5. now type fastboot flash system system.sin and enter

it will take a while but it will flash system.sin file

update me plz , what happens
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
in my xperiance manually created bundles always have missing certain buttons! , I believe the bundle creator withing flashtool isn't updated since many years! and sony's ftf got advance by each build!

1. if premade bundle of ftf works fine with you then

2. we are talking about RND side of flashing roms with FLASHTOOL.

however please note that, not long time ago! flashtool stopped working for sin4 files! so any issue here definately means flashtool is lagging behind! but bottom line is! it is the flashtool what we have got only.

I never tried EMMA so cant say anything about it

however, since you are curious,

see this post

https://xdaforums.com/showpost.php?p=72958788&postcount=16

flashtool doesn't flash XPERIA XZ PREMIUM G8XX

so there is different method

I never tried this method on X, and I don't recomend you to do that,

its just for your KNOWLEDGE
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
Ah, thanks a lot, there are some good pointers in there that I can try.

I'm currently on the run, just this question real quick so I'm ready to try your suggestion as soon as I'm back home: Where do I put the XperiFirm executable, because when I click the button for XperiFirm in FlashTool it doesn't launch it. Pretty sure it expects it in a specific place and I must have moved it around at one point because I didn't know that starting it from FlashTool is crucial. :good:
[Sony Xperia X Guides, News, & Discussion] Shailie:
Hi, I have mistakenly uninstalled Sony's file manager and now I can't give read/write permissions on the SD card.

Can someone please send me the .apk file? I don't want to flash the firmware again... Thanks!
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
[MENTION=5613633]YasuHamed[/MENTION] You Sir, are a gentleman and a scholar.

Knowing that the auto packaging is crucial I tried the following to fix my issue:

I moved my FlashTool folder to C:\ (had it in Program Files, because I DESPISE tools that deem themselves important enough to get root directory presence for either my user folder or the system drive...)

That did the trick! I might have gotten away with "execute in" and setting that to C:\ ... but... It's dandy now and I'll bear with it.

I created an FTF et voilà, it works!
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
seems like you are running flashtool on mac....

in only works if you are on WIN10/ WIN7 64bit. otherwise the button is just decoration piece on flashtool

install flashtool on windows based pc and it will work just fine!

do install all the drivers !
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
kudos buddy!

I am glad you have done it! keep it up! xperias are very dependent devices and demands alot from its owner! they are like cute pets lol
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
there is no pre installed file manager on sony xperia x

however you can always give rights to any file manager from settings.

if your device is rooted then OLD app of Kitkat sdcard right fix from Playstore also works just fine!
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
I am running it on a Mac, but under Windows 7 64bit, so that's not it. :)

Yeah well... I did flash the FTF and installed TWRP and the custom kernel, but where I - again - fail is within TWRP.

When trying to flash the DRM fix it all I get is this:

(see image attached)

Edit: / Solution:

I used adb to push the files to my device because I'm a lazy prick and didn't want to insert the SD card to my computer... turns out the file sizes were different, which was a hint... So I used good old Windows file explorer to save the files to SD card and yes, so far so good. Just completed the DRM fix flash no problemo. On to the next zips and hopefully less pain ahead. :fingers-crossed:
[Sony Xperia X Guides, News, & Discussion] WiktorKrasny:
kernel 34.4.A.0.364 Needed modified file in which SuperSu is already installed

When can you talk to a remanufactured kernel 34.4.A.0.364 with the Super SU already installed in it?

On the phone of course Sony Xperia X (F5121)
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
1. using flash on MAC is NOT recomended since xperifirm icon is disabled, it doesn't run ( so users reported)

2. the drm fix zip has to work whether you have internel storage mount issue or not (but since there has been difference in the filsize then form mac to windows then this could be it

3. if you flash ROM then custom kernel and twrp ALL in one session without booting device , then you won't get internel storage MOUNT error. the thing is that sony stock kernel encrypts the storage which twrp cannot read. HOWEVER IF your device is 64gb variant, the twrp will change the partitions (if you don't boot initially) as it can read the internel storage and gives user 20gb of fabric free! so you will loose 20gb, however on 32gb variant xperia x it fine.
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
1. supersu is abandoned. so for oreo it may not work! however you can always flasth the may2017 SR5 release and check (via twrp)

2. embeded supersu is never recomended! it drains battery more (so noticed for z5p devices on MM kernel

3. you may also flash the 310 beta version of superuser from twrp

https://superuser.phh.me/
[Sony Xperia X Guides, News, & Discussion] supermax3:
how can find password twrp for decrypt data? i cant see file in sdcard0 i input memory card for flash
[Sony Xperia X Guides, News, & Discussion] depressed_:
There's no password. Just use back button and continue.
[Sony Xperia X Guides, News, & Discussion] Glassed Silver:
I didn't use macOS at any point. This all happened under Windows on Mac hardware which is the same as a say Dell running Windows.

Not emulated or anything. If you're curious look up "Bootcamp"

Already got DRM fix working. :eek: I just explained what I did wrong and how I remedied it.

No further problems.

Just fixed Safety Net as well. Everything looks good now. Awesome!
[Sony Xperia X Guides, News, & Discussion] JukiCro:
Everything works on my F122, thx and good job.

If someone wants XZ clock on lockscreen, check this out, it works with our phone on Oreo update.

https://xdaforums.com/crossdevice-d...o-xperia-xzs-lockscreen-clock-xperia-t3709775
[Sony Xperia X Guides, News, & Discussion] JukiCro:
Any tip how to fix the issue with WiFi disconnection while phone is idle. I tried to turn off smart cleaner but no changes...

thanks
[Sony Xperia X Guides, News, & Discussion] depressed_:
There shouldn't be disconnection in idle at all. Check advanced wifi settings and look for "Keep Wi-Fi on during sleep"
[Sony Xperia X Guides, News, & Discussion] JukiCro:
You are right, that advanced setting were hidden, different then on Nougat, now it's set to "always" keep it on, not "only when plugged in"

Thanks a lot!
[Sony Xperia X Guides, News, & Discussion] limegorilla:
No luck for me

I have tried this on both UK (customized) and EE (UK) - is there any other firmware this does work on??

Just hangs on SONY logo after flashing kernel. Any help would be brilliant!

Ta