yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] LuizPauloDamaceno:
Guys, sorry for the question but maybe i've not seen on the other posts... I have a F5122 64 GB. Is the "32GB storage" that is recongized by the ROM a bug?

I was compilling the "Extreme Kernel" for the stock rom, but i'm not doeing this anymore... And now trying other roms. Testing here, everything sounds fine but this the only inconvenient (my phone has 64 GB storage and is showing 32 GB) .

Also i'm seeing here that the A72 cores are running with 1,96GHz! Awesome! The Sony team has "unlocked" that frequencies on newer kernels?

I will be happy if i can help in something at the developement and keeping of this AOSP. Any recommendations by the dev?

Thank you =D
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] SoNyek:
Thx to all for this great build of Android 9. I have needed 3 days to get this ROM running. Up and Downs with Bootloops, Encryption problems, get stuck n freeze while booting and sometimes only reboots into recovery with automatic deleting data and SD card intern after reboot... Or automatic reboot while in Android interface after a couple of hours usage of ROM.

But finally I have got it done and works perfectly and awesome now!

My last idea before I got crazy ? fixed all problems at once...

First I followed the instructions on first side of this thread. Ok. Especially the last written sentence that I should install Magisk and Google before rebooting... Before did a full wipe of all partitions with format data and sdcard intern because of the encryption issues till now.

Restart and after boot right away turned off the phone.

Eject the SD card extern and did copy all images and zip files to it.... Including the FOX ? RECOVERY found here at xda of course :cool:

Excluding the img files that you can't install within recovery TWRP 3.3.1

Ok. So far.

Reject SD card and started my Xperia X F5121 32G directly into TWRP Recovery.

Now I re-installed the images and Magisk and Google nano at once without wiping or formatting, only patching over.

Turned phone off and restart again directly onto TWRP Recovery. Didn't know if it was dicisive for a correct working X but ok...

Now the important thing was to install Fox ? recovery within TWRP and did (again) restart into recovery... Fox started perfectly and I explored the recovery. Fox is a awesome recovery and has nice features like Passwort protection for recovery which makes the X more secure. I can sleep better now xD ^^. This function I really miss it in TWRP. So I did 2 flies with one clap hehe...

Before restart to system I did a meditation round to cool down my brain and smoked one. Then I was ready for takeoff!

Restart into system... Heart runs faster after first automatic reboot... More faster after second automatic reboot but then the X was rebooting quite fast into the system to do the first settings. SCREEMING YES! Hehe and it works awesome without issues since 1 week... What I must say, I turned off the auto backup from Google in the first settings. Did no restore of any backup (gdrive, titanium) and all installed fresh and clean from gplay.

The one and only issue is that fox also have problems with the encryption of the data and SD card intern, both are not readable and password is unknown. So I'm not able to backup these partitions. But ok. That's no longer my problem... Titanium works much better in this ROM I must say. Apps and data titanium will backup these and SD card intern is backuped manually with copy and paste to my laptop...

ROM works stable, fast, battery life is really improved. I should say I can handle phone twice as long as before.... DUMP UP!! SPECIAL THANKS TO ALL SMOKING BRAINS WHO DEVELOPED THIS PIE!
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] topolyn:
F q
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] vknecht:
20201003 update : new boot.img with kernel 4.9.230

Just updated the last release post with links to a new boot.img...
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] kieni111:
whoa, would be very nice indeed if this would be the fix for the reboots!
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ejbas:
X compact stuck in boot loop

Hello,

I purchased an X Compact on eBay. I was trying to get it up to Android 9 using the resources on this post. I read through the entire thread and tried to flash a few times with no luck. I was trying to figure out what was going wrong and recently realized I was sold a SO-02J even though the listing said F5321.

Now I'm stuck on the Android logo when booting. I've let it try to boot as long as a half hour after flashing since I read the first boot can take a long time. It stays stuck. I imagine that maybe I need a different boot.img. Any help in getting a correct one or helping me adjust or create one would be greatly appreciated.

The phone came with a stock rom with Android 7 and a lot of bloatware that I can't delete including an animated animal that walks constantly all over the screen.

I would love to get a clean and minimalist version of android on this phone. Thanks in advance for any help!
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] vknecht:
Hmm, must say I never heard about this SO-02J variant before, seems to be dedicated to Japan...

What you could do first, is get some logs, hopefuly starting it then plugging it on USB a few seconds into boot,

then doing "adb shell dmesg" and "adb logcat" will show some interesting logs...

As for getting it to boot again, I guess you could try Emma flashing tool, to restore it to stock system...
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ejbas:
I couldn't get back to stock for whatever reason. Flashtool gave me errors and would not flash the SO-02J firmware I downloaded with Xperifirm. Emma read the phone as an F5321 and offered a few NOBA firmwares but after downloading would give an error and stop before installing.

Trouble shooting the install of your build, I discovered that maybe the problem was TWRP. Whenever I had the TWRP recovery, it would go into boot loop. I installed the the recovery you provided and it booted fine. I then installed magisk using first the magisk manager APK and then the TWRP recovery via the app installed from the apk, not flashed with fastboot. I went back one version older on TWRP from the latest. Not sure why but now everything boots up and seems stable. I installed open gapps from TWRP and that works as well.

Only problem I am having now is with the camera. It has focus issues. Every shot comes out blurry. Even if the image is focused fine from the AF, it checks and changes focus right before recording the picture and saves an out of focus image. Touching the screen for manual focus also causes the image to blur.

Do you think this is related to unlocking the bootloader? I had read that Android 9 no longer broke the camera system. Or does it sound like a hardware issue?

Thanks again for your insight. The build seems to be working well on this Japan version other than the camera.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] vknecht:
AOSP10 builds for F5121, F5122 and F5321

Glad it got better, tho I don't really have any idea how and why...

Not sure neither about AF/autofocus problem, but I've uploaded an AOSP10 build

if you feel like testing it (from a quick look it seems AF is working)...

dbaf07cbec488b5539b00aadfc9a2537 AOSP-10-F5121-20201027-4.9.230-gapps.zip

7aaf0e8c4e7632d78bc809e8b68a1b15 AOSP-10-F5122-20201027-4.9.230-gapps.zip

60fdfecca9006c69ce4996d9803c6e5a AOSP-10-F5321-20201027-4.9.230-gapps.zip

31a0aa366170e5a8f4ce447e5ed885d8 AOSP-10-F5121-20201101-4.9.230.zip

11eff31b36244222b9f1799415f3f2fe AOSP-10-F5122-20201101-4.9.230.zip

e46ecc1d097b3c3645954b5d83d03f0e AOSP-10-F5321-20201101-4.9.230.zip

These use OEM 4.9 v9 binaries, same as AOSP9/Pie builds, so no need to reflash oem if previously on Pie ROM.

Not super-stable (tends to reboot while booting, possibly more than one time),

also connection sharing over wifi doesn't work (over BT is fine), but it's up to 2020-08-05 security patch...

It has gapps included, so should save you from some more install steps.

Was planning to build non-gapps variants, but well, will publish those later

Please report if you install it :)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] betacrypt:
Did you try running CameraAPI2 probe to see if AF is enabled? Unlocking the bootloader shouldn't affect AF, so if you're having issues I would try using another camera app like OpenCamera or Footej to see if they have the issue. Could be defective hardware but I suspect it's just the app.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] felgutico:
First rom installed after so many years using this phone.

Looks amazing with Android 10.

Some random reboots the first day, but not anymore.

The only issue I got, is a very slow battery charging. I tried many different chargers, and always said "Charging slowly". It takes about 5 hours to fill up.

¿Any ideas if there is a way to fix this?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] GOrMHATRe:
People I woud like to flash this rom AOSP 10 version on my Xperia X. Are all things working finely ? especially battery performance and gps ?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lobotron:
[MENTION=8963497]vknecht[/MENTION] I think you should start a new thread because:

if I would have found this, I would have tried it!

As I didn't, I build the aosp_legacy ROM myself, which took 7Hours +. Is there something special about this ROM here or is it basicaly the same as the one resulting out of the sosp?

I would be interested in getting VoLTE to work, as many providers shut down 3g now. Any hints on this would be perfect.

anyway: big thanks for sharing this!
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ChingyM:
Thanks many times! I started out with both LOS 16 (didn't even flash through TWRP) then i tried LOS 14 that did flash but stuck at boot. Then I went back to stock thinking that I wouldnt be able to use a custom ROM. Then I tried your ROM followed instructions and it works like a charm. :)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] &(*):
@vknecht

Will you be providing any updated vanilla system (++kernel) builds?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] betacrypt:
Would also like to know this. I use this rom as a daily driver on my Compact. Hope to see an update in the future.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] LeDaXX27:
@vknecht I installed the AOSP10 build for my F5321 about two weeks ago and it works fine. I can confirm that there were random reboots at the beginning, which came along with a few bootloops but after a few days it rarely happens anymore. So for me its totally good to use this on a daily base.

I just can't figure out how to mount my sd-card. I tried exFAT and FAT32, but the phone just wont recognize it. Did this happen to anyone else?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] betacrypt:
Hm I have AOSP10 running on one of my F5321s and have not come across SD card issues. I've flashed AOSP10 numerous times and never had this happen. My card is formatted as FAT32. Can yours be read on other devices? How are you formatting the card - in TWRP?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] LeDaXX27:
I dont have TWRP because my phone did not really liked it when I used to install it while I still had a stock rom. But the card works fine with windows, so thats where I formatted it. I will look if I still have another one I can try.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] armorgeddon:
Hello, I tried to get this AOSP 9 ROM running on a F5121, but can't make it work at all. I have TWRP already running because I previously ran other custom ROMs. Flashing boot, system, cache, userdata via fastboot on a Linux PC all seem to run fine once I downgraded fastboot from newest to 29.0.5 but fastboot flash oem SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_loire.img result in the following error message:

FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

I found a thread on AOSP GitHub were I think a Sony engineer said you first have to flash newest official Sony ROM via Sony's awful Emma Flash Tool. So especially for that I rented a Windows 10 laptop and flashed one of the things the Sony Emma tool offered though everything offered was named so that you seem to need be a Sony engineer to understand which "service" (that's how Sony calls the options you can flash) is the appropiate one to flash to achive your goal. Long story short: same error when trying to flash OEM SW binaries via fastboot. TWRP also can't flash the OEM SW binaries.

Regardless of the OEM SW binaries the device also never managed to boot this AOSP 9 ROM even though as mentioned above fastboot flashing all img-files seemed to worked perfectly fine. The device is always stuck just showing the Sony logo and a white background.

So I'd greatly appreciate if somebody here could tell me what's the issue? Myself or something else?

Thanks for reading this!

EDIT: I just came across that AOSP GitHub thread which is https://github.com/sonyxperiadev/bug_tracker/issues/413 and in one posting it sounds to me that a sim card may be needed to make it work. I've now posted on that issue to find out it that is really the case. It would be a shame, since I don't have a sim card for it.

EDIT2: I'm happy to report, that I made it all work. The answer to what you need to do in Sony Emma flash tool is in the GitHub issue I had linked to above. Regarding the need of a sim-card I just used a random, inactive one of which I don't even know the pin code. I didn't try if the flashing would also work without any sim card. After flashing via Sony Emma and later on fastboot just make sure to wait 30 seconds after unplugging the USB cable and also be patient on first boots since those take some time.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Spaceoid:
I installed this ROM based on the recommendation of another friendly user here. After two days I can say it is quite stable. I just had one random reboot during that time. One problem that occurs to me, is that wifi (5GHz) seems to disconnect after some time while the phone is locked. Is there a workaround or solution for this?:)

Edit: Mmmmh, now it is not reproducable anymore. Might just have been a one-time error. Sorry for bothering you.

Edit2: The problem is there again. While the screen is on, 5GHz wifi stays on all the time. If the phone is locked, it seems that wifi goes to sleep from time to time as well.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Vx.34:
Hi everybody.

Yesterday I flashed the A10 image and unfortunately my experience is rather poor.

From the very early moments there was a noticeable battery drain (like 1% every half hour) even with saving mode on; I waited some hours, hoping it will settle, but it didn't and power consumption is the same.

I also tried bluetooth, with wireless earbuds, but it systematically reboot when attempting to pair.

And at last GPS can't get sat lock, even for many minutes (up to 7); tried to investigate with GPS Test app and it turned out satellites are not visible at all.

The only additional packages I installed after flashing are Magisk and GApps (pico).

Did anyone experiment similar issues?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Spaceoid:
I had, mmmmmh, rather similar issues: No drain and no bluetooth issues, but wifi and gps issues. What did help me (i think) is fully going back to stock with flashtool and xperifirm, and THEN flashing this ROM. I feel that now, my GPS and wifi issues are gone. But take it with a grain of salt, as I am within day 1 of testing still.

Edit: Regarding the wifi problem I described - if I am connected to my home wifi, many notifications will only go through AFTER waking my phone up. Things like WhatsApp Web won''t work well. I did some googling and it seems that this is a common problem at the moment, especially occuring on OnePlus phones. Many users state it is related to IPv6 networks (?). It does not occur for me on mobile network. I did not find a fix for that, though.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Vx.34:
Thanks for reply.

Interesting, I did the same: flashing back to stock 8.0 (because, of course, I need the phone...:D) and for now I will keep it this way.

As a matter of fact before trying the A10 image in this post I tested an A9 official aosp, built by myself following the Sony Developer guide, and despite building process went fine I found WiFi not working (when enabling wifi it disables again, preventing to search and connect to a network); I guess that even if "official" by Sony, aosp builds are still quite buggy and unstable.

Anyway I'm interested to further developments and refinements so thanks for keep investigating (y)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Spaceoid:
After a few days of testing I can conclude this:

- GPS problems seem to have been my own fault. Today I had the chance to test GPS on the outside and while driving, and it worked extremely well. I guess that going back to stock 118 first has helped a lot and fixed some system corruptions.

- My battery life is insanely good. Even better than with the LineageOS 16 ROM. It just seems that the phone is consuming slightly more energy while wifi is on, which leads me to...

- ...wifi problems. While on wifi and locked screen, oftentimes notifications (from any app) won't go through immediately. Often, after I unlock the screen, only then they get received. Also, WhatsApp Web is only working well while on mobile network. As I stated above, this seems to be a new and general Android/OnePlus (?) problem with IPv6 or 5GHz wifi. No solution found yet. While the screen is unlocked, wifi works without ANY problems.

- During normal calls over carrier network, for the first ~10 seconds I often get complaints that the other person on the call is hearing himself as an echo. Not sure though if this is ROM or device specific, or whether this is a hardware problem of my phone.

Edit1: Also worth mentioning that after my clean install from stock the random reboots/crashes are MUCH less often. Happened ONCE now in three days, as opposed to twice or thrice every day before.

Edit2: Okay, the IPv6 thing was a red herring; my phone does not even receive an IPv6 adress, so it seems to be a general wifi problem.

Edit3: Wifi problem occured with a cable as well as with a DSL router, and with 2.4 GHz and 5 GHz. So I assume that the system sends wifi to sleep during locked screen. I remember that there was an option to disable wifi sleep in previous Android ROMs, but the option seems not to be there on this ROM.

Edit4: The wifi problem is definitely a power saving issue; while my phone is on the charger, notifications will come through unhindered.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Litolindo:
Device: Xperia X F5121

Installed: AOSP10 with Gapps

By following this full instructions bellow:

fastboot flash boot boot.img

fastboot flash system system.img

fastboot flash cache cache.img

fastboot flash userdata userdata.img

fastboot flash recovery recovery.img

fastboot flash oem SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_loire.img

fastboot reboot

I successfully install AOSP10 rom without any problem. Just clean flash all images through fastboot, reboot device and that's it. Built-in apps flawlessly works. Wifi, Bluetooth, NFC and GPS works perfectly. No magisk, no roots, no random reboots. Gapps perfectly works, I even install third party launcher. I installed Google messages app and Google dialer app no hassle. This would definitely become my daily driver.

Addendum 2/17/2021:

Noise cancelling does not function

Camera2 API probe below

Don't use this OEM SW_BINARIES_FOR_XPERIA_ANDROID_10.0.7.1_R1_V7A_LOIRE.ZIP from the above AOSP10 with Gapps as this will make Xperia X F5121 stock-up at Sony Logo when booted

Addendum 2/19/2021:

Mobile telephony is lock to LTE only, it does not switch to WCDMA,UMTS or GSM

VoIP problem also; Viber calls has a lot of drops or disconnection the same with WhatsApp calls
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Spaceoid:
I can copy the noise cancelling problem. Also GPS is working fine, the error was on my side. The wifi problem (wifi getting partly deactivated while screen is locked -> WhatsApp Web getting connection problems to the phone) is definitely a ROM issue: I reverted back to LOS 16 and on the same wifi network with the same computer etc. WhatsApp Web is working fine again now.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] norabitox:
Hello

Thanks for the efforts of the developers

Please tell me everyone

AOSP-10-F5321-20201101-4.9.230.zip has there are many images

How do you flash in the fastboot

Regards
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] betacrypt:
There's an explanation in the post above you:

https://xdaforums.com/t/rom-unoffic...mpact-2020-11-01-builds.4004959/post-84500065

But this AOSP rom is the most stable rom on the F5321 and I'm still using it since Project Treble isn't seeing much movement. @vknecht any plans to do a refresh of this rom with a newer security patch? If so I'd be willing to fund this effort to keep new builds alive.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] norabitox:
Hello

Thank you

boot-debug.img, ramdisk.img, ramdisk-debug.img, ramdisk-recovery.img

These img do not use?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] betacrypt:
Yes you can ignore those. You only need:

boot.img

system.img

cache.img

userdata.img

recovery.img

SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_loire.img
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] vknecht:
Sadly, 4.9 kernel is stalled and I was not able to build newer AOSP10 or 11 for Loire.

So the future for Loire is in mainlining, and SoMainline team will work on it at some point. Might take months, and not be feature complete, but that's The Way.

Now I see there's this Explosive Lobster AOSP11 build, tho not for F5321... maybe need some nudge/asking to get it on Kugo too, or at least get instructions as to how to build it...
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] betacrypt:
Thanks for the reply. Explosive Lobster for kugo is available fortunately so that's our last best option. There are just some issues with the boot image, rooting and stability atm so was looking to see if AOSP10 was still a possibility.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Spaceoid:
Interesting though that according to the issue-thread on github my wifi problem mentioned above is a known problem in AOSP10. So at least I know now that I am not completely insane :D
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] chrisooo:
vknecht i want to thank you for great ROM (AOSP9) and olfx for exact instructions to flash it with gapps. I flashed it yesterday on my f5121 and it works perfectly. Added some screenshots below :)

edit: i have battery issues; just leaving phone at standby with wifi on it goes from 100 to ~85% in one night :/
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Shandiiman:
why does the internal storage on my f5122 become 32 gb after flashing this rom? 😢
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] chrisooo:
Can you modify quickstep to remove search bar on homescreen?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] mbc07:
After flashing, perform a factory reset through Android or format /data through TWRP to fix that...
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] batu2k:
Sorry for this newbie question? But i desperately need Android 9.0. Where can i find, boot.img, system.img, cache.img, userdata.img and recovery.img... I found boot.img in this post, but another ones?

Not: I did it at last :)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] chrisooo:
Anyone tried AOSP10 on f5121?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] armorgeddon:
Hello, I'd like to know how to root this AOSP9 ROM (recommended method)?

@chrisooo Several people did try AOSP10 as they reported in recent comments in this very thread.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] betacrypt:
You just need to flash the Magisk zip with TWRP and that will root your device.