[DEPRECATED] Night Light on Nexus 5x/6P Android O - Nexus 5X General

Hey all,
So I'd like to share my discovery with all of you.
Yesterday I was playing around with my Rooted Nexus 5x on Android O DP2 and later found that I activated Night Light in Settings>Display.
The requirements are:
A rooted Nexus 5x/6P on Android O
Pixel Theme placed in vendor/overlay
Developer Options enabled
Steps:
What you want to do is:
1. Add the Pixel theme to vendor/overlay (there are a lot of articles online for this)
2. Change your smallest width in Developer Options to 450.
3. Activate the Pixel theme in Settings>Display>Advanced>Theme
4. Voila
Why does it work?
I honestly don't know if I were to take a guess, it would be that the combination of Pixel theme and DPI trigger the software to think it's a Pixel, but again, just a guess...
I am attaching screenshots of everything and also the overlay file I used, please report back whether it worked or not!
Cheers!

Interesting! Since its already there, we should be able to trigger it without root and UI.
We need figure out what it wrote to settings.
Could you dump adb output of these 3 command, try to filter out key and value related to night mode.
I check mine and could not find one, perhaps it never existed since I never had a chance to access it yet.
Code:
adb shell settings list system
adb shell settings list global
adb shell settings list secure
Then we should be able trigger Night Light using app that can write custom key to settings like AutoTools.
Maybe one time adb command is need to grant the app permission to write secure settings depend on where the value is stored.
Developer can write an app for the switch. Better yet, Night Light quick settings tile!!
EDIT: You may also placed the Night Light tile on Quick Settings, check values of 'sysui_qs_tiles' under secure settings list.
We might be able to just add Night Light tile there using adb command.

HebeGuess said:
Interesting! Since its already there, we should be able to trigger it without root and UI.
We need figure out what it wrote to settings.
Could you dump adb output of these 3 command, try to filter out key and value related to night mode.
I check mine and could not find one, perhaps it never existed since I never had a chance to access it yet.
Code:
adb shell settings list system
adb shell settings list global
adb shell settings list secure
Then we should be able trigger Night Light using app that can write custom key to settings like AutoTools.
Maybe one time adb command is need to grant the app permission to write secure settings depend on where the value is stored.
Developer can write an app for the switch. Better yet, Night Light quick settings tile!!
EDIT: You may also placed the Night Light tile on Quick Settings, check values of 'sysui_qs_tiles' under secure settings list.
We might be able to just add Night Light tile there using adb command.
Click to expand...
Click to collapse
Night light is enabled by changing the bool value from false to true in the bool.xml in framework-res.apk/res/values/bool.xml/<bool name="config_nightDisplayAvailable">true</bool>

Tulsadiver said:
Night light is enabled by changing the bool value from false to true in the bool.xml in framework-res.apk/res/values/bool.xml/<bool name="config_nightDisplayAvailable">true</bool>
Click to expand...
Click to collapse
Arghh, totally forgot about this. They likely only start laying ground works for this kind of overlay capability around N-O (quite fresh).
Probably in-preparation for Project Treble, make it easier for OEM to configure devices. Forgo the need of modify main framework for each device.
However, I just did a quick look inside overlay apks posted above. They are no night light related strings laying around, good news for us.
As of O, our main framework-res should be the same as Pixels. This is the reason they made overlay like this.
Nevertheless, whatever detection mechanism they using for Night Light detection. There are using switch and intensity slider in settings mean they will be save inside settings provider.
We can hook onto it.
The method you mentioned was used in N, they modified that value for each device.

Tulsadiver said:
Night light is enabled by changing the bool value from false to true in the bool.xml in framework-res.apk/res/values/bool.xml/<bool name="config_nightDisplayAvailable">true</bool>
Click to expand...
Click to collapse
Apktool 2.2.2 not working as of now in compiling Android O framework.apk... so how can you change the value ?

Tulsadiver said:
Interesting! Since its already there, we should be able to trigger it without root and UI.
We need figure out what it wrote to settings.
Could you dump adb output of these 3 command, try to filter out key and value related to night mode.
I check mine and could not find one, perhaps it never existed since I never had a chance to access it yet.
Night light is enabled by changing the bool value from false to true in the bool.xml in framework-res.apk/res/values/bool.xml/<bool name="config_nightDisplayAvailable">true</bool>
Click to expand...
Click to collapse
So I did that and only found Night Light related details in secure, I'm attaching all three complete-non filtered files!

HebeGuess said:
Interesting! Since its already there, we should be able to trigger it without root and UI.
We need figure out what it wrote to settings.
Could you dump adb output of these 3 command, try to filter out key and value related to night mode.
I check mine and could not find one, perhaps it never existed since I never had a chance to access it yet.
Then we should be able trigger Night Light using app that can write custom key to settings like AutoTools.
Maybe one time adb command is need to grant the app permission to write secure settings depend on where the value is stored.
Developer can write an app for the switch. Better yet, Night Light quick settings tile!!
EDIT: You may also placed the Night Light tile on Quick Settings, check values of 'sysui_qs_tiles' under secure settings list.
We might be able to just add Night Light tile there using adb command.
Click to expand...
Click to collapse
So I shared all three files in the post above, I'm quoting you so you'd get notified! Cheers!

So did it work for y'all too?
I'm on Telegram too, very active there, if you have any doubts hit me up and mention you came from here so that I don't Spam Report ???
Telegram ID: @Anirudhgupta109

Anirudhgupta109 said:
So I shared all three files in the post above, I'm quoting you so you'd get notified! Cheers!
Click to expand...
Click to collapse
Thanks, those values store inside 'secure settings'.
I tried manually insert them into settings, actually got settings app displayed 'Night Light On' message.
Night Light itself is not working, looks like they still do some explicit check on certain conditions which your method some how have met.

HebeGuess said:
Thanks, those values store inside 'secure settings'.
I tried manually insert them into settings, actually got settings app displayed 'Night Light On' message.
Night Light itself is not working, looks like they still do some explicit check on certain conditions which your method some how have met.
Click to expand...
Click to collapse
I made a video of night light in action, couldn't upload it here so I'm sharing the GDrive link to the video
https://drive.google.com/file/d/0B_pirmux_1caa0VLODZPeU92WlE/view?usp=drivesdk
Sent from my bullhead using XDA Labs

I followed your steps, but unfortunately it doesn't seem to work.
I first extracted the theme to the folder "overlay" i created in vendor. Rebooted and applied the theme succesfully. Then opened dev option and adjusted the min width to 450, it changed to 449 automatically. Nothing happened. Rebooted but still nothing.
Anyway thanks, I will try it again later cause i loved Night Mode.

Anirudhgupta109 said:
Hey all,
So I'd like to share my discovery with all of you.
Yesterday I was playing around with my Rooted Nexus 5x on Android O DP2 and later found that I activated Night Light in Settings>Display.
The requirements are:
A rooted Nexus 5x/6P on Android O
Pixel Theme placed in vendor/overlay
Developer Options enabled
Steps:
What you want to do is:
1. Add the Pixel theme to vendor/overlay (there are a lot of articles online for this)
2. Change your smallest width in Developer Options to 450.
3. Activate the Pixel theme in Settings>Display>Advanced>Theme
4. Voila
Why does it work?
I honestly don't know if I were to take a guess, it would be that the combination of Pixel theme and DPI trigger the software to think it's a Pixel, but again, just a guess...
I am attaching screenshots of everything and also the overlay file I used, please report back whether it worked or not!
Cheers!
Click to expand...
Click to collapse
Hi bro, can u explain me how to root nexus 5x with o dp2?

diaboliko.hacker said:
Hi bro, can u explain me how to root nexus 5x with o dp2?
Click to expand...
Click to collapse
You need to know how to flash TWRP, there's a guide by Heisenberg over here
Once in TWRP flash Magisk v13 (unofficial snapshot) and install Magisk Manager 5.
Magisk: https://forum.xda-developers.com/apps/magisk/unofficial-magisk-v10-beta-built-t3521901
The download is on thier GitHub! Cheers!
Sent from my bullhead using XDA Labs

johnannis said:
I followed your steps, but unfortunately it doesn't seem to work.
I first extracted the theme to the folder "overlay" i created in vendor. Rebooted and applied the theme succesfully. Then opened dev option and adjusted the min width to 450, it changed to 449 automatically. Nothing happened. Rebooted but still nothing.
Anyway thanks, I will try it again later cause i loved Night Mode.
Click to expand...
Click to collapse
Did you try my overlay file? If yes, it contains the rro type too, switch between that and Pixel while on 449 smallest width (yes it switches to 449 automatically) and your screen should flicker and your settings screen should move down one row! Please let me know if it works!
Sent from my bullhead using XDA Labs

Work for me

iamaniff said:
Work for me
Click to expand...
Click to collapse
I'm glad it did!

Not working for me.
Using rooted Nexus 5X Android O DP2
I copied all files in /vendor/overlay/ folder.
I have the option to select a theme, I can select 2 themes but nothing is changing if i clock on them.
I also changed my min DPI to 449 like you said in your post.

Aragur said:
Not working for me.
Using rooted Nexus 5X Android O DP2
I copied all files in /vendor/overlay/ folder.
I have the option to select a theme, I can select 2 themes but nothing is changing if i clock on them.
I also changed my min DPI to 449 like you said in your post.
Click to expand...
Click to collapse
You're not even on Android O anymore
Sent from my bullhead using XDA Labs

Anirudhgupta109 said:
You're not even on Android O anymore
Click to expand...
Click to collapse
I am using Android O??

It works in DP3, you dont get the theming option but night light works.

Related

[Q] change live wallpaper with tasker

hi all,my question is:
is there a way to change live wallpaper using the app tasker?
for example have a live wallpaper for when i use n7 at home and one different for when i use in car.
furious84 said:
hi all,my question is:
is there a way to change live wallpaper using the app tasker?
for example have a live wallpaper for when i use n7 at home and one different for when i use in car.
Click to expand...
Click to collapse
I've found solution! :3
This command sets live wallpaper¹:
Code:
service call wallpaper 2 i32 1 s16 "[package name]" s16 "[class name]"
This command allows to get name of active live wallpaper:
Code:
service call wallpaper 4
And this command disables it:
Code:
service call wallpaper 5
More details here²:
android/app/IWallpaperManager.java
com/android/server/WallpaperManagerService.java
¹ Application must have SET_WALLPAPER_COMPONENT permission, and this permission available only for applications from /system/. So, in your case you need superuser privileges.
² There were links to source code, but xda doesn't allow me to post it. You can found it yourself — just search "grepcode [filename]" in google.
Sorry for my english.
4ufak said:
I've found solution! :3
This command sets live wallpaper¹:
Code:
service call wallpaper 2 i32 1 s16 "[package name]" s16 "[class name]"
This command allows to get name of active live wallpaper:
Code:
service call wallpaper 4
And this command disables it:
Code:
service call wallpaper 5
More details here²:
android/app/IWallpaperManager.java
com/android/server/WallpaperManagerService.java
¹ Application must have SET_WALLPAPER_COMPONENT permission, and this permission available only for applications from /system/. So, in your case you need superuser privileges.
² There were links to source code, but xda doesn't allow me to post it. You can found it yourself — just search "grepcode [filename]" in google.
Sorry for my english.
Click to expand...
Click to collapse
Really Thank You very much, sincerelly i decided To use Car home ultra like home when n7 is plug in Car (then i didn t need wallpaper, But i will try.
Ps your English is better then mine. I m from italy, And you?
Inviato dal mio Nexus 7 utilizzando Tapatalk
Here's the script (.txt, because it is a very strange forum). Without arguments script disables live wallpapers, overwise sets livewallpaper - first arguments is package name, second is class name. For example:
Code:
/data/lwmgr.sh com.h6ah4i.android.music_visualizer2 com.h6ah4i.android.music_visualizer_wallpaper.MusicVisualizerWallpaperService
Don't forget to copy script into right place and set right permissions.
View attachment lwmgr.txt
furious84 said:
Really Thank You very much, sincerelly i decided To use Car home ultra like home when n7 is plug in Car (then i didn t need wallpaper, But i will try.
Ps your English is better then mine. I m from italy, And you?
Inviato dal mio Nexus 7 utilizzando Tapatalk
Click to expand...
Click to collapse
It's my pleasure, glad to help. I'm from Russia. :3
Basic understanding of shell and Tasker
I really would like to get Live Wallpaper switching to work. I tried entering the txt into the shell but it doesn't work or return the correct values. Could you help me out?
I found this solution really good until kitkat , but now with lollipop does not work anymore , someone is able to change the codes ? I use a rom based cm now but I tried it with the stock without any results .
knows maybe an alternative method ?
thanks for any help
quack75 said:
I found this solution really good until kitkat , but now with lollipop does not work anymore , someone is able to change the codes ? I use a rom based cm now but I tried it with the stock without any results .
knows maybe an alternative method ?
thanks for any help
Click to expand...
Click to collapse
Have you found a way for Lollipop yet?
JudgeDread11 said:
Have you found a way for Lollipop yet?
Click to expand...
Click to collapse
At least only with paid app and rooted phone, search Automagic, it work for my N4 with any Rom [emoji3]
The evaluation version doesn't work for me on lollipop. I didn't take to much time to look into it though since u found an other solution. The LW I use has its own ui so starting that and only 2 tasker input button clicks it sets it. Not a nice solution as the screen needs to come on and user input can disturb the action. But to have an other app running for just this purpose isn't a great solution too. Especially since I want to disabled my LW to save battery when it gets low.
---------- Post added at 07:34 AM ---------- Previous post was at 07:30 AM ----------
Hopefully somebody with more knowledge about these things then me will figure out three correct command line for lollipop and post it here
Lollipop fix
If that isn't working on new versions like lollipop try just changing the 2 to a 3: service call wallpaper 3.. The addition of a function to set the keyguard wallpaper bumped it down to 3.
how do you make it work on nougat?
it's throwing an "error: 10" at the end of the shell command. it does work on my old phone ( kitkat )
i've tried with both 3 as well as 2 and both give the error: 10
this is the last 3 lines of the output text.
add wait type shell1 done
add wait task
Error: 10
any ideas how to make it work ?
Not working on Samsung Galaxy Note 8 on Nougat 7.1.1 rooted
Hello,
I was using Tasker in my rooted Elephone running on android Marshmallow for automatically changing the live wallpaper on 'time+date'schedule using RUN SHELL command as described in this forum successfully.
Now I bought Samsung Galaxy Note 8 on Nougat 7.1.1 Stockrom, rooted using TWRP< superSU. Tasker has been granted SuperSU permission also. I have exported my tasker profiles from Elephone to Sansung, also it shows green lines at the end of each task. it fails to execute the task .I am very much disappointed. This is the only way to automate live wallpaper changing in Android.
So kindly help me how to solve this problem.
Thanking You
drsaidalavi
citkast said:
If that isn't working on new versions like lollipop try just changing the 2 to a 3: service call wallpaper 3.. The addition of a function to set the keyguard wallpaper bumped it down to 3.
Click to expand...
Click to collapse
Yeah! It's working on OnePlus 5T with OxygenOS beta 33 (pie).
Using Livewallaper Betta Fish:
Code:
service call wallpaper 3 i32 1 s16 "com.maxelus.livewallpaper.betta" s16 "com.maxelus.livewallpaper.betta.LiveWallpaperService"
Hello? I've tried doing the same things...
Just to test.... I have set that if I shake my device I want to change the Live Wallpaper (Magic Fluids)
But it's not working...
What I truly want is:
1) if my device is in landscape mode → change live wallpaper to "Transparent Screen LWP"
2) if my device is in Portrait mode → change live wallpaper to "Magic Fluids"
Please help ???
How to change live walpaper as per schedule in Oreo
aashir.s.shaikh said:
Hello? I've tried doing the same things...
Just to test.... I have set that if I shake my device I want to change the Live Wallpaper (Magic Fluids)
But it's not working...
What I truly want is:
1) if my device is in landscape mode → change live wallpaper to "Transparent Screen LWP"
2) if my device is in Portrait mode → change live wallpaper to "Magic Fluids"
Please help
Click to expand...
Click to collapse
.
Here I will detail how I set up the automatic change of live wallpaper using Tasker. It can work only in rooted phone either by Magisk or SuperSu
First you have to install two applications from Play store
1-' Application Information'- to get the Package name of live wallpapers you have already installed
2- 'Disable service- to get the service name of the wallpaper. Some live wallpapers have more than one service name. The one comes with Wallpaper'in the last liine will be the one we have to enter in the Run Shell command. The other way to find it is just deselect the tick mark one by one in Disable service, then look for the disappearance of that live wallpaper from the live wallpaper picker screen. The service causing the disappearance is what we want to enter in the Run Shell command
Set up a profile - Name it -for Example LWC
then select 'EVENT'- select Date and time set- then it will ask for a task
Name the Task eg: Live wallpaper
Then it opens Task Edit
Select -RUN SHELL-
Put the following command in the Run Shell
service call wallpaper 5 i32 1 s16 ---------------------------- s16 --------------( fill the first dash area the package name you are copying from The Application Information APk, and the second one the service package obtained from the Disable Service Apk as described above. This number '5'is for Oreo rom, if you go downwards to Nougat make it '4', if you go above to Pie make it '6'.)
You have tick the root option in the next line
Then in then ' If', choose what variables you want to choose. As I choose date and time , I selected ' Day of the month' for the first variable then' equals' to the number of the day of the month eg:1 for the first day
Then again press the plus button of the variable, selected 'Time' made it 'greater than' -then put the time in this format- 09.00 for nine o' çlock in the morning. Tasker will only accept the time in 24 hour format
Those who have finger print or pattern lock, this may not work properly when the display off and phone locked. To make this work in this condition, we have to make another 2 profiles
Name of profile -anything you like- select State- Display -Display state edit- make it off
then add the task we already created eg: Live wallpaper in the this prfile
Make another profile- Name it- then select ' Event'- then 'Monitor'- then select the task 'live wallpaper changer
If you set up all these profile , you can see your live wallapapers changing according to a schedule you created.
Thank you
drsaidalavi
seems all solutions here didn't work anymore on Android 11 R! Anyone knows a new working solution?
Still no solution found yet..

ADD Data Toggle to NOTE 4

If you are wanting to add the DATA TOGGLE to the NOTE 4 - you can use a mod that was originally done for the NOTE 3 - I did a GOOGLE search to do it - and this is the information I came up - originally posted by @jdawgg21#AC at Android Central. The instructions call for SQLite to edit the text - but I am sure there are other solutions you can use - I just don't know enought about this to say exactly what to do - I had nothing to do with this instruction other than posting it here for anyone wanting to try it - @jdawgg21#AC deserves all the credit - if you GOOGLE search Add data toggle to Note 4 you will easily find the same thread I found.
GOOD LUCK! hope this helps - word of advice - when editing - the line you need to edit is WAY TOWARD THE BOTTOM - there are two or three different places that look like they are the one you need to edit - but only one is the right one - the title of that line is exactly as follows: notification_panel_default_active_app_list
so be careful when editing to make sure you are in the right line -
The instructions say NOTE 3 - but I am living proof that it works on Note 4- see attached ( it also worked on my S5)
DISCLAIMER: This is to add the MobileData toggle to your notification panel on the T-Mobile Samsung Galaxy Note 3. It might or might not work on the other models. Your phone has to be rooted in order for this to work. I'm not responsible if you screw something up on your device by not following directions.
Here are the steps I used:
1. Download the Sqlite Editor app from the playstore(costs
2.99)https://play.google.com/store/apps/d...ware.sqleditor
2. After it's download, it will ask for root permissions, click Grant and it should load the databases.
3. Go to the FILES tab
4. Click on data, then after it opens up, look for data again
5. After that happens, scroll down the list till you find com.android.providers.settings and click on it
6. Click on databases and then click on settings.db
7. After you click on settings.db, then you will see system, click on that and it should open up a long list
8. Look for notification_panel_active_app_list. It will be near to the bottom of the list. You will see notification_panel_default_active_app_list. That is not the correct one. Make sure it says notification_panel_active_app_list.
9. Click and hold it till a sub menu pops up. Click on Edit Record
10. You're going to see a list of toggles under values
11. At the end of that list, make sure there is a ; after the last word. Then enter MobileData and put ; right after it. No spaces.
12. It should look like this for example: AirplaneMode;MobileData;
13. Now click Save, Reboot the phone and when it comes back up, you should have a MobileData toggle in your notification panel in your settings
I did this one on my note 3 and its super easy but I think we need an insecure kernel. I haven't seen one yet. I'll try and report back.
Works great thanks
Sent from my SM-N910T using XDA Free mobile app
pipergca said:
I did this one on my note 3 and its super easy but I think we need an insecure kernel. I haven't seen one yet. I'll try and report back.
Click to expand...
Click to collapse
Did you read my post? I did it already - it is working no problem - I even posted a screen shot...
mocsab said:
Did you read my post? I did it already - it is working no problem - I even posted a screen shot...
Click to expand...
Click to collapse
lol no I didn't see that part. Thanks man
pipergca said:
Works great thanks
Sent from my SM-N910T using XDA Free mobile app
Click to expand...
Click to collapse
What was your input to add MobileHotSpot?
blacklabel2020 said:
What was your input to add MobileHotSpot?
Click to expand...
Click to collapse
;WiFiHotspot;
blacklabel2020 said:
What was your input to add MobileHotSpot?
Click to expand...
Click to collapse
WiFiHotspot (caps sensitive)
re: flashlight -torch
mocsab said:
If you are wanting to add the DATA TOGGLE to the NOTE 4 - you can use a mod that was originally done for the NOTE 3 - I did a GOOGLE search to do it - and this is the information I came up - originally posted by @jdawgg21#AC at Android Central. The instructions call for SQLite to edit the text - but I am sure there are other solutions you can use - I just don't know enought about this to say exactly what to do - I had nothing to do with this instruction other than posting it here for anyone wanting to try it - @jdawgg21#AC deserves all the credit - if you GOOGLE search Add data toggle to Note 4 you will easily find the same thread I found.
GOOD LUCK! hope this helps - word of advice - when editing - the line you need to edit is WAY TOWARD THE BOTTOM - there are two or three different places that look like they are the one you need to edit - but only one is the right one - the title of that line is exactly as follows: notification_panel_default_active_app_list
so be careful when editing to make sure you are in the right line -
The instructions say NOTE 3 - but I am living proof that it works on Note 4- see attached ( it also worked on my S5)
DISCLAIMER: This is to add the MobileData toggle to your notification panel on the T-Mobile Samsung Galaxy Note 3. It might or might not work on the other models. Your phone has to be rooted in order for this to work. I'm not responsible if you screw something up on your device by not following directions.
Here are the steps I used:
1. Download the Sqlite Editor app from the playstore(costs
2.99)https://play.google.com/store/apps/d...ware.sqleditor
2. After it's download, it will ask for root permissions, click Grant and it should load the databases.
3. Go to the FILES tab
4. Click on data, then after it opens up, look for data again
5. After that happens, scroll down the list till you find com.android.providers.settings and click on it
6. Click on databases and then click on settings.db
7. After you click on settings.db, then you will see system, click on that and it should open up a long list
8. Look for notification_panel_active_app_list. It will be near to the bottom of the list. You will see notification_panel_default_active_app_list. That is not the correct one. Make sure it says notification_panel_active_app_list.
9. Click and hold it till a sub menu pops up. Click on Edit Record
10. You're going to see a list of toggles under values
11. At the end of that list, make sure there is a ; after the last word. Then enter MobileData and put ; right after it. No spaces.
12. It should look like this for example: AirplaneMode;MobileData;
13. Now click Save, Reboot the phone and when it comes back up, you should have a MobileData toggle in your notification panel in your settings
Click to expand...
Click to collapse
Have you tried to add "FlashLight or Torch ?
One of those should work too.
Misterjunky said:
Have you tried to add "FlashLight or Torch ?
One of those should work too.
Click to expand...
Click to collapse
No I have not - but I would assume you could potentially do it the same way, couldn't you? As I posted, I merely copied this from someone else - so I really don't know if you can add torch that way or not?
My Wifi Hot Spot toggle quit working after the latest update. Any ideas how to get it back aside from wiping phone and Odin the full firmware?
pipergca said:
My Wifi Hot Spot toggle quit working after the latest update. Any ideas how to get it back aside from wiping phone and Odin the full firmware?
Click to expand...
Click to collapse
delete you WiFiHotSpot; entry
save and reboot
add again
save
Deleted
add ;Toolbox; to the list. Same as the s5 toolbox http://www.androidcentral.com/how-use-and-customize-toolbox-samsung-galaxy-s5
;ToddlerMode; adds network restriction toggle
Code:
Toolbox;
Seems to add an ICON but the toolbox does not seem to come up.
Flame Red said:
Code:
Toolbox;
Seems to add an ICON but the toolbox does not seem to come up.
Click to expand...
Click to collapse
Same here. Not sure how to get this to work.
Also, has anyone gotten the FlashLight / Flashlight / Torch to work?
Flashlight / Torch do not work, but FlashLight works by adding an empty toggle with no icon, and when I click on it, nothing happens.
Any ideas?
Is there a way to add "flashlight" to this as well?
Works, thanks a lot!

[Guide] Change WiFi auto switch off time (15 minute default) to any vaule.

Hello this is my first contribution to the forum.
About the tweak
This modification is usefull for people who (like me) use the setting "keep wifi on only when plugged in". This setting basically turns the wifi off after a default time interval since the screen was turned off (the default is 15 minutes). For some people this time is way to long to wait before switching the wifi off. So after some research I found a way to reduce this time to any time interval desired.
Procedure
The modification process is simple, the only thing needed is an Sqlite database editor, I preffer Sqlite Editor from the playstore.
steps:
1. first of all, install an sqlite database editor (it can be for PC)
2. locate the following file: /data/data/com.android.providers.settings/databases/settings.db
3. open the file with the Sqlite software or APP (you should see something like the first thumbnail attachment)
4. proceed to the Secure section
5. create the following record/key: "wifi_idle_ms" without quotation marks
6. the value for the new record/key is what defines the time to wait after screen off to switch off the wifi and is in milliseconds,
example:
enter 120000 to wait 2 minutes
7. save the changes and reboot.
8. if you ant to undo the changes just delete the record you just created or set it to be 900000 (15 minutes)
the second thumbnail attachment is what my setting looks like with 2 minutes wait time.
This should work on any rom, hope this is usefull for someone
-decipher- said:
Hello this is my first contribution to the forum.
About the tweak
This modification is usefull for people who (like me) use the setting "keep wifi on only when plugged in". This setting basically turns the wifi off after a default time interval since the screen was turned off (the default is 15 minutes). For some people this time is way to long to wait before switching the wifi off. So after some research I found a way to reduce this time to any time interval desired.
Procedure
The modification process is simple, the only thing needed is an Sqlite database editor, I preffer Sqlite Editor from the playstore.
steps:
1. first of all, install an sqlite database editor (it can be for PC)
2. locate the following file: /data/data/com.android.providers.settings/databases/settings.db
3. open the file with the Sqlite software or APP (you should see something like the first thumbnail attachment)
4. proceed to the Secure section
5. create the following record/key: "wifi_idle_ms" without quotation marks
6. the value for the new record/key is what defines the time to wait after screen off to switch off the wifi and is in milliseconds,
example:
enter 120000 to wait 2 minutes
7. save the changes and reboot.
8. if you ant to undo the changes just delete the record you just created or set it to be 900000 (15 minutes)
the second thumbnail attachment is what my setting looks like with 2 minutes wait time.
This should work on any rom, hope this is usefull for someone
Click to expand...
Click to collapse
Thanks. Can I get help ? After 15 mins with WiFi On and the screen is locked. We don't get any notifications , Internet notifications like WhatsApp , Facebook , Hangouts , Nimbuzz. But Call and SMS Work. The problem is the device doesn't wakes up. And when I finally unlock my phone a flood of notifications occurs. I tried using PND App from PS. I think it works but ain't sure. I also switched off Greeniffy. I'm on Stock CM 12.1 30/7 build.
AmolAmrit03 said:
Thanks. Can I get help ? After 15 mins with WiFi On and the screen is locked. We don't get any notifications , Internet notifications like WhatsApp , Facebook , Hangouts , Nimbuzz. But Call and SMS Work. The problem is the device doesn't wakes up. And when I finally unlock my phone a flood of notifications occurs. I tried using PND App from PS. I think it works but ain't sure. I also switched off Greeniffy. I'm on Stock CM 12.1 30/7 build.
Click to expand...
Click to collapse
This is normal behaviour because wifi turns off, revert changes or reflash rom to get normal behaviour back. This guide was actually ment to reduce the default 15 minute wifi off time to any value desired.
You are on CM ?
@-decipher- Buddy, this is same thing? Heartbear Interval?
AmolAmrit03 said:
@-decipher- Buddy, this is same thing? Heartbear Interval?
Click to expand...
Click to collapse
I actually found an app that would do this tweak and reactivate wifi periodically, the timers can be configured at will. LeanDroid you should try it.
-decipher- said:
I actually found an app that would do this tweak and reactivate wifi periodically, the timers can be configured at will. LeanDroid you should try it.
Click to expand...
Click to collapse
Its a Battery Saver thing. Can you look into Push Notification Fixer App on PS ? And Tell me If it does the same thing? Your method is regarding HeartBeat Interval? Please @-decipher-
AmolAmrit03 said:
Its a Battery Saver thing. Can you look into Push Notification Fixer App on PS ? And Tell me If it does the same thing? Your method is regarding HeartBeat Interval? Please @-decipher-
Click to expand...
Click to collapse
No, it does not change heartbeat interval.
@-decipher- this automatic WiFi Off always happens in Custom ROMs and not in Stock ROMs
activating/dezactivating all the time and other skedule third party apks i think will only take more battery juice instead of helping, just use keep wifi on sleep = never option and it will be the best solution and disable wifi scaning
dont trow stuff in me for this opinion.

Volume Steps Adjustment

I don't find any "ro.config.vc_call_vol_steps=......" or "...... music_vol_steps=....." settings in the A7 build.prop.
I added these lines to my build.prop to increase the steps from the default (which appears to be 7) to 30, but saw no change after reboot.
Is anyone aware of where the size of the volume steps is set, so I might make the steps smaller in adjustment?
Thanks
amphi66 said:
I don't find any "ro.config.vc_call_vol_steps=......" or "...... music_vol_steps=....." settings in the A7 build.prop.
I added these lines to my build.prop to increase the steps from the default (which appears to be 7) to 30, but saw no change after reboot.
Is anyone aware of where the size of the volume steps is set, so I might make the steps smaller in adjustment?
Thanks
Click to expand...
Click to collapse
Try and see if ro.config.media_vol_steps and ro.config.vc_call_steps works for you.
razorblader said:
Try and see if ro.config.media_vol_steps and ro.config.vc_call_steps works for you.
Click to expand...
Click to collapse
Tried it as you typed and also ro.config.vc_media_steps=30
but neither made a difference. I suspect it is set somewhere in the SystemUI where I don't have access.
Thanks
amphi66 said:
Tried it as you typed and also ro.config.vc_media_steps=30
but neither made a difference. I suspect it is set somewhere in the SystemUI where I don't have access.
Thanks
Click to expand...
Click to collapse
Thanks for the feedback, was gonna try this as well once I'll root my phone.
amphi66 said:
I don't find any "ro.config.vc_call_vol_steps=......" or "...... music_vol_steps=....." settings in the A7 build.prop.
I added these lines to my build.prop to increase the steps from the default (which appears to be 7) to 30, but saw no change after reboot.
Is anyone aware of where the size of the volume steps is set, so I might make the steps smaller in adjustment?
Thanks
Click to expand...
Click to collapse
If you want to, you can use gravity box to change it.
amphi66 said:
Tried it as you typed and also ro.config.vc_media_steps=30
but neither made a difference. I suspect it is set somewhere in the SystemUI where I don't have access.
Thanks
Click to expand...
Click to collapse
I've just tested this on B08 rooted and it works are you sure you've disabled system write protection so that your build.prop changes survive a reboot?
razorblader said:
I've just tested this on B08 rooted and it works are you sure you've disabled system write protection so that your build.prop changes survive a reboot?
Click to expand...
Click to collapse
I'm good there.
Thinking back tho, I only checked the ring tone steps from the home page (and that wasn't one of the volume adjustments made), so very like that build.prop edit DID work for what it was set for. I'll try again.
BTW, did you use the "media" or "music" entry?
amphi66 said:
I'm good there.
Thinking back tho, I only checked the ring tone steps from the home page (and that wasn't one of the volume adjustments made), so very like that build.prop edit DID work for what it was set for. I'll try again.
BTW, did you use the "media" or "music" entry?
Click to expand...
Click to collapse
'media' as the 'music' variant doesn't seem to work on newer iterations of Android any more.
ro.config.media_vol_steps=80
ro.config.vc_call_vol_steps=40
These settings work for me.
I just found this thread and I'd like to make this change on my phone too.
I find my phone has to go up to about 80% max volume before I can really hear things on the headphones/earbuds and at that point, it's only a couple clicks away from max volume.
I'm not very familiar with Android stuff yet, so could somebody provide me with some very basic step-by-steps on how to do this or where to find the file to change?
My phone is the US version, running B20 with locked BL but is rooted.
mozerxdaven said:
I just found this thread and I'd like to make this change on my phone too.
I find my phone has to go up to about 80% max volume before I can really hear things on the headphones/earbuds and at that point, it's only a couple clicks away from max volume.
I'm not very familiar with Android stuff yet, so could somebody provide me with some very basic step-by-steps on how to do this or where to find the file to change?
My phone is the US version, running B20 with locked BL but is rooted.
Click to expand...
Click to collapse
The suggestions in this thread only change the increments between volume steps, NOT overall volume. Good luck!
amphi66 said:
The suggestions in this thread only change the increments between volume steps, NOT overall volume. Good luck!
Click to expand...
Click to collapse
Yes, I understand this only changes the increments, but I would still like to find out how to make the change so I can have finer-grained control of the volume, even at higher levels.
mozerxdaven said:
Yes, I understand this only changes the increments, but I would still like to find out how to make the change so I can have finer-grained control of the volume, even at higher levels.
Click to expand...
Click to collapse
It's pretty straight forward since you are rooted: use a File Manager & Text Editor to add the lines below to /system/build.prop Save & then reboot. Your option as to the number of steps.
It is always good practice to make a nandroid backup prior to making changes to give you a recovery point in the event of a mistype or other error. Goodluck
ro.config.media_vol_steps=30
ro.config.vc_call_vol_steps=30
amphi66 said:
It's pretty straight forward since you are rooted: use a File Manager & Text Editor to add the lines below to /system/build.prop Save & then reboot. Your option as to the number of steps.
It is always good practice to make a nandroid backup prior to making changes to give you a recovery point in the event of a mistype or other error. Goodluck
ro.config.media_vol_steps=30
ro.config.vc_call_vol_steps=30
Click to expand...
Click to collapse
I did as suggested but it didn't seem to change anything for me.
I had to use the command to unlock system file changes first, because the change wasn't sticking after reboot at first.
I put those 2 lines at the bottom of the /system/build.prop file
Is it working properly on your phone?
Edit:: Scratch that, i was looking at the ringtone slider rather than the media/apps volume control.
Thank you!
mozerxdaven said:
I did as suggested but it didn't seem to change anything for me.
I had to use the command to unlock system file changes first, because the change wasn't sticking after reboot at first.
I put those 2 lines at the bottom of the /system/build.prop file
Is it working properly on your phone?
Edit:: Scratch that, i was looking at the ringtone slider rather than the media/apps volume control.
Thank you!
Click to expand...
Click to collapse
Yep, changing ringtone steps is tougher. It takes an edit of a System UI .jar file or the use of an Exposed Module.
Glad these worked for you!

Settings Database Editor tweaks

I've been playing around with an app called "Settings Database Editor" and found some very cool tweaks that don't require root. It does require you to run "adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS" on a computer though. Also sidenote, I'm not the creator of this app just stumbled across it on the play store and found some really cool things that it enables you to tweak on the S8.
In the tab "global" there are values for "transition_animation_scale", "animator_duration_scale", and "window_animation_scale" if you have development options enabled then you're probably familiar with these settings but with this you can tweak it to the exact scale you'd like instead of being limited to 7 different preset scales.
And in the tab "global" there is a value called "display_size_forced" by looking at the value set it seems to be what Settings -> Display -> Screen resolution is set to, maybe this will allow a wider range of resolutions instead of the 3 presets we get?
There's a bunch more tweaks, it's worth a look through
V0idst4r said:
I've been playing around with an app called "Settings Database Editor" and found some very cool tweaks that don't require root. It does require you to run "adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS" on a computer though. Also sidenote, I'm not the creator of this app just stumbled across it on the play store and found some really cool things that it enables you to tweak on the S8.
In the tab "global" there are values for "transition_animation_scale", "animator_duration_scale", and "window_animation_scale" if you have development options enabled then you're probably familiar with these settings but with this you can tweak it to the exact scale you'd like instead of being limited to 7 different preset scales.
And in the tab "global" there is a value called "display_size_forced" by looking at the value set it seems to be what Settings -> Display -> Screen resolution is set to, maybe this will allow a wider range of resolutions instead of the 3 presets we get?
There's a bunch more tweaks, it's worth a look through
Click to expand...
Click to collapse
Are you able to change the quick toggles to less than 6? :silly:
PieceofSlice said:
Are you able to change the quick toggles to less than 6? :silly:
Click to expand...
Click to collapse
Yup there if you look there is an option called qs_tile_column, qs_tile_row, and qs_tile_column_landscape under secure. Just make sure not to set it to 1 otherwise SystemUI will go into a crash loop and renders your phone completely useless until you use adb to change the settings back. If you don't have usb debugging on you may be forced to do a factory reset
V0idst4r said:
Yup there if you look there is an option called qs_tile_column, qs_tile_row, and qs_tile_column_landscape under secure. Just make sure not to set it to 1 otherwise SystemUI will go into a crash loop and renders your phone completely useless until you use adb to change the settings back. If you don't have usb debugging on you may be forced to do a factory reset
Click to expand...
Click to collapse
So I cant have just one row of tiles? Also, just a bit confused on how to actually use the app. I plus my phone into my PC and run some command in CMD? I just want like a 1*4 (x,x,x,x) How would I add tiles back if I wanted them?
PieceofSlice said:
So I cant have just one row of tiles? Also, just a bit confused on how to actually use the app. I plus my phone into my PC and run some command in CMD? I just want like a 1*4 (x,x,x,x) How would I add tiles back if I wanted them?
Click to expand...
Click to collapse
The crash might only happen with columns, don't really want to mess up my daily driver again
[/QUOTE]
And in the tab "global" there is a value called "display_size_forced" by looking at the value set it seems to be what Settings -> Display -> Screen resolution is set to, maybe this will allow a wider range of resolutions instead of the 3 presets we get?
There's a bunch more tweaks, it's worth a look through[/QUOTE]
You do know in developers settings you can change the dpi to what ever you want?
Sent from my iPad using Tapatalk
And in the tab "global" there is a value called "display_size_forced" by looking at the value set it seems to be what Settings -> Display -> Screen resolution is set to, maybe this will allow a wider range of resolutions instead of the 3 presets we get?
There's a bunch more tweaks, it's worth a look through[/QUOTE]
You do know in developers settings you can change the dpi to what ever you want?[/QUOTE]
You're mistaken, display_size_forced isn't the dpi.
PieceofSlice said:
So I cant have just one row of tiles? Also, just a bit confused on how to actually use the app. I plus my phone into my PC and run some command in CMD? I just want like a 1*4 (x,x,x,x) How would I add tiles back if I wanted them?
Click to expand...
Click to collapse
Changing the number of QS columns is totally possible using the System UI Tuner app in the Play Store, I've successfully changed mine to 7 columns, but I've also tested it with as little as 3 columns.
Sent from my SM-G950U using Tapatalk
i was hoping this tool would allow me to change the default sms app to hangouts, however, the editor is not preserving my change (and yes, i issued the required command). does anyone have a suggestion to fix this? thanks.
cortez.i said:
i was hoping this tool would allow me to change the default sms app to hangouts, however, the editor is not preserving my change (and yes, i issued the required command). does anyone have a suggestion to fix this? thanks.
Click to expand...
Click to collapse
Google took out support for hangouts as an SMS app the end of may. It is no longer possible to use hangouts with an actual phone number unless it's a Google voice number
You can use this method to change the default install location. Just throwing that out there, it's under Global in the app. You can also add your own settings, if I knew what the hell I was doing I'd add them, but have to imagine if I play around with Tasker or extract activities and intents from other apps that use secure settings, etc... This might give us at least some flexibility. I am beyond frustrated with lack of root on this phone, coming from LG v10, I was really relying on the Galaxy community to come through on this device. Still holding out hope.
---------- Post added at 01:55 PM ---------- Previous post was at 01:54 PM ----------
I also just used this to turn off the Brightness Warning, under Global I went to "limit_brightness_state" and changed "80, 80" to "100,100"... warning gone.
The new Update from T-Mobile broke the changes I made here in quick settings. It's now just a blank box entirely. Damn
Nevermind went in and change to 5 and then back to 7 and all is well again
klark1kent said:
You can use this method to change the default install location. Just throwing that out there, it's under Global in the app. You can also add your own settings, if I knew what the hell I was doing I'd add them, but have to imagine if I play around with Tasker or extract activities and intents from other apps that use secure settings, etc... This might give us at least some flexibility. I am beyond frustrated with lack of root on this phone, coming from LG v10, I was really relying on the Galaxy community to come through on this device. Still holding out hope.
---------- Post added at 01:55 PM ---------- Previous post was at 01:54 PM ----------
I also just used this to turn off the Brightness Warning, under Global I went to "limit_brightness_state" and changed "80, 80" to "100,100"... warning gone.
Click to expand...
Click to collapse
I did this and it worked for about a day, then started asking me again
Acoustichayes said:
I did this and it worked for about a day, then started asking me again
Click to expand...
Click to collapse
Noticed this too but not until after I got recent tmo update. I haven't had a chance to troubleshoot but it's either related to the update or the setting reverts on reboot. Seems like one of those settings it'd be better to change with a script on boot. Man I miss root. I had successfully changed all settings again after tmo update but reboot killed it. I'm gonna try grant permissions via adb again to see if the settings will stick at some point...ah well
klark1kent said:
Noticed this too but not until after I got recent tmo update. I haven't had a chance to troubleshoot but it's either related to the update or the setting reverts on reboot. Seems like one of those settings it'd be better to change with a script on boot. Man I miss root. I had successfully changed all settings again after tmo update but reboot killed it. I'm gonna try grant permissions via adb again to see if the settings will stick at some point...ah well
Click to expand...
Click to collapse
I haven't updated on tmobile and it still happened. I believe it's a on reboot thing. What's weird is in the app it still shows my settings to 100,100. I'm going to try to set it again to see if its an error in the app showing wrong values. Because I notices when you change the tether requirement to 0, it always switches back to 1
Update: I just checked the app and now it's showing null for my limit brightness again. Put it back to 100, 100 and its working fine. Will try to see if it sticks on reboot
Double update : settings stayed after boot
Acoustichayes said:
I haven't updated on tmobile and it still happened. I believe it's a on reboot thing. What's weird is in the app it still shows my settings to 100,100. I'm going to try to set it again to see if its an error in the app showing wrong values. Because I notices when you change the tether requirement to 0, it always switches back to 1
Update: I just checked the app and now it's showing null for my limit brightness again. Put it back to 100, 100 and its working fine. Will try to see if it sticks on reboot
Double update : settings stayed after boot
Click to expand...
Click to collapse
It's weird man. One thing I noticed would looking into something else was that under apps inactive app in developer settings the database editor was some how set to inactive. I'm guessing it could be a battery thing maybe due to power saving settings. Maybe need to turn off all battery optimization for this. I'll gonna hopefully used Tasker to automate changes at boot and keep active.
Add personal mode tile
I want to add PersonalMode using the same procedure.
Plz can you help me with the exact string to add in setting db
I've tried with (PersonalMode) without success.
I am on a custom rom for note5. Running note 7 fun edition
sysui_qs_tiles :
Wifi,SilentMode,MobileData,WifiHotspot,RotationLock,custom(com.samsung.android.smartmirroring/.tile.SmartMirroringTile),Flashlight,custom(com.samsung.android.app.aodservice/.settings.AODTileService),Bluetooth,BlueLightFilter,Location,ScreenCapture,AirplaneMode,RedPacket,work
Click to expand...
Click to collapse
Thank you.
d.cortez said:
i was hoping this tool would allow me to change the default sms app to hangouts, however, the editor is not preserving my change (and yes, i issued the required command). does anyone have a suggestion to fix this? thanks.
Click to expand...
Click to collapse
try adding or moding this setting under (secure) without quotes "sms_default_application" and the setting value is
"com.google.android.apps.hangoutsdialer" if you use the hangouts dialer.. if not then "com.google.android.talk" for hangouts..
Hi everybody, i Have a Honor 8 and I used settings database editor to hide navigation bar using the command hide_virtual_key (Value = 1). And it worked perfectly.. but when I wanted to recover it, it dosn't work .. i used value 0 .. with the app and using abd shell .
Is anyone have a solution ???? .. thanks
aaitzaouit said:
Hi everybody, i Have a Honor 8 and I used settings database editor to hide navigation bar using the command hide_virtual_key (Value = 1). And it worked perfectly.. but when I wanted to recover it, it dosn't work .. i used value 0 .. with the app and using abd shell .
Is anyone have a solution ???? .. thanks
Click to expand...
Click to collapse
I'm not sure if this will work, but try setting it back to defaultand install systemui tuner and messing with the immersive mode setting. Also, enable the touch bar (the new Oreo setting that gives you the circle that acts like the soft keys.)
Why did you even disable that in the first place? If you want it fully back, you have to reset your phone.

Categories

Resources