yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] zottel1993:
Same here!

[MENTION=8177045]MattWarriorMX[/MENTION]

use SmartX https://xdaforums.com/xperia-z5/development/mod-smartemperaturex-best-balanced-s810-t3438890

and Greenify or something similar. That should improve battery time.
[Xperia Z5 Android Development] klemen241:
Stupid question here: how much time does z5 need to charge with quick charge? I am wondering it is actually working lol
[Xperia Z5 Android Development] kv123:
TWRP 3.1.0.0 for dual and single sim. Please check SD card in recovery.

lineage_twrp_recovery.img
[Xperia Z5 Android Development] fifa518:
network problem

hey dear,your rom is really good.but I dont konw how to set up my network type with 'lte only'. Because of that I cant use my cellular data with china telecom.
[Xperia Z5 Android Development] xaaaj:
Did you compile your own twrp 3.1? Does adb restore from pc works? I'll try later when i got home.
[Xperia Z5 Android Development] kv123:
I compiled it with fresh sources twrp and lineageos.

Never used adb restore, so i don't know.

It just for people who have dual (single will be work too) and cannot use sdcard in recovery. If it works i will upload patch to gerrit for kitakami platform.
[Xperia Z5 Android Development] cptMikky:
Been running 17-04-17-clean for quite some time now and I must say it's excellent considering the "clandestine" nature of the rom :)

Battery consumption is good. In fact it's even better than I expected - about 60 % drain after 5 hours of a tourist trip consisting of constant 15 second-sampling-rate GPS tracking and taking about 150 pictures so good work on this one.

There are only two small annoyances and two features I miss. The features are MHL and "quick pin entry" (which I was told is impossible due to lock screen implementation on Nougat) and annoyances are FPS which is waaaay too sensitive and webview is crashing just wee bit too often but only in builtin browser, other webview browsers (namely "Browser" and "Privacy Browser" from F-Droid repo) work apparently fine. Using Google's webview as native is, for some reason, unavailable (did -CLEAN install and then updated to 04-17 and opengapps).

As for MHL - I understand this is up to Sony to enable it in its sources?

FPS - well, I can live with that but I'd like to help with debugging - can I? (next to no dev xp, just user but fluent in unix/linux)

WebView - this is strange since it started to happen to my gf's phone (Xperia ZR) as well but her phone runs CM13.1 (Android 6)

Anything I can do or help devs with?
[Xperia Z5 Android Development] Muz Suriwong:
sorry wrong post
[Xperia Z5 Android Development] DiscMan55:
[MENTION=1964056]HaoZeke[/MENTION]

The error you saw is only the start. You can get early logs easily, just build -eng build, and run adb logcat early, it will catch logs before and during encryption. I didn't need to look in kmsg though. You need these grants (this fixed crypto for me on ivy).

These selinux rules should be in device kitakami common. I have them in my device ivy fork for testing.

allow vold tee_prop:file { getattr open read };
allow vold firmware_file:file { getattr open read };

Now you can also enable HW Crypto (qcrypto hw aes implementation...etc.) and it will work:

In BoardConfig.mk

TARGET_KEYMASTER_WAIT_FOR_QSEE := true
TARGET_HW_DISK_ENCRYPTION := true
TARGET_CRYPTFS_HW_PATH := vendor/qcom/opensource/cryptfs_hw
TARGET_SWV8_DISK_ENCRYPTION := true

Also another rule is needed:

allow zygote self:capability sys_nice;

Not related to crypto but probably needed to improve battery.

The only reason I didn't already submit these fixes to gerrit is that when crypto is successfully enabled, rild is broken. I didn't get time to work on this, I posted a link earlier to logs on Z3+ Quarx LOS build about ril failure.
[Xperia Z5 Android Development] L33Tgod:
aux works for me

---------- Post added at 06:21 PM ---------- Previous post was at 06:16 PM ----------

wow, after 8 hours hahaha
[Xperia Z5 Android Development] Rekon.fs:
System 20.88gb? File manager says the phone have 8gb storage what happened please help!
[Xperia Z5 Android Development] xaaaj:
tried your recovery bro. seems good ui is Smoother but in backup menu there is no "boot partition" to select also tried adb backup but didn't work so i guess adb restore function will not work as well but anyway thanks. sdcard work im using single sim xperia z5 (E6653) just leaving a feedback here if anyone wants to know :good::good:
[Xperia Z5 Android Development] Rauchender Hase:
Aux is not working for me either, to keep it short. But I'm definitely happy to help if needed :) thanks for this amazing rom!
[Xperia Z5 Android Development] Rekon.fs:
I have "error 7" I can't install the rom please help!
[Xperia Z5 Android Development] nailyk:
thanks for this post.

We experienced the same issue with ril on shinano. Some ims service wasn't on the right class and start while temporary tmpfs is mounted on /data. netmgrd and imsqmidaemon. but maybe you have others.
[Xperia Z5 Android Development] goRt:
Well documented, your starter for 10 is search for assert
[Xperia Z5 Android Development] netharshal13:
Unable to install on E6683 Dual Sim

Any help
[Xperia Z5 Android Development] ibuza:
I wanted to try yours, but then I first tried the one I all ready flashed from Myself5 thread:

https://dl.olivierk.at/sumire/twrp/twrp-3.1.0-sumire-20170325.img

I can confirm that the SD card works in recovery on E6683 (Dual SIM) with twrp-3.1.0-sumire-20170325.img

Or was the E6683 never problematic and you are looking for confirmation for the E6653?

Thanks anyway for your work!

---------- Post added at 07:41 PM ---------- Previous post was at 07:25 PM ----------

Well, I just did that this weekend. Generally you should put a little more effort in it and write what you all ready have done and were you are stuck, to get replies.

My steps were:

1. Downgrade to an old Android 5.x Stock firmware using Flashtool.

2. Backup the TA-Partition to safe the DRM-keys in case I want to go back to stock firmware. (Otherwise some Sony software does not work with all features)

3. Put Phone in Developer Mode and activate the possibility to unlock the bootloader

4. Unlock the bootloader using Flashtool and the code generated on the Sony website.

5. Put Lineage-Firmware-Image, root/su addon and gapps on internal sdcard

5. Boot into bootloader mode and flash TWRP recovery

6. Boot into TWRP recovery

7. wipe partitions except data partition (internal sdcard with the firmware)

8. install firmware, root/su addon and gapps

9. success

Where are you stuck?
[Xperia Z5 Android Development] netharshal13:
I was on LATEST Nougat 32.3.A.2.33

https://xdaforums.com/xperia-z5/general/ftf-e6603-33-53-83-google-drive-patched-t3581463

bootloader unlocked, TWRP Installed using above link

All files were on SD Card

Went to recovery wiped all date apart from SD Card

Flashed the zip and error occured its for E6653, E6603 and E6633... Nothing else
[Xperia Z5 Android Development] ibuza:
I used this firmware-image lineage-14.1-20170417-UNOFFICIAL-sumire.zip (and not the encryption tests with a later date).

Inside TWRP you might want to go to Advanced and "Copy Log" and then post the recovery.log here.
[Xperia Z5 Android Development] netharshal13:
Thanks :silly: will try
[Xperia Z5 Android Development] Gaukh:
Just to ask: Will you deliver Android O to this ROM when it is out? Or at least try to?
[Xperia Z5 Android Development] ibuza:
On the other thread people also recommend to flash the boot.img from inside the firmware-zip-file to get rid of the problem you are facing:

https://xdaforums.com/search/thread/3536846?query=boot.img
[Xperia Z5 Android Development] HaoZeke:
Whenever lineageos updates to o, I will.

I'm not going to switch back to aosp just for o though..

I don't see any major changes nowadays anyway in the versions. Mostly design stuff.
[Xperia Z5 Android Development] Strungout01:
I'm using the 04-08-2017 build on my 6653 and I'm having a problem with the fingerprint sensor. Whenever I put my phone to sleep for longer than a minute, it stops responding so that the only way to unlock the phone is with the PIN. And the FPS is working unless it is locked for more than a minute.

I'm using Naptime and some Substratum theme mods but nothing significant. Has this been addressed and fixed in the later builds?
[Xperia Z5 Android Development] nqdan2992:
The fingerprint is better, faster than stock rom but sometimes it isn't recognized.I must to Input PIN then unlock phone
[Xperia Z5 Android Development] R00t911:
How to fix the camera when shooting a video?
[Xperia Z5 Android Development] sceryavuz:
Not possible now. Some people use opencamera..
[Xperia Z5 Android Development] R00t911:
In it unfortunately only 8mp is available((
[Xperia Z5 Android Development] zacharias.maladroit:
exactly, that's the "fix" for now,

using 23MP leads to issues at the moment

Cinema FV-5 also is suggested to work (8 MP)
[Xperia Z5 Android Development] sirdoha:
Mine use Google Camera. No issue so far. And it also supports 4K video. Use the native camera for image capturing only.
[Xperia Z5 Android Development] Beast14:
Hi Please help with this.. Did you manage to flash your E6683 DUAL successfully?

Can you please provide the steps you did on how you flashed it from stock ROM?

I currently still have 6.0.1 stock ROM on E6683 and i want to flash latest sumire. Can anyone else also confirm if this ROM is working right on E6683? I appreciate your help!!
[Xperia Z5 Android Development] MichaMichaMicha:
Hi HaoZeke,

Love your rom!

Do you have any plans to let safety net pass successfully? Thanks.
[Xperia Z5 Android Development] mcduffie2010:
Have you already tried this
[Xperia Z5 Android Development] xudazhu:
Hello, I like your work very much, but now there is a problem, microphone volume is very small, on the phone, and App ，My device is E6653 flash LOS 2017-04-28，Forgive my English level, it is Google translation
[Xperia Z5 Android Development] HaoZeke:
You can try manually replacing the mixer paths with stock files.. If that helps I'll put those files in the next release..

Sorry I haven't been building.. I had to rush off to an internship.. Expect a build by day after.

Gerrit commits show encryption to be working soo.. Hopefully the next build will include it..
[Xperia Z5 Android Development] HaoZeke:
Hey, so the build is running and I thought I'd get down to the changelog...

First up I re-did a

LOT

of the kernel with a bunch of inputs:

Basically I'll release that as a separate post too when I get more free time.

Any way for the ROM the following new things have been implemented (also a precis of the above):

Latest Source Dump

Kernel update to 3.10.105

Adreno Idler

Can lower the GPU down to 27

Elementalx, Impulse Governors

Wakelocks can be disabled

Backlight Dimmer

ThunderPlug

CPUIdle

Encryption Fixes? [According to satsuki testers this works fine] {@frabe8378910 please test}

Substratum FIxes

Support for MicroG [If you can't get it to work use tingle]

Expect much better battery life, especially if you use Nanomod

I've been very happy with microG except that the location based apps often don't work, except Google Maps.

For anyone wanting to try I suggest the fantastic NanoMod

Also if anyone has XMR[Monero] they wanna toss at me, my address is 44tZ7BJyrYheDqFsDuAw4cZoU3frEA5tCbUBGqRcd6Rg5CNury33fk29op9fdJ7Ls9SiCsb1WTW2BSVzuyaZSgX2FX7isg1
[Xperia Z5 Android Development] Mr. Cube:
Nice work, i will try immediately. One question: Now we have to use microG or can we still use opengapps?

Or did i understand something completly wrong?

Keep up the good work, i'm using your Rom about 3 months now and it's possible one of the best Rom's for Xperia Z5 out there :victory:
[Xperia Z5 Android Development] HaoZeke:
Glad you like it... You're free to install Gapps as usual, but it's the biggest battery hog in most cases..
[Xperia Z5 Android Development] Mr. Cube:
Ok, so do i need a full wipe as descibed in the Nanomod guide? also same installation principle as with opengapps? How can i install it keeping all my data? :confused:

And for Google Apps i only need microG package, not the full Nanomod pack, right? :eek:

thx
[Xperia Z5 Android Development] HaoZeke:
I personally used MicroG and FDroid... unfortunately, you'll have to wipe your data the first time you switch to microG... Atleast I did... Not sure what happens if you don't
[Xperia Z5 Android Development] Mr. Cube:
Thanks, well then i will try a full wipe tomorrow, but to minimize my data loss can i backup my apps with Titanium Backup and flash all apps again after the install of microG? :confused:

thx
[Xperia Z5 Android Development] HaoZeke:
Yup you can always use TB...
[Xperia Z5 Android Development] balrajs99:
[MENTION=1964056]HaoZeke[/MENTION] any progress on ims? ?
[Xperia Z5 Android Development] HaoZeke:
[MENTION=3816568]Myself5[/MENTION] has some ideas... Hopefully they'll pan out..

I'm out of town now so I won't make any unconfirmed RIL charges for now...
[Xperia Z5 Android Development] MichaMichaMicha:
Thx. Calling seems broken on lineage-14.1-20170526-UNOFFICIAL-sumire.zip

No sound and unresponsive interface when in call.
[Xperia Z5 Android Development] HaoZeke:
Goddamn. I'm so sorry. I'll push a build out immediately. Damn gerrit.. I'm building a fixed one right now. DON'T FLASH 26-5-17
[Xperia Z5 Android Development] diemadedrei:
OK, interesting. Did you have the other lineage build installed before?
[Xperia Z5 Android Development] HoiFung:
Thanks for the great job, how do I install?
[Xperia Z5 Android Development] Zaisesl:
No, i came from carbón rom. Im using E6653
[Xperia Z5 Android Development] Vuongtky:
same for me....:(:(:(:crying::crying:

---------- Post added at 05:36 PM ---------- Previous post was at 05:34 PM ----------

Sorry Bro...what recovery you flashed? Please give me the link to download?..thank you
[Xperia Z5 Android Development] Zaisesl:
https://xdaforums.com/xperia-z5/development/twrp-3-0-2-cm-aosp-roms-t3373008

This is which i was using
[Xperia Z5 Android Development] wschom:
Does the video side of the camera work?
[Xperia Z5 Android Development] L33Tgod:
Were you on nougat or marshmallow prior to installation of this rom ?
[Xperia Z5 Android Development] sceryavuz:
MM base.
[Xperia Z5 Android Development] L33Tgod:
First install stock nougat, it will update bootloader properties, then you can access recovery by holding vol down and power. Blame sony haha.
[Xperia Z5 Android Development] HaoZeke:
Just flash it in twrp...?
[Xperia Z5 Android Development] HaoZeke:
Works in WhatsApp and third party camera apps
[Xperia Z5 Android Development] Zaisesl:
Are you planing to make a different thread for kernel, like with pixel?

Im too happy with this rom. Everything is working perfect
[Xperia Z5 Android Development] HoiFung:
I use fastboot write twrp can not enter twrp, you are using that twrp:(?
[Xperia Z5 Android Development] wschom:
Thanks.

I tested the native camera app and the video still does not work.
[Xperia Z5 Android Development] sceryavuz:
Thanks [MENTION=7481044]L33Tgod[/MENTION] i return to stock. Maybe in the future..
[Xperia Z5 Android Development] s.hossein:
HI guys. In my E6633, twrp is good, for now everything is good just Bluetooth headset call bug is exist. Battery life is not good as stock but not bad.

I use this rom for my daily driver.
[Xperia Z5 Android Development] L33Tgod:
Please add KCAL to kernel, this is updated version for nougat !!
[Xperia Z5 Android Development] XKinsonX:
please sir i beg you! i need your help changing the flashable zip into fastboot flashable img file please! i need my phone for work and now is bootlooping and i cant acccess recovery and adb cant detect my device, i beg you mister!
[Xperia Z5 Android Development] klemen241:
Ok no offence, but what is the diff between this one and the other one who is already up here since last month? Dont want to compare, just want to know diff? Any why is this one in android develpment and other one is in original android development
[Xperia Z5 Android Development] L33Tgod:
Hey bro, what is your version of phone, i will send you something and tell you what to do.
[Xperia Z5 Android Development] kv123:
[MENTION=1964056]HaoZeke[/MENTION]

I posted the changes that necessary for build TWRP on gerrit and build a new one TWRP 3.1.1.0
[Xperia Z5 Android Development] MichaMichaMicha:
[MENTION=1964056]HaoZeke[/MENTION] don't sweat it :) we can only be thankful for your work. And we are.
[Xperia Z5 Android Development] Strungout01:
I can't get video recording to work in any way in the latest build. All the camera applications crash with a message "cant connect to camera.

Clean flashed many times with and without gapps. Still the same issue.

Thank you for the new build btw!
[Xperia Z5 Android Development] HaoZeke:
That's.. Strange.. Mine is still working.. Could you get a log cat?
[Xperia Z5 Android Development] MichaMichaMicha:
Looks like lineage-14.1-20170526-UNOFFICIAL-sumire.zip calling functionality still broken. Flashed the 20170417 build over it wo clearing data and it works again. Or am I the only one?
[Xperia Z5 Android Development] sceryavuz:
Thanks [MENTION=6362823]kv123[/MENTION]

SD card supported? Can you also build for stock rom?
[Xperia Z5 Android Development] kv123:
I don't have sumire device, so can not test but it must work. It's same configuration as i used before, just updated TWRP sources. If you can please leave feedback after try this twrp.

If you have unlocked boot, so you can flash TWRP for any rom to recovery (FOTA) partition. Please correct me if i am wrong.
[Xperia Z5 Android Development] HoiFung:
Will camera imaging be better than official firmware? Thanks for great work:laugh:.
[Xperia Z5 Android Development] xaaaj:
[MENTION=1964056]HaoZeke[/MENTION] did you manage to make google drive work and gmail when using nanomod?

also i have a weird issue on the latest build 05-27-17 with magisk and nanomod installed. every 5-7mins i get a random reboot.
[Xperia Z5 Android Development] HaoZeke:
Please use the 20170527 build.. I removed that build... The issue was an encryption commit..
[Xperia Z5 Android Development] sceryavuz:
Thanks [MENTION=6362823]kv123[/MENTION]

I tried on my E6633 dual Z5. It works with stock rom and SDcard works :)

Please open a thread on Z5 section and share this recovery. I will add my thread. :fingers-crossed:

Screenshot

more..
[Xperia Z5 Android Development] Mr. Cube:
Tried dirty flash latest build with opengapps, Sim Card didn't work after that. Anybody has the same issues?
[Xperia Z5 Android Development] sceryavuz:
Hi [MENTION=1964056]HaoZeke[/MENTION]

I am downloading latest release now. I want to ask a question.. You recommend Nanomod for MicroG. I didn't understand what nanomod is :(

Would my contacts, calendar and game data restored if I use MicroG instead of Opengapps?

I looked MicroG, it is a bunch of apps instead of Opengapps package. https://microg.org/download.html
[Xperia Z5 Android Development] HaoZeke:
It works for all roms... Sdcards are supported..
[Xperia Z5 Android Development] HaoZeke:
Nanomod is a Magisk module which includes all the apps needed to emulate gapps...

For contacts you need DAVdroid..

Game data I don't know about...
[Xperia Z5 Android Development] HaoZeke:
You mean the 27th date build? The 26th one was broken...
[Xperia Z5 Android Development] sceryavuz:
Ok thanks, then I will use Opengapps just in case :fingers-crossed:

Edit: Installed. It is overheated at first time, but after a while no problem. I will test the battery 2 life cycles, then I will share the results.
[Xperia Z5 Android Development] migueelr98:
Broken sound

I think latest build broke both my speaker and my mic, dirty flashed over latest 17-4 build and then flashed magisk and phh su. Also it seems it somehow uninstalled itself Xperia music app I had (?). Neither spotify nor calls nor WhatsApp nor any other sound related apps will work :confused:

Edit: I also did some tweaking through kernel auditor after flashing but cant think of anything that could've break sound, didn't check before using auditor so I don't know if it might be the cause

Edit2: Also tried with a clean install, rom+magisk+microg. Audio is definitively broken in this build
[Xperia Z5 Android Development] Mr. Cube:
Yeah, sry for my inaccuracy, i did a dirty flash from 04-17-2017 to 05-27-2017. My Simcard worked as long as the "closing Android Update" notification was shown.

Should i try a clean flash with microG? I read about some trouble with microG apps like random reboots or something similar.

Also tried yesterday the broken 26th build, did a clean flash with microG, system launched fast and normal, but after first configuration i got a blank screen with the words "Setting up Android System" or something similar(only know it in german). It did not disappear, after 40 minutes i flashed back the 05-17-2017 build.

Sry for my bad english
[Xperia Z5 Android Development] HaoZeke:
Don't dirty flash from 5-17....

I had clean flashed without issues...
[Xperia Z5 Android Development] HaoZeke:
Was it 27 or 26?
[Xperia Z5 Android Development] migueelr98:
27, I downloaded it this morning. Just went back to 17-4, sound is back
[Xperia Z5 Android Development] kv123:
Thanks for feedback.

I don't think that this TWRP image deserves a separate thread.

You can share it as you want :) I was glad to help.
[Xperia Z5 Android Development] sceryavuz:
[MENTION=1964056]HaoZeke[/MENTION]

It has random reboot. After long wait (10-15 minutes), when I try to unlock screen it reboots and it has overheating problem :(
[Xperia Z5 Android Development] HaoZeke:
Was your sound working? Could you get a logcat? Have you changed any settings? Kernel audiutor?
[Xperia Z5 Android Development] HaoZeke:
Guys I have reinstalled everything again from scratch and I have neither audio issues nor overheat issues or even reboots.... :|

Anyone with a logcat will be much appreciated.
[Xperia Z5 Android Development] sceryavuz:
Nothing changed. Just flashed rom and gapps, booted-up then flashe magisk. Stock rom restored, so i haven't logcat.

lineage-14.1-20170527-UNOFFICIAL-sumire.zip

open_gapps-arm64-7.1-pico-20170527.zip

Magisk-v12.0.zip

[MENTION=6362823]kv123[/MENTION] twrp 3.1.1.0 won't backup Boot, did you set this or twrp default? To restore my backup, I have to flash boot.img via fastboot.
[Xperia Z5 Android Development] HoiFung:
The latest version of the call will still be stuck, who else?
[Xperia Z5 Android Development] kv123:
This is my mistake, i rebuild and upload new! Now all partitions can be backuped. Please test.

!!!FIXED IMAGE!!!

lineageos_twrp_recovery_3_1_1_0_fixed.img
[Xperia Z5 Android Development] HaoZeke:
By the way.. For those with random reboots... Are you using supersu? That's known to cause reboots. The latest version..
[Xperia Z5 Android Development] sceryavuz:
Thanks for your quick reply [MENTION=6362823]kv123[/MENTION]

Now we can backup all partitions.

If you know what is the difference between system and system image? No reply needed, just curiosity :)

3.0.2 has only system..

Screenshot

[MENTION=1964056]HaoZeke[/MENTION] I will try again at tonight. If random reboots appear, I will share logcat.
[Xperia Z5 Android Development] kv123:
"System" backup files, like it was usual.

"System image" backup whole partition, not individual files. It's like you do raw image of hdd. I can remove this option.
[Xperia Z5 Android Development] sceryavuz:
I understand from what you saying, only one option select is enough. First one named System is same as before?

I will do a backup now, I skip System Image option..

I got the answer here :D Thanks : https://xdaforums.com/nexus-6/help/twrp-backup-question-vs-image-t3293127
[Xperia Z5 Android Development] sceryavuz:
[MENTION=1964056]HaoZeke[/MENTION]

It has problems. Sound is gone.. Reboots randomly.. When screens off, after a while RED light 2-3 seconds, then reboot but after SONY logo RED light blinks 2-3 times, then reboot again. I want to track logcat but when reboot logcat reset.

so lineage-14.1-20170527-UNOFFICIAL-sumire has sound and reboot problem :/
[Xperia Z5 Android Development] kv123:
"System image" backup needed in case if you want backup and then restore stock system partition with dm-verify enabled kernel.