yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact Guides, News, & Discussion] korom42:
[MENTION=3296988]rjglenn[/MENTION] [MENTION=6283426]levone1[/MENTION] First thank you guys for taking the time and trying this, as you know I don't own the X Compact so it' snot easy for me to figure what's causing the issue,about that have you tried latest update v4.2 I made the Xperia XZ2 audio + display libs optional since those are from 8xx SoC they could be not compatible with the X Compact 6xx SoC .. so if you haven't tried give it a shot

- Uncheck XZ2 libs (Audio + Image Processing) from the setup

- Uncheck build.prop tweaks

For any one wondering first boot shouldn't be longer than 5-15min max ! If that doesn't help let me know also let me know so I start changing other things .
[Sony Xperia X Compact Guides, News, & Discussion] rjglenn:
Hi friend,

I want this to work and I don't have much going on so I'll give this a go and report back.

---------- Post added at 04:12 PM ---------- Previous post was at 03:58 PM ----------

Okay that makes it work. Thanks

So to use this unclick anything related to the XZ2
[Sony Xperia X Compact Guides, News, & Discussion] korom42:
whooa my guessing was right glad it's working now, thank you for being patient with me, to help other users figure this out did you uncheck the XZ2 audio/display libs only or XZ2 addons as well (which are basicly just themes and overlay) ?
[Sony Xperia X Compact Guides, News, & Discussion] rjglenn:
Sorry, I should have been more clear. Anything related to the XZ2 add-ons and the build.prop tweaks I unchecked. After this the ROM quickly booted.
[Sony Xperia X Compact Guides, News, & Discussion] rjglenn:
So... I made a phone call. There was nothing on the phone that indicated to me a call was in progress. I couldn't hang up. Then someone called me. Same deal, nothing to indicate that a call was in progress. Thanks but this won't work for me.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Haven't gotten around to it yet, I'll check it out tomorrow. Thanks
[Sony Xperia X Compact Guides, News, & Discussion] korom42:
As I mentioned on the ROM thread :
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Just flashed without Xz mods, and working fine. I didn't even bother with full data wipe, just dalvik and cache, (granted - I never signed into Google or Gapps, etc)... Maybe you could work on making those Xz mods work...
[Sony Xperia X Compact Guides, News, & Discussion] rjglenn:
Now that I figured out what I was doing wrong...

Very nice, very smooth. Like the other fellow I did not wipe and so far no problems, and I am signed into Google.
[Sony Xperia X Compact Guides, News, & Discussion] Jumbohard:
hello, my device is Hong Kong Version and the latest release is 34.4.A.70 , not .85. Which boot should i flash ?

___

nvm, just dumpped the stock boot and pached.
[Sony Xperia X Compact Guides, News, & Discussion] pggdt:
Hong Kong Version got 34.4.A.2.85 yesterday, check it out with XperiFirm.

I flash Germany .85 a month ago with my HK Version XC, it ran well with Magisk.
[Sony Xperia X Compact Guides, News, & Discussion] SuYuki:
I followed the guide, i use my flashtool flashed "Modded boot img for 34.4.A.2.85"

And then i use the same tool flashed TWRP.

Then i start my phone, its showed me the twrp menu.

And then, it stuck in TWRP.

I tried to reboot my phone but it always show me theTWRP's menu.

I tried to flash a dmr fix kernel, but it also doesn't work.

I'm noob in this aspect, can somebody help me?

Hope you can give me a specific tutorial. XD
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
I think maybe you did 'fastboot flash boot twrp.img' instead of 'fastboot flash recovery twrp.img'...?
[Sony Xperia X Compact Guides, News, & Discussion] SuYuki:
Thanks for your answer.

I think you're right. XD

But why the TWRP is still working now?

I don't understand that.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Well, try 'fastboot flash boot...' for kernel, and 'fastboot flash recovery...' for recovery, and they might both work...
[Sony Xperia X Compact Guides, News, & Discussion] tumincm:
I have xperia x compact with docomo so-02j Unlock botloader version, but I can not root twrp and install kernel, I have tried various kernel versions like genesis, but none work, and I am aware because different from X compact f5321

is there a solution for my x compact so-02j?
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Does this work with the latest firmwares?

I can't manage to make it work.
[Sony Xperia X Compact Guides, News, & Discussion] rjglenn:
You have to create a new boot.img from the new kernel and then flash it with fastboot. For your convenience I am attaching the one I made. It is for 34.4.A.2.97. It works on my phone, but you use it at your own risk.

https://drive.google.com/open?id=1nsOyZ6UPAJ4VpD5I9vldbgVdoZQF07jn
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Yes I know, that's what I did.

Worked with previous firmwares but I got bootloop with .97.
[Sony Xperia X Compact Guides, News, & Discussion] rjglenn:
Sorry, didn't mean to come across as condescending. Mine is working, I don't know why your's doesn't. I am using the Slovenia customization if that matters. I don't think it does but who knows?
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Ah no problems, thanks for the answer.
[Sony Xperia X Compact Guides, News, & Discussion] Wxfdswxc:
Ah nevermind, it worked this time.

I don't know where I messed up the first time…
[Sony Xperia X Compact Guides, News, & Discussion] root_mac:
Found answer.....
[Sony Xperia X Compact Guides, News, & Discussion] spacegod:
Will this ftf allow unlocked bootloader?

Will this firmware change the "Bootloader unlock allowed: no" to "yes"? I need to root this X compact :(

Is it possible to unlock a bootloader of a phone which says "Bootloader unlock allowed: no"?

Thank you for any knowledge.
[Sony Xperia X Compact Guides, News, & Discussion] Alan Slade:
Good morning everyone. After 2 years of usage, I wanted to root my X Compact because I've never been satisfied with my battery life. In these 2 years I never managed to reach more than 3:30 hours of SoT, and hopefully with a root my phone will last longer.

I haven't rooted a phone since 2012, so I don't know many of the things that are explained here.

What is a TA backup? I read that seems important but can't understand why. Is it necessary if I want to flash a new custom rom?

Is it still necessary to unlock the bootloader to flash a custom rom?

Thanks in advance.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
No.. If your bl is locked, you can't modify anything in kernel or system. I don't think it's possible to change 'no' to 'yes'.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
TA is a Sony partition which includes some files related to camera function.. If you unlock your bl, you wipe the TA. The camera will still work, (and more than good-enough for most people), but certain Sony features won't work anymore.
[Sony Xperia X Compact Guides, News, & Discussion] x1808:
34.4.A.2.85

hi,

In which version xposed works, in first post you mentioned 34.4.A.2.85, xposed not working, so which one work?
[Sony Xperia X Compact Guides, News, & Discussion] Ikzy:
2.19 is the latest working version for exposed
[Sony Xperia X Compact Guides, News, & Discussion] efaustus9:
Hi

There are a number of modded boot images offered here up to firmware version 34.4.A.2.85, however xperifirm only offers me a newer firmware version 34.4.A.2.107 R4E. Do I need a lower firmware then what I can obtain from xperifirm in order to proceed with this process?

Thank you
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
No, but you just have to get the kernel elf file from the ftf after download, and run Rootkernel with it.
[Sony Xperia X Compact Guides, News, & Discussion] efaustus9:
I would really like to have Xposed is there a place to obtain earlier firmware versions?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Open Xperifirm, and go down the list of all the different regions, clicking on each one to see the available firmware on the right. You're looking for one that ends in .2.19
[Sony Xperia X Compact Guides, News, & Discussion] efaustus9:
Thanks, I had XperiFirm auto check all regions then had it order the list by version,

https://imgur.com/a/1tbPho5

No A.2.19 offered, closest to A.2.19 is either A.2.50 from the Netherlands or A.0.364 From New Zealand.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Go with 34.4.a.0.364. I think New Zealand has it on Xperifirm, or there's a Russia one here - http://www.xperiablog.net/forum/resources/xperia-x-compact_f5321_34-4-a-0-364_russia_generic.1012/. If you still can get OTA, you can upgrade to 2.19, which is just a security patch.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Op updated to include modded boot img and kernel elf file for newest fw, (...2.107)...
[Sony Xperia X Compact Guides, News, & Discussion] efaustus9:
Appreciate it.

I would also change step "3. Then type 'fastboot flash recovery twrp-3.2.1.img'" to twrp-x.img <-current version, so that the version matches the version currently offered by the link you provide.

So I finished the guide and I am stuck in a boot loop just now it doesn't get past powered by android splash screen where it used to get to the xperia splash screen. I used the New Zealand firmware as I would like to use Xposed.

I did get this prompt before I flashed:

"Those data are not in the FSC script will be skipped:

RESET-KERNEL-CMD-DEBUG.

Do you want to continue?"
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
I don't think that message is a problem. Main things to make sure are to clean flash with full wipe, (wipe userdata), and unplug after flash and flash boot img before powering on. I've done it a few times, but it's been a while.. Also, you can expect the first boot to take a while, (10 minutes or more is not unheard of).
[Sony Xperia X Compact Guides, News, & Discussion] efaustus9:
I was able to resolve it and now I am up and running with oreo, once again I appreciate all the help.

I like Oreo for the most part, the only issue I had initially was with immersive mode. I like to maximize the screen real-estate and prefer gestures to the bottom buttons, however enabling immersive mode in my go to app "all in ones gestures" would make it so I couldn't wake the phone after a period. I found Tiles addresses the oreo issue with immersive mode, so all is well.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
If you went out of your way to get an Xposed-working version, there's also Gravity Box and other options for immersive and gestures.
[Sony Xperia X Compact Guides, News, & Discussion] Ikzy:
Is the modded boot img with drm fixfor. 117 online? Or could someone please make it?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
I think it's just the latest security patch. I don't think I'll be getting around to is anytime soon, but maybe... I'll keep it in mind. Give it a go yourself. It's not hard...
[Sony Xperia X Compact Guides, News, & Discussion] Ikzy:
it looks pretty straight forward.. but unfortunately Rootkernel doesn't work on Mac.. if it's to much of a hassle I might downgrade to 107 cause all the files are here now :). let me know! and thanks for keeping it in mind.
[Sony Xperia X Compact Guides, News, & Discussion] matteobikk90:
not sure which steps to follow

hi guys,

so far I was able to disable bootloader, install TWRP and OMNIROM(both last versions) but not able to root my sony xperia x compact.

I tried both pc and apk of KingRoot with no success, SUperSU and MagiSK, the last one via twrp and the other way with normal download from the app and tried to install but with error saying something like I have to boot img.

Not sure how to root this device properly, can you help me please??

Thanks
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Ok, I went ahead and did it for .118. Added to op...
[Sony Xperia X Compact Guides, News, & Discussion] Ikzy:
Thanks! Is there somewhere I can donate you a beer?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Give it to [MENTION=3989065]serajr[/MENTION], we need him more...
[Sony Xperia X Compact Guides, News, & Discussion] Axel_F2210:
Hi,

how can i create a TA Backup? I only found this thread: Universal (Dirtycow-based) TA Backup v2

But it doesn`t seem to work.

Thanks.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
It works. I think you just need to be on MM. Downgrade > backup > upgrade > modify > restore...
[Sony Xperia X Compact Guides, News, & Discussion] Axel_F2210:
Thanks for the fast answer!

Acutally I got Oreo 8.0 34.4.A.2.118 with CDA 1305-683.

Downgrade to MM F5321_34.1.A.3.49_R4B_Singapore Generic_1304-8438.ftf should be no problem? Cause I didn`t find any other MM version...

In future will there be a possibility to back up TA under Oreo?

Many thanks in advance!
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
I've never had to try, since I backed up mine back when MM was new, but I think you can extract it from a TWRP backup, or use dd command in terminal...
[Sony Xperia X Compact Guides, News, & Discussion] borozu:
Hey guys, what I'm doing wrong.

Here are the steps which I've taken:

1. Unlock bootloader ( without backing up TA, DRM etc. )

2. full flash .107 with flashtool

3. without booting on phone flashing modified boot for .107

4. flashing recovery with twrp

5. can't boot on my phone, it stops on SONY logo
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
- Make sure you wipe data when flashing, (check 'userdata' in wipe box - backup storage you want), and make sure you're waiting long enough for boot... Also try booting first before flashing twrp
[Sony Xperia X Compact Guides, News, & Discussion] borozu:
I've wiped everything. It just says on Sony logo or getting a bootloop.

I'll try after work to turn it on before flashing twrp. Thanks
[Sony Xperia X Compact Guides, News, & Discussion] borozu:
I've done like you said so I've tried to boot phone after writing boot107.img and I've got exactly the same result: freeze on SONY logo :(
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Not sure - there is a kernel elf file for 107 in open. Maybe try rootkernel with that. I'm on 118 now, so can't test at the moment, but I think I remember testing it before, and others confirming...
[Sony Xperia X Compact Guides, News, & Discussion] Axel_F2210:
Hello,

I did the following:

1. Flashed tft with flashtool: F5321_34.4.A.2.118_1305-6830_R1E

2. Got my own TA.img so i made a boot.img with the kernel.elf file for version 34.4.A.2.118 (also tried doing it with own kernel.elf file, same result)

3. Flashed boot.img --> no error

4. Started the phone and received the following: Yur phone has been unlocked and can`t be trusted (Is that normal?)

5. android starts but i get the WarrantytimeService message

(i also tried flashing twrp right after boot.img but than the phone stucks while setting up the first steps --> only white screen with loading points...)

I don`t know what to do?! TWRP (twrp-3.2.3-0-kugo) should not cause the failure, right? The TA.img got 2.097.152 bytes, so it should also be ok.

Should I try another rom or another TWRP version?

Thank you.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Warning messages are normal after unlocking bl. I wonder if you're flashing twrp to wrong partition? Make sure you use 'flash recovery' command, not 'flash boot'. I'm using 3.23 with no problems.
[Sony Xperia X Compact Guides, News, & Discussion] Axel_F2210:
TWRP works...

But do you also get the WarrantytimeService Massage all the time?

And in the service menu it says unknown to everything.

Rooting: unknown...

I think something went wrong
[Sony Xperia X Compact Guides, News, & Discussion] Axel_F2210:
I tried it again with the DRM-Fix and now it seems to work but this this is not my favorite solution :(

The POC Option means to put the TA-img into the rootkernel folder and to klick "no" when asked for DRM Fix. After that the TA is included in in the boot.img, isn`t it? Or did I forgot something? :rolleyes:
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Click no for DRM fix, but then you should get asked about poc option. Make sure your ta file is named 'TA.img'.
[Sony Xperia X Compact Guides, News, & Discussion] borozu:
It worked, So far so good till next problem xD

So:

-phone is booting,:good:

-magisk installed so root done :good:

-unfortunately xposed module don't want to work. Im installing SDK 26 ( oreo 8.0 ) ARM64 package, installing an app but it say's that "framework is installed but not active" and after reboot phone gets bootlop :(

Edit: found that rovo is aware of the problem so I need to lie without xposed for some time.

I hope last question! : When I've got bootloop after xposed I was too lazy to flash new stock FW again and flash boot etc. from beginning so I've done only WIPE in TWRP, is it enough? Is the DRM Fix is still applied after that?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
No. You need to flash Xposed uninstaller. If you can't boot, you can download it to SD card on computer. Backing up avoids these things... ;)
[Sony Xperia X Compact Guides, News, & Discussion] borozu:
I've tried to flash uninstall.zip but with poor result ( bootloop as I remember).

**** so I need to start the whole process from beginning? Damn :D
[Sony Xperia X Compact Guides, News, & Discussion] slaykristian:
Damn!!!! I bought this xperia last week cause I would try to use a stock-rooted rom.

But I found "Bootloader unlock allowed: no"

I read that in some old experia it needs a simlock code in order to change in "allowed: yes".

I bought a reconditioned phone where is expired the contract with the O2 UK network operator. In fact, I can use it with an Italian operator. The description said "unlocked xperia..." but I think that the old simlock system doesn't make able to unlock the bootloader.

So,

do you know if there is some workaoround to unlock bootloader? Some sony services points... some key-code... or the only way is change the motherboard?

Is no possible install any kind of firmware (maybe rooted) without unlock the bootloader?

But just to clarify, what it means "unlock the bootloader" in technical terms? I cant use flashtools?

Thanks in advance!
[Sony Xperia X Compact Guides, News, & Discussion] ralfbergs:
Go here, it should help:

https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
[Sony Xperia X Compact Guides, News, & Discussion] slaykristian:
Thanks!

I already use this procedure and the problem is inside its!

From Sony dev guide:

"Please see the list of supported devices and note it will only be possible to unlock the bootloader for certain releases (depending on operator restrictions)."

My question is if is possible to remove these "operator restrictions". (My mobile is from o2 uk. I contacted the helpdesk without solutions.)
[Sony Xperia X Compact Guides, News, & Discussion] ralfbergs:
Ah, sorry, that was not clear to me. Good luck finding a solution -- may be very hard, if not impossible, without the support by your operator...☹️
[Sony Xperia X Compact Guides, News, & Discussion] metalkid75:
hey guys,it seems to understand that the support for this device is fineshed ,right? I don't see any update patch using Flashtool ..
[Sony Xperia X Compact Guides, News, & Discussion] slaykristian:
Hi guys,

a question...

With rooting and using a stock, are possible issues with camera... even if TA is restored?

Thanks in advance

Regards
[Sony Xperia X Compact Guides, News, & Discussion] hnodet:
need moded img for 2.19 but link doesnt work
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Sorry, I don't have it anymore... Why that one?
[Sony Xperia X Compact Guides, News, & Discussion] lenoid:
Do I understand right that using "Modded boot img for 34.4.A.2.118", "Kernel elf file to use with rootkernel [34.3.A.2.118]", TWRP and TA backup I use the current stock rom from XperiFirm and root it without loosing DRM key functions like camera quality?

And is it correct that I don't need the DRM fix if I have a TA backup?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Yes, correct. Make sure you have a good ta backup, because it is wiped as soon as you unlock the bootloader. Then, when running rootkernel script, if you have your ta file in the rootkernel folder, named TA.img, you will be prompted to choose if you want it mounted in boot img. Say yes.
[Sony Xperia X Compact Guides, News, & Discussion] lenoid:
Perfect! For TA Backup still this tool and this guide?

https://xdaforums.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236

https://xdaforums.com/x-compact/how-to/guide-root-custom-kernel-clean-rom-ta-x-t3583183
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Should do it. Finding a MM ftf might be a challenge, but I think I remember linking one to someone recently...
[Sony Xperia X Compact Guides, News, & Discussion] lenoid:
I found the .198 in a German forum:

https://www.android-hilfe.de/forum/...-custom-roms.797235-page-7.html#post-10916460

So there should be no problem. :)
[Sony Xperia X Compact Guides, News, & Discussion] camdecoster:
I'm running into the same issue with my own TA backup. Everything appears to work and it boots up, but all the statuses are unknown. As a result, my phone won't connect to my mobile network. Has anyone figured out why this is happening? I'm using .118
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
Flash firmware again with Flashtool, but in 'exclude' box, check everything except modem files, (I can't remember what they're called at the moment, I think there's 3 of them - I can take a look later).
[Sony Xperia X Compact Guides, News, & Discussion] camdecoster:
I don't think it's an issue with the firmware flash. If I don't flash the modified boot image, it connects fine. It's only when I use the boot img with my TA file that I have an issue.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
OK. That fixed it for me one time, but it's up to you... It only takes about 30 seconds.
[Sony Xperia X Compact Guides, News, & Discussion] camdecoster:
I misunderstood. You're saying to flash per the OP, but then flash again using just the modem files. Is that correct? Did that fix the issues with the unknown statuses?
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
I didn't look too much into it at the time, but one time I lost my mobile signal. No calls no data and data settings were greyed out. I don't remember what I did that caused it - some system mod. So I just used Flashtool, and when flashing the firmware, I excluded everything except 3 or 4 files, (I think there's one or two called 'modem' something and one or two called 'amss' something), and rebooted, and my signal was back.
[Sony Xperia X Compact Guides, News, & Discussion] camdecoster:
I tried flashing the modem sin again, but that didn't fix the problem. I think it's an issue with the boot file. Because things aren't recognized, the modem isn't initialized properly and then the phone doesn't connect. Using the DRM fix option or just using the stock kernel fixes the issue. I'll keep playing around with it and see what I can find out.
[Sony Xperia X Compact Guides, News, & Discussion] levone1:
It just happened to me again, while I was testing eXistenZ, and I did the same thing and it worked again. If you still have the problem, and you want to give it a shot, see the screenshot. Flash the same ftf you flashed at first, and 'exclude' everything except the 4 files shown in the 'content' box.