yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Nice to hear from you,

1. About exfat, I will try it. I choose second sim card instead of sdcard.

2. Yes, the device tree imported some configurations from oem partition.

3. I will add 90Hz after we solved some issues. Link

4. About color gamut, we need to solve IMS issue firstly, then I will try to add more functions.

5. WIFI is weak, this is related with new kernel CAF, I just update it simplely, but 5Ghz works fine for me. I thinks you need to try diffrent FTF files. Or switch area in Setting.

Thanks for feedback.

Sjll
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
Actually not all 5GHz channels can be detected properly. When I was reporting the issue my router's 5GHz channel was 100. My phone couldn't see it, but my nearby Pixel C could.

I then changed some other stuffs (not directly related, just some internal features provided by OpenWrt) and restarted the 5GHz wi-fi interface. It now has a channel of 36 and could be seen by the phone. With this channel the Wi-Fi became stable. Just that I can't use any 2.4GHz channels properly for the time being.

As for exFAT... I don't really mind now, since I've switched back to good old FAT32 (I just hope that TWRP would not crap out when backup size exceeds 4GB)... but as many users might still be using exFAT formatted SD cards (as it's the only officially available file system for cards above 32GB), it'd be helpful if it can be properly supported.

Regarding the 90Hz problem... it seems the problems that I faced since Oreo (CarbonROM) was still there.

- System is still 60FPS when set to 90Hz.

- System becomes only 24FPS when set to 120Hz.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
V2.5 uploaded, IMS works fullly on G8142 for China Mobile.. We could call on LTE.

About G8141, need feeedback.

You need to make sure Sony supported Volte in your area and flash FTF for your area.

Please feedback to me about IMS working status.

[MENTION=4542513]LSS4181[/MENTION] Exfat supported. About 5Ghz, try to set different channels on your router.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Umeaboy:
Is there a solution to not being able to boot into Flash mode to flash the stock rom?

I can use Fastboot mode.

Seems like I managed to flash so that I have Fastboot on both Volume up and Volume down.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] HoiFung:
Can you add this commit? This will disable fingerprint wakeup when the screen is locked, just like stock.

https://github.com/HoiFung/android_...mmit/a39aeab963bacb1cd9510ed895b5f32a5c23db08
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] HoiFung:
Now flash back to China custom firmware, but VoLte still does not work for me, the same is China Mobile, I don't know what I missed, will continue to test.

Ims now works, but I have to start the inventory firmware first, then flash lineage 16.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
You may need some app that could reboot into download mode. Or try

fastboot reboot-edl

adb reboot edl

fastboot reboot emergency

fastboot oem edl

VoLTE is "Voice over LTE", It works fully now.

In fact, most of us only need the function "Voice over LTE".

IMS works partly, Our rom lack of "Voice over WLAN" and "Video Calling" "UT Interface"of IMS.

About this overlay, you can push me one which could switch it on and off. Instead of simplely disable it.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] 人做天看:
Chinese available？I really hope you add it ,great rom
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
Okay... It seems sdfat's there on the latest commits, though I'm not in a hurry.

As for the FPS issue... I'm still get 60FPS after reboot (before turning off the screen), while the issue mentioned about something like getting true FPS after boot but reverts to 60 FPS when screen turned off and back on.

I'm considering building again once all the issues/features have been dealt with. The build I'm currently running is stable enough.

EDIT (off-topic): By the way, it seems Lineage still displays toasts and notifications with white background instead of black, even after I set the system style to dark... guess it's not perfect. Is there a good ROM with dark mode that covers much more aspects?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Already add it in v2.5.

About hight frame rate, it need time to find the reason.

About drak mode, It needs to be fixed by lineage. Maybe you can build some roms by yourself.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] 人做天看:
Thinks
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
USB debug works in Files transfer mode.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] loukky:
how about VoLTE for CU and CT?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
From what I tested USB debugging only works if the mode is set to anything other than Charge Only.

Not sure if this is a bug or is an intended behavior (such as to mitigate potential juice-jacking when plugging into a public charge station). USB debugging still works when charging only with stock ROM, though (which kinda defeats the purpose).

As for the off-topic question regarding dark theme... I brought back substratum again and applied the theme that I previously bought and used... I originally hoped that I don't have to rely on it anymore because it can cause issues, especially when I was still on CarbonROM (Oreo). Usually Play Store gets broken every few days as it updates regularly... and substratum's overlay refresher functionality (app-based or theme-based) tends to silently fail. While it said the overlay's been updated, in fact it didn't, and I always needs to manually re-apply the themes in order to make everything work again...
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
You need to test by yourself, I added all settings from stock. But I don't know whether it works on other areas.

I don't find the reason either, but it has little bad effect for us. If we find the reason, I will fix it.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
We can put that aside as it might be helpful security-wise (against malicious public charging stations).

As for 2.4GHz wifi... unfortunately it's completely unusable. The access point disappears after connected to it a few seconds, and it doesn't matter which router I'm connecting to and which channel the router's using.. The instability was so severe that Android automatically disabled the access point after a good amount of disconnects.

Not sure if there are any other factors involved, such as the well-known captive portal detection, which in practice indicates whether you can access Google without a proxy/VPN or not. The test is conducted in a special way that it'll always try to connect to Google directly, and using a proxy/VPN will not affect its result (otherwise the test result wouldn't be accurate regarding the matter).

Security-wise, it means by default, at a regular interval, your phone would be sending your real IP address and location information to Google, which effectively compromises anonymity for users who might need to use Tor.

I've already removed the X mark by redirecting the captive portal detection URL to my own server's nginx (which I can access), because failing this test has some serious side-effects as observed on stock ROM.

On stock ROM, there's a feature called "Auto network switch" which automatically switches between cellular and Wi-Fi to the better one of the two on the fly depending on your surroundings. If Wi-Fi is reported as "No Internet" (with an X mark on your icon), then it'll always fall back to cellular data, which can cause unwanted data consumption, as in normal uses (when both Wi-Fi and cellular are usable without X mark), the network switches in real time that your apps would usually not get disconnected when your phone switches from Wi-Fi to cellular or vice versa. Fortunately my current data plan doesn't have a hard limit, only a soft limit (after which the speed would be degraded). While the network switch is usually not noticeable, it's not without any indications. One indication would be that the data activity arrows are appearing near your mobile signal icon instead of your Wi-Fi icon, and that some apps that can actively detect that you're on cellular data would warn you that you're using cellular data, even though you're already connected to the Wi-Fi.

Lineage doesn't appear to support this feature, but on stock ROM, I could not find an effective way to disable it as disabling "Auto network switch" as well as disabling "mobile data always active" (in developer options) as mentioned by others doesn't seem to work under such condition.

EDIT: Added some more info.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
Hello, My device is G8141 and i was tested v 2.5, but stay almost the same problems in v 2

-wifi often automatically disconnected.

-delayed reading of a sim card.(although i flash stock of my area)

-the rom stay special only for devices dual sim and no found for g8141 on link download
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
I will try to solve this issue, but I had no idea. It's not an easy task for me to support this ROM. I'm a student of Mechanical engineering. Not Not computer related :P.

You can try to delete :

persist.vendor.radio.multisim.config=dsds

persist.radio.multisim.config=dsds

ro.telephony.default_network=22,20

in build .prop.

It will cost me a lot time to build a special version for G8141.

So sorry.

About wifi issue, it needs some time to solve it.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
V2.6 Uploaded,

Vivid mode supported. More see Changelog.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
Glad to hear that the feature's been ported. That's pretty much the only feature from stock that I consider useful. Is there anything extra needed to be added to the manifest when building the ROM?

Also, it seems from the most recent commit your kernel's now using 90Hz by default. Is there any development regarding the ongoing FPS issue?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
Yes really! Vivid mode is a great addition for Rom LineageOS , very thanks Sjll :D
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Screen work at 90Hz, system still only render at 60Hz. But it is still smoother than both screen and system working at 60Hz. So I enabled it.

BTW, you can use Viper4Android to increase speaker volume. I had no idea to enlarge it by tweaking device tree.

You are welcome. :P.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
V2.7 uploaded.

See more in ChangeLog.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] undefine:
Awesome work, I'm glad that you've added exFat support. Thanks for your continuous efforts for XZP.

Is Video image enhancement supported?

Is ClearAudio+ and/or DSEE HX supported?

Is Google Play embedded or requires seperate install?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
At least vivid color mode is supported on the current versions (and it appears more Sony stock features are coming up). However, I'm currently checking whether these features have been added to the device/vendor trees (or how to add them myself when building, as the device/vendor trees don't appear to have been updated yet), as I intend to build my own package with things pre-tailored for my needs (namely f2fs, Bromite SystemWebView and some custom fonts).

As for Google Play, given its license you're still required to use OpenGApps. However, beware of some quirks in the default settings so make sure you read the Package Comparison and Advanced Features and Options carefully and create a .gapps-config that matches exactly what you wanted to install without any undesired consequences. For example, I strongly suggest you disable its default "replacing PackageInstaller with PackageInstallerGoogle" to prevent Google Play store from nagging you about enabling Play Protect (unless it's really useful to you).

Maybe you're kinda right about it being much smoother... apparently yesterday when I was playing a game I noticed something. While testufo still returned 60FPS, the game in question felt much smoother than usual to my eyes at that time. Not sure if it was my imagination but personally that definitely was not the usual smoothness of only 60Hz (or 60FPS). I only felt that last night. When I looked at the game today as I'm posting the smoothness is now normal again (maybe it was just because of the performance and available system resources at that time. I never owned a device or monitor above 60Hz so I can't really describe it well, just that I felt something was off while playing at that particular time).
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
I had no plan to include gapps. About 90Hz, I think we can ignore it for the time being. We still need solve some issues.

About new commits, I will PM you.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Video image enhancement could not be ported.

ClearAudio+ and/or DSEE HX could be ported. But I had no plan temporarily. It need some lib and jar files from sony, these may make our system unstable. There are guidances on XDA about how to install it in Xiaomi, OPPO. You could try it.

In my opinion, Viper4Android or Dolby is much better than ClearAudio+ on Lineage. You can have a try. BTW, Xperia 1 also uses Dolby instead of ClearAudio.

I need to guarantee the purity of our system. So I don't want to preinstall 3rd functions or apps. You can tweak your phone by yourself.

About Gapps, you need to flash Opengapps or MindTheGApps.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] jaspernv:
It's nice to see that this is actively being worked on. I really appreciate this project, I really like Lineage. I personally won't be using this til the wifi issue is solved (I don't get to mess around with our router), but that's my only peeve. Looking forward to future updates! ❤
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] undefine:
I'm not looking for Google bloatware except MicroG. ClearAudio is not that important as we have counterparts for these, but video image enhancement was neat. I'm going to wait until Wi-Fi fix which sounds quite awful.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
V2.8 Uploaded.

1. Fix Audio Volume low.

2. Fix Wifi disconnect.

See more in ChangeLog.

[MENTION=10026776]jaspernv[/MENTION] [MENTION=5947910]CRNO[/MENTION] [MENTION=4542513]LSS4181[/MENTION] [MENTION=8717070]undefine[/MENTION]
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] rcmiku:
感谢大佬的辛勤付出，xzp的wifi bug终于修复了，用了半天都没有出现断连的问题，awesome，如果可以的话能不能把project treble的wifi bug也修复一下。

Thanks to the hard work of Daxie, the xzp wifi bug was finally fixed. After a long time, there was no problem of disconnection. Awesome, if you can, can fix the wifi bug of project treble.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Hakkinen3K:
Hello, what was the problem for low volume? What is the fix? Just curious :p

---------- Post added at 11:29 PM ---------- Previous post was at 11:24 PM ----------

I don't know what is IMS but, it will affect a daily use of my phone?

Thanks.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
WIFI问题不属于treble，应该是GSI的问题，你可以换GSI试试。新版本的treble换用了SDE驱动，很多GSI不兼容，屏幕会出现色块，修复之前不做更新。

First, treble's wifi doesn't have problem, It should be the problem of GSI. Second, treble file has a serious problem. Color patches will appears on the screen in most of GSI. I had no plan to update it until most GSI adapt for our SDE driver.

In previous versions, wifi will disconnect after screen off and the volume of speaker is low.

Now, all fixed, we had a stable version, don't worry about it, you could use it for daily life.

---------------------------------------------------------------------------------

New version V2.85 uploaded.

See more ChangeLog.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
I can confirm the Wi-Fi (mainly 2.4G) has been fixed. Before this, only 5GHz Wi-Fi could be reliably used. Everything's looking good at present.

Guess the vivid mode wasn't there on the build at that time... will try the latest one, but I think I'll give the new RR a try instead (as it uses the same trees and contains a few more features).
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Vivid mode already add back on V2.85.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] LSS4181:
Vivid mode confirmed working on latest build. So far everything essential is working great.

By the way, I'm setting up an environment for building RR, but it seems your trees cannot be used as-is:

1. RR expects a "cm_maple.mk" instead of "lineage_maple.mk".

2. I need to change certain parts of the device tree to point to vendor/rr instead of vendor/lineage.

3. I'm now stuck with this error. Googling doesn't find any helpful answers. Results were mostly GSI-related, which suggested deleting related lines since they don't build the kernel.

error: vendor/rr/build/soong/Android.bp:31:8: module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'
ninja: build stopped: subcommand failed.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
If you want to compile RR, these things you need to do.

1. Repo the whole source code.

2. rename "lineage_maple.mk" to "rr_maple.mk"

3. In rr_maple.mk, change

"$(call inherit-product, vendor/lineage/config/common_full_phone.mk)"

to

"$(call inherit-product, vendor/rr/config/common_full_phone.mk)"

4. In rr_maple.mk, change

PRODUCT_NAME := lineage_maple

to

PRODUCT_NAME := rr_maple

5. In AndroidProducts.mk, change

PRODUCT_MAKEFILES := $(LOCAL_DIR)/lineage_maple.mk

to

PRODUCT_MAKEFILES := $(LOCAL_DIR)/rr_maple.mk

6. put kernel source code in right path.

7. Replace audio-caf.

8. Delete data-ipa-cfg-mgr folder in vendor.

9. Compile.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
Hello Sjll

Is it possible up Overclock Big@2.59Ghz Little@2.00Ghz here, like was on LineageOS 15.1 ? :D
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
If the power consumption is controllable, I will consider this suggestion.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
im with V2.85 and everything runs smoothly and everything works well ,i have not found new problems until now. i think it is stable rom :)

except that there is no special version for users G1814 yet, and be little delay for read sim card every time you restart the device

but it not big problem

in my opinion your work it is worth 5 stars , thank you Sjll :)

---------- Post added at 11:31 AM ---------- Previous post was at 11:22 AM ----------
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Beetle84:
Share the build.prop from system and I will fix the slow signal ;)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
yeh sure :)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Beetle84:
Try this one
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
there is no difference(, needs almost a minute and 20 seconds after restart device for read sim card, anyway thanks mate for your trying :)

waiting for solution by Sjll :)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] JeffersonSoares:
Gcam work in this rom?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Hakkinen3K:
I forgot something, is otg working?

I downloaded the rom but no install yet for test, sorry.?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] DashLt:
When my USA AT&T SIM card is in the phone, it sometimes starts rebooting very shortly after it starts. This is the G8142, version 2.85, V2. Here are two logcats:

https://transfer.sh/pAcAY/logcat.txt

https://transfer.sh/Y3k4T/logcat2.txt

The phone is stable when the sim card is not in.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Beetle84:
I forgot i need the default.prop as well
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] HoiFung:
Sony photo album can't delete photos
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
i found default.prop on file system/vendor
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Beetle84:
Well... Sorry, turns out there is 2 lines in build.prop that needed changing :p.

Download the below file and unzip and replace, set

r-w-r-r permissions and reboot, should be ok now.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
The same on G8132, we need to wait the modern registered in telecom operators and get the state of IMS.

NO.

I don't have OTG adapter cable.

Ok, I will check it.

BTW, If you upgrade from old version, please try to format userdata and cache partition and get clean install. You can try V2.88.

After I tested, it could delete photo.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
New version, V2.88 uploaded.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Hakkinen3K:
Both models? I saw g8141.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] JeffersonSoares:
Could you include gcam support in this rom?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
v2.88 still reboot in sony logo

any confirm from users G8141 ?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
G8141 could use the rom of G8142, the only difference is build.prop.

You can tweak as the guide in #1.

No, RAW format is not supported by stock blob.

Try force-reboot.

If still bootloop, Format cahce, system partition and flash again. DON'T flash gapps or Magisk. If you still bootloop, you may need to format userdata and make a clean installation.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Hakkinen3K:
You mean add the lines to build.prop?:

persist.vendor.radio.multisim.config=dsds

persist.radio.multisim.config=dsds

ro.telephony.default_network=9,0
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
I write delete there. You need to remove them when you boot into system.

In fact, it has little influence on G8141.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Hakkinen3K:
But I have g8142 ?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
No, the Rom is built for G8142 as default, you didn't need to teak anything.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Hakkinen3K:
I think I made a mistake explain miss information my fault sorry. I have g8142 but the v.2.88 it says g8141 (download page) that was I asking about "add the lines" to build prop.

Sorry if I missing something... Besides Xperia model hahaha
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Never mind. I enlarge the title size so that everyone could see it. :)
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Friendbs:
Hi all. Can someone try 3D Creator. I have problems problems with it. I install as instrucrion from clean pie build.. .80 but 3D Creator open but when i try scan and open camera it force close. Thanks.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] DashLt:
I'm still getting random reboots. This one happened while I was sleeping. I had a logcat running on-device, so I'm not sure if it missed a couple lines before the reboot, but here it is:

https://transfer.sh/EQLtC/Log_2019-08-06_22-36-57.txt

(I've removed everything but the last hour before it happened; please let me know if you'd like more.)

My phone seems to still get the random reboots as it sits beside me, so I'm running both an adb logcat and a dmesg; maybe those two combined will be more helpful.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] Sjll:
Nothing could get from the log. Do you try a clean installation?
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] DashLt:
I haven't, mainly because repeatedly verifying WhatsApp has been a massive pain. I'm logcatting + logging dmesg from my PC, so if it reboots again maybe a log obtained with ADB will be of more use.
[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] CRNO:
I did all these solutions . unfortunately it didn't work with me , :( , and still on sony boot loop

I really wanted this version for Overclock+double tap to wake :( but i think no chances with me