yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Upd 08-29:

Update LKT to v1.9.3 (section 1)

Upd 08-07:

Switch off bluetooth when not in use, bluetooth scanning sucks a lot of juice (section 6)

Upd 07-20:

Systemize Greenify and exclude it from doze mode (section 3)

This is a guide to improve the battery endurance of our rooted XZ2 serie devices. It will provide useful tweaks/tips to do so on Pie but it also works on Oreo. It seems that Oreo Sony stock rom was far better optimized than Sony stock Pie in term of battery, so this guide will be particularly useful on Pie. Futher suggestions are welcome, don't hesitate.

Note that just after Pie upgrade, the device eats a lot of juice (AI algorithms work a lot to calibrate various things) for several days. But then, it seems that Pie remains far less efficient than Oreo in term of battery endurance (but actually it can depend on your device usage).

1. Install the magisk module LKT (Legendary Kernel Tweaks)

- Install the magisk module Busybox for android NDK,

- follow the instructions in the LKT thread,

- set the module on performance,

- after reboot, you can check LKT logs (/data/LKT.prop) to be sure that LKT tweaks have been applied as they should,

- use your device and enjoy a SoT gain of about +1.5 hrs,

- regularly check the LKT thread because this module is regularly uptated.

2. Install Lspeed app

Some Lspeed tweaks are redundant with those of LKT module, so just enable these tweaks:

- Global optimization: disable debugging, disable kernel panic, set animation scales to your taste,

- Battery: enable doze optimization (do not enable agressive doze unless you know what it implies...),

- CPU, LNET: don't enable anything (redundant with LKT),

- IO optmizations: enable partitions remount, disable I/O stats

- RAM optimizations: disable multitasking limitations

- Fstrim sheduler: 24h.

3. Install Greenify

- Systemize it (privapp) with the magisk module App Systemizer or instead install the magisk module Green2Priv (Upd 07/20)

- Exclude Greenify from doze (in settings - battery optimizations) (Upd 07/20)

- Lauch the app and go to settings to set the app parameters,

- freeze the apps you want (use Gsam battery monitor to detect the apps that undesirably eat battery).

4. Disable apps autostart

- Install All-In-One Toolbox app,

- Swipe down, in startup section: disable some apps autostart,

- In menu parameters: disable notifications or actions that you don't need.

5. Debloat the rom

- Some system apps, that we don't need, eat ram and battery but always do a twrp backup before debloating...

- Use [MENTION=3989065]serajr[/MENTION] debloat script,

- Alternatively, use Root ToolCase to debloat, this is a great app.

6. Disable bluetooth

- Switch off bluetooth when not in use, bluetooth scanning sucks a lot of juice...

That's all. Enjoy a much better battery life !! :)

Credits:

- Thanks to [MENTION=5033594]korom42[/MENTION] for his wonderful LKT module

- Thanks to [MENTION=5514152]Paget96[/MENTION] for his wonderful Lspeed app
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
res
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
It seems that media apps need to be optimized for Pie to not drain battery (it is explained elsewhere...)

I was shocked by the strong battery drain by the Sony Music app on Pie, so I've tested the Google Music app: it does not drain strong!!

So, the conclusion is obvious: the Sony Music app is not yet optimized for Pie. Use Google media apps for the moment, not the Sony ones!
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Upd 03-18

And finally... Sony has optimized its music app (v9.4.3.A.0.3) for Pie, it's no longer a battery drainer, no longer need to use an alternative player

Better late than never...
[Sony Xperia XZ2 Guides, News, & Discussion] MartinX3:
Yes, they removed another feature.

Last time it was the ability to play songs in a home network.

Now they removed the feature to transfer or listening to playlists on android wear devices. :silly:
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
I'm sure you can find an alternative player doing that.

But yes, it's not great to lose some features...
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Pls update to LKT v1.6:

- Responsiveness enhancements for EAS

- Fixed locks-creen stutter/lag issue
[Sony Xperia XZ2 Guides, News, & Discussion] dyepnoodle:
im on pure stock .14 firmware no root, no mods and im getting good batt life since .202 firmware. all i did was restrict android system in batt settings (no effect on any function) and greenify stupid system bloats like fb and fb services.
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Good to know!

I'm still on FW 163 and I can't see this setting
[Sony Xperia XZ2 Guides, News, & Discussion] dyepnoodle:
just go to settings batt. check the apps using the battery. if you see Android System tap it and restrict it under batt restriction. this helped me lower down its part on the graph. before doing this it usually takes 10% to 15% after restricting it only goes to 5% sometimes even lower.
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Yes.

But it seems that causes delay to many notifications like agressive doze.
[Sony Xperia XZ2 Guides, News, & Discussion] dyepnoodle:
weird not getting delayed notification on mine. deepsleep of the phone ok too. no wakelock
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
My e-mail and instagram notifications were delayed when I've tested this.
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Update 04-09

Lspeed: optional - enable CPU optimization - balanced (it won't eat a lot of juice and provide a more reactive UI, lagless)

Don't forget to regularly update LKT and Lspeed.
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
From v1.7.1, performance mode of LKT module is performant enough, no need additional CPU optimization.
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Upd 04-19:

From v1.8, performance mode of LKT module is great with great battery life
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Upd 06-09

Various additional Lspeed performance tweaks to enable
[Sony Xperia XZ2 Guides, News, & Discussion] yuanjiang0532:
Hi there, i'm completely new to root. I wonder is there any way to root xz2 without losing any functionality such as camera algorithm and x-reality? Or is there a way to restore the functions after unlock? I had a hard time finding an all-in-one tutorial..so could you please help me..Thank you so much
[Sony Xperia XZ2 Guides, News, & Discussion] MartinX3:
You would need to unlock on newest PIE firmware and test it. (Camera still works).

Or after unlocking downgrade to Oreo and apply the xperifix.

Or switch to my custom ROMs next month.

We've got RAW. (I assume at the end of this we'll get our next camera update by the sony engineers to raise the quality again).
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Upd 07-17

Disable apps autostart with All-In-One Toolbox (section 4)
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Upd 07-20

Systemize Greenify and exclude it from doze mode (section 3)
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Upd 08-07

Switch off bluetooth when not in use, bluetooth scanning sucks a lot of juice (section 6)
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
Upd 08-29

Update LKT to v1.9.3 (section 1)
[Sony Xperia XZ2 Guides, News, & Discussion] nreuge:
I've experienced some microlags from time to time with LKT v1.9.3, I don't like that, I'm back to LKT v1.8...
[Fire HD 8 and HD 10 General] _a!:
I've sideloaded google apps to my hd 10 2017 and it's mostly fine but sometimes it's like it loses all wifi connectivity for almost exactly 30 seconds. i've left the ads and launcher etc so other than the google services/store it's pretty much as it was. does anyone else have this?
[Fire HD 8 and HD 10 General] ModdedGamers:
Have you tried restarting it by holding down the power button for about 5 seconds?
[Fire HD 8 and HD 10 General] _a!:
Yes.
[Fire HD 8 and HD 10 General] ModdedGamers:
Don’t know what to say then. Sorry that I couldn’t help you.:(
[Fire HD 8 and HD 10 General] 0mr1:
And what about logcat ?
[Fire HD 8 and HD 10 General] erono:
Device can't connected to amazon = WiFi not has internet access.

So, disconnect current WiFi, and reconnect to another WiFi.

To loop.

You can try to log out of Amazon account.
[General Questions and Answers] doctorphone:
Hello,

I have a Samsung S8 G950F Smartphone, I made the last update (G950FXXS4CRLB) and after this update my phone I detected several bug on the network part no signal bar, only stop. I handed the old firmwaire but no avencement. always declaring out of service area .help me please. :crying: :crying: :crying:

Thanks
[OnePlus 6 Themes, Apps, and Mods] aoprea:
Hi

I'm in Oneplus board from OP1, OP3, OP5, OP5T and now OP6

i want a phone close to nexus/pixel phone and Oneplus is the best alternative.

but I have always said that I don't understand why they, instead of focusing on developing OOS and resolve bugs , they make stupid apps like: phone, contacts, messages, weather and don't forget stupid calculator and clock... when already exist made by Google ?

With all integration that they clame to be a new feature.

So i want to share with who is interested to replace all this stupid apps with google original apps.

All is work very good and i can tell now i have close stock google phone.

Replaced apps

-phone, contacts, messages, calculator and clock

- added Wellbeing app

Requirements:

- OxygenOS 9.04 Stable release

- unlocked and rooted phone with twrp instaled

- download zip to phone

- boot to twrp and install

Features:

- whoever wants can modify the installation script from zip (\META-INF\com\google\android\updater-script) or can enter more apps in this zip

- to modify updater-script use a good text editor (Notepad++) and then rewrite'it in zip archive

- this is code used in updater-script to replace OOS apps with Google apps:

delete_recursive("/system/system/app/Account");
delete_recursive("/system/system/app/AntHalService");
delete_recursive("/system/system/app/BasicDreams");
delete_recursive("/system/system/app/BTtestmode");
delete_recursive("/system/system/app/Calculator");
delete_recursive("/system/system/app/DeskClock");
delete_recursive("/system/system/app/EasterEgg");
delete_recursive("/system/system/app/NFCTestMode");
delete_recursive("/system/system/app/NVBackupUI");
delete_recursive("/system/system/app/OPBugReport_Complete");
delete_recursive("/system/system/app/OPBugReportLite");
delete_recursive("/system/system/app/OpenWnn");
delete_recursive("/system/system/app/OPSocialNetworkHub");
delete_recursive("/system/system/app/OPWidget");
delete_recursive("/system/system/app/PhotosOnline");
delete_recursive("/system/system/app/Protips");
delete_recursive("/system/system/app/talkback");
delete_recursive("/system/system/app/Videos");
delete_recursive("/system/system/priv-app/Contacts");
delete_recursive("/system/system/priv-app/Dialer");
delete_recursive("/system/system/priv-app/OPInCallUI");
delete_recursive("/system/system/priv-app/OPMms");
delete_recursive("/system/system/priv-app/OPSimContacts");
delete_recursive("/system/system/priv-app/StorageManager");

Download:

- link: https://mega.nz/#!8s0G0QrS!ItOvT5sei4TINYqa8WFntmifRGkcSC7EKgizQ76N7ks

PS: sorry for my english :)
[OnePlus 6 Themes, Apps, and Mods] Veestaai:
Can you make a magisk module out of this? so that we can revert back to stock if needed
[OnePlus 6 Themes, Apps, and Mods] filipebig:
work in Oxygen OS Pie Open Beta 12 for the OnePlus 6?
[OnePlus 6 Themes, Apps, and Mods] hallo dare:
Very good. Before i flash is there a way to revert should there be any issues? Thanks
[OnePlus 6 Themes, Apps, and Mods] Prosafe:
Great works fine

installed it over nolimit / renovate ice ROM's

With no issues [emoji41]

Skickat från min ONEPLUS A6003 via Tapatalk
[OnePlus 6 Themes, Apps, and Mods] xorwin:
Works great thank you!
[OnePlus 6 Themes, Apps, and Mods] matze19999:
+1
[OnePlus 6 Themes, Apps, and Mods] b.huss2:
This :good:
[OnePlus 6 Themes, Apps, and Mods] acmerw:
working fine on OB12
[OnePlus 6 Themes, Apps, and Mods] Flying Fox:
I think re-flashing OOS should do it.
[OnePlus 6 Themes, Apps, and Mods] hallo dare:
Yes, but just wondering if there was a method a little less drastic than having to reflash.
[OnePlus 6 Themes, Apps, and Mods] baadnewz:
Magisk Module

Here you go this mod as MAGISK module.

https://drive.google.com/file/d/1Mllvv3uSv69KwX2mBlXaTDEDSp2z0Nix/view?usp=sharing

I insist you flash it from TWRP

[MENTION=700178]aoprea[/MENTION] feel free to use it as template for your mod
[OnePlus 6 Themes, Apps, and Mods] aoprea:
Thanks for yours reply ... I wish that OP Teamp learn something from here...
[OnePlus 6 Themes, Apps, and Mods] M1LL3R:
Thank you both [MENTION=1186202]baadnewz[/MENTION] and [MENTION=700178]aoprea[/MENTION]. Flashed it on my 6t with the magisk module without any problems.
[OnePlus 6 Themes, Apps, and Mods] chonseng38:
Works perfectly. I love it! Is there a way to update the apps(phone), like from play store?
[OnePlus 6 Themes, Apps, and Mods] darthkir:
Do the Google apps support dark mode?
[OnePlus 6 Themes, Apps, and Mods] chonseng38:
They do
[OnePlus 6 Themes, Apps, and Mods] zyonlie:
Phone not working properly

My Phone dialer app did not show proper in-call screen, so calls made cannot be cancele unless force stopping the Phone app. Any fixes can be made? Thanks a lot anyways, great mod for sure.
[OnePlus 6 Themes, Apps, and Mods] hallo dare:
You have to select it as your default phone app, then all is good
[OnePlus 6 Themes, Apps, and Mods] zyonlie:
Thanks a lot bro, it works properly now!:good::good:
[OnePlus 6 Themes, Apps, and Mods] Matija Gubec:
THX

I use it with OB13 and xXx 5.0

Perfect! :good:
[OnePlus 6 Themes, Apps, and Mods] Denisuu:
So if I install it as a Magisk module I can uninstall it and that will give me back the stock Oxygen Os apps?

What happens when an OTA gets release will this give problems?
[OnePlus 6 Themes, Apps, and Mods] Matija Gubec:
Test it...

Go to Magisk and deactivate it and restart the phone... You have stock apps... Activate it again you have Gaaps again
[OnePlus 6 Themes, Apps, and Mods] ed-gonzo:
Excellent, thank you.
[OnePlus 6 Themes, Apps, and Mods] mj084:
USSD-Codes *#800# and *#801# still working for you with google dialer?
[OnePlus 6 Themes, Apps, and Mods] vlaf:
Nope, and that's the reason I removed the mod.
[OnePlus 6 Themes, Apps, and Mods] ed-gonzo:
Well, you don't need that every day.

Because of this I took the Magisk module, so it is quickly deactivated and reactivated. ;)
[OnePlus 6 Themes, Apps, and Mods] frrfba:
Is a rooted phone a must to flash this mod from twrp?

Thanks in advance
[OnePlus 6 Themes, Apps, and Mods] dabistduja:
--> see post 1 ;)
[OnePlus 6 Themes, Apps, and Mods] frrfba:
I see it!!

It's a must for magisk but I wish to know if also for twrp....
[OnePlus 6 Themes, Apps, and Mods] crazykas:
for 9.0.5?
[OnePlus 6 Themes, Apps, and Mods] Pundy:
Thank you so much. I love it and it's working with OOS 9.0.6 and don't forget to select phone app as standard app in settings after you flashed the magisk module.
[OnePlus 6 Themes, Apps, and Mods] danielud:
Working with 9.0.6, is it possible to record calls like it's the way its built in with the op dialer?
[OnePlus 6 Themes, Apps, and Mods] lucaam:
Anyone tried on Open Beta 1 Android 10?

UPDATE: It seems that there are some problems with dialer and I am not able to get the call screen, no audio, nothing. I installed it with Magisk module. After uninstall it many Google apps don't work anymore. Reverting back to clean OOS.
[Samsung Galaxy Note 9 Questions & Answers] billy_boolean:
Hi everybody,

My phone is stock except root. I rooted it only for adaware and titanium backup.

I'm using these for years and there's no reason to change that :D

A long long time ago I had a Galaxy S3. But thnings have change a lot in the Samsung's World. I'm comming from Oneplus' world ;)

With my other phones, I had to install a "update.zip" from TWRP.

I cannot found things like this for the Note 9.

So, how to upgrade ? (Dirty flash pie to pie)

With Odin ?

For small update I preafer to try first the dirty flash to save time. If the phone seems to slow, I'll made a clean install, but I really want to avoid the root process to install TWRP at every update.

Thanks
[Samsung Galaxy Note 9 Questions & Answers] N1NJATH3ORY:
You can't avoid the root process, everytime you update you will need to root again! Also download SAMFIRM.EXE and use Odin3_v3.13.1_3B_PatcheD to flash the update files.. See 7th post here for the tools--> https://xdaforums.com/galaxy-note-9/help/downgrade-to-android-oreo-t3890956
[Samsung Galaxy Note 9 Questions & Answers] billy_boolean:
Thanks for your reply.

Yep, made a mistake, this is not the root, but installing TWRP...

regards
[LineageOS Questions & Answers] masandres2000:
Hola, me gustaría saber si alguien conoze de algún modulo o kernel modificado con la radio activada para el xiaomi mi4(cancro) con lineage os 14.1.

:confused:Gracias.
[Huawei Mate 20 X Questions & Answers] wingk1314:
Hi guys,

I've googled everywhere and the closest thing I found was a way of enabling desktop mode on the matepad 8.4's internal screen but I believe that was for emui 8.

Does anyone know if this is possible? It would be so useful as this can probably replace 80-90% of regular office work done with tablets/computers.

Imagine if tasker or another mod/app can automatically adjust the DPI and go into desktop mode when a BT kb/m is connected.

I know the screen is quite small, but back then we had netbooks with 7-8 inch screens all the time. Not to mention win8 tablets and that 5" vaio.

I think this will genuinely be useful and a lot of people will be more than happy to pay for such a feature/mod.
[8125, K-JAM, P4300, MDA Vario ROM Development] ruk_design:
Hi mates. i have a high speed DSL connection on my PC. and when i connect my wizard with my pc using active sync. is there any way or any softwares that i will use the same net on my wizard too.?

plz help me with this..

Kind Regards
[Moto G5S  Questions & Answers] Arn'oh:
Hello, I Have installed better battery stats and I Have checked stats in alarms sections. GMS service is at 37% and I think it's not normal. I Have twrp, pixel experience in Android 9.0 with magisk root. How to fix it ?
[Moto G5S  Questions & Answers] JarlPenguin:
Install Universal GMS Doze from Magisk Manager
[Moto G5S  Questions & Answers] Arn'oh:
thank you for responding, and I have already installed this module. However, when I restart and I go in the parameters and optimization of the battery, I see GMS services but when I click on optimize, nothing happens. It also happens the same for other applications like the phone .
[Xiaomi Mi Mix 3 Questions & Answers] N1sm0_911:
Hi anyone.

Is there a way to take a photo just by tap 1 time and take photo ?

Tap on object -> focus -> photo done ?

cant find it. just annoying double tap -.-

help pls
[Xiaomi Mi Mix 3 Questions & Answers] Thex13laZe:
I think what you're talking about is the camera setting that makes the camera focus then shoot. You can turn this setting off in the top right when the camera is on. It's a hamburger icon (3 horizontal bars). Opening the options will give you serveral options for changing things.
[Samsung Galaxy S10 Questions & Answers] daviddema:
Beware, depending on where you buy your S10, the RMM state prenormal might never clear and you will forever be unable to root or install any custom recovery. At least that is the case for the S9. I never found a comprehensive list of affected countries, but certainly many Middle-East countries are on it.
[Samsung Galaxy S10 Questions & Answers] tiho5:
I'd sure like to know more about this.
[Samsung Galaxy S10 Questions & Answers] daviddema:
So would I, but the lack of transparency from Samsung is, to say the least, worrying...

I posted the below in the Samsung forums... no reply so far...

Why do the Samsung phones in Saudi Arabia remain stuck forever in RMM state prenormal?

RMM state prenormal prevents users to install a custom recovery and/or operating system. In other words, the phone cannot be rooted and be fully under the control of its owner. RMM state prenormal is supposed to be an anti-theft feature and it is supposed to clear 7 days (168 hours) after the initial setup of the phone or after a factory reset. But in KSA, it never clears.

RMM (Remote Mobile Manager) is part of Knox. Knox and RMM are what enables companies to keep the phones of their employees remotely under control.

At this point, you should be asking yourselves (and Samsung) two questions:

1) Why am I being denied full control over a device I owe?

2) If I don't have full control, then who does? Samsung? The government?

You can see if your phone is in prenormal mode by rebooting to download mode: shut down the phone, then press volume down + Bixby + power (all three together). Keep them pressed until the screen becomes green. Then press volume up. If you see "RMM state : prenormal" listed in the next screen, then you are unable to flash non Samsung binaries and you cannot root your phone to take full control.
[Samsung Galaxy S10 Questions & Answers] rafik25:
".... but certainly many Middle-East countries are on it...." im not sure. i already said u i have bought one in german and leaving in France and not clear RMM state
[Samsung Galaxy S10 Questions & Answers] Player04:
Certainly america is
[Samsung Galaxy S10 Questions & Answers] Tel864:
And it shouldn't surprise or upset anyone since this has been known for years now. If you're in the US then a one should know there will never be root.
[Samsung Galaxy S10 Questions & Answers] galaxys:
Old news...
[Samsung Galaxy S9+ Questions & Answers] daviddema:
If you're one of the unlucky ones whose RMM state prenormal never clears and remains prenormal forever, please post here and mention where you bought your phone. Also check settings -> about phone -> software -> carrier software and post your 3 (or 4) csc codes.

I bought mine in Saudi Arabia. CSC codes ksa/ksa/ksa/ksa.

RMM state remains prenormal forever.
[Samsung Galaxy S9  Questions & Answers] daviddema:
If you're one of the unlucky ones whose RMM state prenormal never cleared and remains prenormal forever, please post here and mention whre you bought your phone (also check settings -> about phone -> software -> carrier software and post your 3 (or 4) csc codes.

I bought mine in Saudi Arabia. CSC codes ksa/ksa/ksa/ksa.

RMM state remains prenormal forever.
[Samsung Galaxy S9  Questions & Answers] Revontheus:
Have you made sure you signed in to your Samsung and Google Accounts? It took me 14 days to realize that you need to be signed in to Samsung's Account for the counter to start.
[Samsung Galaxy S9  Questions & Answers] daviddema:
Yes I have, I was signed in every time I tried.
[Samsung Galaxy S9  Questions & Answers] STWil2:
Hi, also stuck with RMM state prenormal. Almost hopeless.

Phone bought in Germany. CSC : XEF/XEF/DBT.
[Samsung Galaxy S9  Questions & Answers] humza14:
Kg state prenormal permanent fix here :P
[P8lite Q&A, Help & Troubleshooting] X12345918:
I use the stock 5V 1A charger and charging time is about 3 hours. Can i use a P10 lite charger that is 9V 2A? Will it damage the battery or charging hardware?:confused:
[P8lite Q&A, Help & Troubleshooting] Franseven:
it could damage the phone in the long run
[P8lite Q&A, Help & Troubleshooting] Ahmedoov:
9V 2A charger won't damage the phone because it will never charge it with 9V as the phone don't support it. The charger will charge the phone with 5V 2A and this one is totally safe
[P8lite Q&A, Help & Troubleshooting] X12345918:
So if i use a 5V 2A charger (my tablet charger), there will be an increase in charging speed?