yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Amosha97:
Currently downloading this *-* i'm so hyped,i've been waiting for this thanks in advance bro,i have 2 general questions not specifically about this rom ,i hope you answer them for me:

1-since this is a new rom ,it probably will be updated alot ,so what are the steps to update it ,can i just flash the updated rom file or do i have to start all over again?

2-if i were to choose the aroma pack of Gapps so i can pick the apps i want ,is there anything that i must install aside from the things i want?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Spacket:
Is it really true what my eyes read :D, nice bro! Keep up the work, will try your ROM today. Djakuju! (From Ukraine too)

... delete your IMEI and your telephone number from the screens

EDIT; Will there be any problems if I use my Android 8 TWRP Backup because of the OEM?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MotexT:
Since 12/09 builds you can dirty flash them on top of each other, just wipe /cache /dalvik, but to do so you need another TWRP, not stock one, it doesn`t work well with Pie. Use AdrianDC`s one instead. And about Gapps - i`ve patched what i could to make it possible to work with all Gapps, but i suggest you to use nano and then download your prefered apps.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Petran97:
does anyone know how to get back to stock rom? i dont have a backup.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] popo007:
Flash FTF via flashtool.

I tried flashing this and make it to boot to welcome screen however I got an error with something like contact manufacturer and some crashes related to bluetooth and media and after the it automatically restarts. For the meantime, I flashed back to stock.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MengHeang123:
Gapp flashing error

Thank bro for advice but i still dont know what is ftf and when I try to format data for first time it said unable gk mount my storage and data but the process is complete. So when I continue your step to wipe the cache and data and the first option its fail. I go to mount and tick the data storage. But it unable to tick so i turn off the device and go to recovery again then its work. I flash ROm F8332 and Magisk already but got Error 20 on Gapps flashing process it said cant extract and its not made for my device.?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MengHeang123:
You can use this method, its worked for me.

First, download and install this to your computer

https://developer.sony.com/develop/open-devices/get-started/flash-tool/download-flash-tool/

Second, turn your device off and hold volume down key plug it to pc and u will see the green led light up then just open that Emma, it will suggest to download the rom.

Lastly, download it and install it. DONE?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] mad max the less:
I had trouble wiping /data as well. I was able to solve it eventually but tried a lot of things so I can't remember the exact sequence. I think the following fastboot commands were helpful:

fastboot erase system

fastboot erase userdata

fastboot erase cache

fastboot flash system <some O/S ROM>

fastboot format userdata

Then I was able to perform the format and wipe also in TWRP, and follow the original instructions.

If you find it works, please post the exact steps for reference.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MengHeang123:
I have tried it and it is not working so sad bro

I can format data and everything fine now but flashing Gapps is not fine it said error 20 and arent made for my device. Im using F8332 and flashing F8332 Dualsim patcher
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Petran97:
I'll try it and I will let you know!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] mad max the less:
Did you flash the F8331 ROM first? The F8332 ROM goes on top of the F8331 ROM, and doesn't work by itself.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MengHeang123:
0

No I firstly flash twrp then oem and I flash the F8332 dual SIM patcher. I'm using F8332 so I choose that in Google drive.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] mad max the less:
You need both, the F8331 and the F8332. Note the instructions:
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MengHeang123:
Oh maybe that's the problem because I didn't flash the F8331 zip file so first I need to flash the 8331 zip file right and then that dual SIM patcher ok I will try thank you so much man.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] khanhesham:
i'm using vmware workstation on win10

using vm on preallocated 300gb of virtual disk and 3gb of virtual ram

my hardware is intel core2quad q8400 cpu and 4gb(1333mhz)+2gb(1600mhz)=6gb of physical ram and 1.5tb of hdd

and i will try building the _userdebug after my university exams :D
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MengHeang123:
SIM card unsupported

Does anyone here have a trouble with SIM card ? Well,I live in Southeast Asia and my SIM card isn't supported any solution ?? Thank before.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] local__hero:
3GB is nowhere near enough.

I haven't seen anyone successfully build with less than 8, and ideally you would have 16. I'm afraid you are going to have to buy more RAM sticks.

You can try building with swap enabled and "make -j 2", 4 is too much for what little RAM you have. But it's doubtful.

For reference, these are AOSP's requirements.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Petran97:
It worked!! Thank you :D
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] bzlmdfk:
I have Polish sim card, phone don't see it. I have lot of problems and can,t flash nothing via twrp.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] tumincm:
please build for xzs -,-

---------- Post added at 06:46 AM ---------- Previous post was at 06:37 AM ----------

this really fascinated me,can you try build for XZs ?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] ac_chirul:
Hi sir

Any update about this rom

I heard that oem v4 have been released
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] optixperiaa:
https://xdaforums.com/xperia-xz/development/xz-aosp-pie-builds-t3864985

Also another thread goes on for android 9 for xz.. which we should follow guys. . i am confused..
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] XxperexX:
idk both
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] optixperiaa:
I am using omni 8.1 now.. should i install that rom ? is it stable final build ? install now ?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] XxperexX:
stay on omni, the pie builds are not bad, its just that battery life isnt great.

so unless the short battery life isnt a concern, go ahead
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] StaticGTF:
Are you using AdrianDC's version of TWRP? If you are, then just try to power-cycle the phone once (power off wait and then power on to TWRP again)

/Static
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] lonewolfbtown:
This is far from stable. Not my first time flashing aosp, but this is super buggy still. Fun to see android 9. But Ill need to wait for the bugs to get sprayed before i venture back to 9
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] XxperexX:
anyone know the difference between omni android 9 and AOSP android 9? or is it just that omni has a custom kernal
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Oliverostberg:
Does not work

I have followed the instructions very carefully. but when i try to boot it gets to the Hello screen in android 9 but i immediately get a error message saying that there is an internal problem with my device and then it shuts down and boots to the stock android bootloader. Im on F8331. Thanks for help.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] asad0x01:
Seems like you're disclosing your phone number.(in screenshot)
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Vancer2:
I got the magicsk installed, now my xperia wont go past the xperia logo with the swirling colors. What do i do now? I've tried reflashing and the sony companion. Sony companion wont do anything it gives me an error.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Chuckl33:
how about fingerprint bug?

when i tried to register my fingerprint it always freeze and continue to reboot, it happened all the time when i try it
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] DarkPrinciple:
Yep, that's still an issue
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] caqo71:
Are you talking when you register fingerprint at the first time phone setup?.

Enviado desde mi F8331 mediante Tapatalk
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] StaticGTF:
As stated in OP, wait for the fingerprint image to "pulse" three times before continuing with registering new or first fingerprint!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Slawek1995:
Guys, can you tell me, it is worth to install this rom. Is there some of problems that disqualify this rom in normal use? How about battery? Waiting for yours opinion
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Amosha97:
No just no,unless you want to try something new but at the same time get into so much problems and a free headache.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Slawek1995:
I tried this rom but it was problem with charging, when i plugged my charger there is no reaction. You have solution for this?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] DahakePL:
Try out new build by local__hero .

He fixed it there.

https://xdaforums.com/xperia-xz/development/xz-aosp-pie-builds-t3864985
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] 케이지:
-

How was the benchmark is? antutu maybe??
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] :
Do you have to unlock the bootloader before installing?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] DahakePL:
Yes
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] :
Okay thanks, will do
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] SoulJahN2:
I've installed a rom days back 20181212.151800 build number. It's nightly AOSP. Can i just flash the new roms or do all over again like stock flash rom oem gapps etc?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] exeon:
Pray hard for XZs :silly::silly:
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] mind.inc:
how do I do a proper update? last time I only installed the new build. I lost root and gapps. I'm not new to flashing, but to sony devices that are quite different in flashing behavior compared to samsung devices.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] StaticGTF:
An update is performed much in the same way as you originally installed the original ROM., but this time you entirely skip the OEM and TWRP images and skip any formatting!

1. Transfer ROM Magisk and gApps to internal storage.

2. Boot to TWRP and flash the files in the order given (1. ROM, 2. Magisk, 3. gApps).

3. Wipe all caches.

4. Reboot.

Rebooting will take some time as you've both deleted all the caches and that all the system files have been replaced...

Give it some time!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] mad max the less:
The internal problem error seems to be a common issue - no one has posted a solution so I assume they are just ignoring it each time they boot up, so they can play with Android 9 (I've gone to Android 8 OMNI until a more stable Pie is available). However, it sounds like you have a bigger problem if it reboots automatically. When you say "stock android bootloader" I assume you mean the unlocked version (with the warning)? You could try repeating the install from the fourth step (format/wipe) as this will eliminate any install problems from the first run. Also install and start without any SIM or SD card to ensure those aren't related to what you're seeing.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] DarkPrinciple:
Hey just a question reguarding Project Treble, is there anyway you could pleaserelease a modified TWRP ( as I dont know how to compile or build TWRP) as so Magisk can be used with it.

Many Thanks to how ever you wish to respond :)
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] csganja:
Anyone who is looking for gcam, i found this , not perfect but there is support for hdr+ and raw. The only version that's working on my phone. The other ports are giving a purple/pink image
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] DarkPrinciple:
There are generally fixes ( if you look throughout the settings ) that will fix those issues as it seems to be quite common
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] thedondonut:
Hi, I am new to all of this, have zero knowledge, and i keep getting stuck at "waiting for device" when i was trying to flash the thing, my phone is on fastboot mode with the blue led light on already... thank you.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] DarkPrinciple:
You need to install the drivers ( download flashdroid) and there will be a drivers.exe or something like that on the install directory. Make sure you have signature verification OFF ( Google it ) then install the drivers.exe and then you should be able to use minimal adb fast boot to flash ROM stuff
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] SoulJahN2:
I've done it as you have listed , how long does it takes?

It's rebooted itself 3 already in 10 mins. And couldn't boot to system yet.

Should i go fresh or wait for it to make its job?

Update: I've tried everything and i'm on a reboot loop now, time time after rebooting it runs TWRP itself.

Tried uninstalling magisk in several ways (.disable_magisk file in cache and data/cache folder, updateunsu something and uninmod magisk uninstaller)

What to do now :/
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MindlessRanger:
Is there any possibility of increasing the system partition block size in the treble build? On my XZ system partitions shrinks to 2gb from 5gb after I apply the Treble-Zip. Is it possible getting more space for system?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
2 Options: try a clean install again or wipe everything with twrp and install a stock based rom like existenz
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] mind.inc:
latest nightly and oemv4 gives black screen for me. oemv3 works as it should. Any advice to get v4 working or is it not possible at the moment?

also, is there a way ti get rid of the textbox at startup? present since last 2 builds if I'm not mistaken.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] mind.inc:
screenshot added, forgot in my op.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] StaticGTF:
Hi all!

I just wanted to make sure I've understood the installation process for Project Treble properly before I set out...

1. Transfer and install latest nightly PT-zip from Local_Hero's server.

2. Install above zip and then restart to fastboot

3. Flash GSI-image. (I've gone for Lineage v.16 A-only with gApps)

4. Flash OEM to Vendor TWRP image

5. Reboot to TWRP and install Magisk v.18

6. Clean caches and such just to be safe

7. Reboot to system.

Does that seems about right?

//Static
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] local__hero:
That looks exactly right. Though I would try only flashing Lineageos first and let it boot, to make sure the Lineageos GSI isn't incompatible.

Then you can go ahead and flash Magisk.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] flylover:
Lots of issues after several times of installation

Thanks to your effort for keep testing and providing android Pie for Xperia XZ rom for everyone, and I list all issues I meet for your reference as below:

After succeed to perform installation procedure as you listed for several times, the issues I meet were:

1. Alert system error message while entering android pie desktop

2. Can't detect any of my installed sim card, I'm sure that succeed to install F8331 rom first and then install F8332 patch rom

3. Google apps seems failed to be installed, only "google play" and "Webview app" and system default icons appears

4. Fingerprint detection failed to work, it shows error and restart my phone in fingerprint teaching procedure.

5. Phone start up slowly, it took longer time to start up than original installed android version.

6. Frequently failed to start phone in each reinstallation rom.

7. TWRP was installed successfully but will disappear after enter desktop and restart phone two times, this might be the bug as you listed

After trying for two days, succeeded in all installation procedure and meet above issues, finally I give up and trying to recover my phone to original version.

Download Emma software and choose latest 2019/01/30 version did succeed to recover all functions of my phone.

Share with all of you.

Comment:

1. When you meet start up failure (fixed in Sony logo) and want to force shutdown your phone, press "power" and "volume +" buttons for seconds until you feel your phone vibrate for three times.

2. If you want to force restart phone while meeting issues, press "power" and "volume +" buttons for seconds until you feel a single vibration.

3. To enter TWRP screen, close phone for 5 seconds, and press "power" and "volume -" buttons until Sony logo appear.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Innearo:
Please upload the twrp IMG again.The twrp IMG can't be downloaded, because it has LOST.:(
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] StaticGTF:
I finally went for the Pixel Experience DSI. Seems to work acceptably but I get serious battery issues if I don't charge before some 45%...

Any fixes and/or workarounds for that?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] DarkPrinciple:
A possible solution could be to underclock your device and limmit the max frequency and have a look at Magisk modules to help with battery life.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] local__hero:
No, this is an issue with the kernel and there is no magisk module that can help you with that. Not even a wakelock blocker.

We're working on it.

I'll push a new treble build soon. I don't know which treble build you are running, but in the past there have been builds which disabled deep sleep completely(because of the wakeup delay which we later fixed separately). You can check with "cat /sys/power/wake_lock"(as root) if you have an entry called "shawnofthedead". Later builds have the wakeup delay fixed and re-enable deep sleep.

Aside: I opened the Xperia XZ Pie ROMs Questions and Answers Thread so you don't have to use this thread to post questions any more.

The builds posted in this thread are about four months old, so they miss crucial security patches, you really should not be using them any more. MotexT doesn't own an Xperia XZ any more.

For newer and more stable builds, have a look in this thread: [XZ][F8331/2] AOSP Pie builds [nightly]
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] mon733333:
[MENTION=9500530]local__hero[/MENTION]

You will come updated or not?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] J.M.Siyath:
You are not [MENTION=9500530]local__hero[/MENTION]'s boss, Don't talk like an idiot.

Give respect to Developers! they are not working for salary.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Wyso77:
Yes it's true!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] fallingandroid:
If it wasn't for him, you wouldn't even haven't option. Show respect
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
Which oem version should i use for latest rom version (0206)?

Edit: I used v5 and it looks like it works.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] luuquoctuan:
Is this ROM work for Docomo version - SO-01J?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] fallingandroid:
It should if you flash a updated ftf that's not from that region. I'm not sure what ftf it's on, but look for either firmware ending in .184 or .192
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
My phone is only slow charging. Is this normal for the current state of development?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] seckinarslan:
Guys i need a little help, in device manager whenever i go in fastboot it shows as s1boot fastboot the device. I think i need some fastboot drivers for xperia xz but can't find it or even worse i did find (but idk) it but cant install it.

edit/ nvm i found the problem.

edit2/ Android System

There's an internal problem with your device. Contact your manufacturer for details.

And cant see my sim. (F8331) i did everything perfectly like you said can you help me?

edit3/ I have Turkish sim card maybe it's the problem ?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Hi! I'm totally new here.

I never did anything "unoffical" to my phone.

But couse my phone not got update anymore, I want a custom rom on it.

Is it possible on my phone?

It's from Hungarian Telekom

Build:

41.3.A.2.192

Modell: F8331

Android 8.0.0

Thank you for the answer!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] SoulJahN2:
Mine is also turkish, i'm using the guide at https://sx.ix5.org/info/flashing-aosp-on-xperia-xz/ .
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] seckinarslan:
Yea nevermind i go back to existenz v8, im happy with my phone for now maybe maybe later but thanks for the help :good:
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
Should be no Problem. Take a look in the development thread Android 9 stable. In the first or second post you will find a link to a step by step guide.

But remember this rom is not completely stable. You will face things like random reboots or maybe some broken function like top speaker not working and higher battery drain. Therefore you will get an up to date device, which performance should be better.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Thanks!

But I can't find it. Can you link it pls?

Oh and the twrp link not working. I can't even start. :(
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] kwabz:
You can go to [XZ][F8331/2] AOSP Pie builds [Stable] [Updates] by local_hero. there's a guide there
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
Here you go

https://sx.ix5.org/info/flashing-aosp-on-xperia-xz/
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Okay! I finally did it!

Thank you! But I have a really big problem. No SIM card!

It can't see my SIM :( This is really important for me, how can I fix it?

Fingerprint... There is a solution for make it work?

Camera button do nothing. I installed OpenCamera but nothing... :(

Any way to install Sony Music app to Android 9?

Thank you!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] flylover:
Hello, if your phone is Xperia XZ dual sim version, flash dualsim patcher will solve the sim card detection problem from my experience.

I solve the no-sim-card-detected issue with this way.

see "7.3 Flash dualsim patcher (optional)" of the installation guide page.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
https://androidfilehost.com/?fid=11410963190603874444

Just install this apk. It is a moded Version from xperia music which should run in any device, at least it works for me.

The fingerprint just works fine for me. Also the camera button is working for me.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Hello!

Not dual sim.

The normal one. Now I wiped data and cache, the "first steps" thingy started again but no SIM detected still. :(

I will check it, thx. But the SIM is the biggest problem now sadly. I still can't find a solution for hours. :(

Again.. Im begginer... :I

Oh and one more question... My device can be rooted under this ROM? I wanted to delete Mail app, couse I use Outlook, but it only be disabled.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Stronger1101:
Hi guys

Thanks you your work

How is work the camera in your devices? This is importan for me.

Continued the image camera dark?

Is work the bluetooth?

How is the issue of random reboots

Once again, thanks for your work.

Regards.