[ROM][10.0][XZ2c] Pixel Experience for Xperia XZ2 compact (apollo) [AOSP][2020/02/21]

Search This thread
Mar 26, 2020
9
6
Let's talk about the battery...

like severe battery drain
if there was a problem how did you fix it
Oh yeah, that kind of battery percentage bugs. I have them too and it remembers me a lot of the Galaxy Trend I had 6 years back.
There is definetly some weird behaviour going on here. The battery meter stays flat for large amounts of time before finally dropping immediately at some point. (see screenshots)
It can also shutdown itself during night because it thinks the battery is dead. (airplane mode and with battery saver)
I did not see an improvement over Stock Android 10 yet since it slowly drains battery at all times, even during night time, in airplane mode and with battery saver ON.
You can still use your phone for a decent amount of time though and use it like you would otherwise, but you will need to have a power bank or a plug near you if you don't want too much issues.

[v7 EDIT]:
The issue is still here. I also found out in between that the voltage meter actually does not correspond to the charge percentage. The voltage meter seems to be accurate but in that case, the interpretation of that voltage is wrong or buggy, which leads to percentage bugs. Battery percentage when charging is very weird. You may see a super duper fast charging on a slow USB port (500mA) because it will reach the percentage it should be having at that voltage despite almost not charging in a few minutes.

If you want to know your "true" charge level or, like me, not "overcharge" your phone, use HWMonitor or any other app that will tell you the battery voltage. Do not even try and just guess by looking at what the battery curve looks like. It does not mean anything since the numbers are somewhat random.
 

Attachments

  • Flat.png
    Flat.png
    131.1 KB · Views: 299
Last edited:
  • Like
Reactions: mtrantalainen
Mar 26, 2020
9
6
Audio:

As of:
- PixelExperience_h8324-10.0-20200511-0435-OFFICIAL
- SW_binaries_for_Xperia_Android_10.0.7.1_r1_v6_tama

Music playback:
May be impossible if your phone falls asleep. It will start by struggling, leading the music to stop at some point.
Plays back normally again if your wake it/turn the screen on soon enough; otherwise the music is paused and your device may be hang for a bit.
The issue persists after rebooting.

How to reproduce it: play music and put your phone to sleep manually, or let it sleep by itself. It will occur in a few seconds in most cases but sometimes it won't occur if listening on the phone's speaker.
It actually mostly concerns Bluetooth audio playback. You won't be able to listen to music from your phone in your car or with your wireless headphones in almost every case.

Speakers:
Speakers saturate or get distorted easily.
If you try to play music in the background trough the Newpipe YouTube client, it seems to have the same issues as Bluetooth playback.
Maybe some apps have a harder time playing back audio in sleep mode than others.

USB Audio:
I did not test USB Audio yet and am waiting for some device to test it.

[v8 EDIT] : Bluetooth Audio is now working great and AptX works. You can playback audio in background without issues now. The speakers seems to have been improved too.
 
Last edited:
  • Like
Reactions: mtrantalainen
Mar 26, 2020
9
6
Camera, video recording and related

As of Binaries v7:

Stills:
RAW (.dng) support for both back and front cameras.

Back camera:
Definition is different from stock and varies depending on the photo mode:
17.1Mpx (5,472 x 3,104, 16:9) in RAW (.dng) (The number of pixels with .dng is not shown the same in Google Photos and Image Glass)
15.9Mpx (5,312 x 2,988, 16:9) in JPEG mode

It is not the 19.1Mpx (5,056 x 3,792, 4:3) maximal stock definition.
From my searches, the IMX400 sensor is natively 5,520 x 3,840 (19.2 Mpx), but it is a multi-aspect sensor.
The maximum definition in 4:3 mode is 5,056 x 3,792 (19Mpx) while it is 5,504 x 3,096 (17Mpx) in 16:9 mode.
So maybe only the 4:3 mode of the sensor neeeds to be either implemented or enabled since basically every pixel in 16:9 mode is usable on RAW.
It is not a killer for me since I now have .dng that is way better for me than the JPEG I used to edit with in stock Android, but it is something you should be aware of.

Front camera:
Not much to say, except that it has the exact same definition as stock (1944 x 2592, 4:3). It can also shoot in RAW and all the pixels are usable in both JPEG or DNG mode.

ISO range (back camera only):
Not the same as what you used to have in stock. You used to have 40 to 3,200 ISO accessible in stock Android.
Now, you have 100 to 12,000 ISO.

Auto-focus (back camera only):
You will miss the nice auto-focus you had in stock Android.
The autofocus is dumb and may struggle even on non-moving objects sometimes. It can definetly be a handicap when taking photos everyday.
It is also much slower than stock, but maybe because of other limitations in the camera implementation.

Exposure/Shutter (back camera only):
The shutter does not set by default to 1/60s or 1/50, nor even 1/30s which are acceptable to shoot photos and video (to some extent), but will go down to 1/15s most of the time in auto mode in case of "low light".
The exposure changes and transitions faster compared to stock or fades less.
The shutter is not working optimally, because of some sort of camera limitation.

Flash:
The light (torch/flash) is bright as hell compared to what it used to be on stock Android.
You now have a nice torch to use everyday with its good brightness.
It seems to heat up pretty fast though and must use a lot more power, so I would not use it for a large amounts of time.

Filtering:
There are now some more filtering options. Whether you like them or not will depend or your taste, but you have a bit more options.

White balance:
Some more options and presets too.

Video:
DO NOT LEAVE STOCK ANDROID YET IF VIDEO IS IMPORTANT TO YOU

The XZ2C camera in video has a lot of potential and I have been able to record some gorgeous images in a lot of scenarios.
You can disable denoiser and most other filterings to preserve detail or just keep the denoiser to get less compression artefacting and a better image overall in low light scenarios. You can get the encoder to go as high as 120Mbit/s HEVC in 4K and get a pretty good looking image at the end.

You could record at a steady 30 Frames per second in 4K with fixed exposure/ISO in stock Android, no frame drop whatsoever. I think this is the most important thing.
But what you get here is 15/20 Frames per second no matter what definition or frame rate you choose, even in manual mode (fixed exposure/ISO).
Because of this and the other issues (mainly the autofocus and exposure), I think that it is a sensor compatibility issue rather than an encoder issue.

The camera image preview is limited to 15/20FPS in both photo and video mode, which could explain a lot of things:
There has to be a link between the preview frame rate, the default 1/15s shutter, in part why the autofocus is so slow, and the fact that the camera cannot record video higher than 15/20FPS.
The sensor refresh rate or some sensor setting absolutely neeeds to be changed in order to get at least 30 frames per second.
It does not matter to me at all if video is a little bit cropped.
I usually crop my videos or zoom a tiny bit at the end or when recording anyways. 30FPS is more important to me right now.
I even wish to have 60FPS 4K video too but I don't know if it is possible to get it with this sensor. Maybe 60FPS 1440p is doable if 4K is not.
There is no slow-motion video yet (240FPS 1080p, 960FPS 720p/1080p) but i wish to see it too someday. Being able to get working slow-motion without filtering and a higher bitrate than stock would look gorgeous.
 

XDA Devil

Member
Dec 24, 2017
12
1
Sony Xperia XZ2 Compact
AntonioBiscuit, Emma says that my phone is locked how did you unlock it?

UPD. Unlocked)
However, Emma doesn't show me the latest firmware version (52.1.A.2.1) only 52.1.A.0.618. So I'm flashing it right now. Is it ok?
 
Last edited:

XDA Devil

Member
Dec 24, 2017
12
1
Sony Xperia XZ2 Compact
Ok I've flashed it finally. But Sim card slot doesn't work and show me that message
https://prnt.sc/tjv83i

UPD: reflashed stock then everything again and voila! Sim slot works

BTW, I'm using:
PixelExperience_Plus_h8324-10.0-20200714-1058-OFFICIAL
SW_binaries_for_Xperia_Android_10.0.7.1_r1_v9c_tama
 
Last edited:

shamllakh

Senior Member
Oct 28, 2015
58
11
Jeddah
I finally managed to install the ROM yesterday using differents instructions.
Here is how I did it if you are struggling to install like me at the beginning (or maybe there was just a fix in between, I don't know).



You will also need to extract "SW_binaries.img" from the most recent binaries .zip, which you can download on Sony's website.

In your command prompt you will need to do the following:

Code:
> fastboot flash boot boot.img
> fastboot flash dtbo dtbo.img
> fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
> fastboot flash system system.img
> fastboot flash vendor vendor.img
> fastboot flash oem_a SW_binaries_for_Xperia_Android_10.0.7.1_r1_v6_tama.img
> fastboot flash oem_b SW_binaries_for_Xperia_Android_10.0.7.1_r1_v6_tama.img

DATE: 2020-JUL-19
Thanks for the guide ...
Here is my Case: Firware 52.1.A.0672
Binaries: SW_binaries_for_Xperia_Android_10.0.7.1_r1_v9c_tama

Issue: Sim Card is not recognized
PS: I flashed the stock MODEM, MODEMST1, MODEMS2, wiped: USERDATA ... did not work
 

goxmail

New member
Apr 3, 2014
2
0
Mirror Issues

I'd love to download the latest version, but PixelExperience_h8324-10.0-20201121-0018-OFFICIAL.zip keeps giving me download errors (only the plus edition appears to be online)... any ideas anyone?
 

goxmail

New member
Apr 3, 2014
2
0
Mirror Issues

I'd love to download the latest version, but PixelExperience_h8324-10.0-20201121-0018-OFFICIAL.zip keeps giving me download errors (only the plus edition appears to be online)... any ideas anyone?
Maybe @fastbooking knows whom to address with regards to this? I've already tried all the PE Telegram chats (general/sony specific) to no avail...
 

andreux481

Member
Sep 30, 2014
9
0
good morning
it is the first time that I make a flash rom.
I updated the stock rom to the latest version, unlocked the bootloader and managed to flash the PE 10 rom but I have some errors:
1) the camera has bad quality and gcam doesn't work.
2) the physical camera button does not work.
3) the stereo sound of music is noisy.
4) there is no root.
5) there is no TWRP.
Can someone help me?
Can you tell me how to get root and twrp?
Thanks and sorry for the English.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6

    GtwTyCR.png

    PixelExperience for the Sony Xperia XZ2 Compact apollo

    What is this?
    Pixel Experience is an AOSP based ROM, with Google apps included and all Pixel goodies (launcher, wallpapers, icons, fonts, bootanimation)

    Our mission is to offer the maximum possible stability and security, along with essential and useful features for the proper functioning of the device

    Based on Android 10.0


    Whats working?
    Wifi
    RIL
    Volte
    Mobile data
    GPS
    Camera
    Flashlight
    Camcorder
    Bluetooth
    Fingerprint reader
    NFC
    Lights
    Sound / vibration


    Known issues
    Sony Open Devices bug tracker

    DON'T FLASH GAPPS, ALREADY INCLUDED
    Download from Pixel Experience website (Xperia XZ2 Compact Single Sim)
    Download from Pixel Experience website (Xperia XZ2 Compact Dual Sim)

    Flash instructions and special recovery coming on Monday 24/02/2020

    Donate
    Liked my work? Give me a beer

    Translation
    Help with project translation

    Stay tuned
    Our Telegram channel
    Sony Specified Telegram channel
    Our blog

    3
    Camera, video recording and related

    As of Binaries v7:

    Stills:
    RAW (.dng) support for both back and front cameras.

    Back camera:
    Definition is different from stock and varies depending on the photo mode:
    17.1Mpx (5,472 x 3,104, 16:9) in RAW (.dng) (The number of pixels with .dng is not shown the same in Google Photos and Image Glass)
    15.9Mpx (5,312 x 2,988, 16:9) in JPEG mode

    It is not the 19.1Mpx (5,056 x 3,792, 4:3) maximal stock definition.
    From my searches, the IMX400 sensor is natively 5,520 x 3,840 (19.2 Mpx), but it is a multi-aspect sensor.
    The maximum definition in 4:3 mode is 5,056 x 3,792 (19Mpx) while it is 5,504 x 3,096 (17Mpx) in 16:9 mode.
    So maybe only the 4:3 mode of the sensor neeeds to be either implemented or enabled since basically every pixel in 16:9 mode is usable on RAW.
    It is not a killer for me since I now have .dng that is way better for me than the JPEG I used to edit with in stock Android, but it is something you should be aware of.

    Front camera:
    Not much to say, except that it has the exact same definition as stock (1944 x 2592, 4:3). It can also shoot in RAW and all the pixels are usable in both JPEG or DNG mode.

    ISO range (back camera only):
    Not the same as what you used to have in stock. You used to have 40 to 3,200 ISO accessible in stock Android.
    Now, you have 100 to 12,000 ISO.

    Auto-focus (back camera only):
    You will miss the nice auto-focus you had in stock Android.
    The autofocus is dumb and may struggle even on non-moving objects sometimes. It can definetly be a handicap when taking photos everyday.
    It is also much slower than stock, but maybe because of other limitations in the camera implementation.

    Exposure/Shutter (back camera only):
    The shutter does not set by default to 1/60s or 1/50, nor even 1/30s which are acceptable to shoot photos and video (to some extent), but will go down to 1/15s most of the time in auto mode in case of "low light".
    The exposure changes and transitions faster compared to stock or fades less.
    The shutter is not working optimally, because of some sort of camera limitation.

    Flash:
    The light (torch/flash) is bright as hell compared to what it used to be on stock Android.
    You now have a nice torch to use everyday with its good brightness.
    It seems to heat up pretty fast though and must use a lot more power, so I would not use it for a large amounts of time.

    Filtering:
    There are now some more filtering options. Whether you like them or not will depend or your taste, but you have a bit more options.

    White balance:
    Some more options and presets too.

    Video:
    DO NOT LEAVE STOCK ANDROID YET IF VIDEO IS IMPORTANT TO YOU

    The XZ2C camera in video has a lot of potential and I have been able to record some gorgeous images in a lot of scenarios.
    You can disable denoiser and most other filterings to preserve detail or just keep the denoiser to get less compression artefacting and a better image overall in low light scenarios. You can get the encoder to go as high as 120Mbit/s HEVC in 4K and get a pretty good looking image at the end.

    You could record at a steady 30 Frames per second in 4K with fixed exposure/ISO in stock Android, no frame drop whatsoever. I think this is the most important thing.
    But what you get here is 15/20 Frames per second no matter what definition or frame rate you choose, even in manual mode (fixed exposure/ISO).
    Because of this and the other issues (mainly the autofocus and exposure), I think that it is a sensor compatibility issue rather than an encoder issue.

    The camera image preview is limited to 15/20FPS in both photo and video mode, which could explain a lot of things:
    There has to be a link between the preview frame rate, the default 1/15s shutter, in part why the autofocus is so slow, and the fact that the camera cannot record video higher than 15/20FPS.
    The sensor refresh rate or some sensor setting absolutely neeeds to be changed in order to get at least 30 frames per second.
    It does not matter to me at all if video is a little bit cropped.
    I usually crop my videos or zoom a tiny bit at the end or when recording anyways. 30FPS is more important to me right now.
    I even wish to have 60FPS 4K video too but I don't know if it is possible to get it with this sensor. Maybe 60FPS 1440p is doable if 4K is not.
    There is no slow-motion video yet (240FPS 1080p, 960FPS 720p/1080p) but i wish to see it too someday. Being able to get working slow-motion without filtering and a higher bitrate than stock would look gorgeous.
    1
    Any screenshots or install instructions? :)
    1
    Let's talk about the battery...

    like severe battery drain
    if there was a problem how did you fix it
    Oh yeah, that kind of battery percentage bugs. I have them too and it remembers me a lot of the Galaxy Trend I had 6 years back.
    There is definetly some weird behaviour going on here. The battery meter stays flat for large amounts of time before finally dropping immediately at some point. (see screenshots)
    It can also shutdown itself during night because it thinks the battery is dead. (airplane mode and with battery saver)
    I did not see an improvement over Stock Android 10 yet since it slowly drains battery at all times, even during night time, in airplane mode and with battery saver ON.
    You can still use your phone for a decent amount of time though and use it like you would otherwise, but you will need to have a power bank or a plug near you if you don't want too much issues.

    [v7 EDIT]:
    The issue is still here. I also found out in between that the voltage meter actually does not correspond to the charge percentage. The voltage meter seems to be accurate but in that case, the interpretation of that voltage is wrong or buggy, which leads to percentage bugs. Battery percentage when charging is very weird. You may see a super duper fast charging on a slow USB port (500mA) because it will reach the percentage it should be having at that voltage despite almost not charging in a few minutes.

    If you want to know your "true" charge level or, like me, not "overcharge" your phone, use HWMonitor or any other app that will tell you the battery voltage. Do not even try and just guess by looking at what the battery curve looks like. It does not mean anything since the numbers are somewhat random.
    1
    Audio:

    As of:
    - PixelExperience_h8324-10.0-20200511-0435-OFFICIAL
    - SW_binaries_for_Xperia_Android_10.0.7.1_r1_v6_tama

    Music playback:
    May be impossible if your phone falls asleep. It will start by struggling, leading the music to stop at some point.
    Plays back normally again if your wake it/turn the screen on soon enough; otherwise the music is paused and your device may be hang for a bit.
    The issue persists after rebooting.

    How to reproduce it: play music and put your phone to sleep manually, or let it sleep by itself. It will occur in a few seconds in most cases but sometimes it won't occur if listening on the phone's speaker.
    It actually mostly concerns Bluetooth audio playback. You won't be able to listen to music from your phone in your car or with your wireless headphones in almost every case.

    Speakers:
    Speakers saturate or get distorted easily.
    If you try to play music in the background trough the Newpipe YouTube client, it seems to have the same issues as Bluetooth playback.
    Maybe some apps have a harder time playing back audio in sleep mode than others.

    USB Audio:
    I did not test USB Audio yet and am waiting for some device to test it.

    [v8 EDIT] : Bluetooth Audio is now working great and AptX works. You can playback audio in background without issues now. The speakers seems to have been improved too.