yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Hi. I still not fixed some problems, but the camera looks fine to me. OpenCamera app have a lots of settings.

I will test my bluetooth with my smartwatch, I will write if I can tell you.

The device not crashed for me, yeah I used it for hours only but still looks pretty stable to me.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
In the Installation guide is a link to magisk. Flash this in twrp an reboot. After this install the magisk manager and you have root.

For the sim: maybe you can try to take it out Boot up. After this power down and put in the sim card. After this try to Boot again and See what happens.

---------- Post added at 09:57 AM ---------- Previous post was at 09:53 AM ----------

The camera works but image quality is a little bit less compared to stock.

Bluetooth works fine for me.

I got in 2 weeks some random reboots, for example while charging or trying to unlock with fingerprint, but sometimes also while doing nothing.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
I flashed magisk, but IDK. I reflash it.

I tried several times to take it out reboot plug back in, anything. SIM not detected.

---------- Post added at 10:40 AM ---------- Previous post was at 10:03 AM ----------

I reflashed the ROM, Gapps, Magisk 3 times with and without wipe anything but no help. After I choose language the first thing appear is no SIM card. :(

---------- Post added at 10:59 AM ---------- Previous post was at 10:40 AM ----------

Someone can help me pls? Maybe can I flash a new custom rom?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] missk1126:
do you have any fix with the "there's an internal problem with your device"? it appears every boot and it's annoying.help will be much appreciated
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
I have this massege too and no SIM detected problem still. I really really need a fix. I tried OmniROM same problem with SIM.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] missk1126:
i don't really care about the sim card though. i have other phone for calls and texts. as for mobile data,i use wifi. did you try reflashing to stock oreo?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Hmmm. Where can I download the stock?

I tried Omni and this yet.

The flash is the same ASOP one?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
The stock can be downloaded with xperia flashtool (not the official Form Sony). In the upper half there is a button called xperifirm. Search for xperia xz an download the Rom oft your country. After this flash it with the tool. Button in the left and choose flash mode.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
That will remove recovery? :(
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
Yes but you can easily reflash it with minimal ADB and fastboot. You just need the twrp provided in the Installation guide and fastboot driver on your pc
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Okay... Really thx the lots of help!

Now im with the latest T-Mobile Hungarian rom .192

SIM is working

What's next? (Next)

Start again the tutorial from the "Flashing AOSP on Xperia XZ " tutorial (Sorry I can't link, new account...)

So TWRP, OEM, etc... and then from TWRP - ROM, Magisk, Opengapps.

And then wipe data? Or..?

Can you help me. I really need my phone to work too, also mobile internet needed to so no SIM is not an option for me.

But I really want to replace my stock rom to a custom one.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] missk1126:
Download from xperifirm.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
Just follow the guide exactly step for step. First flash twrp then oem. Go in recovery wipe data and the other things which are metioned in the guide and only the mentioned one, no other. Then flash the Rom - magisk - open gapps. Then reboot to system.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
OKAY... Nooow... It's ask for my PIN. I type it in and say it was correct but my phone needs to "reset" and if I clict to reset button its reboot to TWRP. If I reboot from TWRP the same thing happen again.

What now? :/

EDIT:

I translated the hungarian text. This is the "unlock encryption failed" messege error. Before I write the PIN i got "there is an internal problem with your device" error message.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
Do you use an SD card? I had the same Problem and solved it with booting up the device without SD card inserted
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
I not have. But the SD card is goes the same spot as the SIM so maybe if I remove SIM?...

I need to put stock back, so I will try it next day couse I will need a phone for work.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
You can try this, i removed both for the first boot.i dont know for sure which worked for me.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Okay I tried it quickly.

Reflash stock rom.

Then agan from the beggining flashed Pie.

Same problem

No SIM in but it asks for password...?

I write in my password and its ok but Encryption unsuccessful...

It says I need to factory reset. :(

IDK what to do now :(

EDIT: IF I format data to EXT4 in TWRP Pie load correctly but no SIM detected again! :(

EDIT again: It's seems I will not sleep before go to work 12 hours, but I tried it again without installing the Magisk but no SIM...

BTW What happens if I install dual sim patch even if I have single sim phone?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] raz_in92:
Make Complete Tutorial

Hi, im still new, i really want to try the PIE... im using Xperia XZ with Bootloader say YES.. for the download part :

ROM = Downloaded Yes

TWRP = Downloaded Yes

OEM = Downloaded Yes

Magisk = Downloaded Yes

GApps (selected arm64+Android 9.0+nano) = Downloaded Yes

im be more confident to install the custom ROM if i had seen full video tutorial if have..if u can contact me.. im been so happy to try the pie on my xz...plss respond or email me at razin.rozilan.92@gmail.com | Thanks
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
I don't know, but i'm curious to know: does the phone work correct apart from the sim?

But i recommend you install stock for now and go to sleep. I took me 3 days with 3 hours to get it work.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Mi

I now use Stock without problems.

The problem is I work 12 hours and no time to try it again for 4 days. I write from work now.

But until if someone can give me tips how to fix it, I can try it later.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Use the link I got 1-2 pages back. It was easy for me too. I never hacked or modded or do anything to phones before.

EDIT: Oh and one more thing: the link not worked for me but when I searched Sony Xperia XZ flash ASOP I found it. The same link but worked. From here I can't open correctly for some reason.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] raz_in92:
Hi, tq for the respond...i had finish download all the things to install the custom rom..i will try it soon..had u try the pie rom yet?can u contact me via email or fb.. i want to see ur screenshot of this pie rom.. can?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Yes I tried it, but the SIM not worked for me. It's seems Im the only one with this problem.

You can ask here and we can help you.

But the flashing is not that hard BTW.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Hey guys!

2 more days from work and then I dig myself into ROM flashing again.

So...

OEM v6 is out. IDK whats the difference between v5 and v6. Where can I check it? Maybe this will help my encrypt error and SIM problems?

And while I reading things I have one more question.

Whats the difference between the Open Gapps versions? I mean pico, nano, etc?

THX
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
I don't think the oem will bring a difference for you, since its working for the mist of the rest. But i dont know where to check the changelog.

The difference for the gapps packages lays in the apps which are included in the zip package. For example the smallest version has only basic google function, while the "higher" ones include gmail or calender app. Its not very important which version you choose since you can download nearly every google app via play store
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Oh thank you for the answer!

I quckly flashed Omni 9.0 with the new oem last night after work and wow, It's work. Now the SIM is work too.

But I don't know how to delete completly some apps like Chromeium. I have installed Magisk but still there is no delete option, only disable. Or this is not how Magisk work? I installed Magisk Manager!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
Magisk is not for deleting apps. It will only provide you root rights. For a complete uninstall of apps you need to install a root app delete app (you can find them in the play store) or you have to delete the system app in the system folder on your device (i really dont recommed this for a beginner)
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
Okay, thank you very much!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] bihslk:
I dont have SIM detected neither.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Marco20:
Did you try oem v6? Maybe it helps you, too.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] KikiGames:
I tried it. I have SIM problems too.

Our only help is OmniROM right now I think.

At least if you want a "working" rom but not stock.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] DoJo_Mast3r:
My SIM seams to be detected, however I'm not getting any data! I can text/call but cant use 3G/4G/LTE
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] bagdenaj:
Hi there,

I installed the latest stable version of AOSP too. Everything is working fine so far, but the phone shut down two times already with no apparend reason, also I have the SIM detection problem and somehow Adroid Setup seems to be stuck after I connect to my wifi.

Any ideas what might be wrong or how I can fix it?

I did everything as described and had no errors thrown while flashing.

Thank you all for your hard work and support!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] semihkilic:
Hello! i apply the step but sony stays on the screen
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Spacket:
How is the camera Quality? Is there a Google Camera Port?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] bruno$0:
Are you Stuck at sony logo? Device model plz.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Twin.Twiggs:
What happened if I dont flash oem. My xz running android 6.0.1, so i cant flash, it say u must update Sony Firmware to (forgeted :laugh: )
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Twin.Twiggs:
BUG:

I flash correctly, no bootloop. But when I go to Setup screen, system said me have a unknown error, please contact manufacture to more. I setup normally, but SIM Card not work although i tried to restart several times. My device iss XZ AU SOV34 running F8331 global rom.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] fallingandroid:
Maybe try flashing a different stock firmware for the initial setup. I believe the one I used was from Brazil. Also, are you using the latest Sony ftf file? It should end in .192 if you are. Also, make sure you're flashing the latest version of the one binaries.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Twin.Twiggs:
I used .192 ftf, Brasil firmware for F8331. OEM Binaries v7 Tone.

Can u tell me what u did to have pie rom without sim undetected, version of binaries...ftf file ver, etc.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] caqo71:
Try with v6 tone for now.

Enviado desde mi F8331 mediante Tapatalk
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Twin.Twiggs:
Success? Did you success after try the v6
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] BungDho:
Anybody can upload camera apk from this ROM? Thanks be4
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] babanzkill144:
Anybody here who installes the rom into xz docomo version
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] whc2001:
No, if you look carefully on the URL of download button you will see a trailing slash (like xxx.img/), removing the slash can give you the correct file.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] whc2001:
F8331 with 41.3.A.2.192, tried oem v6 and v7, still have Internal Problem message and SIM card detection failure.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] oguzbatu:
Same here. I installed omni rom which worked fine with v6 tone. I am trully sorry that I can't provide logs because I am on a diffrent rom now.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] gjpmtz:
Help me

when I want to start the rom a warning "Bluetooth continues to fail" and the phone restarts. Has this happened to someone?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] thienbau:
thanks you! i like this rom. im using f8332, but not recognize 2sim card, help me!!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] fallingandroid:
Maybe if you all are using this rom. It's so outdated, that the latest oem is affecting you. You see when these were uploaded. How don't you put 2+2 together? If you can't flash it, you shouldn't. Stick on stock.

---------- Post added at 01:26 AM ---------- Previous post was at 01:25 AM ----------

You should probably respect the Dev of this thread and stop using it for your own problems, when they don't relate to his builds.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] pawwaap:
Does screen rotation work for you?

After the three independent attempts of installing the ROM from the very beginning it seems the ROM has this big bug.

What remedy, please?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] pawwaap:
Pleeeaaaseee, simple question: does the screen rotate for you?

Maybe is it any bug related to hardware drivers etc.?

Or maybe I do something inapropriate?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] DrJoint1991:
I was about to flash this build but after reading couple of recent pages I got in a state of confusion. Is it stable? No issues with day after day using? I won't be installing any additional mods/tweaks at all. Just this build as it is.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Muhammad Ishtiaq:
Can't Flash Oem (Xperia SO-01J)

Hi,

I have successfully flash TWRP Recovery but when I try to flash OEM it says "remote command not allowed"

the bootloader is unlocked

anyway to solve the issue?:confused:
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] pawwaap:
Just tried this newest software zip (20190424) with OEM v8, and there is still the szme issue with automatic screen rotation.

And as reported here: https://developer.sony.com/develop/open-devices/latest-updates there has been done improvement with XperiaXZ sensors, so why?

In OMNI ROM automatic screen orientation works perfectly, can you guys exchange portion of code?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] local__hero:
Could it be you're confusing threads? This thread is for builds from MotexT which haven't been updated since last year...
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Kriisprols:
Hi !

I finnaly found how to try this ROM, but, I follow the Sony's tutorial for unlock the bootloader and my Rooting Status is Yes and at the final step on cmd.exe, i can not unlock because I have this messages :

Fastboot oem unlock 0x[...]

...

FAILED (remote: Command not allowed)

finished. total time: 0.010s

and with Flashtool by Androxyde I have this messages :

Unlocking phone using key [...]

...

FAILED (remote: Command not allowed)

finished. total time: 0.020s

Maybe the OEM is not enabled

Anyone can be help me ?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] oguzbatu:
Dial to your phone app *#*#7378423#*#* . Then go to -> "Service Info" -> "Configuration" If you use Bootloader unlock allowed ---> Yes then you did something wrong while unlocking so try again. But if you see no then you will never be able unlock your bootloader. If you use Bootloader Unlocked ----->Yes

Then your bootloader is already unlocked.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] SoulJahN2:
Since we gonna wait for a fix on camera i've tried many apps. Camera Fix fixed it for me but after restarting needed another fix.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Opal21:
Troubles

Hi there!

I installed this rom and when i turn on my phone i get notification that there was an internal problem, and the phone does not detect my sim card. I need working phone asap (i am newbie at custom roms so please explain everything as simple as possible).

Waiting for you!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] oguzbatu:
Hello I recommnend that you don't install this one and go to the AOSP stable updates amd you will find the most updated version with minor bugs. You can check out for other posts to get help if you run into any issues.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Opal21:
Can you link me this? Or just show me where to find it?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] fernandaadhipr11:
Can i flash it on my 601SO(softbank) , the bootloader unlock is yes, so can i flash it
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] oguzbatu:
This one is outdated look for the other AOSP pie post.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] reza6621:
Hey, do you mean the post by local_hero?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] oguzbatu:
Yes that one.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Revertron:
MicroG

Thanks for this ROM! Works almost perfectly.

But what is the right way to install MicroG? Xposed doesn't support Pie yet, signature spoofing is not enabled either :(

Thanks in advance!
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] hihiman1:
Take a look at riru & EdXposed - both are magisk modules to enable xposed on pie :)
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Revertron:
Okay, I've installed Riru Core & Riru - EdXposed (YAHFA) (SandHook didn't work).

And then I've installed EdXposed Installer, and after reboot added FakeGapps module.

But signature spoofing doesn't work, I can't proceed :(

P.S.: GravityBox module works fine, it means that Xposed is working.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] local__hero:
I won't add signature spoofing here, since I want these builds to stay as close to AOSP as possible. But OmniRom has signature spoofing and other nice features.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Revertron:
Ok, thanks.

I'm trying to flash OmniRom, but I can't reboot to fastboot or flashmode. Connecting the cable with either Volume button pressed takes me only to recovery. What can I do? :(
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] local__hero:
Press the volume-up button and power button until you feel three vibrations. Your device is now powered off completely.

Press and hold volume-up, keep holding, insert usb cable from PC, wait until you see the blue LED light up, release finger. Voila.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Revertron:
Yes, I'm doing that. But before the LED lights up I see TWRP splash screen, and it loads to recovery instead of fastboot or flash mode.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Irfanrahmanda97:
Bug rom

Im using softbank version singal and sensors not work. Please fix it...
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Javid_24:
can anyone show me the latest AOSP Rom for Dual sim version , i cant find it

and another question is it worth upgrading ?

thank you
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] fallingandroid:
Just let this thread die.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] sonyxzusers:
Invalid zip file format

Hi, new to here. Now i faced a problem that is when i flash the OEM sony software binary from twrp, it keep showing the error invalid zip file format.

I downloaded the zip file from sony website, and i also using fastboot mode to flash it.

Any ideas?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] filjusz:
This rom is outdated and not supported anymore, i dont recommend to flash it
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] sonyxzusers:
Any others rom suggest?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] filjusz:
Atm only stock oreo
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] peshmarga:
please tell me how to add these lines to build.prop i cant find build.prop in the rom

please any help because my f8332 sim card doesn't work even sim(1) too doesnt work
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] oguzbatu:
Use the other pie rom which has updates in it's thread name this one is outdated. If you want the best experience possible stick with the stock rom.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] sadique_shiblee:
Would you please you port it for XZs?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] I'm Newbie:
Sony xz docomo version

Hello sir, can u help me to change rom from Docomo rom to global rom, anyway to flash it?? Docomo rom is too lag.. thanks for reading this. Sorry my English bad
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] donedos:
Root your docomo first. See the link below for the guide. Make sure that your bootloader has a YES status.

https://xdaforums.com/xperia-xz/how-to/guide-root-twrp-drm-fix-docomo-s0-01j-t3892124
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Zsheoran:
This is the best rom for Xperia xz?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Hktgh1995:
There's an internal problem with your device

hello

i did every step but when i start the device say "there's an internal problem with your device. contact your manufacturer for details"

and i lost the imei of my device

any solution for this problem?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] TechnoHT:
System take too much time to respond each time i want to turn on my phone (F8332)
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] whc2001:
And I am on a different phone now because I broke the LCD panel of my XZ:(
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] jordan851017:
i guess no solution anymore... i met the same problem too, and sometimes auto reboot

maybe go back to android 8:(
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] xyphen101:
Deleted
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MotexT:
Yay, Ukraine <3. About IMEI and number - i don`t care about it. If someone wants contact me - they have my number, lol. IMEI can`t serve you so much so again - i don`t care.

And about old backups - don`t do that, u will finish with bootloop.
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] Idol400:
doesn't work new update ,( Permanent reboot yet..

Trying to fresh install

---------- Post added at 01:25 PM ---------- Previous post was at 01:24 PM ----------

Aha ! :laugh: Link to this right TWRP ?
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MotexT:
AdrianDC`s TWRP
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] devileone:
i'm on latest stock oreo and i feel i'm missing something about the force encryption whenever i use twrp so i can't flash the oem so i flashed a kernel with disabled force encryption and proceeded with the installation but it gets stuck at the SONY logo i waited and nothing happens any tips is the kernel i flashed causing this maybe ??
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] lilbrat:
Hey folks, help the OP out just a bit by at least telling him which model your on.. F8331 or the F8332 (dual Sim).. If you having a problem..
[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] MotexT:
Carefully read OP first, I've described how to flash it. Now I can't help you cause you mixed stock, custom, and tried to flash OEM not in proper way.