yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Just to be sure, start from scratch, flash ftf with data wipe, then, when flash is done, unplug the phone, (do not turn it on), and connect in fastboot and flash boot img, and turn it on, (takes up to 10 minutes to start).

Also, if you're planning on using Drm fix, make sure to flash the Drm fix zip. If you want to test if Drm fix is the issue, build with rootkernel and choose 'no' for Drm fix.

Not sure why it wouldn't work at that point...
[Sony Xperia X Compact Guides, News, & Discussion] guitarfreedom:
Hi, can anyone patch the attached kernel (2.19 Italy) in order to flash drm fix, because I have problem with rootkernel. Thanks
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Link in op is for rootkernel built with the same build. Kernel doesn't change based on the region. Flash the boot.img, and then flash drm fix zip. (make a backup first)
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
You must do something terribly wrong, because flashing TWRP alone can't give you bootloop. Try:

flash 34.4.A.2.19, wipe all, exclude none

power off

boot in fastboot mode and "fastboot flash recovery twrp-3.2.1.img" and pull usb cable out

power on your phone with holding VolDn + Power, it vibrates and boots into TWRP

make YOUR OWN boot.img:

extract kernel.sin from FTF and use Flashtool SIN EDITOR to convert sin into ELF format

copy kernel.elf into RootKernel directory and run "rootkernel.cmd kernel.elf boot.img"

depending on what you want, use either your own TA.img if you have one, or use option DRM Fix, in that case you need to download DRM_Fix.zip

answer YES to disable dm-verity, SONY RIC and encryption

copy the new boot.img into your ADB folder , power phone off and restart in fastboot mode

"fastboot flash boot boot.img"

pull out cable.

If you used your own TA.img, you can start your phone

If you used DRM Fix option, you need to start your phone into recovery and flah DRM_fix.zip

then restart your phone

after that you can go to recovery again and flash supersu or magisk, depending on your preference.
[Sony Xperia X Compact Guides, News, & Discussion] Skateout:
Hi!

First of all thanks for everyone on this matter.

I made a backup, but I lost it, don't ask how. (usually I am more organised)

Does that mean that I can not root it or is there any chance? (I mean I will loose some functions if I root?)

The othere question is, why do I get a bootloop or stuck at Sony logo just after a recovery install?

I can start the recovery, but the system won't work after I install the TWRP, before that, a fresh install boots of course without any problems.

I tried with the boot.img from this thread, without it, no luck.

Just like someone before my post wrote it, I have the same problem.

What am I missing?

The latest Oreo FTF is installed for now.

Thanks in advance.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
If you haven't flashed patched boot.img, you can't modify anything, because it trips built-in Sony security features. Procedure is:

1 - Flash stock ftf with data wipe and do not turn the phone on

2 - Flash patched boot.img (the one linked in op should work for latest build, but you'll also need to flash drm fix zip from Serajr's thread. If you want to use your own ta instead of drm fix, build with rootkernel [link in op])

3 - Flash whatever mods you want, (Su, Xposed, MicroG, etc), and boot (takes 5-10 minutes to boot)
[Sony Xperia X Compact Guides, News, & Discussion] waterpolo:
Where can I download the xposed for this Oreo.
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
Are you really so lazy to use search that you must become it served direct in front of your nose?!

https://xdaforums.com/showthread.php?t=3034811
[Sony Xperia X Compact Guides, News, & Discussion] javierdsv:
I just want to report, and I know it may have nothing to do with this method. That if you install Magisk, and patch the busybox module it will always lead to a bootloop on next restart.

And therefore, can't get busybox to install on its default location, no matter what. Get away from Magisk if you need busybox for this Firmware specifically.
[Sony Xperia X Compact Guides, News, & Discussion] waterpolo:
Solved, the previous (3.1.4) xposed installer was installed.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
I found the same thing with Magisk busybox, but other busybox installs fine
[Sony Xperia X Compact Guides, News, & Discussion] Skateout:
Hello again.

I managed to install the system.

After I figured out I needed to go back to Android 6.01 version just to unlock the Bootloader, then I learned that I really needed my own boot.img file, because my errors came from the one linked on the first site here and after this I rooted my device.

Now, the problem is, the root is not real.

A file explorer can dig down even to the animation folder, I guess I could change it if I wan't to.

The reason I needed root was for an app called Automate.

It is just not working, cause the root is not proper, or at least these apps ( other profile apps don't work as well) do not see it, can't use it.

Testing with an app like root check, or something, the device passes the test, but in real application it is not working.

Tried with Superuser and Magisk as well, didn't work.

What am I missing here?

Thanks in advance.
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
Busybox?
[Sony Xperia X Compact Guides, News, & Discussion] Skateout:
Installed it, not working.

Here is the logfile from the Automate app

2018-03-05 21:19:27.539 INFO 75@1: Flow beginning

2018-03-05 21:19:27.545 INFO 75@6: Airplane mode set state

2018-03-05 21:19:27.561 FAIL 75@6: java.lang.IllegalStateException: Failed to bind Superuser service: a rooted device is required

2018-03-05 21:19:27.562 INFO 75@6: Stopped by failure
[Sony Xperia X Compact Guides, News, & Discussion] jd22:
root access

[MENTION=3792025]Skateout[/MENTION],

when the device is rooted, it doesn't mean that all apps have immediately root access. Normally, Magisk (or SuperSU) will ask you for permission with an pop-up window if an app requests root access. In this pop-up window, you can decide whether you want to grant root access for this app only for this one time or for always.

Your device is rooted correctly if you get such pop-up window when an app needs root access. Maybe you can test it first with another app than Automate (e.g. a file explorer).
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Once you have your modified boot.img, flash recovery with fastboot, and flash superuser zip, (Magisk, SuperSU...), in recovery, and install the corresponding app if necessary, then you will be able to have root access.
[Sony Xperia X Compact Guides, News, & Discussion] Skateout:
Thanks for the tip, but I did everything above.

Like I mentioned before, I can get to the boot up animation folder inside a file explorer, and open the files, and even delete them, so there is root for that app.

Any other app will ask, and was granted Root access but I still didn't manage to make the app work like it is supposed to be.

On my Z1 Compact everything works fine.

I did it in the exact same order.

Tried it with Superuser first, than reflashed the boot.img and tried it with Magisk, still no luck.

I really don't know why isn't working with these apps, only with file explorer, and for ex. Titanium Backup.
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
I just tried it on x compact rooted oreo with Magisk works ok
[Sony Xperia X Compact Guides, News, & Discussion] Skateout:
Hi. What did you try? Automate app, or just tested the root function with other apps?

Just to be clear, I tried root with the last updated Oreo version. (34.4.A.2.19_R1E)

Now I am back to the first version, no root for testing. (34.4.A.0.364_R1E)

But I would like to be able to root it and use the Automate app and of course everything else as well.
[Sony Xperia X Compact Guides, News, & Discussion] Styleboila:
Hi. I installed clean with my TA and did full wipe several times. I took the xperifirm custom German and tried the telekom german file. But everytime my Sim was "locked" even i had unlocked it. No carrier is available. What did i wrong?
[Sony Xperia X Compact Guides, News, & Discussion] andry360:
still can't boot

I did it from scratch but it still bootloop every time the sony logo appear. I really can't understand why, everything work just fine. The problem can be magisk?
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
Did the boot.img creation with Kernel Repack Tool gave any errors?
[Sony Xperia X Compact Guides, News, & Discussion] Skateout:
Did you make your own boot.img ?

I had bootloops with the one linked in this thread.

Made my own, and all went well, except I can not root it properly, or I don't know what is happening, but the system booted and it works fine.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
make sure

- clean flash ftf with data wipe

- flash boot img before booting phone

- if using boot img with drm fix, flash drm fix zip also
[Sony Xperia X Compact Guides, News, & Discussion] ffoucault:
I noticed that the oreo firmware I was flashing was FR 34.4.A.0.364 and now FR 34.4.A.2.19 is available. Maybe that was the bootloops cause when flashing modified kernel but I can't be sure; I'm happy with nougat at this moment.

Maybe someone having the same bootloop problems could pay attention to the firmware version, retry and confirm?
[Sony Xperia X Compact Guides, News, & Discussion] waterpolo:
Firmware 34.4.A.2.19 is Oreo. May that explain the bootloops.
[Sony Xperia X Compact Guides, News, & Discussion] ffoucault:
Yes but version 34.4.A.0.364 is also Oreo so we have two different versions of Oreo available on Xperifirm, no idea what changes between the two though.
[Sony Xperia X Compact Guides, News, & Discussion] waterpolo:
34.4.a.2.19 has Meltdown and Spectre patches

http://www.xperiablog.net/2018/02/26/xperia-x-and-x-compact-receive-meltdown-and-spectre-patches-34-4-a-2-19/
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
These two firmwares are having different kernel (boot.img) so you absolutely need to flash the correct patched version for each firmware respectively, otherwise you ofcourse get a bootloop.
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Hey there.

So I followed all those steps:

Downloaded and build custom tft with xperifirm, extract the kernel, build my own boot.img with serajr, flashed the tft, and then the boot, and the recovery, flashed serajr's no DRM zip, and then Magisk and Xposed.

So everything works, except TWRP decryption.

I followed every steps and everything except the TWRP decryption seem to works, so is there a solution?

Another thing unclear to me, since we can install zip without decryption, can I still backup and restore?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
No working decryption for O yet, (in spite of misleading thread title in roms forum). [MENTION=3544509]eagleeyetom[/MENTION] posted something about waiting for Sony sources, ... https://xdaforums.com/showpost.php?p=75516889&postcount=93, (and also post 100)... Not sure how backup and restore will work with encryption. If you chance it, let us know...
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Yes ok there is no working decryption for O for now.

Some posts are a bit confusing.

No problems, we will wait.
[Sony Xperia X Compact Guides, News, & Discussion] eymentuna:
[stock 8.0][Unlocked bl][34.4.A.2.19] Root and Recovery (3 clicks

[stock 8.0][Unlocked bl][34.4.A.2.19] Root and Recovery (3 clicks

[34.4.A.2.32]:confused:
[Sony Xperia X Compact Guides, News, & Discussion] ralfbergs:
What exactly is your question?
[Sony Xperia X Compact Guides, News, & Discussion] jd22:
He probably wants to know how we can update to the latest ROM version ([34.4.A.2.32).
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
I've been pretty sidetracked with Sailfish for the last week or two. Has anyone tested boot creation with Serajr's tool on new fw?
[Sony Xperia X Compact Guides, News, & Discussion] glimmling:
I can not enter recovery with the new (.32) firmware. The LED is not getting orange at the start of the boot process. Had no problems with the previous 2 versions of Oreo. Do we need a new recovery for this fw, or is the problem only for me? However, my custom rootkernel boot.img boots fine.

Gesendet von meinem F5321 mit Tapatalk
[Sony Xperia X Compact Guides, News, & Discussion] ralfbergs:
I don't have that issue. But i only have the stock firmware, no modified boot image, plus the recovery.
[Sony Xperia X Compact Guides, News, & Discussion] glimmling:
Thank you. Which recovery do you have installed? I tried both (Mega & Google Drive) files from the first post. Do you see the orange LED while booting (to hit the volume key to enter the recovery)?

I didn't got any error messages while flashing the boot.img and recovery. I built my rootkernel exactly, as with the last 2 firmwares.

Gesendet von meinem SGP612 mit Tapatalk
[Sony Xperia X Compact Guides, News, & Discussion] eymentuna:
XC.ploplem

XC 34.4.A.32\.I made an update, no problem, I installed twrp-3.2.1, the update came in the , what is the problem.?
[Sony Xperia X Compact Guides, News, & Discussion] eymentuna:
XC.proplem

XC 34.4.A.32.I made an update, no problem, I installed twrp-3.2.1, update came in the , what is the problem.?
[Sony Xperia X Compact Guides, News, & Discussion] ralfbergs:
I have the one that supposedly (but not actually!) can decrypt /data.

Uh, no? I keep power and volume down depressed until phone vibrates, then let go power, and then the notification LED lights up in purple...
[Sony Xperia X Compact Guides, News, & Discussion] glimmling:
Ok, now I got it working. I didn't wait long enough, when pressing the keys. I think, the Sony logo stays longer on screen, before the recovery appears. Thank you.

Gesendet von meinem SGP612 mit Tapatalk
[Sony Xperia X Compact Guides, News, & Discussion] trewelu:
If you tried to do software update from the phone itself, it will fails. It fails because of either the unlocked bootloader or the modified kernel. You need to flash the update manually while selecting nothing to exclude and nothing to wipe.
[Sony Xperia X Compact Guides, News, & Discussion] Franco_Sposato:
After flash boot and twrp my phone stuck sony logo...any help

Inviato dal mio F5321 utilizzando Tapatalk
[Sony Xperia X Compact Guides, News, & Discussion] jd22:
[MENTION=6960672]Franco_Sposato[/MENTION],

I assume that your phone continuously shows the white Sony screen and it is not rebooting every few seconds.

In that case, wait until the battery is empty (black screen), charge the mobile for a few minutes, then start TWRP recovery by pressing "Volume Down" and "Power" (keep pressing the keys until TWRP has started) and restore your backup. That worked in my case.

If you have no recovery yet, then you can try to flash an official FTF via FlashTool. First wait until the battery is empty (black screen), charge the mobile for a few minutes, then flash the FTF with FlashTool.
[Sony Xperia X Compact Guides, News, & Discussion] Franco_Sposato:
Ops need battery full charge?

Inviato dal mio F5321 utilizzando Tapatalk
[Sony Xperia X Compact Guides, News, & Discussion] jd22:
When my XC got stuck with the white Sony screen, I was not able to reboot the phone. Therefore I waited until the battery was empty. At this moment it was not possible to start the phone in Recovery mode or to get into Flashmode. That's why I charged the phone for 5 minutes. Afterwards I was able to start the TWRP recovery and restore my backup. Then I charged the phone to full power.
[Sony Xperia X Compact Guides, News, & Discussion] Ikzy:
Try holding volume up + power. Next time.until it vibrates three times.. It will shut your phone down. So you can enter recovery gherkin normal way.
[Sony Xperia X Compact Guides, News, & Discussion] Franco_Sposato:
Yes ok but the problem is don t boot...remin on sony logo for me i try twpr and internal sd is 0

Inviato dal mio D5803 utilizzando Tapatalk
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
If you have to force power-off, hold power+volume up for 8 seconds .
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
Hi,this root by levone1 still works on 34.4.A.32.? Or the phone goes in bootloop? Anyone has already tried?
[Sony Xperia X Compact Guides, News, & Discussion] guitarfreedom:
Please, can you post your .32 patched boot.img ? I've an error with rootkernel. Thanks
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Here you go. I selected 'drm fix' in rootkernel, so make sure to flash the zip. I'm on Sailfish atm, so can't test. Let me know.

https://mega.nz/#!Z1tzEJbZ!e9ET_RtUpKjXRwnJa_TDsMrVwvT-hPxmk06KtryHOuc
[Sony Xperia X Compact Guides, News, & Discussion] eymentuna:
thank you very much,successful
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
updated op with new img...
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Quick question, now that I have done all the step from the original post, with working Magisk and Exposed, I got an OTA update pending (for version 34.4.A.2.32).

Applying this update will break everything, right?
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
You can't update over OTA. You must download the firmware separately as FTF or in XperiFirm. OTA doesn't work on unlocked bootloader/modified system/kernel/recovery.
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
That's what I thought, ok then, thanks.

So I did the full install for .32 but I can't manage to install xposed with this version, it makes a bootloop, after the full bootanimation.

Any idea?

edit: same result with the regular framework and the Magisk version.
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
Yes, it's known issue that Xposed causes bootloop with the latest .32 firmware.
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Oh ok then.
[Sony Xperia X Compact Guides, News, & Discussion] Franco_Sposato:
You have the flash before first boot? Install from magisk

Inviato dal mio D6603 utilizzando Tapatalk
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
I tried this, with same results, but it's a known issue anyway so…

Or does anyone managed to make it work on the .32 firmware?
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
I managed
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
So… how?
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
I prayed to God and happened :(
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Really, nothing more?

Ah well ok then, I'll wait a fully working TWRP, trying this without a proper backup is "a bit" time consuming.
[Sony Xperia X Compact Guides, News, & Discussion] d_fens:
Same Problem here. I think its because twrp does not work right
[Sony Xperia X Compact Guides, News, & Discussion] daniel-gabriel:
worked fine after creating my own boot.img, cheers!
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Not for me.

Well, that's life.
[Sony Xperia X Compact Guides, News, & Discussion] daniel-gabriel:
strange, I used F5321_Customized FR_1305-4777_34.4.A.2.32_R3E and it's fine(except xposed boot loop)
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Oh no I was talking about the exposed bootloop, everything else is fine.
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
So the new boot. Img posted here ( I mean 32) works fine? Also with twrp 3.2.1? Anyone tried with magisk or superSU?
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Doing your own boot img works fine, Magisk works fine and Exposed works for some, but not for some others.
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
I follow the guide to create the img but I failed,I would like to try with the new 32 posted here but I'm afraid beacuse of what you wrote here,why works for someone and why not for someone else?
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
It's only about the Xposed bootloop, doing your own boot image and flash and everything with the instructions from the original post seems to work fine for everyone.

And why the Xposed bootloop for some users? I don't have a clue.
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
Are you sure on .32 Xposed bootloop only for someone? So far I haven't seen anyone with any proof yet. That would really help us if someone can prove it works somehow.
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Well… I didn't search for any proofs.
[Sony Xperia X Compact Guides, News, & Discussion] chaosms:
Thanks a lot, your Tip worked fine !

Danke für Deine guten Hilfen hier

Thanks Great work !
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
this tip works also for 2.32 firmware?
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Yes but be aware that Xposed doesn't work with this specific version (.19 works great).
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
Ok I never rooted my compact,so the bootloader in unlocked but my question is: I use this https://mega.nz/#!Z1tzEJbZ!e9ET_RtUpKjXRwnJa_TDsMrVwvT-hPxmk06KtryHOuc then I flash twrp 3.2.1 and after Magisk and the root is done?? Or I have to create my personal boot.img? I created ELF file but I don't understand where's the root kernel folder where paste it,can u help me? Pleaseee
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
It never worked for me with a downloadable tft, or/and with the uploaded boot.img.

But if you follow exactly the instructions on the OP (with Xperifirm and custom boot img) it works great. Go to the page 1, everything is there.
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
Yes
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
So I don't to need to create my personal boot.img?? Just need to install this Modded boot img for 34.4.A.2.32 twrp 3.2.1 and magisk? I don't want to use Xposed
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Well, as I said, it never worked for me (and some other).

Feel free to try but doing your own boot img seems to most reliable way.
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
Ok, my problem is that I'm trying to create my own boot.img but I'm stopped at this point: I created the ELF file with the flashtool sin editor,so now how to create the new boot.img?
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Everything is explained in the first post.
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
Yes I've read it,but I don't understand where's the rootkernel folder.......

---------- Post added at 06:09 PM ---------- Previous post was at 05:49 PM ----------

you think this guide will work? https://xdaforums.com/showthread.php?t=2699858
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
extract rootkernel zip to whatever folder. Put kernel elf file in the same folder, (and your ta backup if you have it, renamed to 'TA.img', [case-sensitive]). Open command prompt, cd to that folder and type 'rootkernel kernel.elf boot.img'. Process will start. Answer yes to everything, (unless you included your ta file, in which case you would answer no to 'drm fix?'). New boot img will be created in the same folder. Use fastboot command 'fastboot flash boot boot.img' to flash it. Now you have root capability. Flash Magisk, or whatever, etc...
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
what mistake am I doing?? I cannot create my personal boot.img!!!!!

I post a photo of my folder with elf file

https://s7.postimg.org/li6apqfuj/DSC_0186.jpg
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
link for picture is blank - nothing there
[Sony Xperia X Compact Guides, News, & Discussion] ondrejvaroscak:
You must rename the elf file to "kernel.elf"