yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] HaoZeke:
I thought it was always wifi >>> 3G / LTE in terms of battery loss... Unless I've missed some changes?
[Xperia Z5 Android Development] langeveld024:
It is because you enter the wrong command in fastboot.

You installed twrp to BOOT partition and not to RECOVERY partition. Most common mistake these days here.

Use search function to learn if not already, this is explained all over the forum.

regards
[Xperia Z5 Android Development] saiz136:
It's now official folks!

XPOSED FOR NOUGAT IS OUT!

This is the "unofficial" list of apps working and not working on Xposed Nougat.

https://xdaforums.com/showthread.php?t=3639615

Reminder that this thread is based on unofficial Xposed, so some apps that do/doesn't work will/will not work on official Xposed. [emoji16]

(Amplify and Greenify still doesn't work!)
[Xperia Z5 Android Development] zacharias.maladroit:
But at least AppOpsXposed is working, I wonder if the wakelock blocking ("Device") part is working as intended [especially important for Stock ROMs]

Better Battery Saver + ForceDoze + Greenify (rooted) look like a great replacement until Greenify works in XPosed mode ("Do not start services/alarm/wakelocks/activities") :cowboy:

(or perhaps even better than Greenify alone ?)
[Xperia Z5 Android Development] saiz136:
I don't use FD though? What's your best setup for that? The AppOpsXposed wakelock block feature in my opinion never worked for me even in my HTC M8, Amplify + Greenify Xposed is still the better option in handling wakelocks and alarms.

Anyway, I'm still rocking the old RR and currently testing stock kernel that comes with it. I've noticed improvements on battery life especially when the screen is on but got a few random reboots when playing heavy games. Sound quality is "nah" as expected and probably some few hiccups with performance when scrolling and opening apps.

EDIT: Amplify and Greenify now works with Xposed. You need to download the beta version of Greenify to make it work. Link is here https://www.apkmirror.com/apk/oasis...-release/greenify-3-7-1-android-apk-download/

To make Amplify to work, you need to set Permissive in Selinux. Wait for a few minutes after activation and reboot and should work.

[MENTION=3037651]zacharias.maladroit[/MENTION] can you try and see if this will help with the battery drain on the new RR update??
[Xperia Z5 Android Development] h4d3z:
hi guys,

so maybe noob question, but i installed this rom and now i cant get into recovery and fastboot and all that.

Do u guys have any idea how to fix this ?

pls help
[Xperia Z5 Android Development] saiz136:
How did you install the ROM in the first place? Anyway, try power off emergency (hold power button and volume up), you should feel 3x vibarations, then go to fastboot (hold volume up while plugging usb connection) flash twrp (fastboot flash recovery twrpbootfilenamehere.img) then unplug usb, while screen is off (hold power and volume down), when the screen turns on and vibarated, release the keys and should boot up to recovery.
[Xperia Z5 Android Development] h4d3z:
well heres the problem, a friend of mine flashed the rom (its his phone) just did a whipe of system data and both cache. now he cant get into fastboot.
[Xperia Z5 Android Development] saiz136:
Yeah try the emergency shutdown, even if you powered off the phone, it's not truly off. You need to do the emergency shutdown to be able to go to fastboot.
[Xperia Z5 Android Development] TonskuDaigle:
Anyone else able to install Netflix via Google Play? Tells me my device is incompatible :D

Using E6653 with v5.8.5 201710001 build and no separate kernel.
[Xperia Z5 Android Development] abhijiths362:
is there ressurection remix 5.8.5 for xperia z5?????

:):):):)

---------- Post added at 03:10 PM ---------- Previous post was at 03:08 PM ----------

:):)
[Xperia Z5 Android Development] zacharias.maladroit:
That's interesting - you, by chance, have logs for after the crashes happening ?

I'm curious what they would tell - given that it's the "stock" lineageOS kernel which supposedly only has security fixes on top of Sony's stock kernel (which isn't 100% stable as experience has shown :p )

I'm currently using Naptime + Greenify with XPosed on .160 Stock and it works great !

So it Xposed and the new Greenify definitely seem to help with battery :)

Thanks to the link and hint that newer Greenify is needed,

right now I'm optimizing the Stock Kernel (getting SOT between 4-8+ hours when using it solely for browsing, reading, etc.).

Internet outages have returned twice so I'm making sure I have a kernel + ROM that is usable for longer periods of time ...

Still too early but it seems like I could track down the crazy high battery consumption (it's a sort of unbalanced, inaccurate battery handling/algorithm),

needs more days (perhaps weeks) to fully investigate this and say for sure.

Custom ROMs might benefit with a modified kernel, too

[MENTION=6696910]abhijiths[/MENTION]36 Not sure what you mean :)

This is Resurrection Remix for Xperia Z5 (single SIM) and Z5 Dual (dual SIM)

edit:

replaced kernel with stable
[Xperia Z5 Android Development] saiz136:
I don't have logs though, currently I'm rocking stock rom .54, and battery savings seems legit! Got Amplify + Greenify module installed (Permissive Selinux cause Amplify won't work on Enforcing). You should try the newest stock version!
[Xperia Z5 Android Development] abhijiths362:
best

this is the best rom i have ever used
[Xperia Z5 Android Development] zacharias.maladroit:
https://drive.google.com/open?id=0BykGGWB96CBQRXVkTnh0STJiWnM :)

More info later

Flash the entire ROM,

it has:

reworked auto-brightness that should work fine again,

also using biquads for headphone processing,

lowered volume for speakers & headphones,

more sensitive microphone (better recording, needs experimentation),

microG support ...

upstream changes

When using the custom kernel make sure to lower the output volume, too - with FauxSound the volume is higher.

custom kernel has:

reworked swap processing (lower overhead, more throughput)

zram improvements

and several other reliability improvements (against data corruption, etc.)

others I forgot ...

Also: the stock (kernel with the ROM) is patched up a bit to offer better battery.

All changes can be seen in the changelog in the ROM :angel:

It of course is protected against BlueBorne, WPA2 security issues ("KRACK") and more issues

To benefit from much improved battery:

XPosed + Greenify ( 3.7.1 from apkmirror is needed ) + Amplify )

Naptime

using the wakelock blocking features from the ROM (Privacy -> Privacy Guard -> "keep awake")

settings -> configurations -> miscellaneous -> "wakelock blocker" [*alarm* , *launch*]

Some settings cannot be used when you need an alarm clock, calender reminder, etc.

This SoC (Snapdragon 810) or aarch64 has some weird issues with higher battery drainage still,

still couldn't fully track them down ...

At least the battery should offer more capacity and more consistent fuel ...
[Xperia Z5 Android Development] zacharias.maladroit:
No feedback on the new RR (5.8.5) with the updated Facula kernel ? :confused:

Anyway, will upload an updated kernel probably soon - that should have additional improvements to counter against "KRACK" (WPA2 security vulnerability)

and more battery savings

Like I wrote at the Z4/Z3+ thread:
[Xperia Z5 Android Development] hemre2:
Gonna try new version but i see u wrote scripts need to be applied after boot.What s that is it kernel?
[Xperia Z5 Android Development] zacharias.maladroit:
[MENTION=7363099]hemre2[/MENTION] please slim down your quote [quoting OP/first post isn't best etiquette, I know that the XDA apps aren't exactly efficient in that regard but it certainly clutters the thread and makes it hard to read on mobile devices]

yes,

the scheduler has gotten a bigger update with cluster-awareness and thus should be able to work more efficiently + additional changes [HMP_scheduler-tweaks.sh],

the swap handling has been significantly improved to reduce overhead (high cpu load, unnecessary reading in of pages, higher performance & throughput), that tweak ensures that several pages at once can be swapped out or read in - increasing the throughput and avoiding stalls and lags when the RAM is too full, additionally memory compaction is enabled for unevictable pages - ensuring that memory allocations succeed in corner cases situations [swap-tune_memory-compaction.sh]

the interactive governor tweaks ensure, that the CPUs stay at a low frequency when e.g. listening to music (such as MP3 files, etc.) and similar while still staying smooth - in addition to that the CPUs are overclocked to allow more headroom in case more performance really is needed in the upper end [heimdall_5_mod.sh]
[Xperia Z5 Android Development] thanhnguyen2075:
i'm using 5.8.4, how to upload 5.8.5? i need full wipe?
[Xperia Z5 Android Development] hemre2:
Am i need to flash the kernel after flash the rom or flash rom reboot then again twrp flash kernel?
[Xperia Z5 Android Development] zacharias.maladroit:
you can try to dirty-flash + wipe /cache & dalvik cache (which should be supported by the zip) but full wipe in my opinion is better [no unknown battery drainers or issues that get introduced]

ROM -> gapps -> kernel

you don't have to reboot in between, flashing all 3 one after another (or in batch mode) worked fine for me :)

Make sure to flash the latest custom kernel

The newest Facula I.2.41 kernel has several smoothness , security and battery runtime improvements
[Xperia Z5 Android Development] Oedner:
Hi, thanks for your work on the z5! I'm on 5.8.5 with your newest kernel .44 and its great. So much better than Sony stock. I have some questions though, as i never ventured this far into comstumization territory before. How do i Install the scripts exactly? Just flash the zip via twrp? And you said something about having a swap beforehand, thats something i have to do manually before? I dont quite know how exactly.
[Xperia Z5 Android Development] saiz136:
Sorry [MENTION=3037651]zacharias.maladroit[/MENTION] I lost track with the newer posts, I've been mingling with stock rom nowadays, but let me try the new ROM and kernel? Kinda confused which kernel is the latest (attached)? Also kinda confused with the scripts (attached)? Where and how do we apply those? Is it necessary on which kernel we use? And can we change the Selinux kernel to Permissive? I need to install Dolby Atmos sound mod and unfortunately it needed a Permissive Selinux.

Also I want to try Microgapps? How do I download & install them?
[Xperia Z5 Android Development] zacharias.maladroit:
Nope, those scripts can be made to launch at boot via SManager (Script Manager) - flashing the zip via TWRP will fail since there's no install script.

I (almost) NEVER install any scripts since with flashing all those different kernels (different schedulers, etc.) it doesn't make sense for me - I'm mostly launching the scripts manually once after boot and that's it

https://forum.fairphone.com/t/looki...hell-command-executed-after-boot-time/12926/9

No need to apologize ;)

It's your choice and options after all to do what you want and prefer

Latest Kernel is Facula 2.44

For scripts - see answer above.

Nope, but the scripts so far only match with Facula kernels and the enhanced HMP scheduling mechanism (the HMP script) - the others should apply to other kernels as well.

SELinux probably can be changed to permissive, should be done early via scripts (or well set to permissive by default) - for me it shows Permissive - so it should work fine,

"stock" kernel (the one in the ROM is a different story though, I'm not doing too much modifications to that - "stock" is supposed to be secure)

I only tried microG via NanoMod (Magisk) and that was too much hassle to set up each time after flashing a new kernel - so I've left microG for now

https://xdaforums.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616

https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
[Xperia Z5 Android Development] saiz136:
[MENTION=3037651]zacharias.maladroit[/MENTION] so just to be clear, will flash the latest Facula 2.44 then just normal GApps. Will be using Magisk Permissive module (hope it would set to Permissive) and then HMP script?
[Xperia Z5 Android Development] Mason76:
Hello,why facula 2.44 sound in headphones bad

Stock kernel rr 5.8.5 playing sound more loudness and more basses?

And battery more drain at stock?
[Xperia Z5 Android Development] exTALIA:
[Deleted]
[Xperia Z5 Android Development] Mason76:
And system animations more jerks compared stock rr kerbel.why?

---------- Post added at 07:47 AM ---------- Previous post was at 07:26 AM ----------

Scrolling lags too very much(
[Xperia Z5 Android Development] Mason76:
Battery statistic 3 hours .very bad .why?
[Xperia Z5 Android Development] zacharias.maladroit:
You mean the somewhat higher white noise ? It's a "feature" not a bug,

it's caused by higher security (stack-protector strong) + FauxSound,

FauxSound by default has higher AMPed sound output,

so make sure to reduce the AMP with e.g. EX Kernel Manager.

Stock is stock, I've already patched it up to have more accurate battery stats and juice, I'm not customizing it further

that's why there's a custom kernel

Thanks,

yes, there should be an "USB OTG Switch" called app for enabling / switching the state of the USB port

There might be changes needed to get slow motion recording working (not sure how and if it'll work with those drivers from Sony), currently 60fps recording also is missing

yeah ?

you must be doing something wrong, it's buttery smooth here

yep, that indicates that you must have something going on with your phone,

I get 3 hours SOT with 55% left (watching movies from internal storage for 3 hours, ~ 33% used)
[Xperia Z5 Android Development] xMasterbaitx:
Hello everyone!

I have some questions. In this ROM fingerprint sensor,camera and Bluetooth calling working :)? I want to came from latest stock firmware.

And there how many bugs? Example: calling noise,or camera quality,
[Xperia Z5 Android Development] Blooperto:
I only got problems with sound going weird and calling using headphones. Got the proximity sensor bug too but I guess that's a common issue on this device, stock or custom

Enviado desde mi E6683 mediante Tapatalk
[Xperia Z5 Android Development] Mason76:
System animation freezing sometimes,stock kernek rr work more great

Sound,i dont use faux sound,i edit mixer.part...

---------- Post added at 05:14 PM ---------- Previous post was at 04:43 PM ----------

Please add stock file system/vendor/etc audio_output_policy.conf
[Xperia Z5 Android Development] zacharias.maladroit:
you're right - something DID get worse

I'll halt development for now, I'm again at a point where I can't dedicate resources and end up harming the quality of the kernel more than progress ...

audio_output_policy.conf is supposed to be there :confused:

https://github.com/LineageOS/android_device_sony_sumire/blob/cm-14.1/audio/audio_output_policy.conf
[Xperia Z5 Android Development] Mason76:
I deleted the lxt tweaks and the system animation became better, but not perfect compared to the stock kernel, but noticeably better, tolerantly. but here scrolling lags very much .. the scroll cache is off, the tweaks in the build does not help. your 3 Tweaks also installed -nothing has changed. Another point is that the processor very often runs at a frequency. What's on the core 44, which was on the 16th version. The firmware put both carbon and pp. on the battery account-it's time for me to change it. xiaomi redmo note 3 snap 652 batteries here you can say no at all) and you can do something like this so that the big clan Stera worked only 2 cores? turned off for quite the rest

Sorry ma bad english
[Xperia Z5 Android Development] zacharias.maladroit:
Yes, that's roughly the order,

Also flash the google services magisk module to send it to doze, it just costumed a big amount of battery on my Note 3
[Xperia Z5 Android Development] Mason76:
PlEase help
[Xperia Z5 Android Development] saiz136:
[MENTION=3037651]zacharias.maladroit[/MENTION] is there any chance that we could amplify a bit more on audio? It seems to lower a bit.
[Xperia Z5 Android Development] zacharias.maladroit:
Well, RR has in-built wakelock blockers, so activate *launch* and *alarm* wakelock blockers,

use Naptime, Greenify (beta) with aggressive doze,

XPosed and the XPosed module for being able to sent Google Play Services to Doze,

then there's the Privacy -> Privacy Guard -> "Device" settings,

where you can disable the "Keep awake" (wakelock for apps) for selective apps.

Both your biggest consumers are social network apps which aren't exactly known to be battery friendly,

concerning the non-smoothness: agreed, it seems, interactive governor is pretty hard to tweak and optimize to be really smooth and battery efficient at the same time

Try switching to "conservative" governor, I'm currently using it and that allows a much more consistent scrolling and app experience

Hope that helps

Thanks

[MENTION=4491034]saiz136[/MENTION] which output exactly ?

The "default" ("high") output on LineageOS, etc. seems to hurt the speakers (I believe I read about damage from usage) so I made sure to lower it,

also lowered headphones a bit for better quality

Thanks
[Xperia Z5 Android Development] Mason76:
thanks for the tip-off, these methods I'll leave for later. because initially the firmware was excellent, the pro is not in applications for social networks, but in that the waiting mode came first, although on the egg system everything worked as it should. screen yielding 5.20 hours !! but then I put the root of the extreme magician and I think he is the culprit of the fact that the system has gone mad. The day after that I'll try to check it, I need to understand how to completely clean the system of the tails. I also felt that I should go into any application for kernel monitoring , as it starts to knock down the settings, until you put them manually (for example, the frequency on the big cluster is unknown)

How version magisk you use?
[Xperia Z5 Android Development] xMasterbaitx:
Somebody write it step by step,how can I install it :)? I'm use now latest CarbonROM ,before LineageOS 14.1. I don't understand the script page.
[Xperia Z5 Android Development] smiley.raver:
Hey guys, long time no post (joys of work i guess), anyway i just decided to come across from crDroid, as i was reading through the forum, flashed stock latest FtF, flashed the rom, running microig, running latest Facula kernel from zaschs, and scripts as per first post((dont know if the scripts are still needed to be run couldnt find anywhere that said not to) anyway everything is working great, except for when i plug headphones/mic hands free in and try to make a call - the call comes through as a high pitched noice - doesnt change in pitch, but just a continuous pitched noise, cant hear a dial tone, or it dialling, cant hear anyone speaking it doesnt go away even when call connected. so not sure if anyone else has had it (searched the forum and couldnt see anything) and i didnt have this issue when i was on crDroid.

any thoughts?

EDIT: calls work normally through earpiece and bluetooth, just not wired handset
[Xperia Z5 Android Development] ReversedPosix:
When you make a call while headset is plugged in, there is a different sound. Like a diiiiiiiiiiiiiiiiiiiiiiit. Its very annoying. Thank you :)
[Xperia Z5 Android Development] thanhnguyen2075:
how do using scripts, Sir?
[Xperia Z5 Android Development] zacharias.maladroit:
yep, investigating it - I'm suspecting the biquad changes might cause it but it also could be the microphone and output changes at fault, will see how it goes tomorrow - currently too late to call someone ^^

Thanks for reporting & apologies - that shows that the main function for some of us isn't calling anymore with those smart-"phones" :o

Acknowledged, thanks for reporting - yes, it's a very high pitched noise not good for the headset and/or ears, apologies :o

ScriptManager https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en

make the scripts launch as init scripts at boot or run them manually after start (I'm doing the latter since I'm doing kernel development so can't risk anything interfering, also that's the safest approach)

edit:

the zip-file is NOT flashable, it only contains the modified mixer_paths.xml file for sumire & ivy so needs pushing to system/etc/

NOT confirmed to fix the issue yet ...

edit2:

uploaded the hotfix, sound is still working (it deletes the old file and replaces the new file)

do a system backup before you flash - it should work - just in case
[Xperia Z5 Android Development] abhijiths362:
is there a november security patch for this rom????
[Xperia Z5 Android Development] Mason76:
Standby mode drain battery verry much,as stock 6.0.1 battery work very good..

How fix it?
[Xperia Z5 Android Development] langeveld024:
[/COLOR]

Just read it up: https://xdaforums.com/showpost.php?p=74407830&postcount=258

Only two pages back.
[Xperia Z5 Android Development] zacharias.maladroit:
[MENTION=8584628]abhijiths362[/MENTION] feel free to help patch up the kernel source:

https://cve.lineageos.org/android_kernel_sony_msm8994 , https://github.com/LineageOS/android_kernel_sony_msm8994/commits/cm-14.1

[MENTION=4679677]langeveld024[/MENTION]

https://xdaforums.com/showpost.php?p=74408526&postcount=259

:)

[MENTION=7776553]Mason76[/MENTION] stock is stock, lineageOS or ALL non-stock ROMs seem to have a significantly higher battery consumption compared to Sony stock

Not sure how to exactly tackle this, there are monitoring tools available for Android but it's mostly through ADB and other means.

Can you point out WHERE exactly the battery consumption is higher compared to stock ?

e.g. wlan , while loading pages, while using the processor, while using the radio (3G, 2G, LTE), while looking at the screen,

while watching videos, while using specific media (e.g. mp3, flac, etc.)

without details it's way too unspecific

I've already added several changes to the kernel to reduce power consumption and improve battery fuel but let's face it - Sony (or Qualcomm) allows some tweaks on the Sony Stock ROM to

lengthen battery runtime - if someone has inside knowledge or knowledge what differs in those "polished" Stock ROMs feel free to post and enlighten us !

This has been my experience since my first Android phone (Galaxy S1) - with the Note 3 it isn't that severe but there seemingly is still a significant gain in battery when using stock ...
[Xperia Z5 Android Development] smiley.raver:
Zacks - you are a champion :) the fix worked (well for me on sumire) :) makes a big difference - keep up the good work :)
[Xperia Z5 Android Development] abhijiths362:
[MENTION=3037651]zacharias.maladroit[/MENTION] please give me some tips to patch

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

[/COLOR [MENTION=3037651]zacharias.maladroit[/MENTION] please give me some tips to patch

---------- Post added at 05:38 PM ---------- Previous post was at 05:05 PM ----------

Rom is absolutely superb but only one issue if you are playing music(with earphone) and you locked the phone the music stops and microphone starts to work ( i'm not sure if it is microphone but outside noise began to flow into the earphone) this issue is only with RR 5.8.5-20171023
[Xperia Z5 Android Development] zacharias.maladroit:
Just flash that hotfix via TWRP - that should do it,

thanks for reporting - that issue also seems to happen on ivy (Z4/Z3+) - I can't test since I froze the "stock" Music app and must have also killed off media storage (both due to Wakelock issues),

this doesn't happen with PowerAMP though

(ugh - that XDA app or XDA forum reader app is atrocious, leaving colors, quotes, etc. incorrectly - or perhaps you deleted a bracket)
[Xperia Z5 Android Development] abhijiths362:
where is that hotfix ???
[Xperia Z5 Android Development] zacharias.maladroit:
not sure if you're new to XDA but usually it helps looking through the last 2-5 pages in the thread (as a bonus: some devs even upload the mentioned fixes to the repo/download folder !)