yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium Guides, News, & Discussion] saved-j:
Wow. One more step and i'm convinced. But...

Still don't want to give up OTA and some other sonystyle just for the google camera and 120hz.

Like, prediction feature and 960fps aren't gonna work. I admit it's not as cool as having more detail and a greater dynamic width in everyday shots, but for me personally this alone isn't worth switchin to AOSP yet...

need to rethink my views...
[Sony Xperia XZ Premium Guides, News, & Discussion] Mjkb:
So the google camera works on this at full resolution? Is it possible someone could do a video or something of this rom to see the diffrances before I flash it please?
[Sony Xperia XZ Premium Guides, News, & Discussion] LukeyWolf:
So 120hz is part of the official AOSP, does that mean we will get it in the official stock builds?
[Sony Xperia XZ Premium Guides, News, & Discussion] SuzutsukiKaede:
Thanks for your work!

Downloading...ready to flash ^^
[Sony Xperia XZ Premium Guides, News, & Discussion] flokiflot:
Photo comparison please!)
[Sony Xperia XZ Premium Guides, News, & Discussion] onkelfeix:
Hmmm

On 8141 device:

1080p120 : doesn't work

2160p60 : doesn't work

I'm more and more thinking about my phone has been produced on a monday :/
[Sony Xperia XZ Premium Guides, News, & Discussion] AbrarZShahriar:
Would like to see 120hz vs 60hz comparison on a video.
[Sony Xperia XZ Premium Guides, News, & Discussion] noppoer2:
How do you want to see that? Do you have a 120hz+ monitor? Otherwise you cant see the diffrence because you refresh rate of your phone/computer is to low.
[Sony Xperia XZ Premium Guides, News, & Discussion] AbrarZShahriar:
Dozens of Razer Phone YouTube videos

There are many Razer phone/Sharp Aquos R reviews that show the difference. You can see the difference even in some 30fps Youtube vids.
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Hello, any news? Has anyone installed AOSP 8.1? is everything working and stable?

Does 120 Hz improve scrolling speed and smoothness?
[Sony Xperia XZ Premium Guides, News, & Discussion] kamyk70:
Hi uditrawat,

Just quick, silly question. It is for single or for dual sim XZ P?
[Sony Xperia XZ Premium Guides, News, & Discussion] Moarten:
Same here. G8141 and when i select 1080p @ 120hz, it asks if I want to restart the UI, but then the screen goes black and I have to reset the phone.
[Sony Xperia XZ Premium Guides, News, & Discussion] Moarten:
Since the build in the OP was for the G8142 and some things didn't work well on the G8141 (120hz and sd card although that might have a different reason) I decided to build AOSP for the G8141

G8141 AOSP Build

https://drive.google.com/open?id=1b10p7R22X2GztZO2Ii0S9UTBN1c9aGNe

Installation is the same as in the OP. If you have TWRP you can skip the " fastboot flash recovery recovery.img".

sd card is now visible when transfering files & in other file managers.

After unlocking SIM 4g works instantly (took ~30-60seconds on G8142 build)

EDIT: 120hz worked once, now it crashes the phone again (black screen)

EDIT2: Managed to enable it again but I'm 99% sure it wasn't really 120hz. Restarting phone reset the setting to 1080p @ 60

Other, unrelated to my build, things of interest:

Gravity box seems to work

Photos taken with Google Camera look great. I've tried multiple and https://www.androidfilehost.com/?fid=817906626617934890 works (best). See link below

Battery doesn't last as long as stock rom

Magisk 16.0 works

Photo's with Google Camera

https://drive.google.com/open?id=1uJvTuUjjBqDZ3YzV3awAZldzFqFNniza

It seems to lack a bit of noise reduction, but it's always possible to add that with other apps and now the photo's stay sharp
[Sony Xperia XZ Premium Guides, News, & Discussion] failax:
Google cam shots at max resolution? 4K display is used is some apps?

It works as daily driver?
[Sony Xperia XZ Premium Guides, News, & Discussion] Moarten:
It shoots at 17.1 mp max.

No idea yet if it displays some thing in 4k, looks like screenshots are made in 4k

Yes for me it works as daily driver, although I probably need to use it a few more days to say for certain.

Keepass2android doesnt really work. The old 1.0.1 version does, but it crashes when trying to use fingerprint
[Sony Xperia XZ Premium Guides, News, & Discussion] failax:
So google cam is better than stock one?We can go back to stock rom without problems (except drm keys..)?
[Sony Xperia XZ Premium Guides, News, & Discussion] Moarten:
Especially in low light conditions it looks better since it doesn't add the overkill amount of noise reduction. I'm gonna try it outside tomorrow, see how it performs there.

If you have an unlocked bootloader with twrp, you can easily make a backup there and you should be able to go back without problems (or use newflasher with xperifirm firmware). It's better than having to rely on other dev's here (who do a great job, no disrespect there) to make hacks to be able to use the camera on stock firmware. Now you get the benefit of android 8.1 and

true

stock android.

I wouldn't unlock the bootloader for this; it's not that much better and unless you really want root or xposed or whatever I'd stick with the stock rom & monthly security updates.
[Sony Xperia XZ Premium Guides, News, & Discussion] failax:
So if you lose drm keys and go back to stock rom you lose monthly auto updates forever?

Can you make a sample with anterior cam in bokeh mode?
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Hello guys! Does 120 Hz work or worked for 1 second as true 120Hz or not?
[Sony Xperia XZ Premium Guides, News, & Discussion] Sepo190:
I haven't tried Moarten's build but I built 8.1 myself along with the LA.UM.6.4.r1 kernel and neither 4k nor 120Hz works, so unless he did something to fix it, it probably doesn't work in his build either. It seems like SurfaceControl.getDisplayConfigs is returning that the only config for the display is 1920x1080@60fps so when SurfaceControl.setActiveConfig is called when we try to switch the resolution it causes an index out of bounds exception. I'm not sure where the configs for the display are set, but maybe someone smarter than me can figure it out.
[Sony Xperia XZ Premium Guides, News, & Discussion] Moarten:
I've made 2 photo's with "Lens Blur" and some coffee.

https://drive.google.com/open?id=1T5W4trWHsr0HHYEBcw1tTaKmW0yKe9bD

https://drive.google.com/open?id=1lmmMbjJHheoDqlel1M0jOj_esQwMlC1s

The 120hz/4k doesn't work. Like Sepo190 said it throws ArrayOutOfBounds exceptions so it might get fixed in the future, but it doesn't seem to work with either of the 2 builds (G8141 or G8142) on my G8141.

You

lose the auto-update

, but you can flash the updates

manually

. I've read Storm has made progress with his auto-fixer, so hopefully that will make things easier in the near future.
[Sony Xperia XZ Premium Guides, News, & Discussion] frostydawn:
So does this rom works perfectly with no visible bugs, and with fully working Google HDR+ camera?

am I right? If so, WHAT AN GREAT WORK YOU DID!

Really really thank you for your great job :)
[Sony Xperia XZ Premium Guides, News, & Discussion] Moarten:
Just made a phonecall and that seems to work. It's not 100% stable, sometimes apps stop working but it seems to be mostly fine. I've had telegram crash once today and adding a fingerprint was glitchy once, but worked fine again moments later.
[Sony Xperia XZ Premium Guides, News, & Discussion] frostydawn:
I flashed this rom and seems like I managed to get HDR+ working

But there's a problem

As sony kills their rooted devices noise reduction feature, the outcome is noisy though Google HDR+ removed lots of noises.

I'm pretty sure that photo quality gets worse compared to stock unless you managed to keep DRM
[Sony Xperia XZ Premium Guides, News, & Discussion] frostydawn:
VOLTE seems to be not working

did anyone managed to get it work?
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
Haha, I was just trying to compile this exact ROM the other day. Toward the very end it threw an error so I just said screw it, somebody else will do it. Anyhow, so far this is actually pretty stable. No random reboots or crashes to speak of, yet. System responsiveness was poor at first, but it seems to of cleared up after everything was cached and such. The fingerprint sensor is rather weird, it only recognizes my fingerprint 1/3 of the time. Probably some file is messed up somewhere or something, I don't know. Also, changing resolution and refresh rate is broken, as other have noted. Perhaps someone with more experience (and time) will hopefully fix these issues sometime. I'll remain on the ROM for a little while longer to gauge stability and such.
[Sony Xperia XZ Premium Guides, News, & Discussion] Sepo190:
I cant post links, but it looks like commit 00f8f9c in sony's repo_update repository is what broke the changing resolution and refresh rate. I guess it broke hwc2. Does video playback work for you guys on 8.1?
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
Video playback works fine. I have noticed a few other bugs however. For one, saying Okay or Hey Google won't call up the assistant. Training a voice model works fine though. Also, the camera button doesn't do anything. If you hold it down it'll vibrate the phone for a second, as if it's trying to open something. Along with that, I've also found that WiFi is automatically disabled on boot. Once the phone is rebooted, you have to manually enable WiFi. There's also been a few FCs here and there, mostly from the Google App. Still no random reboots. Battery life is down a bit from the stock ROM, but it's still pretty good.

EDIT: For some reason the Okay and Hey Google hot words started working, out of nowhere. SO that's good. What's not good is that I've experienced 2 random reboots today. Have no clue why. First was while watching YouTube, second was while taking a photo. Still, could be worse...
[Sony Xperia XZ Premium Guides, News, & Discussion] non.verbal:
guys i wanna ask few questions before i decide its worth loosing my drm keys. first of all what is security patch, date of compilation and other basic info like exact kernel version and date of sony binaries used. does it work stable enough to use it as a daily driver and what kind of bugs it have for now? i read one of them is camera button shutter doing nothing but does it at least work in google camera app properly and what is actual quality of pictures cuz opinions here are mixed. what is the fingerprint performance - does it work fine , bad or doesnt at all( i had this kind of problems with my xperia x and omni/paranoid ). is 4k mode working properly in build for G8141 ?
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
Here's the info you were asking for: https://imgur.com/a/xqSTJ As for bugs and such, read past two posts above. So far, it's really stable, and aside from the a random reboot or two (which I got on the Stock ROM as well), it's been performing really well. It's still does have some bugs, however. The fingerprint reader on this particular ROM is messed up, I've tried both the G8141 and G8142 builds (I have the later). Same result on both, so I'm just using a pin right now. Also, the screen resolution/refresh rate changing is not working is also on the fritz. The screen is stuck at 1080p60 at all times, even while watching 4K content.

I don't think this ROM is for everyone, yet. Once some of the bugs are ironed out this will make a great daily driver. I'm on it right now to test bugs and such (and I love tinkering with cutting edge stuff as well).
[Sony Xperia XZ Premium Guides, News, & Discussion] loukky:
first,thanks for your hard working,does it can running in G8142?
[Sony Xperia XZ Premium Guides, News, & Discussion] Moarten:
[MENTION=6480773]loukky[/MENTION]: Build in the OP is for the G8142.

Compiled a new version tonight for the G8141, hoping it would have the march security patch (it doesn't).

https://drive.google.com/open?id=1NDm3aAUnaQYGivEWgotimTQaYpZJKrGr

Hopefully tomorrow it will have the march update and then I will compile a version for the G8142 as well.

To update you only have to do:

fastboot flash boot boot.img

fastboot flash system system.img

fastboot flash oem SW_binaries_for_Xperia_Android_8.1.6.4_r1_v10_yosh ino.img

And then probably reinstall magisk and gapps in TWRP (I did, phone works fine now)
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Does 120 Hz work?
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
Unfortunately no, it does not. Some change on Sony's repo apparently broke it or something along the lines of that. Not much that can be done, unless someone goes and fixes it. I wish I could, but I wouldn't even know where to start lol
[Sony Xperia XZ Premium Guides, News, & Discussion] loukky:
dose dual SIM cards work?
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
Haven't tested it as I don't use two SIMs, but I believe it should.
[Sony Xperia XZ Premium Guides, News, & Discussion] uditrawat:
oem

new oem release from sony finger print is fixed

https://developer.sony.com/file/dow...for-aosp-oreo-android-8-1-kernel-4-4-yoshino/

give it a try
[Sony Xperia XZ Premium Guides, News, & Discussion] Moarten:
March Security Patch G8141

https://drive.google.com/open?id=1tC0H1KoFG1DilEbKe5L0jxODOnF7ZbeB

I tried to update it from the previous AOSP (so only flash boot, system and binaries) but then unlocking the phone would result in a black screen and relocking it after 2 seconds. Maybe it works for others, but I recommend a clean install.

Will build a G8142 dual sim version tomorrow.

EDIT: Managed to do an upgrade, hopefully it's stable:

Create a backup in TWRP (only data is required)

Flash boot, system and binaries

Boot into TWRP and do a factory reset

Restore the data backup

Flash gapps and magisk

If you, like me, cannot enter android because wrong password or pattern: see https://forums.oneplus.net/threads/fix-wrong-pin-pattern-when-restoring-twrp-nandroid-backup.452384/

EDIT 2: Use the V10 binaries if you have issues with fingerprint
[Sony Xperia XZ Premium Guides, News, & Discussion] gaijin1%:
Perhaps if you use the kernel version LA.UM.5.7.r1 you can enable the 'Dynamic Display Switch' allowing 4K and 1080@120hz.

https://github.com/sonyxperiadev/kernel/tree/aosp/LA.UM.5.7.r1

It was the AOSP Nougat 7.1 kernel that allowed it. An earlier kernel shouldn't matter, but I'd like to know if it works with the AOSP 8.1 ROM.
[Sony Xperia XZ Premium Guides, News, & Discussion] Moarten:
G8142 March Security Patch (2018-03-10)

https://drive.google.com/open?id=1BpG0LDXNcxu9-_DjMErlE4iBfQ53mjhz

G8141 March Security Patch (2018-03-10)

https://drive.google.com/open?id=1p0PoDg9R5LClWWVLB8zLrPfe9OfQ4Ezs

Made a G8141 and G8142 build yesterday, I tested the G8141 version and the fingerprint sensor didn't work (no fingerprint option in settings). So it's probably the same for this G8142 version, although it might work with a factory reset or it's only broken in the G8141 build (unlikely). Anyway, create a backup (full, system + boot + data so you can go back) in TWRP before flashing this and possibly try the V10 binaries, since that was the fix for my previous build (2 posts earlier), which i recommend for the G8141. It looked smooth though, so if you don't care about fingerprints you might wanna try this one.
[Sony Xperia XZ Premium Guides, News, & Discussion] Sepo190:
I tried the 5.7 kernel with 8.0 and it didn't work, so I doubt it works with 8.1 either.
[Sony Xperia XZ Premium Guides, News, & Discussion] gaijin1%:
Looks like if we want it will need to use Nougat.

Can you build and share the working Nougat version? If not, I'll get around to it eventually myself, but I need to go through the trouble of setting up my Windows computer build environment.
[Sony Xperia XZ Premium Guides, News, & Discussion] Sepo190:
Sure. I'll build it tomorrow after work.
[Sony Xperia XZ Premium Guides, News, & Discussion] Sepo190:
Here is a build of 7.1.1 for the G8141 (I should have asked if you wanted the dual sim or not. I can build that one too if you want it.). I haven't flashed these to make sure they work, but I just built them straight from source without changing anything so they should be fine, but just keep some backup images handy just in case. I included the recovery image, but you probably don't need that if you are using TWRP. Also, someone said on the Xperiadev github that kholk just had one more bug to fix for the updated DRS for 8.1, so you might just want to wait for that if you can.

https://drive.google.com/open?id=1K6-qG28Yv-Cuv-rGWL6JeyRjisK_TtUM
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Hi Sepo! Does 120 Hz work?
[Sony Xperia XZ Premium Guides, News, & Discussion] Blackghosthm:
Aosp 7.1

Please build aosp 7.1 for g8142
[Sony Xperia XZ Premium Guides, News, & Discussion] gaijin1%:
This was brilliant! G8141 was just what I needed :) You should post this with the ROMs and collect more donations.

It took a bit of research, but I finally figured out how to get Gapps working with these AOSP ROMs. Fastboot flash everything, then TWRP.

Don't reboot after finished, just unplug and boot into recovery and flash the Gapps with TWRP before your first system boot (I used ARM64 7.1 nano). Got everything up and running and I can confirm it has the Dynamic Resolution Switch in the extended settings and

does enable 120hz or 4K

. I have not yet put in my SIM or done any other testing as it's late and I need sleep. PM me for a donation. You earned one for the legwork here. I'll have a donation for [MENTION=489838]kholk[/MENTION] too when he gets it working on 8.1. (Although he's already earned one for his fix in this version, if he asks.)
[Sony Xperia XZ Premium Guides, News, & Discussion] Sepo190:
I'm glad it worked for you. If you want to donate you should definitely donate to kholk as he wrote all the code for the DRS. All I did was compile the build, so no donation needed.

I'll build it after work today

EDIT: here you go, 7.1.1 for the G8142 https://drive.google.com/open?id=1FCTgoJbs7q446jpNX7eFS9IEd9m0mjEL

More on topic for build 8.1, I removed the configurations for 1080p and 1080p@120hz from the panels dtsi file which seems to set the display to 4k. I tried the same, only leaving the 1080p@120hz instead, but it doesn't really look 120hz to me (it does report that its at 120 hz, so maybe I'm just dumb ¯\_(ツ)_/¯). If you want to play around with that the file is in the kernel at arch/arm/boot/dts/qcom/dsi-panel-somc-synaptics-sharp-4k-cmd-ID6.dtsi
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Thank you!

Can somebody test USB c hdmi Displayport alt mode in AOSP? Please!
[Sony Xperia XZ Premium Guides, News, & Discussion] holypuma:
I have the dual SIM model and this version works with nano GAPPS. nano GAPPS enables the ok Google command that wasn't working with pico GAPPS. I will admit that it causes some app crashes when using okay Google, but freezing those apps in Titanium Backup stopped those errors and the hotword still works.

Tl;dr anyone trying to use okay Google command, use this version with Nano OpenGAPPS
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
Can confirm, I'm using the G8142 with Nano Gapps and the Okay Google hotword works for me as well. No FCs while using it however, at least on my device.
[Sony Xperia XZ Premium Guides, News, & Discussion] holypuma:
I think the force closes were from flashing pico first and then later flashing Nano. The crashes were from other TTS services.
[Sony Xperia XZ Premium Guides, News, & Discussion] Alex1911:
Are there any known bugs ?

Hi boys and girls,

the rom work's pretty good and fast so far but does anyone know which are the currently known bugs ?

Best Regard's

Alex1911
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
The latest build is actually a lot more stable than the initial build. Runs very smoothly, and battery life isn't half bad (not as good as the stock ROM however). As for bugs, there's a few. The most obvious one is that the fingerprint sensor doesn't work, which is a pretty annoying. The proximity sensor in calls is also a bit wacky, not a huge deal however. Also, the camera button doesn't work properly. It vibrates if you hold it for some reason, like it's trying to bring up something. Perhaps there's a way to assign it to something. Besides that, it's been pretty good. I daily the ROM and I haven't had any random reboots or anything.
[Sony Xperia XZ Premium Guides, News, & Discussion] Alex1911:
Hi, thanks for the Response :)

Do you use xposed and magisk ? If yes, then what version or replacement do you run ?

Best Regard's

Alex1911
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
I run Magisk 16.0, and it works perfectly. I don't run Xposed, so I'm not sure if that works or not. I believe it should, but don't quote me on that.
[Sony Xperia XZ Premium Guides, News, & Discussion] failax:
Google cam works?
[Sony Xperia XZ Premium Guides, News, & Discussion] Alex1911:
Thanks for the Information :)

Best Regard's

Alex1911
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
It does indeed, and I found this to be the best version.
[Sony Xperia XZ Premium Guides, News, & Discussion] Sepo190:
It looks like the fingerprint sensor breaking after reboot should be fixed as of yesterday.
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
It actually wasn't working from the get go. Anyhow, good to hear. Perhaps someone could make a new build with the updated fix sometime? I use the G8142, for reference.
[Sony Xperia XZ Premium Guides, News, & Discussion] failax:
Can you post some pictures?Megapixels are all used?
[Sony Xperia XZ Premium Guides, News, & Discussion] Mario119:
Not all of the megapixels are used on the rear camera. The front camera is 13MP and the rear is 17MP. Don't have any good pictures at the moment.
[Sony Xperia XZ Premium Guides, News, & Discussion] failax:
I wait your photo samples to root this device :)
[Sony Xperia XZ Premium Guides, News, & Discussion] holypuma:
Just make the jump man. This is more stable than stock in my experience. Less issues with screen sensitivity and no more reboots from crashed apps. The only issue I've seen is slow motion camera doesn't work for me (if someone has a fix let me know) and cellular connectivity is slow to start upon reboot. Otherwise, this is awesome. Just make sure to use Nano GAPPS if you need Google assistant.
[Sony Xperia XZ Premium Guides, News, & Discussion] failax:
Before unlocking bootloader I must be sure google can works correctly. I think this argument is important for many users.
[Sony Xperia XZ Premium Guides, News, & Discussion] holypuma:
Even if you unlock the bootloader, you can work around the camera issue on stock now. I can take some pics if you want...

Requests?
[Sony Xperia XZ Premium Guides, News, & Discussion] failax:
Yes thanks.
[Sony Xperia XZ Premium Guides, News, & Discussion] holypuma:
https://photos.app.goo.gl/xeNM0PMy9nZMZFrU2
[Sony Xperia XZ Premium Guides, News, & Discussion] failax:
Thanks but it would be interesting to see a comparison between the two apps in the same photo. Even a shot with anterior cam with portrait mode.

I know.. I ask too much :)
[Sony Xperia XZ Premium Guides, News, & Discussion] holypuma:
I have no way of doing that. Sorry
[Sony Xperia XZ Premium Guides, News, & Discussion] lonewolfbtown:
i got 120hz working. It's worked all along. if you dont change the resolution to 4k screen size, itll freeze your phone. I used DPI changer and changed it 821 dpi, and screen size 2160x3840 and now it works just fine. slight delay on power button wake up but not biggy. No crashes. Nothing.
[Sony Xperia XZ Premium Guides, News, & Discussion] sfex3best:
Are you sure it's 120hz? I might just jump into this now. Btw im on official firmware and I also get the delay on power button if I keep a lockscreen. I just off my lockscreen and fingerprint and I actually prefer it this way now. Weird but yeah.

Can you confirm 120hz and 4k or are we still unsure of it?