yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] zacharias.maladroit:
You guys got lucky and FM Radio works on Z5 single SIM ? (E6653)
[Xperia Z5 Android Development] klemen241:
for me its not, it keeps saying unavalible at the moment
[Xperia Z5 Android Development] mcduffie2010:
For me it's working on 6653.
[Xperia Z5 Android Development] frabe8378910:
[MENTION=6979267]nailyk[/MENTION] First I need to get my Z5 as a daily driver, then I'll test 14.1 on Z3. Untill then, my Z3 stays on 12.1 - rock stable. :D

Is the hardware encryption problem specific to Lineage 14.x, as my Z3 with encryption is absolutely without lag?

Or do the CM12.1 on the Z3 have hardware acceleration?
[Xperia Z5 Android Development] nailyk:
It seems yes. Device trees are really different between those version.

The 12.1 had perfect hardware encryption support, AFAICT the 14.1 only use software for now (btw really more secure as it doesn't rely on the flawful QSEE).

It seems [MENTION=4522003]DiscMan55[/MENTION] fix it for Ivy and we are trying to port his changes to get other devices working.

Also don't know if you have DRM problems here (like playing protected movies) but it seems to be related.
[Xperia Z5 Android Development] HaoZeke:
I think [MENTION=3816568]Myself5[/MENTION] got the widevine DRM working... For the next build I'll do as you suggested to enable software encryption since I have end semesters from the second..

Sumire was actually based off ivy so if it works there it should be ok to port but I'll look into it after my exams ? (~17th next month)
[Xperia Z5 Android Development] sceryavuz:
What is the SOT for the last build? "average"

Clean installation problem fixed?
[Xperia Z5 Android Development] frabe8378910:
Thanks a lot and all the best for your exams! :o

Just let me know, if you have something to test flash, as I don't care about the complete wipes after the encryption boot loop because my Z5 is still not used.
[Xperia Z5 Android Development] HaoZeke:
Clean install has been fixed for a while now.

The last build is bit a worse in terms of battery life.

I blame uber and clang -O3

I'll be releasing a fixed one soon. With some encryption test logic too
[Xperia Z5 Android Development] EDGN:
With some Mods and Tweaks i can get about 4h sot
[Xperia Z5 Android Development] zottel1993:
Tell us more [emoji6]

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Android Development] EDGN:
- First of all, uninstall Greenify if you have it installed.

- Flash this: https://www.androidfilehost.com/?fid=24591000424957795 Credits to [MENTION=5627933]androidexpert35[/MENTION]

- You can use Naptime with Aggressive Doze (activate in Naptime Settings). Do

not

use HEBF Optimizer or any other App which modifies the CPU Governor as it will (partially) break the Tweaks from SmarTemperatureX

- follow this Guide https://xdaforums.com/oneplus-3/how-to/guide-stop-google-play-services-t3549760
[Xperia Z5 Android Development] zottel1993:
Great... I will Do IT with next Release of this awesome Rom.

Thanks a lot

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Android Development] HaoZeke:
Hi, about your tip, did you mean setting the TARGET_HW_ENCRYPT flag anywhere in the kernel source? Or ought I change "forceencrypt=" into "encryptable="
[Xperia Z5 Android Development] nailyk:
Yes TARGET_HW_DISK_ENCRYPTION := true

Removing this will use software encrypt which doesn't rely on blobs.

edit: [MENTION=1964056]HaoZeke[/MENTION] this is into your device tree.
[Xperia Z5 Android Development] RondelRo:
Does anyone have a problem with the notification LED? The LED on my phone doesn't seem to work at all and I'm worried it's a hardware problem.

Other than that, this ROM is awesome! Very stable and responsive.
[Xperia Z5 Android Development] HaoZeke:
Interesting... It looks like that flag is unset on my device tree... I'll try to force it with

TARGET_HW_DISK_ENCRYPTION := false

Edit: I'll upload a test build with the flag set to test, but I think I might also have an insight into the way the drmencrypt library is used for the HW encryption... I'll check into it after [MENTION=4386116]frabe8378910[/MENTION] can test if this works..
[Xperia Z5 Android Development] HaoZeke:
You should get it checked at a service center... It's definitely not a software issue... If you want a quicker test you could try stock once... But it's probably best to just go to a service center...
[Xperia Z5 Android Development] Gaukh:
What is more stable at the moment? Myself5s Lineage or HaoZekes?

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Android Development] RondelRo:
Okay thanks. I have another Z5 that I can try your build with. If the LED works with it, I'll just switch to using that phone. Thanks for the quick reply. :)
[Xperia Z5 Android Development] klemen241:
stability is the same, normally usable
[Xperia Z5 Android Development] sceryavuz:
Myself5 = stock without FPC

HaoZeke = stock with FPC and much more..

READ

Added Features
[Xperia Z5 Android Development] avigyan04:
Issue with LTE

Hi,

For some reason, my phone does not detect LTE connectivity. I use Vodafone and not Jio; VoLTE is not required, just basic LTE connectivity for internet. I searched the internet and found some people have this issue with Lineage OS. So I was hoping if there could be some workaround for this. By the way, I have checked all the data settings, APN settings and the phone is set to LTE but unfortunately, it works only in 2G, not even 3G.
[Xperia Z5 Android Development] Mysterio33:
LTE and 3G is working fine here - Vodafone Germany. APN is web.vodafone.de, phone downloaded itself those settings, and than rebooted.. idk whats wrong.. Only with Lineage OS? With stock Rom you have LTE/3G?

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Android Development] rifien25:
Hello guys need some help here :

Can any one give me steps to flash this rom with précicions please ( What files i need to flash and in what order ...)

I m actually on eXistenZ MM , thank's and sorry for noob questions ;)
[Xperia Z5 Android Development] findbuddha:
Have you read this whole thread and googled for the answer? If you can honestly say yes then I or someone else will try to help you.
[Xperia Z5 Android Development] HaoZeke:
First test build for encryption is up.
[Xperia Z5 Android Development] 4RM4N1:
when I changed from eXistenZ to LineageOS (I'm using the build from myself5) I upgraded to Nougat and then installed LineageOS after that.
[Xperia Z5 Android Development] klemen241:
i just flashed this rom in recovery over MM and eveything works. But need to wipe everything
[Xperia Z5 Android Development] HaoZeke:
Yup, from mm you would...
[Xperia Z5 Android Development] Rekon.fs:
I just flashed the rom and it's awesome but the battery doesn't last long (sorry if my english is bad google translate isn't very good).
[Xperia Z5 Android Development] zottel1993:
A few Post ago is a hint for battery drain....

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Android Development] Rekon.fs:
I see it and right now i follow the instructions.
[Xperia Z5 Android Development] zottel1993:
Great, could you Post the results please ?

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Android Development] Rekon.fs:
Of curse! tomorrow I will post the results
[Xperia Z5 Android Development] frabe8378910:
[MENTION=1964056]HaoZeke[/MENTION] I did a complete wipe (system, data, cache, sdcard, ...) and just flash the ROM. Just finished the setup, the entered a 8 digit pin for lock screen.

I connected the phone to the wall charger. Then I went directly to section security and selected encrypt phone. It asked for my pin and I hit okay.

The phone showed the thin line android figure (as usual when encrypting the phone) and did the first reboot. It never left it and I power reset the phone after about 3 hours.

I'm sorry to say, but there is still something wrong. I'd guess it should reboot and then start to encrypt. The other possibility is, that it did something already (may be a broken encryption?) when the android figure was there and the reboot then was unsuccessful and let to the loop.

Tomorrow I'll wipe again and give it a second shot.
[Xperia Z5 Android Development] sceryavuz:
If you want to be secure your phone, then you should use stock firmware without unlocked bootloader. Why do you insist so badly to protect your phone. It is just a phone.. Flashing new firmware or dump system.img or user_data.img are so easy.. always in danger..

[MENTION=4386116]frabe8378910[/MENTION]
[Xperia Z5 Android Development] HaoZeke:
Thanks a ton for the exhaustive review... I was sort of not sure it'd work since the relevant flag was already missing... I have another idea (using libdrm) but I'll test that after the exams (so it'll be up on the 13th)
[Xperia Z5 Android Development] HaoZeke:
It's true that an unlocked bootloader is always insecure, but, just out of curiousity... Has anyone ever relocked the bootloader on a custom rom?
[Xperia Z5 Android Development] EDGN:
Okay guys, use Greenify! Do not use ForceDoze!
[Xperia Z5 Android Development] frabe8378910:
:D "First" things first. Good luck with exams ... :D

Thanks a lot for your continuing efforts.

---------- Post added at 01:59 PM ---------- Previous post was at 01:44 PM ----------

It is not important that somebody flash a new kernel or have access to the data, it is important that it is useless. So it is required to decrypt my data as the whole internal SDcard is encrypted. The attacker has to get the master key or has to crack the encryption. This will take A LOT OF TIME and will stop mere mortals from gettin it done.

If you haven't read my post #442 ....
[Xperia Z5 Android Development] sceryavuz:
So I repeat, use stock ftf.. :fingers-crossed:
[Xperia Z5 Android Development] zottel1993:
O.o heavy batterie drain since today....any one else ?

Will make a clean flash try again

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Android Development] timmygadget:
I love this rom but I am having so much battery drain at the moment that I have to carry my power bank charger with me all the time for emergencies......
[Xperia Z5 Android Development] HaoZeke:
Second encryption test build up (last before the 14th minimum). [MENTION=4386116]frabe8378910[/MENTION] please test.

Regular users can also try this one:

[*] Updated kernel sources

[*]Updated device commits

[*]Removed clang and uber (better battery, but you'll have to clean flash)
[Xperia Z5 Android Development] sceryavuz:
[MENTION=3593568]zottel1993[/MENTION]

Amazon %15?!? What you want to find on Amazon :) Share SOT (screen on time), this graph means nothing..
[Xperia Z5 Android Development] HaoZeke:
If you moved to the test build, you'll need to clean flash..
[Xperia Z5 Android Development] zottel1993:
Screen on was 1h 32mins. Amazon was not open today [emoji1] don't know what happend ...

I flash test build tomorrow and give feedback about battery.

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Android Development] MichaMichaMicha:
Yes! I have had the exact same thing. The battery died before I could find a charger. Right now the charging does not even work, it keeps looping between the red battery charging icon and the white large battery charging icon, stuck at 20% for almost an hour now....

I did not flash any new build, still on lineage-14.1-20170417-UNOFFICIAL-sumire.zip

Any idea [MENTION=1964056]HaoZeke[/MENTION]?
[Xperia Z5 Android Development] zottel1993:
[MENTION=4220071]MichaMichaMicha[/MENTION]

Try the new test build

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Android Development] MichaMichaMicha:
I can't :) wont even boot to recovery :|

Did flashing the 20170428-sumireEncTest2.zip work out for you?
[Xperia Z5 Android Development] HaoZeke:
Ok that, sadly sounds like a hardware problem.. Because the battery charging before powering on is kernel based and should work..

I'd suggest stock followed by a service center unfortunately
[Xperia Z5 Android Development] zottel1993:
Can try it tomorrow...you have to access recovery like it's described on first page...the old method did not work. Or reflash recovery

Gesendet von meinem E6653 mit Tapatalk
[Xperia Z5 Android Development] balrajs99:
[MENTION=1964056]HaoZeke[/MENTION] any news on ims fix?
[Xperia Z5 Android Development] Gaukh:
I mean look at me xD The phone is in idle at more flat parts. The parts where it goes down sharply is when I use it though I turned everything off what could drain battery.
[Xperia Z5 Android Development] Rauchender Hase:
Idle drain is crazy when on WiFi. Here are two screenshots. As soon as I'm turning wifi off it settles...

Edit: I'm not on the latest build. Do the fixes you committed have something to do with the wifi drain?
[Xperia Z5 Android Development] zottel1993:
So after one day of usage i can say that battery drain is the same in latest test build. 1 h 40min sot without any modifications. So maybe [MENTION=1964056]HaoZeke[/MENTION] Finds a solution after exams...by the way good luck :)
[Xperia Z5 Android Development] zacharias.maladroit:
well, it's AOSP-based and close to AOSP with additional features + control options after all,

so:

that's Google Playstore, Google Play Services related (of course),

go into Privacy -> "Privacy Guard" -> Advanced and set the "Wifi"/"Location" (preferrably "WiFi Scan" but sometimes there is only one option which means BOTH Location + WiFi Scan which is rather unfortunate and limiting control)

under "Google Play Services" to "Ignored"

(in MM, e.g. there's "Coarse Location" and "Wi-Fi Scan")

Other option would be to raise the Wifi Scan Interval to 180 seconds (good 'ol modification but of course some folks want scans to happen more often - so it doesn't fit everyone)

Seems your apps are not behaving themselves, there than wlan_rx (reception) wakelock and the suspend_backoff which immediately after the phone attempts to go to sleep - slaps it into the face and wakes it up again, so it can never really go to sleep/suspend :P

https://www.reddit.com/r/nexus4/comments/34o7rt/suspend_backoff_is_killing_my_battery/

Greenify, Naptime, etc. with Aggressive Doze might help
[Xperia Z5 Android Development] sirdoha:
Which theme are you using bro?
[Xperia Z5 Android Development] calvinerico:
is anyone having trouble getting into recovery? i've installed the rom with TWRP then when i finished the setup process, i want to go back to TWRP but i cant.. it's just keep getting into the boot animation.. any ideas?
[Xperia Z5 Android Development] zottel1993:
Substraum? Compound is the name
[Xperia Z5 Android Development] zottel1993:
I am now testing smartx 1.61 mod and greenify. i give feedback then

[MENTION=3037651]zacharias.maladroit[/MENTION] thanks for hint. I changed the wifi settings in privacy.

---------- Post added at 11:11 AM ---------- Previous post was at 10:56 AM ----------

did you tried it via adb ?
[Xperia Z5 Android Development] calvinerico:
yes and it still didn't work.. it's just rebooting normally
[Xperia Z5 Android Development] frabe8378910:
[MENTION=1964056]HaoZeke[/MENTION] Sorry, took some days longer, but tried to be ensure no cruft on my Z5, so I did a real clean test:

1) I did a complete flash of the latest SONY stock FW "E6653_32.3.A.2.33_Generic GLOBAL.ftf" with all standard wipes. I'll checked up stock for all things working. Then encrypted the phone (with reboots it took about 5-10 min), shut it off, rebooted several times and checked decryption. Everything was fine.

2) I flashed TWRP 3.1.0 (fastboot flash recovery blabla.img) and started it. It asked for the decryption key, which I entered, but as expected it did not work. The dev of TWRP 3.1 is still working on decryption. But it proofed the phone was encrypted. I cancel decryption and proceeded with a clean flash of your test build2.

3) I did a complete wipe (everything expect MicroSD) and the just flash test build2.

4) I rebooted and finished the setup, the entered a 6 character password this time for the lock screen. I connected the phone to the wall charger.

Then I went directly to section security and selected encrypt phone. It asked for my password and I hit okay.

The phone showed the thin line android figure (as usual when encrypting the phone) and did the first reboot. It boot looped and I power reset the phone after about 8 hours.

So I'm sorry to say, but there is still something wrong. It seems to be somethings critical on system is destroyed, as it boot loop on the very first reboot. So far it could be fixed only by a complete wipe and a reflash of the ROM. So it is difficult to get any logs.

What I will do next is to get a adb connection login to my PC while I start the encryption. It may throw some messages before rebooting ....

[MENTION=6979267]nailyk[/MENTION] If you have any idea how I could produce a log in this case, please let me know... :D

----- new results ----

This time, I could revive the phone by a factory reset + "format data".
[Xperia Z5 Android Development] nailyk:
Encryption logs

Yes it is hard to catch logs for this.

First make your adb unsecure (maybe [MENTION=1964056]HaoZeke[/MENTION] can provide you a boot.img with unsecure adb) (important for logs when device is encrypting)

Before encrypt connect to adb and take logcat.

(don't waste your time, use vdc command:

vdc cryptfs enablecrypto inplace password 666f6f

Allow you to encrypt at any time. Use 'wipe' instead of 'inplace' to wipe at the meantime. (Not recommended for now as it will force entering recovery)

Am unsure if it will use hex value or ascii. So your password can be 'foo' or '666f6f' but at it doesn't works guess it doesn't matters.

You know it will fail. Here came the tricky part, be quick for the next steps:

the device will make the first reboot, let it shutdown then enter recovery (without power it off, without entering the 'encryption android'). (In my case I have the purple light to enter recovery, maybe you have the same. )

Into recovery take the last_kmsg

reboot to let the encryption process fail

with the unsecure adb you will be able to take a logcat (no need to empty it). Without unsecured you cannot take this one.

Device will start bootloop. At the first 'fail' reboot,go into recovery and grab last_kmsg again.

You can wipe the encryption footer to use your device again.

You should now have 4 logs:

adb before device get encrypted,

last_kmsg before the device encrypt,

( logcat at the green android)

last_kmsg after the device fail to encrypt.

Last_kmsg:

Take the 'last_kmsg' or the /sys/fs/pstore/console-ramoops :

adb pull /proc/last_kmsg ./N_last.log

or

adb pull /sys/fs/pstore/console-ramoops ./N_last.log

Logcat:

Before encrypt connect to adb, empty log

adb logcat -c

then start the dump:

adb logcat -C | tee /tmp/N_encrypt.log

If you don't have the purple led trick:

(am crossing finger it will works with z5 too: )

As your device is still usb connected you should be able to enter into fastboot mode.

Enter fastboot mode, then

fastboot boot twrp.img

Hope this help and thanks for contributing.

CC: [MENTION=4522003]DiscMan55[/MENTION]

P.S.: For debug purpose, ensure you are ext4 formated before this heavy process.

P.S.2: Feel free to PM me if something need to be changed/added/removed into this.
[Xperia Z5 Android Development] frabe8378910:
Thanks a lot for this detailed description!

Hmm, not sure if I got you right. It will boot loop directly after hitting "start encryption". So there is NO shutdown. It will boot loop for > 8 hours, so I can only hard reset to stop.

What filesystem should be ext4 formated?

---- new results ---

I just gave it a short adb logcat shot. I did the logcat while on the fresh flashed ROM. Then I just walked to security an did start encryption.

These two lines repeat for ever (and you see the lineage boot screen ongoing) until I hard reset the phone. Please see the log for the line before this happens.

E libc : Access denied finding property "sys.keymaster.loaded"

W vold : type=1400 audit(0.0:51): avc: denied { read } for name="u:object_r:tee_prop:s0" dev="tmpfs" ino=13587 scontext=u:r:vold:s0 tcontext=u:object_r:tee_prop:s0 tclass=fi

le permissive=0
[Xperia Z5 Android Development] HaoZeke:
That's brilliant, I'll fix that sepolicy context.. There will probably be further denials though once this is done
[Xperia Z5 Android Development] nailyk:
[MENTION=1964056]HaoZeke[/MENTION] Maybe, for debug purpose, it will be good to provide a permissive kernel with unsecured adb. If all your sources are into LineageOS qithub I should be able to do this quickly if you need.

[MENTION=4386116]frabe8378910[/MENTION] by shutdown I meant reboot like: Enter pin, device will reboot (here), you will seen green android.

just after hitting "start encryption" the device will do all the boot process again. At this time you try to enter recovery.

/data (userdata)

"mount | grep sdcard" (should be ok)

Good luck :)
[Xperia Z5 Android Development] HaoZeke:
The sources are on github (msm8994) but you'll need the fpc kernel commit from gerrit (https://review.lineageos.org/#/c/168962)

I'd be really grateful if you could provide the img cuz I can't build before the eleventh (exams)
[Xperia Z5 Android Development] nailyk:
Unsecure boot.img

here it is:

md5 (of the .img into tar): a86e9925b3fb85a655ef47ec93f3a56b

sha1 (of the .img into tar): 9032f2003b2f93364b9e623d332c0c6383f6d04e

Reminder: This is not intended to be used for daily usage but for debug purposes only!

This build is unsecure (adb & selinux)

cc: [MENTION=4386116]frabe8378910[/MENTION]
[Xperia Z5 Android Development] Rekon.fs:
The battery life is very good for me. I have installed smartemperature and naptime. (E6653)
[Xperia Z5 Android Development] frabe8378910:
Thanks a lot.

Is this kernel just for easier logcat or do you expect a different behaviour?

[MENTION=1964056]HaoZeke[/MENTION] + [MENTION=6979267]nailyk[/MENTION] Some further info: For testing I flashed Mokee Open Source Project | MK71.2 [sumire] and on this ROM encryption works. I just checked, it has "SELinux-Status Moderat".
[Xperia Z5 Android Development] gcoyle1992:
Boot Issue? Help? Will provide cookies

So I loaded the TWRP linked...

Wiped Dalvik, cache, and system...

Rebooted to TWRP....

Installed the 14.1 CLEAN from april 5th...

on startup i just get the boot screen. been like this for almost an hour now. do i need to be more patient or did i miss something here? :crying: :( :crying: :( :crying: :silly: :silly: :silly: :silly:

Xperia z5 E6653 Unlocked International GSM/4G
[Xperia Z5 Android Development] HaoZeke:
No an hour is not right unless you're trying encryption
[Xperia Z5 Android Development] HaoZeke:
That's really odd... Mokee is based off aosp and an older blobs branch of mine.. I'll have to play spot the difference for aosp and lineage again after the exams I guess...

The new kernel is a permissive one so you shouldn't have gotten the selinux denial which means encryption ought to at least throw a new error...
[Xperia Z5 Android Development] nailyk:
Only debug purpose. Anyone can use it obviously. Maybe [MENTION=8251954]gcoyle1992[/MENTION] you should give a try :=)

Flash rom, flash this boot image right after, then reboot, and you will have more log than ever

Also [MENTION=8251954]gcoyle1992[/MENTION] provide the /tmp/recovery.log before rebooting. Issue should be at flash time.

I like cookies :victory:
[Xperia Z5 Android Development] frabe8378910:
As soon as I have some time, I'll try to get a logcat on Mokee, look into the log and watch out for some significant differences (and if I find them...) :D

Then I'll flash your ROM again with the permissive kernel and see what that brings. :D
[Xperia Z5 Android Development] MattWarriorMX:
Battery draining on this ROM :(

I used Facebook , whatsapp , messenger , youtube and chrome but battery drains , i dont try games yet but , Someone has the same problem? or i do someting wrong?

Sorry for my english :c i do my best xD!
[Xperia Z5 Android Development] SinisterSloth:
Awesome ROM. However, having an issue where an AUX cable isn't detected by the device, doesn't ever show headphones icon. 'Headset' devices do work though. I can't provide a logcat right now, but it is to do with no hardware available for the device I believe. Will post a logcat in a few hours for more detail.

Thanks