[APP][09/10/2014] Kernel Settings - HTC Desire 500

Small app for adjustment Ultimate Kernel.
http://www.mediafire.com/?9dw5nm5ou9zcp1q
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

How to troubleshoot:
Suppose you installed the app and it does not work. Here are some things to test for:
1. make sure you have the Ultimate Kernel installed
2. make sure you have no other app interfering (Kernel Tuner, Trickster Mod etc.)
3. Make sure the file /system/etc/init.d/99kernel exists
4. Make sure you have busybox installed

dummie999 said:
Nice work! It works as it should except for 1 thing: left->right should be right->left, though this is probably my fault, because I wrote it down the wrong way in the Ultimate Kernel thread
One request: Can you add a button to execute the script (99kernel), so that I don't have to reboot to have the settings applied.
Click to expand...
Click to collapse
Setting is stored immediately. But to apply the changes, restart is required. A correct values ​​are as?
0 - disabled, 1 - enabled, both directions, 2 - enabled, left->right only, 3 - enabled, right->left only

ufonek said:
Setting is stored immediately. But to apply the changes, restart is required. A correct values ​​are as?
0 - disabled, 1 - enabled, both directions, 2 - enabled, left->right only, 3 - enabled, right->left only
Click to expand...
Click to collapse
They are:
0 - disabled, 1 - enabled, both directions, 2 - enabled, right->left only, 3 - enabled, left->right only
Yes, I know settings are stored immediately, but instead of having to restart, it would be nice to have an option to apply the settings right away, without a restart:
Code:
# sh /system/etc/init.d/99kernel

dummie999 said:
They are:
0 - disabled, 1 - enabled, both directions, 2 - enabled, right->left only, 3 - enabled, left->right only
Yes, I know settings are stored immediately, but instead of having to restart, it would be nice to have an option to apply the settings right away, without a restart:
Code:
# sh /system/etc/init.d/99kernel
Click to expand...
Click to collapse
Then it is unnecessary to store 99kernel init.d directory. Can I run the script directly.
Fixed:http://www.mediafire.com/download/9dw5nm5ou9zcp1q/Kernel+Settings+1.apk

ufonek said:
Then it is unnecessary to store 99kernel init.d directory. Can I run the script directly.
Fixed:http://www.mediafire.com/download/9dw5nm5ou9zcp1q/Kernel+Settings+1.apk
Click to expand...
Click to collapse
Works like a charm :highfive:

Hmm great app, but didnt work for me. I set sweep2wake disabled and dt2wake bottom half screen - sweep2wake still works and dt2wake still works on full screen.
I saved my settings and rebot my phone.
I used latest version of ultimate kernel.

CJ Grass said:
Hmm great app, but didnt work for me. I set sweep2wake disabled and dt2wake bottom half screen - sweep2wake still works and dt2wake still works on full screen.
I saved my settings and rebot my phone.
I used latest version of ultimate kernel.
Click to expand...
Click to collapse
Look, if in the system/etc/init.d is created file 99kernel.

Yes, the file was created.

CJ Grass said:
Yes, the file was created.
Click to expand...
Click to collapse
You have other apps interfering (kernel tuner, trickster mod etc.)?
What are the contents of 99kernel?

No, I don't have other apps interfering.
Contents of 99kernel:
#!/bin/sh
echo "3" > /sys/android_touch/sweep2sleep
echo "0" > /sys/android_touch/sweep2wake
echo "2" > /sys/android_touch/doubletap2wake
echo "0" > /sys/kernel/fast_charge/force_fast_charge
Click to expand...
Click to collapse
Also I saw the 99kernel file in storage/emmc/ localization (in main directory) - hmm strange... I deleted the file

CJ Grass said:
No, I don't have other apps interfering.
Contents of 99kernel:
Also I saw the 99kernel file in storage/emmc/ localization (in main directory) - hmm strange... I deleted the file
Click to expand...
Click to collapse
Okay, now run the file by hand (as root):
sh /system/etc/init.d/99kernel
Then, open the file /sys/android_touch/sweep2sleep and read it's value.

both file located in /sys/android_touch/ (sweep2sleep and swee2wake) the value is 1.
but i don't understand how to run by hand "sh /system/etc/init.d/99kernel" ?? where type this? and what is "sh" ??

CJ Grass said:
both file located in /sys/android_touch/ (sweep2sleep and swee2wake) the value is 1.
but i don't understand how to run by hand "sh /system/etc/init.d/99kernel" ?? where type this? and what is "sh" ??
Click to expand...
Click to collapse
With terminal emulator. Just type:
su
sh /system/etc/init.d/99kernel
Then check the values again.

Thank You! Now it works perfect (without restarting phone, value changed to: sweep2sleep 3 and swee2wake 0).
But why the app didn't changing settings? So now when I want to change any settings after that I also must repeat command? and then restart?

CJ Grass said:
Thank You! Now it works perfect (without restarting phone, value changed to: sweep2sleep 3 and swee2wake 0).
But why the app didn't changing settings? So now when I want to change any settings after that I also must repeat command? and then restart?
Click to expand...
Click to collapse
Are you sure you have installed the updated version: http://forum.xda-developers.com/showpost.php?p=55924458&postcount=5

Yes, I downloaded fixed version, but I thing there is an error - both version are the same! check upload date & time from link in 1 post and 5 post...
File size: 313.69 KB
Uploaded: 2014-10-09 12:49:26
data and hours are the same.
So where is the fixed ver?

CJ Grass said:
Yes, I downloaded fixed version, but I thing there is an error - both version are the same! check upload date & time from link in 1 post and 5 post...
File size: 313.69 KB
Uploaded: 2014-10-09 12:49:26
data and hours are the same.
So where is the fixed ver?
Click to expand...
Click to collapse
He updated the download link, so the one you downloaded is probably already the updated version.
If you want to be sure, uninstall, redownload and install the app.

Not Consistent
Hi ! I tried installing Kernel Settings Fixed Version on HTC Desire 500 Dual Sim. It create file as expected but didn't work until phone restart. I tried running 99kernel script by hand. only dt2wake is working. I checked the values. All were as mentioned in thread.
dt2wake works only once. If double tap on screen and don't unlock it and simply press lock button to off the screen. after that double tapping won't wake up the screen/
Majorly I need sweep2sleep. any way to make it work?

Related

AtrixTweaks - CM7 - AutoUCUV - FixLedBatCM7

AtrixTweaks
Hello,
Sorry for my english I'm french
Origin thread => http://forum.frandroid.com/topic/93255-autoucuv-forcage-cpu-et-oc-uv-gpu/
This thread to provide a simple way to control undervolting, OverClocking CPU without SetCPU (comming OC GPU), and add other functions.
This also helps to force the startup of the second CPU.
Second CPU "force online" improves "suspens mode" (screen off), and heating at full load (better distribution of tasks). It is also more responsive, when the second CPU does not switch to "iddle"
Include in AtrixTweaks, some scripts, like "BlueBoot", starting with the blue LED lights, and a fix to reactivate the LED green when the battery reaches 99% or 100 %, others ways to implement own "host file", and DNS configuration.
I search to add functionality like stop wifi or data at screen off.
All scripts are located in directory : /system/usr/AtrixTweaks
24 March 2012 (update)
For installation use V1.8 CWM zip :
=> http://forum.xda-developers.com/attachment.php?attachmentid=962925&stc=1&d=1332586674
Configuration File
AtrixTweaks.conf
PHP:
######
#####
####
###
### Configuration file
###
####
#####
######
# "_Options" are for information only
# "_Values" can be modify
# "_RunAtBoot:1" for script execution
#
##
################
### AutoUCUV ###
################
AutoUCUV_RunAtBoot:1
AutoUCUV_Available_Governors_Options:
#
AutoUCUV_Governors_Screen_On_Value:
AutoUCUV_Governors_Screen_Off_Value:
AutoUCUV_Table_UV_Value:
AutoUCUV_CPU1_Force_Online_Value:1
#
# If managed, Wifi and Data WakeUp at screen on, and CutOff at screen off
# If "Data_StatusCtrl" managed, don't stop Data at screen off
AutoUCUV_Manage_Wifi_Value:0
AutoUCUV_Manage_Data_Value:0
AutoUCUV_Data_StatusCtrl_Value:1
##
#
###########
### DNS ###
###########
DNS_RunAtBoot:1
GoogleDNS_Options:8.8.8.8 8.8.4.4
OpenDNS_Options:208.67.222.222 208.67.220.220
FoolDNS_Options:87.118.111.215 81.174.67.134
NortonDNS_Options:198.153.192.1 198.153.194.1
#
DNS_1_Value:8.8.8.8
DNS_2_Value:8.8.4.4
##
#
######################
### LoadAdsBlocker ###
######################
# Download at next Boot or script launch
#
LoadAdsBlocker_RunAtBoot:0
HTTP_AdBlocking_block_ads_full_Value:http://support.it-mate.co.uk/downloads/HOSTS.txt
HTTP_AdBlocking_block_ads_Value:http://temerc.com/hphosts/HOSTS-Optimized.txt
HTTP_AdBlocking_AntiMalware_Value:http://www.malwaredomainlist.com/hostslist/hosts.txt
HTTP_AdBlocking_partial_host_Value:http://hosts-file.net/hphosts-partial.asp
#
HTTP_AdBlocking_Activ_Value:partial_host
HTTP_AdBlocking_Download_Value:yes
##
#
##################
### AdsBlocker ###
##################
AdsBlocker_RunAtBoot:0
AdsBlocker_Options:no_ad_blocking block_social_gaming AntiMalware block_ads partial_host block_ads_full
#
AdsBlocker_Value:partial_host
#
################
### SdTweaks ###
################
SdTweaks_RunAtBoot:1
Scheduler_Options:anticipatory bfq cfq deadline noop
SdCache_Options:256 512 1024 2048 4096
#
SdCache_Value:2048
Scheduler_Value:deadline
##
#
#######################
### OptionalsTweaks ###
#######################
OptionalsTweaks_RunAtBoot:1
##
#
How to :
This set of script running in the background silently
2 logs are generated for checking settings (/system/usr/AtrixTweaks)
- AutoUCUV.log
- AtrixTweaks.log
In configuration file, only "_Value" must be changed.
"0" to un-activ
"1" to activ
If other value are possible, see "_Options" lines.
"RunAtBoot" to un-activ script
Scripts
LoadAdsBlocker.sh
AdsBlocker.sh
DNS.sh
FixLedBatCM7.sh
AutoUCUV.sh
SDTweaks.sh
OptionalsTweaks.sh
AtrixTweaks.sh
wrkconf.sh
99blueboot
- LoadAdsBlocker.sh : Download Host File (can be change in .conf file)
- AdsBlocker.sh : Install own Host File (can be change in .conf file)
- DNS.sh : Install own DNS (can be change in .conf file)
- FixLedBatCM7.sh : Fix Led at 99% battery charge
- AutoUCUV.sh : UnderVolting/OverClocking CPU (can be change in .conf file)
- SDTweaks.sh : Cache and scheduler for SDCard (can be change in .conf file)
- OptionalsTweaks.sh : Other stuff like Graphics tweaks, build.prop tweaks (can be change in .conf file)
- AtrixTweaks.sh : Run all scripts silently
- wrkconf.sh : Work With AtrixTweaks Scripts Config File
- 99blueboot : init.d launcher
Security implemented in the script "AutoUCUV" block UV/OC since 1 screen off
This allows you to change settings after a reboot if you have too forced on the UV
In .conf file, AutoUCUV updates are apply at screen off
To modified, you can use "Root Explorer" to edit and save.
Auto switch off Wifi : OK
Auto Switch off data : buggy
Commands used :
- svc wifi enable
- svc wifi disable
- svc data enable
- svc data disable
Acknowledgments :
Xkz for his support and good ideas
Really nice!
I will try!
The GPU setting can be a really good thing!
Thank you.
Sent from my MB860 using xda premium
great work !!
will try and report !!
thanks!
love the idea (am much i could understand)
All i want to kow i just flash the zip and its runs on its own on boot or do i have to use the script manager and set it to run it on boot and super user permissions and stuff ?
Does this works well with Supercharger? Also, if i have SetCPU installed and configured with profiles, will it work correctly?
Sent from my MB860 using XDA
Just flash with CWM that's all ... run on boot
Don't know for supercharger..
Run well with setCPU, but you must disabled "run at boot"
These scripts are exactly to nether have to use SetCPU... So, freeze SetCPU to Test (for exemple)
I post a CWM to unistall Scripts if you don't like them
(Not tested)
delewer said:
Just flash with CWM that's all ... run on boot
Don't know for supercharger..
Run well with setCPU, but you must disabled "run at boot"
These scripts are exactly to nether have to use SetCPU... So, freeze SetCPU to Test (for exemple)
I post a CWM to unistall Scripts if you don't like them
(Not tested)
Click to expand...
Click to collapse
Ok. I will try and test the scripts and report back later in the night. Thanks!
Sent from my MB860 using XDA
thanks,but how to change to powersave mode? can't understand scheduler.conf
Powersave is automaticly chosen by script itself
PHP:
set $(cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors)
Gov1=$(eval echo $1)
Gov2=$(eval echo $2)
### Governor (Actif - Veille)
### Pour rendre plus agressif ("performance" par exemple) ecran allume,
### Mettre GOVERNOR_A=$Gov1
GOVERNOR_A=$Gov2
GOVERNOR_V=$Gov2
For Faux123 Kernel, for example, "Gov1=Performance" and "Gov2=Powersave"
But, for Clemsyn Kernel, "Gov1=Interractive" and "Gov2=Powersave"
So, To modified Governor, you must modified the script
GOVERNOR_A=$Gov1
Give Performance for screen on
Actually, it's Powersave ($Gov2)
I have'nt create .conf for all values
ill ask again i just flash the zip and its runs on its own on boot or do i have to use the script manager and set it to run it on boot and super user permissions and stuff ?
For CM7 : No need to use "script manager"
Just install zip with CWM... all super user perms are ok
If you want execute script by your own... without install the zip, no need script manager
- unzip into you PC
- extract files and copy in your sdcard
- copy in /system/usr/atrixTweaks (you must make directory)
- set perm (root root and "X")
- clic
- see Log
Script manager can be use... but not necessary
This is great! Once you find out how to control GPU OC (and if possible RAM and AVP), then this will be killer.
this looks promising, will you port this for CM9 as well once it is more stable?
no init.d in CM9... so it is in "construction"
Flashed on Neutrino v2.2 and so far no problems. (is there any way to check that scripts are running? )
This is awesome!! Thank you for finding! Any possibility of this working on cm9. I am considering going back to cm7 for this :]
Dope new electro, dubstep, and hip-hop
www.TheBonerSoup.com
To check if "FixLedBatCM7.sh" run... charge your phone, and wait for 99%
Led signal say you when unplug phone
For "AutoUCUV.sh", see "/system/usr/AtrixTweaks/AtrixTweaks.log" with explorer
you must see all activities here
To run in CM9, try :
- Use root explorer (or other explorer with root)
- Clic on :"/system/usr/AtrixTweaks/AtrixTweaks.sh" => Execute
- See "AtrixTweaks.log"
To activate UV/OC : "screen off" and "screen on" (security)
that's all
I have flashed it with CWM but it doesn't work. I can see all sh files but no conf files and no green LED. Running current weekly.
delewer said:
To check if "FixLedBatCM7.sh" run... charge your phone, and wait for 99%
Led signal say you when unplug phone
For "AutoUCUV.sh", see "/system/usr/AtrixTweaks/AtrixTweaks.log" with explorer
you must see all activities here
To run in CM9, try :
- Use root explorer (or other explorer with root)
- Clic on :"/system/usr/AtrixTweaks/AtrixTweaks.sh" => Execute
- See "AtrixTweaks.log"
To activate UV/OC : "screen off" and "screen on" (security)
that's all
Click to expand...
Click to collapse
I don't have the file AtrixTweakd.log ...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Envoyé depuis mon MB860 avec Tapatalk
kezayah said:
I don't have the file AtrixTweakd.log ...
Envoyé depuis mon MB860 avec Tapatalk
Click to expand...
Click to collapse
I also checked no log files so i ran the script through script manager and set permissions SU and BOOT and now i get the log will report back if any thing happens.

[SCRIPT] [GUIDE] Google Play Services Battery Drain Fix/Workaround

Anyone's Google Play Services update recently? If you're suddenly experiencing dreadful battery life due to Google Play Services (see pic below) then this fix might be right for you. ​
Background: Recently, an update to Google Play Services (ver. 7.0.97) was released and reports flooded the internet with complaints of battery life issues. People had battery graphs similar to this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I also experienced this issue. After checking my frequency tables in my kernel tweaker, I noticed that my phone was NEVER going into Deep Sleep, and, instead, was sitting at 300mhz even when the screen was off. After some Googling and reading some comments on GitHub, it seemed apparent that the problem was one Service in particular "SystemUpdateService".
The Problem: Without going into much detail SystemUpdateService is basically Google's OTA update service, and when it detects that your phone need and update while running a Custom ROM, it fails and re-runs this check over and over again. It's this wakelock that drains your battery.
The Solution: Enabling the service. You read that correctly. For whatever reason, enabling the service actually prevents the wakelock from occurring. I, along with a few testers, have been using our phones for hours now after having run the script and the wakelock and battery drain is completely gone.
Method #1: init.d Script
For those of you with custom ROMs that support init.d scripts, simply unzip and place this script in the /etc/init.d folder (as root) and set permissions to 755. The service becomes disabled again as soon as the phone reboots. We place this script in the init.d folder so the script runs automatically every time the phone boots. If your Custom ROM does NOT support init.d scripts skip over to Method #2 or 3.
DOWNLOAD SCRIPT HERE: View attachment fixUpdateService.zip
Permissions Screenshot:
The source code to this script (Edited slightly, Credit to Oreganoian on Reddit):
Code:
echo "Disabling SystemUpdateService Battery Drain"
su -c pm enable com.google.android.gms/.update.SystemUpdateActivity
su -c pm enable com.google.android.gms/.update.SystemUpdateService
su -c pm enable com.google.android.gms/.update.SystemUpdateService$ActiveReceiver
su -c pm enable com.google.android.gms/.update.SystemUpdateService$Receiver
su -c pm enable com.google.android.gms/.update.SystemUpdateService$SecretCodeReceiver
su -c pm enable com.google.android.gsf/.update.SystemUpdateActivity
su -c pm enable com.google.android.gsf/.update.SystemUpdatePanoActivity
su -c pm enable com.google.android.gsf/.update.SystemUpdateService
su -c pm enable com.google.android.gsf/.update.SystemUpdateService$Receiver
su -c pm enable com.google.android.gsf/.update.SystemUpdateService$SecretCodeReceiver
echo "Script Execution Successful"
Method #2: Manually Running the Script
This method works best if you like working in the terminal or file explorer. Or if you would rather just do things yourself. Place the script above in the /etc/init.d directory and set permissions to 755. This time, however, you must run the script yourself EVERY TIME THE PHONE BOOTS. You can do this by using your file explorer, if it supports executing scripts (see output below) or running the script via Terminal.
Terminal: Run this command as root (type "su" and hit enter):
Code:
./etc/init.d/fixUpdateService.sh
File Explorer: I personally use FX (File Explorer), which is a wonderful app by the way, so the output in the screenshot below may be styled different but generally should appear the same:
Method #3: Enabling SystemUpdateService via App
Now, if you're a no frills kinda person, or just don't feel comfortable rummaging around in your filesystem or terminal, there is an app you can download called Disable Service which lets you do the same thing, just with a nice GUI. YOU MUST DO THIS EVERY TIME YOU REBOOT YOUR PHONE.
Steps:
Once installed, launch the app.
Then click the "System" tab on the top right.
Scroll down and select "Google Play services"
Scroll down to "SystemUpdateService" and CHECK the box.
Done!
There you have it! Hope this helps!
Great!
Method 1 doesn't work on hammerheadcaf 20150318 but Method 3 is working like a charm and the battery drain issue seems to be gone!
And CyanogenMod is going to deal with this issue before long:
http://review.cyanogenmod.org/#/c/91579/
http://review.cyanogenmod.org/#/c/91021/
Hello...
This only occurs in custom roms or it happens also in Stock Rom?
Thank you...
blackzigong said:
Great!
Method 1 doesn't work on hammerheadcaf 20150318 but Method 3 is working like a charm and the battery drain issue seems to be gone!
And CyanogenMod is going to deal with this issue before long:
http://review.cyanogenmod.org/#/c/91579/
http://review.cyanogenmod.org/#/c/91021/
Click to expand...
Click to collapse
Interesting, I'll try to see if I can edit the script to get it to work right. Make sure you enable the service with that app every time you reboot your phone.
Also, I've been reading those CyanogenMod discussions. Very interesting. Hopefully they tackle the issue soon and the solution makes its way into other ROMs
Kc_Nirvana said:
Hello...
This only occurs in custom roms or it happens also in Stock Rom?
Thank you...
Click to expand...
Click to collapse
As far as I know, this bug only affects custom ROMs.
Method 1 didn't work but method 2 and 3 worked. I believe the permissions for the script
should be 755 instead of 744.
Update : changing permissions didn't help either.
755 or 744? Screenshot shows 744 but instructions say 755. Assuming 744 is correct.
soundneedle said:
755 or 744? Screenshot shows 744 but instructions say 755. Assuming 744 is correct.
Click to expand...
Click to collapse
Permissions for init.d scripts should;d be 755. I'll update the picture to reflect that. Thank you for pointing that out.
Kc_Nirvana said:
Hello...
This only occurs in custom roms or it happens also in Stock Rom?
Thank you...
Click to expand...
Click to collapse
I'm experiencing the battery drain with stock HTC sense on my M8 and GP services 7.0.97. The battery usage is very high for GP services (e.g. 38% for screen off!) and the "awake" bar shows the phone awake even during periods of low usage--too many awake intervals.
Will init.d scripts work on CM11s?
CM fixed this a couple days ago with 2 commits. Hopefully all the ROM teams will incorporate it into their builds.
http://review.cyanogenmod.org/#/c/91579/
http://review.cyanogenmod.org/#/c/91021/
AndrasLOHF said:
CM fixed this a couple days ago with 2 commits. Hopefully all the ROM teams will incorporate it into their builds.
Click to expand...
Click to collapse
CM11s may not get another update though. I can confirm that the shell script doesn't work at startup on CM11S.
Edit: sorry didnt realise this was posted in the Nexus 5 section
Does this also effect cm11s?
Pretty important to add that for that 3rd Method to work you also have to enable that same SystemUpdateService in Google Services Framework. (In addition to enabling it in Google Play Services).
At least, that's what I've read on other posts/Google+ pages. I'm trying it now so do this at your own risk =)
Thanks for the script. Works for me, but only manually. I can't get it to work in the init.d at startup. It's in the folder, permissions 755. I'm not that into scripts - anyone who got it working mind for some tips?
humba80 said:
Thanks for the script. Works for me, but only manually. I can't get it to work in the init.d at startup. It's in the folder, permissions 755. I'm not that into scripts - anyone who got it working mind for some tips?
Click to expand...
Click to collapse
Your ROM may not support init.d. Mine doesn't and so I'm using tasker to run the script at boot.
Sandman-007 said:
Your ROM may not support init.d. Mine doesn't and so I'm using tasker to run the script at boot.
Click to expand...
Click to collapse
Tasker! Didn't think of it. Thank you!
Script works for me, but it doesn't solve battery drain: I have to use privacy guard to remove both keep awake and wake up...
Why you try these hard to stop the Systemupdate Wakelock??
See my guide here.Its simple as you like.No scripts included:http://forum.xda-developers.com/showthread.php?t=3060548
This is a permanent fix.No need to redo after reboots
vaisakh7 said:
Why you try these hard to stop the Systemupdate Wakelock??
See my guide here.Its simple as you like.No scripts included:http://forum.xda-developers.com/showthread.php?t=3060548
This is a permanent fix.No need to redo after reboots
Click to expand...
Click to collapse
Yup, but checking after the script mod, only keep awake permission was denied and I still got more than 8000 wake locks
gpvecchi said:
Yup, but checking after the script mod, only keep awake permission was denied and I still got more than 8000 wake locks
Click to expand...
Click to collapse
Did you try my fix?
I've attached screenshots there.
Tapped from my furious ZR

[NO ROOT] Enable McLaren fingerprint animation on OOS 9 / Disable animation at all

Quick update: As (I hope) no one is still using OOS9, this method must be considered deprecated.
Hello,
this is how to enable the McLaren fingerprint animation from the Oneplus 6T McLaren edition on normal 6T editions without a PC, root, module, app whatsoever (depends on the method you choose). You can also choose to disable the animation at all. For the McLaren animation OOS 9.0.9 or newer is needed since the animation files are included from this verison on. You just can't enable it through the settings app. If you ask me, the unlocking feels even faster with this animation!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requirements:
OOS version greater than 9.0.9, OOS 10 does not work (if you want to disable the animation, any version will work)
Either the app below (no root), adb (no root), magisk or another root solution
Method 1: No root, on-device, super-easy
Download this app from Google Play.
Open it and confirm that "System table" is selected.
Scroll down and search for the line "op_custom_unlock_animation_style".
Touch the line and then press on "Edit value".
Enter "3" (no quotes) and confirm.
Enjoy. You can delete the app now if you want.
Can't find the line? Go with this:
Try to change your current fingerprint animation in settings and check the app for the line again (fully close it first). If there, continue above, if not continue below.
Confirm that "System table" is selected.
Tap "Add new setting". There will be 2 prompts.
Replace "NEW_SETTING" with "op_custom_unlock_animation_style" (no quotes) in the first one and confirm.
Replace "SETTING_VALUE" with "3" (no quotes) in the second one.
You should be good to go! If you want you can delete this app now.
Please note:
Some users reported that the setting didn't survive reboots when removing the app. Try for yourself.
I recommend not to mess with other settings if you don't know what you are doing.
Method 2: No root, adb needed
Connect your device and verify your adb connection by using
adb devices
Proceed by entering
adb shell settings put system op_custom_unlock_animation_style 3
All done!
Please note:
If you do not understand what adb is or how to set it up, please use method 1 from above.
Method 3: Root needed, Magisk module
Download the Magisk module .zip from the attachments below.
Install it through Magisk Manager.
Enjoy!
Please note:
There will be no module visible in Magisk Manager, no files modified and no boot scripts. To disable just select a default fingerprint animation through settings and to enable reflash the module. Don't know if TWRP flashing works.
You can alternatively use AnoopKumar's module to enable a full McLaren experience with bootanimation, fingerprint animation, wallpapers etc. Found here. Difference to my module: Enables the animation on every boot so it will overwrite your setting if you choose another animation but don't disable the module.
Method 4: Root needed, terminal solution
Open your terminal app of choice
Switch to root by entering
su
Enable the animation by entering
settings put system op_custom_unlock_animation_style 3
Extra: Disable animation at all
You can use any of the above methods
Just replace the value "3" with a non-existent animation number, for example "4" (if future OOS updates add more animations, you need to use a higher value)
Magisk module also available ("no-fp")
Extra: McLaren color theme
Head over to Settings -> Display -> Theme, and set it to "Dark".
Next, tap on "Accent color" and tap on the custom color icon.
Input the hex code "#E0610E" in there.
That's it.
Additional information:
The setting survives reboots.
You might have to try it several times to make it stick after reboots.
Some users reported that they needed to keep the app installed in order to make it stick after reboots when using method 1.
To disable the changes, just enable one of the default fingerprint animations through the settings app. This works the same way for EVERY method.
Hit thanks!
Your post doesn't view right on the XDA app, here's the actual command for others
Code:
adb shell settings put system "op_custom_unlock_animation_style" "3"
OMG. Thank you!
Lartsch said:
Hello,
this is how you can enable the McLaren fingerprint animation from the Oneplus 6T McLaren edition on normal 6T editions without any mods, modules, apps whatsoever.
OOS 9.0.10 is needed since the animation files are included with this verison (you just can't enable it through settings).
Requirements:
OOS 9.0.10
ADB up and running
Steps:
Connect your device and verify your adb connection by using
adb devices
Proceed by entering
adb shell settings put system "op_custom_unlock_animation_style" "3"
All done!
Additional information:
The setting survives reboots.
To disable it again, just enable one of the default fingerprint animations through normal settings.
Click to expand...
Click to collapse
I'll try this out later when I can get to a PC, but thanks man! It would be awesome if someone could make a Magisk module for this, since I have a feeling the animation is going to be removed from later updates for the normal 6t!
H4X0R46 said:
I'll try this out later when I can get to a PC, but thanks man! It would be awesome if someone could make a Magisk module for this, since I have a feeling the animation is going to be removed from later updates for the normal 6t!
Click to expand...
Click to collapse
If you're already rooted check OP, you can do the same with a terminal emulator and root privilege of course.
Lartsch said:
If you're already rooted check OP, you can do the same with a terminal emulator and root privilege of course.
Click to expand...
Click to collapse
......... I love you.... LOL jokes aside, thanks man! That worked! ???
H4X0R46 said:
......... I love you.... LOL jokes aside, thanks man! That worked!
Click to expand...
Click to collapse
Updated OP once more, now with an even easier method
You're welcome!
yes it works
Thanks Buddy For This really Awesome.
Way 1 Is Super Duper Easy and works like charm
Works on 9.0.9 btw
EDIT: I like 2 better tbh
Can't find that line in the app.
OS 9.0.10
Thank you very much. Method 1 with the app works. It took 10 seconds.
EDIT: I'm on 9.0.10, rooted with Magisk, no TWRP. But as the OP stater, NO ROOT IS NEEDED!
That's amazing. Thank you so much!
In the app I can not find that line?
candleworth7808 said:
Can't find that line in the app.
OS 9.0.10
Click to expand...
Click to collapse
I don't have it either, I am on the TMO variant running international 10. don't know if that makes a difference
Sent from my ONEPLUS A6013 using Tapatalk
Update
I ran the command in terminal then opened the app and the line was there twice, I removed the one I entered and changed the Vale to 3 as per instructions and I'm good to go.
If you can't find that line in the app, you can add it in the app yourself.
Simply tap +Add New Setting
Then type
op_custom_unlock_animation_style
Tap save changes
Then enter the value of 3
Tap save changes.
Then go to settings, security, fingerprints, and see McLaren!
@Lartsch Good one mate, I can confirm this works on Open Beta 1 also. You may update the OP :good:
Sent from my OnePlus6T using XDA Labs
Thank you OP.
I used the first method as i m stock and locked. Super easy.
The line wasn't present so as per suggestion i added it and it works perfectly. In settings it shows cosmos, idk why.
Edit - it didn't survive reboot, had to do it again.
Does adb shell method survive reboot?
Edit 2 - on second try it shows McLaren in settings and also survived reboot. I m glad that it works.
App worked but I had to change from default in normal phone settings before the line showed up in app. Thanks OP.
Everything is working flawless but my alert slider isn't showing the notifications of phone mute or vibrate with icon on the main screen but it's working any fixes please

[script&magisk][root]Disable analytics, app measurement, campaign tracking, etc

Attached is a reasonably simple script which disables (or enables) a number of services for application analytics, application measurement, facebook ads, firebase performance monitoring and a few more. The amount of services disabled depends on the applications which you have installed. In my case 430+ services were disabled when running the script. This will increase security and possibly improve battery life a bit.
You must be rooted to use the script. The script code is pretty simple, have a look.
Download the attached file, rename and remove the ".txt" extension.
Instructions to install/use:
Code:
# push the script to your phone using adb
> adb push dss /sdcard/
# go onto your phone
> adb shell
# switch to root
% su
# mount /system as read-write
% mount -o remount,rw /system
# copy the script to the /system/bin/ directory
% cp /sdcard/script /system/bin/
# make sure it is executable
% chmod 755 /system/bin/dss
# execute the script
% dss disable
# output printed to the screen
% reboot
To enable the services again just run the script with argument "enable".
Alternatively, flash the attached magisk module from within the Magisk app. It will achieve the same effect.
Note that the magisk module will run for quite some time in the background whilst your phone is already fully booted.
To check what the module is doing, do:
Code:
> adb shell
% su
% tail -f /data/adb/modules/dss/log
When it has finished you will see "-- done" in the log.
Welkom :good:
I suggest to make a magisk module of this script to make it user friendly.
Keep up the good work old friend
Great to see you again, good idea to make it into a module. Will look at it tomorrow.
Good to see! Look forward to the module, Cheers
Can't you just run the script using EXKM?
For the ones who want to see if you have any of those apps (basically see if you need it/ if the custom kernel or Magisk module already hasn't disabled them).
Run this in Minimal ADB or whichever ADB tool you prefer:
Bash:
- adb shell
- su
- PLIST=`/system/bin/cmd package list packages | grep -v Swift | sort | sed 's/package://g'`
for i in $PLIST; do
echo "$i"
done
This will list all packages you've installed, see if it has any of the packages mentioned above.
OK, I looked into making this a magisk module ...
Problem is that you only have to run the script once (with disable).
So it is not really something which needs to run upon every boot.
Therefore, a magisk module is a bit pointless IMHO.
Anyway, the magisk module is attached if you want to try it.
@foobar66
Is this safe to try on the 6T?
..Cory.. said:
@foobar66
Is this safe to try on the 6T?
Click to expand...
Click to collapse
Yes, no problem.
foobar66 said:
Yes, no problem.
Click to expand...
Click to collapse
Thanks brother, will try shortly!
can anyone report their findings on this? does it improve things?
best way to know is try it make backup to feel safe
So I just need to flash magisk module, reboot so it will be activated and then I can remove it?
I do not know if it improve anything but i had to reboot twice. After the first reboot nothing worked as expected. Now it seems to work normal
Updated OP with the magisk module.
Thanks a LOT - very good addition to AFWall
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
---------- Post added at 20:38 ---------- Previous post was at 20:29 ----------
foobar66 said:
OK, I looked into making this a magisk module ...
Problem is that you only have to run the script once (with disable).
So it is not really something which needs to run upon every boot.
Therefore, a magisk module is a bit pointless IMHO.
Anyway, the magisk module is attached if you want to try it.
Click to expand...
Click to collapse
Well, can I just delete the Magisk module after running it once?
---------- Post added at 20:56 ---------- Previous post was at 20:38 ----------
ATTENTION ANDROID 10 Users: not working on Q-Beta 4
does this play nice if I have oxytweaker module which already disables some of the logging and analytic stuff?
Thanks. Look forward to trying this. If we want to reverse the module do we just delete it from Magisk? Thanks
carro_d said:
does this play nice if I have oxytweaker module which already disables some of the logging and analytic stuff?
Click to expand...
Click to collapse
i would say it does the same, its just another approach
and oxytweaker also changes some build prop stuff, so this is like the "light" version, thats focussed on the analytic stuff
Would this break safety net? Thanks!

[ROM][UNOFFICIAL][11][R]LineageOS 18.1 for z5c (suzuran)

Hi all:
Here is a LineageOS 18.1 ROM for Z5 compact (suzuran).
New: ROM with microG apk's included in priv-app:
Download 2023-06-12
Please pay attention: microG can't coexist with GApps! So decide whether to install microG OR GApps!
If you want to remove microG, enter these command line by line in a terminal:
Code:
adb root
adb shell
mount -o remount,rw /
rm /system/priv-app/DroidGuard/DroidGuard.apk
rm /system/priv-app/FakeStore/FakeStore.apk
rm /system/priv-app/GmsCore/GmsCore.apk
rm /system/priv-app/GsfProxy/GsfProxy.apk
exit
Reboot!
Or flash this microG-remover.
This is a 7z archive with the zip'ed ROM and the md5 file in it. Please unpack this archive, copy the included two files somewhere to your device, reboot into TWRP and flash this zip file. Enable md5sum checking. The zip file itself is not signed, so you have to disable zip verification.
Kernel sources
Tree sources
Features:
OS Version: 11 (R)
Kernel: Linux 3.10
Kernel 3.10.108
New: Android security patch level: 5 June 2023
Using Sony blob's from stock version 32.4.A.1.54
Important informations:
You should be familiar with general installation of custom ROMs.
Required for installation: TWRP 3.2.1 (pick the version from 2018-02-23!!!)
OR use my self built TWRP-version 3.6.2!
This ROM needs a clean install, old /data may cause problems!
This ROM is NOT pre-rooted. For rooting you can use Magisk.
It is highly recommended that your device is running (or HAS RUN in the past!) the latest stock ROM from Sony (32.4.A.1.54) before flashing this ROM.
Otherwise the baseband files may not match.
Working:
Audio
Bluetooth
Camera (with the restriction to 8 MP); both built-in camera (Snap) and 3-rd party camera apps.
Camera2 may be a little bit laggy, please use 3-rd party camera app instead; for example OpenCamera. If you're running into errors, please report.
Enforced SELinux support
Fingerprint
FM-Radio (maybe it needs a few restarts before it's working)
GApps (MindTheGApps 11 arm64)
German app AusweisApp2
GPS
Headset
Hotspot
LiveDisplay
Location services
Notifications
Notification LED
Offline charging
Phone calls
Reboot into recovery and bootloader
SafetyNet test passed successfully
Signed build
SMS
Sounds
Torch
WiFi
...please tell me...
These things are NOT (or badly) working:
Encryption
Camera focus at low distances.
Payment
Streaming (mirroring)
VoLTE
Maybe some more things are not working.Please tell me...
Use this ROM at your own risk! It comes without any warranty! I'm not responsible for any damage! If you don't agree with that, don't try to flash this ROM in any way.
Benefits:
Added Aurora-Store, F-Droid and UnifiedNLP! If you don't want this, simply de-install it.
I've set maximum speaker volume to a higher value.
I've increased microphone gain.
I've changed the microfone gain to avoid echo in phone calls.
Changelog
Troubleshooting:
If you're running into an error, please search in this thread if this error is already posted, before you post it again!
If not, I need a LOG to see what went wrong. Without a LOG I can't help you!
A LOG can be fetched by connecting the device with an USB cable to your PC and then by typing these commands line by line:
Code:
adb root
adb shell logcat -b all -d > logcat
Send my this LOG file via PM.
If you think this could be a SELinux related issue, please try to set the device to permissive mode first.
If the issue is gone, I need the policy file too (plus LOG). Fetch it by typing this line in a terminal:
Code:
adb pull /sys/fs/selinux/policy
If you stuck in a bootloop you can fetch a LOG with this trick:
Press the power button and the volume up button together until the device shuts down.
HOLD the power button.
Release the volume up button and press the volume down button immediately after releasing the volmue up button.
The device should start into TWRP recovery.
Tap on "Advanced", then on "Terminal" and enter these commands line by line:
Code:
cd sys/fs/pstore
cp * /sdcard
Send me the copied file(s), if any, via PM.
One last request:
Please, do not ask about problems for which my ROM is not responsible.
From now on I will only react to problems that I can reproduce and that are caused by my ROM.
I'm sorry for that, but I'm developing this ROM in my spare time and I still have a normal life.
If you want to remove apps, that are available in much better variants (or that you don't need ), enter these lines one by one in a terminal:
Code:
adb root
adb shell
mount -o remount,rw /
rm -rf /system/product/app/Email
rm -rf /system/product/app/Exchange2
rm -rf /system/product/app/Jelly
rm -rf /system/product/app/Recorder
rm /system/product/priv-app/Eleven/Eleven.apk
rm /system/system_ext/priv-app/Gallery2/Gallery2.apk
"Email" is the built-in E-Mail app, I've replaced it with K-9 Mail
"Jelly" is the built-in browser, I've replaced it with Firefox
"Eleven" is the built-in music-app, I've replaced it with poweramp
"Gallery2" is the built-in picture gallery, I've replaced it with simple gallery pro
Don't forget to reboot!
Hello,
Thanks for updating the ROM!
The performance is about the same (maybe a bit faster), and everything works OK.
However hotspot is still not working for me.
litelinux said:
However hotspot is still not working for me.
Click to expand...
Click to collapse
Oh, I'm sorry, I haven't answered your post in the los18 thread.
I'll take a look at it asap.
I'm using this ROM since some hours now and I have to say, that it's working very good. Better that expected. The device is not getting warm (or hot) and the battery comsumption is very low.
I'll take a closer look at this for some days now.
If the overall performance is convincing, I will delete the "BETA" status...
Is the "Recent Apps" button in the nav bar working?
I just installed this rom, but that button is not working.
Maybe app switcher is missing.
esrevinu said:
Is the "Recent Apps" button in the nav bar working?
I just installed this rom, but that button is not working.
Maybe app switcher is missing.
Click to expand...
Click to collapse
Working for me.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(Posted on accident, please delete)
@litelinux Thank you for the answer.
I had installed NikGapps full version. It seems that some gapps made that trouble. With NikGapps core, I can use "Recent Apps" button.
But, even NikGapps core version seems to cause unexpected reboots if micro SD card is set as phone storage(adopted storage), not potable storage.
And, is it normal that the fingerprint reader works when the screen is off?
Hello,
Animations are not as smooth as in Android 10, such as:
Opening/closing recents
Notification panel
Background grayout of popup boxes
Horizontal scrolling
Not sure what the problem is...
Sorry for repeating this but I really hope it would be solved.
esrevinu said:
And, is it normal that the fingerprint reader works when the screen is off?
Click to expand...
Click to collapse
I can't confirm that at my device.
litelinux said:
Animations are not as smooth as in Android 10
Click to expand...
Click to collapse
Maybe because it's still in development state? At my device, for example, the fingerprint reader is not working when the device had been in deep sleep mode for a longer time. Then I have to unlock it by using the "normal" swipe...
esrevinu said:
And, is it normal that the fingerprint reader works when the screen is off?
Click to expand...
Click to collapse
Berni-0815 said:
At my device, for example, the fingerprint reader is not working when the device had been in deep sleep mode for a longer time. Then I have to unlock it by using the "normal" swipe...
Click to expand...
Click to collapse
Both are present on my device.
litelinux said:
Both are present on my device.
Click to expand...
Click to collapse
That's right. Something must have been messed up! I have to investigate it more.
Berni-0815 said:
That's right. Something must have been messed up! I have to investigate it more.
Click to expand...
Click to collapse
You need to cherrypick this commit
Keyguard: Allow disabling fingerprint wake-and-unlock · LineageOS/[email protected]
* When the fingerprint sensor is embedded in the power key, wake-and-unlock is total chaos. Add an option to disable it. * The default behavior is unchanged. Change-Id: I50c0a857daba92c17470d...
github.com
Hello,
Thanks for the ROM,
I installed this version, it works fine at the moment.
Indeed, the photo lag application but by installing open camera it's OK.
On the other hand, the resolution of the camera is at the maximum at 8.3MP.
You also have this resolution blocked?
With lineage OS 14 I was at 23MP
esrevinu said:
You need to cherrypick this commit
Click to expand...
Click to collapse
Thanks. I've already seen that there have been made changes in that files. But unfortunately there have been made so much changes that a simple cherry-pick is not possible! I've tried to manually change these files and I'm hoping, it works.
I will report....
FRFaucigny said:
On the other hand, the resolution of the camera is at the maximum at 8.3MP.
You also have this resolution blocked?
With lineage OS 14 I was at 23MP
Click to expand...
Click to collapse
I've blocked nothing! AFAIK the maximum resolution of the built-in sensor is 8,3MP and the resolution of 23MP is realized by software upscaling. Try to take a photo of the same object with 8,3MP and 23MP and compare them. I for myself have never seen any difference.
So, for me 8,3MP is fine..
Bummer. I was hoping root install for F-Droid would be fix by now.
You're right! I haven't tested if the so called "FDroidPrivilegedExtension" can be used in this version. I'll try it next.
Is that what you're meaning?

Categories

Resources