yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] jesserly:
i update CARBON-CR-6.1-NOCT-RELEASE-maple-20181112-1652

to CARBON-CR-6.1-NOCT-RELEASE-maple-20181211-1443

yes the first time installation carbon encrypted my phone. i did not set any password or pin .

yesterday i did update from twrp and for some reason it did ask for a password.

i deleted the installation installed the first one but now with a pin and when i boot into twrp it asked for the same pin .

then i did the same thing as before and got the same issue.

my pin did not work .
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] JosephDM:
Do you think sony will provide update to android 10 for xz premium guys? :)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] HoiFung:
Try formatting the data partition with twrp.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] JosephDM:
sorry I'm new to sony phones, can you tell if carbon rom is better or equal in terms of features and performance to the stock rom?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
If Carbon encrypted your phone then your phone's "force encrypt" option is still on.

After you reconfigured the PIN and flashed the new version, if it's asking for a text password, try going back to TWRP. If this time TWRP doesn't ask you for the password like it normally would, then it is a problem. Usually a single reconfiguration of screen lock should fix the inconsistency and it shouldn't happen again as long as you don't change the PIN, but if your case is reproducible, then the two builds might not be compatible in terms of encryption.

Should note that it's better having data backed up properly before doing so as it'll wipe everything, especially if you intend to flash ROMs and such afterwards and you don't have external SD card (when using both SIMs or you're G8141). Use it only as a last resort.

EDIT: I'm suspecting that on rare occasions, the decryption credential might have been reset to default during the flash process which messed things up, causing TWRP to no longer require the security option you previously set to successfully decrypt the /data partition and such, and that Android starts prompting for a text password that you didn't set (because it's confused and doesn't know what to do anymore to decrypt the data partition). It's possible that Android's security settings only encrypts the key used to transparently decrypt the device, not the entire partition (because it would be obviously impractical due to the overhead involved in decrypting and re-encrypting contents and the risks of total data loss in case of power failure such as running out of battery in the process).
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] JosephDM:
Is it possible build Oxygen OS Rom for Xperia XZ Premium?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
Not sure about which tree you'd use. If using SODP's trees then you need to ask in the respective forums or threads (AOSP-related), as CarbonROM is not based on SODP, it uses stock OEM binaries with kernel based on the copyleft archive (all of which have nothing to do with SODP).

The device, vendor and kernel trees here are tailored for CarbonROM so you could start building it right away with a local manifest configured to sync the aforementioned trees, without issues. For other ROMs, you might need to tailor them to their formats. I'm not an expert in tailoring device/vendor/kernel trees for a different ROM, and I'm trying to learn about it in hope to discover some new possibilities.

Currently the trees are for Oreo (cr-6.1). You need to cherrypick latest commits from Gerrit if you want to build Pie (cr-7.0), but currently you can successfully build after cherrypick but the results are not yet bootable (looking forward to the day when it formally comes out).
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
In theory a nice explanation, however Oxygen OS is the stock ROM of OnePlus devices. Oxygen OS is not Open Source, so you can't build it from source either ;P
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] JosephDM:
I wanna buy XZ Premium but I see it's not so developer friendly, why did you chose to focus especially on Carbon OS rather than famous roms like RR, AOSPA or LOS? And is this rom better than stock xperia rom? :)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
How am I supposed to answer that kind of question?

Whatever I tell you about how Carbon is supreme over the ROMs you mentioned the opinion would be biased anyways, lol.

I've been with Carbon for a long time and meanwhile am the Lead Dev. Obviously I would always vouch for CarbonROM. Also it's CarbonROM, not Carbon OS ;)

Anyways though: If you want custom ROMs or any kind of custom development, stay the hell away from Sony. I can personally recommend the OnePlus 6 (my current daily driver) which should be around the same price as the XZP while being better than the XZP in almost every aspect.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
It's clear that SODP have so many regressions that there hardly ever were a day when everything's perfect (often when something got fixed, something else broke).

EDIT: Maybe a bit too soon to say that... just that I'm not sure if it's possible to freeze a SODP codebase when there were nothing broken (stable), so one can compile at that state to build images that actually work...

I recall someone mentioned Sony being the 2nd largest contributor to AOSP (the 1st being Google), yet from the looks of it, SODP's code quality is indeed concerning. They are providing official guides for building, yet the code quality cannot guarantee that the images built are confident enough to be able to boot properly on actual devices. I once followed the official build guides and succeeded in building one, yet when I flashed them (including the OEM binaries as AOSP needed those), the phone threw out many crashes upon startup and powered off by itself a few seconds later (I did not even touch the power button), left me disappointed and frustrated. It took me a lot of effort to revert everything back to the previous state (including stock OEM binaries).

You're welcome to port if you have adequate experience in ROM building and porting. At one time there existed an official AOSPA build for G8141 (can work on G8142 although some issues, like no exFAT/NTFS support and maybe others). It's based on SODP and thus it would have the issues that plagued CarbonROM in the past (before switching to stock binaries). One such example would be "no sound in calls" (you cannot hear or be heard when calling, which rendered the phone useless as a phone).

Or you can look at Project Treble which is currently being actively developed. It allows you to flash a GSI, which will provide you with a wide range of options. Beware that it's still SODP-based and would probably have some, if not all, the usual issues with SODP based ROMs, and from the looks of it, you can't use it as a daily driver yet as there are some major issues, notably the "may sleep dead" [sic] one. I think it means when the screen locks, there's a chance that the screen would not turn back on and you'll have to restart the phone.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ricardo99831390:
hahah I know its frustrating but what is done is done, can you give me a review on the aosp rom I wanna know about it battery life performance, or any comments on it. is the camera quality awful, is it usable ?. its aosp worth trying? why?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] frostydawn:
As Sony stock rom provides fast update and experience similar with AOSP rom, I recommend you not installing it.

For battery life, it doesn't last long as stock like other AOSP roms for Sony phones and I'm guessing that's because of absence of battery tweak made by Sony and its tendency to use higher screen brightness compared to stock. Actually I didn't care about this that much because it still lasts quite long and I can use portable power bank, but maybe you'll feel it different way.

And the camera..

It will yield really noisy outcome due to disabled noise reduction. Once you install AOSP rom and take a picture with it, you'll gonna miss the stock rom.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] wza24:
After last CR update, the phone starts, entering the correct pattern > phone waits 1 second > screen locked again > etc loop....
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
were you using a theme before? If so, in TWRP flash /sdcard/substratum/SubstratumRescue.zip, boot to system and then reapply your theme.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] wza24:
No custom theme in use I think, just played around with CR settings and changed resolution/ density.

Yesterday cleaned the phone and installed:

CARBON-CR-6.1-NOCT-WEEKLY-maple-20180331-0256

MindTheGapps-8.1.0-arm64-20180320_011441

SW_binaries_for_Xperia_Android_8.1.6.4_r1_v11_yoshino

twrp-3.2.1-0-maple in use for recovery

Today CR update was notifited and installed via TWRP.

Any ideas if possible to save the phone or only option clean install?

Cheers

---------- Post added at 10:45 AM ---------- Previous post was at 10:21 AM ----------

Just re-installed CARBON-CR-6.1-NOCT-WEEKLY-maple-20180331-0256 and can access the phone again...
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] s10119807:
same problem as [MENTION=9068803]wza24[/MENTION]

i can't enter launcher after unlock the locked screem.

i was installed before updating 0405 version:

CARBON-CR-6.1-NOCT-WEEKLY-maple-20180331-0256

open_gapps-arm64-8.1-stock-20180331

SW_binaries_for_Xperia_Android_8.1.6.4_r1_v11_yoshino

magisk v16

-magisk manager for recovery mode

-viper4android fx

-youtube vanced

-busybox for android NDK

no custom theme applied
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
Hum i just installed the old build one mine, downloaded the update using CarbonDelta, rebooted to TWRP and flashed the new build. No issues.

Can you guys share some more information about your setup and preferable provide some logs (you need to enable USB debugging while you're on the old build)?

TIA.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] s10119807:
After tring and testing.

I found that this problem was happened only when I set the pattern on the lock screen.

So I canceled the pattern setting and then used carbonDelta to update system.

The loop has not happened.

It is puzzling that why this problem was occurred.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] frostydawn:
Setup Wizard keeps force closing. Anyone have same problem?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Blackghosthm:
Hi myself5 thanks for your great work,but I have a major problem with non stock ROMs and thats is very bad screen colors iwant have sRGB or something like that can you make it please.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] enricostella:
Thank you ! ! !

Working like a charm (Unlocked XZP G8141).

Installed last week the first build (I'm a noob....) => OEM first, CR 0256, MindTheGapps, reboot et voilà. No issues except the update 0501 I had to re-flash OEM but then rebooted fine.

PS: Is there any users having problems with the switch of Wifi to mobile network data (and vice-versa?)? I also had this problem with the "factory" firmware 47.1.A.12.75 to 47.1.A.12.119 (since I've unlocked my phone and installed the DRM patch). But I still having this issue also with CR. A simple reboot is ok.

Thanks a lot anyway, it's just great finally to have an AOSP for this mobile working perfectly on daily basis :good::good::good::o
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] madshark2009:
wait you installed drm on aosp and it worked?

how is camera quality?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] beammer335d:
Camera for me was aweful
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] frostydawn:
Camera was terrible for me too.

As DRM patch doesn't work on AOSP based roms, camera noise reduction won't work so the outcome would be awful even with Google HDR+'s assistance.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] enricostella:
Hi, no no, it was with official Sony firmwares and the DRM patch, not with AOSP CR.

But now it's sound interesting to try this :D

(unfortunately it's a bit difficult to install SONY apps on AOSP, but as I said, I'm a noob... so ;) )

Cheers
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] frostydawn:
As long as I know, Sony stock apps require some Sony framework, so just simply extracting stock apps from stock firmware and inatalling it in AOSP roms won't work.

But I'm also a noob and not a developer, so it could require something more..
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Nayl159:
Yes

Yes. The firmware and xperifix version.

I can help you if you want. :good:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] blweldon2:
Rom works great on the G8142. Good work op. Only issue I can find is the dynamic resolution switcher not working and a little bit of work needed to get safetynet to pass. Otherwise no problems.

Edit: Night light also does not function.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ricardo99831390:
I've had the same problem when restoring through twrp a easy fix for this is deleting the pasword files from the twrp file manager or simply not using a pattern when updating.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] HoiFung:
If this rom Do not use Sony developer open The project's device tree, built from scratch, and using the stock kernel, Does this camera get better?Just like Xperia Z5 of Los that way？Just curious,Sorry for my English.

Cheers?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] SilverGamer_YT:
Try better the s8 or s9 many développer I have the xz premium and I will buy the s8
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] JosephDM:
Thanks for your time and professional reply, I think in terms of hardware sony is better than others and in my country (italy) xz premium is 279€ while OP6 is 499€, so I think I will buy sony and join this community :svetius:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Miustone:
Great decision. You'll get 4K and Stereo Speakers, where else do You get that 2019 for this Price? Can't wait to get a 4K OLED Xperia in the next Years :) 1440p on the XZ3 is a pretty nice start in the right direction in My Eyes but the Price is on another Level of course :silly:

If OnePlus would finally go beyond 1080p and place Stereo Speakers like Samsung did with the S9 would it be a great alternative, but not yet, and not for Me... Besides that is SONY really Deveolper friendly Comapared with 99% of the other Companies. It's all about the Community and we just have not that Many Devs and Users on SONY Devices anymore. Treble is a big Step in the right way and is a great push for SONY in view of ROMs... There is a Oxygen OS Port for Treble Devices on XDA btw.

BR and sorry for OT dear OP!:cowboy:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] thor6985:
Camera Green

Hello, at g8141 the camera does not work - green pictures. I hope you have a solution.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
Which ROM build, and which camera app are you using?

I'm not sure about this as I'm using Open Camera, with which I could take pictures without problems.

I might not be taking the picture at the best possible quality with a third party camera app, but the difference isn't that noticeable to me.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
Open Camera not work for me(

i have root and last build

and you which build you use ?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] thor6985:
Camera Green

Hello, I've tried two ROMs: CARBON-CR-6.1-NOCT-RELEASE-maple-20181211-1443 and

CARBON-CR-6.1-NOCT-RELEASE-maple-20190116-1341.zip installed together with Magisk V18. Also tried two or three camera apps from the Playstore. Video recordings work with very poor quality. Currently I am using original Xperia Pie again. The system in itself is excellent. Pity with the camera.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
i also try fix camera with it patch https://xdaforums.com/xz-premium/development/kernel-sony-xz-premium-5-2018-t3784669

but no work :(

I really feel sorry for this . because i love it Rom it very fast and clean

i hope version 7 come with fixes
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] thor6985:
Camera Green

Did you also try the module 4-kernel_permissive.zip FROM Magisk Manager?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
To everyone complaining about the green camera issue: You must have been on the latest OREO stock ROM. Coming from Pie will cause that exact issue you mentioned.

Also the CR7 release for maple and poplar will be delayed to an indefinite time. The phone doesn't boot with Pie blobs, there is no pstore (cause Sony sucks), there is no logcat (cause it hangs a lot earlier before adb starts) and, and this is my personal favourite, even UART does not provide ANY kind of logging. So far I spent over a week of debugging on this, with no result. At all.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
yes i was coming from Pie . but Is there a solution now for it problem ?

---------- Post added at 04:30 PM ---------- Previous post was at 04:17 PM ----------

yes
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
Sure. Install Oreo using the Sony Flashtool again, then flash Carbon.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
The green camera issue looks like a regression somewhere (the usual Sony's tradition "something fixed, then something else broke").

Assuming you've unlocked your bootloader:

- Using Stock Oreo blobs with Stock Oreo ROM - Green Camera

- Using Stock Oreo blobs with CarbonROM - OK

- Using Stock Pie blobs with Stock Pie ROM - OK

- Using Stock Pie blobs with CarbonROM - Green Camera

It should be placed in the OP so users can be warned before trying CarbonROM if they were already on stock Pie. However, as for flashing a stock Oreo, does Sony enforce rollback protection with our device on Pie ROMs (which is supposed to be mandatory)? If so, "downgrading" to Oreo from Pie might be risky.

So even with recent stock Pie blobs cr-7.0 still couldn't boot properly, and couldn't even be debugged... :(

Back then when I tried building cr-7.0 (after cherrypicking the necessary commits) I was still on the same Oreo blobs, and it didn't boot, either. Stuck on Sony logo.

It seems Sony hasn't released their stock Pie kernels in their copyleft archive. There were no branches starting with "47.2.A". The most recent match for our device is "47.1.A.12.xxx". On the other hand, there are open source archives for 47.2.A.2.33 and 47.2.A.4.41/45. Not sure if they contain kernel sources, though...
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
"Normal" incompatibility between binaries. It's just that you usually see it first on things like the camera.

I'll update the OP (in case i don't forget) later. P.S. I really wonder what you did, the Oreo blobs work fine for me. The final status with them was that everything except for the Camera worked. Pie blobs however just don't work at all. It's a nightmare.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
The phone is on stock Oreo blob (47.1.A.16.20, the same one as I was running cr-6.1) when I attempted to build and run cr-7.0. Back then I just cherrypicked everything on the maple-pie topic plus the one you told me about (that ignores neverallows so I can compile without errors). After compile I got a zip named carbon-eng plus my username (there was only that one zip with cr-7.0), and tried flashing it, and got stuck on Sony logo, even without flashing anything else (Magisk, gapps, etc.). I did wipe data/cache etc. before doing so.

I probably have missed something, but I was only building to "test whether it can work or not" at that time, since the phone's my daily driver and I can't really afford too much downtime with it.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
That would mean that you forgot the vendor repo (or that you forgot to manually extract the binaries with extract-files.sh). Also it sounds like you used the wrong build command the correct one is "make carbon".

P.S: If you have any in depth questions don't hesitate to message me on Telegram. You can find me in the [MENTION=5197177]CarbonROM[/MENTION] group or directly message me [MENTION=3816568]Myself115[/MENTION].
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] thor6985:
Camera Green

Thanks for the good advice. Everything worked. After I installed the software 47.1.A .12.179, the camera was green. After the DRM patch, the camera app from Sony did not want to save the pictures. Maybe it would be better with the other app. After OREO backup I installed CR-6.1-NOCT-RELEASE-maple-20190116-1341.zip with gapps and Magisk. Safety net has passed and the camera works. Thanks again for the support. I can enjoy it now.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] InfernalPanda:
hi, i installed the new update but now im locked out of android because it asks for a password but i set a pattern. When i boot into recovery, it says it has been decrypted with default password :confused:

edit: i did a full reset and it removed the encryption :D
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Andross01:
The newest version from 2019-03-11 causes a Sony logo boot loop, even with complete wipe before install. Previous version worked fine.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
Looks like the build got queued on the wrong server again, sorry. will restart it right away.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] thor6985:
Android Password

Hallo,

after the last update, at the password request, my old android password does not work. Before, to ensure safety net check, I changed with MagiskHide Props Config the fingerprint of my device. Is there a method without factory reset to delete or bypass the anroid password?

Many thanks for answers.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Incrovantilist:
Hi,

Im planning on flashing carbon over stock pie. Im new to Sony environment so just want to clarify a few things before getting into flashing stuff.

1. If all flashing done right, Does latest Google Camera work with HDR+ & Night sight?

2. If I backup and restore all the drm keys, do they work with the rom, mainly the camera, widevine l1 and anything related to high res music?

3. Can the damned Qualcomm assertive display be somehow turned off?

4. Any other features I might lose from stock rom?

Thanks in advance to anyone who takes their time to answer my questions.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Myself5:
You can't flash it over Pie, you'd need to start with Oreo.

1. As far I I know, no, as the stock blobs not not support the Camera2 API.

2. The DRM Hack for Camera is included, widevine won't work because the BL is unlocked. The HiRes Audio stuff is Sony proprietary and not included.

3. Don't think that exists on AOSP, so it's not enabled :P

4. Wouldn't know of anything else right away.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Incrovantilist:
Thanks for the answers... :svetius:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] MJ999:
cant wipe on twrp, no screen lock also tried setting pin lock same thing

Any ideas?

---------- Post added at 08:54 PM ---------- Previous post was at 08:50 PM ----------

Can't wipe in twrp as it shows mounting error

No pattern/pin also tried with pin same issue

any ideas?