yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact Guides, News, & Discussion] hnodet:
Thanks. Made it myself. Currently I have flashed the 2.19 and twrp and magisk and xposed as a magisk module with some other modules like rootcloak, gravity box, min min guard, dtn disabler,...

Now a new question:

*** Is there anyway to boot the latest ftf and flash all of them without bootloop? ?

I tried but not successful.

What causes bootloop in 2.118 that the 2.19 doesn't have?

By the way, so many thanks.

---------- Post added at 01:54 PM ---------- Previous post was at 01:52 PM ----------

Thanks. Made it myself. Currently I have flashed the 2.19 and twrp and magisk and xposed as a magisk module with some other modules like rootcloak, gravity box, min min guard, dtn disabler,...

Now a new question:

*** Is there anyway to boot the latest ftf and flash all of them without bootloop? ?

I tried but not successful.

What causes bootloop in 2.118 that the 2.19 doesn't have?

By the way, so many thanks.

---------- Post added at 01:54 PM ---------- Previous post was at 01:54 PM ----------

Thanks. Made it myself. Currently I have flashed the 2.19 and twrp and magisk and xposed as a magisk module with some other modules like rootcloak, gravity box, min min guard, dtn disabler,...

Now a new question:

*** Is there anyway to boot the latest ftf and flash all of them without bootloop? ?

I tried but not successful.

What causes bootloop in 2.118 that the 2.19 doesn't have?

By the way, so many thanks.

---------- Post added at 01:55 PM ---------- Previous post was at 01:54 PM ----------

Thanks. Made it myself. Currently I have flashed the 2.19 and twrp and magisk and xposed as a magisk module with some other modules like rootcloak, gravity box, min min guard, dtn disabler,...

Now a new question:

*** Is there anyway to boot the latest ftf and flash all of them without bootloop? ?

I tried but not successful.

What causes bootloop in 2.118 that the 2.19 doesn't have?

By the way, so many thanks.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Xposed fix for stock 118, (latest) - https://xdaforums.com/x-compact/themes/xposed-fix-118-t3870673

eXistenZ rim 118, including Xposed fix - https://xdaforums.com/x-compact/themes/existenz-xc-t3867917
[Sony Xperia X Compact Guides, News, & Discussion] camdecoster:
I tried that again but it's still not working. It has something to do with the boot image.
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
Hi I'm Italian and I don't speak english so good and don't managing your tech language... So I've got difficulties to understand what I've to do to root my x compact. It's not the first time I root a device, but it's the first one I don't really find a really step by step guide. Because also here, I think, you take for granted many things.

First of all i unlocked the booloader with flastool. Ok.

My build number is 34.A.2.118

I dowloaded the O firmware with Xperifirm (italian, F5321 Customized) but it's not in ftf format or whatever. It's a folder with a lot of things inside... What I've to do now?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
When downloading with Xperifirm, there's normally 2 phases: first, Xperifirm downloads the files, then, when you get 'finished' message, you close Xperifirm, and Flashtool goes through a process of preparing the files for flashing.

- If both of those things happened, next you click on the lightning bolt, choose 'flash mode', and click the drop-down menu until you see the firmware you downloaded, then a bunch of information will be automatically filled in the Flashtool boxes. Make sure username is checked in the 'wipe' box, (and you back up anything you want to save in storage), and click 'flash'. After a few minutes you will get a prompt to connect in flash mode, (power off, hold volume down, and connect cable). The firmware will flash, then disconnect the cable, (don't turn on the phone), and follow root instructions.

- If both of those things didn't happen, you can either:

a) prepare the files through Flashtool 'bundle' options, (it's a whole separate tutorial you can look it up - https://www.google.com/amp/www.xper...iles-using-xperifirm-and-flashtool-guide/amp/)

b) download the firmware through Xperifirm again and make sure it happens

c) use Emma instead of Flashtool, (it's the official Sony firmware flashing tool)
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
Hi thank you so much. I think when you say "Make sure username is checked in the 'wipe' box" that you mean "userdata". Not "username": I'm right? And what about all the other voices? They are all unchecked, I mean:

Wipe Sin: apps log, diag, persist, qnovo, ssd, userdata

Misc TA: cust-reset, master-reset, reset-wipe-reason

Exclude Sin: asapso, amss_fsg, amss_fs1, amss_fs_2, boot_delivery, cache, elabel, fotakernel, kernel, modem, oem, partition-image, ramdump, system

Misc TA: auto-boot, fota-reset, osv-restriction, reset-kernel-cmd-debug, reset-non-secure-adb
[Sony Xperia X Compact Guides, News, & Discussion] ralfbergs:
You could have a look at my blog where I started to explain everything step by step. Unfortunately it's not finished yet (as I was lacking the time then), but maybe it's still somewhat helpful?

https://bergs.biz/blog/2018/03/15/sony-xperia-x-compact-modding/
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
Thank you but in your blog I can't find the most important thing: how to root the phone. That is the thing I'm trying to do.

I'm wrong or in this thread is explained that to root I've to:

1. Flash stock ftf from Xperifirm via Flashtool

2. After flash, connect in fastboot (before booting phone) and type in command line 'fastboot flash boot boot.img'

3. Then type 'fastboot flash recovery twrp-3.2.1.img

These three things to root the phone...isn't it?

1- I'm at the point 1. About your blog, you write: "Flash TFT with Flashtool. If you want to keep your current apps and data, be sure to untick “Data & Cache” under “Wipe.” "

But this voice (Data & Cache) doesn't exist under Wipe, but there are the voices I wrote in the previous message. So I don't know which ones I've to select (they are all unselected by default)

2- About second point. Then I understand that I've to put the phone in fastboot mode. Maybe I can use also the Fastboot toolbox on Flashtool and use "Reboot in fastboot mode (via ADB) or using the method described in your blog.

I think I've to flash the Modded boot img for 34.4.A.2.118 I can find in the first page of this discussion (I suppose I've to copy that file on a micro sd before and put it in the phone...) but I'm not really sure how it works...

3- "Then type 'fastboot flash recovery twrp-3.2.1.img" says the guide

I think I've to change this writings, because the twrp file for "kugo" (X Compact) is now twrp-3.2.3-0-kugo.img so I think I would have to write "fastboot flash recovery twrp-3.2.3-0-kugo.img"

But so...problems apart...after these three points the phone will be in rooted status?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Flashing the modified boot.img enables rooting. After you do that, just root by normal method, (flash Magisk, SuperSU, etc.)

1. yes

2. yes, assuming that you have modified boot.img in the same directory, (either from op, or that you created with Rootkernel), and your modified boot.img is named 'boot.img'. If not, rename it, or modify command.

3. yes - same as above

Sorry, I don't remember writing any of that. I guess it's up to you what you want to wipe. I don't think it will affect the outcome...

Fastboot works from the command line. I use Windows. Fastboot works in the context of 'ADB', which is a set of tools that can be installed. If you have ADB installed, fastboot is included, so when you type 'fastboot', it is a trigger for a command. If I have boot.img in the same folder that I'm currently 'in', (say /Users/Someone/adb, for example), then my command would be

fastboot flash boot boot.img

but if my boot.img was in a different folder, it would be

fastboot flash boot /(whatever)/(whatever)/boot.img

yes. My commands are basically examples; you may need to modify

You still have to flash some root method, but it will be able to be rooted. Also, if you don't have your TA backup, and you want to use 'drm fix', you'll need to flash drm_fix zip from Serajrs post, (linked in op).
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
[MENTION=9653775]Albertohf[/MENTION] [MENTION=6224324]ralfbergs[/MENTION] - sorry, I just noticed that I confusingly stepped into your conversation. I saw a notification for a quote, then I saw Albertohf's post, and I just assumed it was directed at me. Just trying to help...
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
Oh noo! I was on point 2, so flashed the boot.img for 34.4.A.2.118 then rebooted and the phone stuck on Sony logo! What I've to do now?

edit:

I succeded in flashing twrp after that, but if I select to reboot the system, it start again with twrp
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
I think you might have typed

fastboot flash boot

for recovery, but it should be

fastboot flash recovery

The first one is only for the boot img.

Just do the boot command and the recovery command over again, and it will overwrite it.
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
But now I've TWRP installed...can I do trough it? (TWRP is the only thing that works)

And or do you know where can I can find a zip with a stock rom to use with TWRP with the "install" function?
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
no the file was boot.img and not recovery...but it doesn't work.

I've installed this rom with TWRP and my phone is alive again: https://xdaforums.com/x-compact/development/rom-lineageos-14-1-xperia-x-compact-t3739525

But I prefere the stock one...is there a way to install a stock rom? Also because in this rom there isn't playstore and if I install the apk it doesn't work :(
[Sony Xperia X Compact Guides, News, & Discussion] ralfbergs:
Uh, you're right, I just checked it... Sorry, as I said it's not yet finalized, and it's almost a year ago since I updated it, so I couldn't remember exactly what I've covered already, and what's still missing... I might be able to spend some more time on it soon, then I would add that info...

Thankfully [MENTION=6283426]levone1[/MENTION] has already responded and helped on that...

Again, sorry for the confusion due to the immature state of my blog post. I usually don't publish unfinished stuff, but I thought I'd better publish what I had (because that can be helpful already on its own), before I run out of time again (which is exactly what happened...)

---------- Post added at 21:00 ---------- Previous post was at 20:58 ----------

No problem. It's not "our" (Alberto's and mine) conversation anyway, it's a public conversation anyone is free to join. :)

---------- Post added at 21:09 ---------- Previous post was at 21:00 ----------

If you want to have the Google apps, you should install a package like OpenGApps... You should flash it immediately after you flashed the ZIP file for your custom Android distribution... Be sure to download the correct package, it must be ARM (not ARM64), and it should be Android 7.1 (for the OS you chose). I usually use the "pico" variant, to save storage in

/system

.

There's also a more recent LineageOS version for this device, 15.1. Or a "pure" Android version, AOSP.
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
Thanks, but unfortunately the two links you posted are not for XC but are for XS :(
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Last Lineage I saw for XC was 14.1.

There is AOSP Pie in this forum, which I've tested, and works well, but 1) I can't get Magisk to work with it, (probably need to waiting for updated Magisk and officials updated TWRP), and 2) the files are in imgs, so need to flash with fastboot, and you also need to reflash stock O before being able to restore back to O, (unless you have dumps of partitions that aren't backed up by Twrp).
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
hey guys,

I'm trying to do the same thing with my Xcompact,so I installated the 118 rom with Flashtool,and now how to put my sony on fastboot mode without switch on the smartphone?
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
I surreder...I flashed the stock rom 118 of first page of this discussion but not the boot.img (because it doesn't work...there is nothing to do....after flashing that, the phone doesn't go beyond the Sony logo...) and now I've fortunately again my phone...unrooted ...but it's ok. I'm happy because it works as before, at least.

I would like to root it because on my other two devices, rooted, I have no advertising. But if you don't have other solutions to propose to me how to root it...

I don't know if I would have to try with different build numbers...but my phone is originally a 118...
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
1. Flash stock 118, checking 'wipe userdata'

2. Flash boot imgs for stock 118 from 1st post, (make sure it's the right one)

3. Reboot, (first boot takes a while - maybe 10 mins.)

It will work. After that, you can flash root and recovery. Just try that first.
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
Would you say that the Sony logo stays on for about 10 minutes? So that was the problem? :eek:
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
No. Usually Sony logo passes quick, then you get Xperia bootanimation for 5-10 minutes.
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
Ah ok :)...but so I don't understand, because if I do all you say, I've the Sony logo and nothing else
[Sony Xperia X Compact Guides, News, & Discussion] Shayzam4:
Worked perfectly! Great job! Keep doing what you do!!!!
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
Has anyone of you used the 34.4.A.2.118 boot.img? Because it doesn't work for me
[Sony Xperia X Compact Guides, News, & Discussion] Albertohf:
Excuseme, which number of build do yoy have/used? Thank you
[Sony Xperia X Compact Guides, News, & Discussion] lenoid:
I successfully modified and flashed the kernel of my downloaded 118 FW (Xperifirm) with my TA backup and also flashed TWRP 3.2.3 from here. But how can I get root now? When I start AdAway it says that it has no root. :confused:
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Flash Magisk, (or whatever). The modified boot img just makes root possible, by bypassing Sony security features, then you have to actually root it.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
If you want to be sure, use rootkernel yourself, then you can choose options you want.
[Sony Xperia X Compact Guides, News, & Discussion] lenoid:
Ok, now I understand. Maybe you should add a 4. point "flash root (Magisk or SuperSu) with TRWP. Maybe that's the problem of some others. :)

Now I flashed SuperSu (Xperia Edition) and it works well. Thanks for instructions! :)

One last question: between flashing TRWP and SuperSu I made a reboot and started the system. Is there any disadvantage?
[Sony Xperia X Compact Guides, News, & Discussion] ralfbergs:
Ah, apologies, that happens when you do too many things at the same time... I'm own both devices, which got me confused...☹️
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
:silly: Good point- I never even thought of it. No wonder I've been losing people...

Disadvantage to what, rooting? Only that you now have the ability to ruin your phone in ways that oem security features would usually prevent you from doing. That's up to you, though. If you always keep a backup, and are willing to go through some trial and error to figure things out, it's all part of the game.
[Sony Xperia X Compact Guides, News, & Discussion] lenoid:
No, I meant if it's recommended not to reboot into Android between flashing TRWP and SuperSu.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
I have found that rebooting in between any system mods is good for troubleshooting, (like if you flashed twrp, then SuperSU, and then your phone wouldn't boot, you wouldn't know which one caused the problem), but there are some mods that need to be flashed together. Not in this case. If TWRP flashed successfully, then you can reboot, and always go back to TWRP to flash other stuff. Interesting note though - I have been messing around with AOSP Pie, and it has a built-in recovery script that overwrites any installed recovery with the default AOSP recovery. Pretty annoying - but you don't have to worry about that on stock O...
[Sony Xperia X Compact Guides, News, & Discussion] lenoid:
I tried to flash Magisk with TWRP 3.2.3 but signature verification failed. I tried v18.0 and v17.3.

I had SuperSU flashed before and uninstalled it. Might this be the problem?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Possibly... I've never had an issue flashing Magisk before. You could try a different TWRP also.
[Sony Xperia X Compact Guides, News, & Discussion] lenoid:
Which versions did you use? TWRP 3.2.1 and Magisk *?
[Sony Xperia X Compact Guides, News, & Discussion] lenoid:
Ok, since flashing the stockrom again also didn't help I tried older versions of Magisk. 16.7 worked well. Upgrade inside the Manager app to v18.0 was also successful.
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
hey guys,just an info: how rename the twrp for install it? Just twrp.img? or TWRP 3.2.3 ?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Doesn't matter - as long as your fastboot command matches it...
[Sony Xperia X Compact Guides, News, & Discussion] chrbur:
Hello Guys,

I also like to root Oreo. I rooted Nougat successfully. But Oreo root doesnt work - only bootloop. So can somebody tell me again what to do step by step :) What are the steps I have to do after twrp starts?

Thank you so much!!!
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
thanks a lot but after installated the ftf firmware,how to put the phone in fastboot mode?

Regards:)
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
First flash firmware, then flash modified boot image, then flash TWRP, then flash root

Power off, hold volume up while powering on.
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
thanks once again,another question: which version of twrp install on 119 firmware? and also which version of magisk?

Regards;)
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
You mean 118, right? TWRP is official for XC. Download latest version (3.2.3-2) from the site - https://twrp.me/sony/sonyxperiaxcompact.html Also for Magisk, latest version found in Magisk thread - https://www.google.com/amp/s/xdafor...-magisk-v7-universal-systemless-t3473445/amp/
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
Ops sorry,yes I meant 118;),thanks again

---------- Post added at 06:54 PM ---------- Previous post was at 06:15 PM ----------

Surely I'm doing something wrong,why no file recognized? I post a pic https://ibb.co/PrfNsz3
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Do you have the boot IMG file in that directory?
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
Yes...

---------- Post added at 10:54 PM ---------- Previous post was at 10:44 PM ----------

I'm confused if this one is the right directory..https://ibb.co/V35ZQFw
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
If your boot img is in /platform-tools, and ADB sees your phone, then it's just an issue with naming. Make sure your file is named 'boot.img' exactly, (or change the command to match whatever it is named).
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
I don't know what 's wrong,any help? ADB matches the phone as you see by pics I posted..https://ibb.co/zNbYZRK

https://ibb.co/xjzsTTJ

https://ibb.co/Lx8v02J
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
1) I don't know which system you're using. I usually just have to type 'fastboot' not './fastboot'

2) in one of the pictures, you're running the command from 'platform-tools' and in one it's 'minimal adb...'. Make sure you're in the directory that has fastboot file

3) can you show a picture of the file in your directory named 'boot.img'...
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
1 I'm using W10 professional which uses powershell and NOT cmd; I posted pics of both directories "platforms-tools and minimal adb, I think both have command fastboot..anyway I post both folders where you can see the boot.img..

https://ibb.co/xFfYVd0

https://ibb.co/kDHywfX

Hoping it can help:)
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
So, what happens when you type

fastboot flash boot boot.img

without the ./

Also, try it with cmd instead. ..
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
when I type the command fastboot nothing happens,no file found,as I wrote you W10 uses Powershell CMD it's not included on W10

---------- Post added at 06:16 PM ---------- Previous post was at 05:57 PM ----------

this is what happens with the first command witout .\ nothing ,with the second one with .\ "waiting for device"

https://ibb.co/48zRs0S

https://ibb.co/FnKyYZ8
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
cmd is definitely included. Press Windows key and type 'cmd', or us file explorer to go to C/Windows/System32/cmd...

Anyway, the issue is that you need drivers. Install latest Flashtool, (https://www.google.com/url?sa=t&sou...FjAAegQIAhAB&usg=AOvVaw2RDFeXBcMbN6q-rvJ6gfhZ), and after install, go to Flashtool/Drivers folder and run 'drivers.exe' as root. Select box for 'flash mode' and 'fastboot' drivers. After done installing, try again.

btw - you are connecting the phone in fastboot mode, right, (blue led)?
[Sony Xperia X Compact Guides, News, & Discussion] MrCooper95:
.....................................................................................................................................................

This is a bit off topic that could relate but theres this strange issue that sometimes when I flash clean stock 118 ftf even without modified boot img, it never goes past the Xperia logo and will still do this if you re-flash stock 118 many times after. I checked wipe userdata and without before propogating the flashtool flashing process.

I have to flash a MarshMallow ftf file first then reflash stock 118 Oreo in order to work. Have you experienced this?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Yes, I have had that happen - it's typically due to flashing without a full wipe, (system and userdata)...
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
Hi again,I did e new installation of Flashtool (last version),I installated the drivers from the folder but after flashed the ftf and put the phone in fastboot mode (blue led) that what happens with cmd

https://ibb.co/k0zr99x

I'm still sure I'm doing something wrong,but I have to put adb folder in the flashtool folder too?

I think this the problem it's about drivers..https://ibb.co/r6J79wm
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
If you installed drivers with Flashtool, and you still get that, it's probably because of Windows driver signature enforcement, (usually you will see an error when installing, '...failed to install driver', or something - do you remember?). Follow this first - https://www.howtogeek.com/167723/ho...8.1-so-that-you-can-install-unsigned-drivers/ (I prefer advanced boot method, but try the other if you want) - then try again. If you want to test if that's the issue, you can try manual installing the driver. Right-click on the item with the yellow triangle, then check 'update driver', then 'choose from computer', then 'have disk', then go to the driver file, and see if it installs, or what error message you get.

You can extract the driver file from adb exe, or look online. Not hard to find.

Might also be worth trying to install a different adb... I have always had good success with this - https://www.google.com/url?sa=t&sou...FjAAegQIBxAB&usg=AOvVaw33n-ScT7nNrTgGJCmWD_fP Run as administrator...