How to turn off sound when plugged/unplugged Android Wear - Wear OS Q&A, Help & Troubleshooting

I have a Fossil Gen 5 smartwatch and as soon as I plug the watch it makes a sound and when unplugging, the same sound. Putting the watch manually to DND would solve the problem but if I forget, i'll wake up the girlfriend
Anybody know the value in Global / Secure or System settings for this? I would change the setting or clear the key to have it shut up. I tried Autowear with Theater mode but it still makes the sound when plugged/unplugged.
Any help is welcomed

Autowear should can do it, change the category global, key zen_mode to 1. Automagic actually also can do it natively, but the write secure permission for the companion app is missing. I have requested to have it added.
But as usual, modifying system setting doesn't mean it is always reflected by the OS immediately. If that doesn't work, most likely it require API to trigger the DND.

I tried Autowear... I can write almost anything (like theater from 0 to 1 or change sound level but the zen_mode doesn't change sadly. If you have ideas and what is needed for the permission of Automatic to have it work it would be much appreciated

CoOlSlY said:
I tried Autowear... I can write almost anything (like theater from 0 to 1 or change sound level but the zen_mode doesn't change sadly. If you have ideas and what is needed for the permission of Automatic to have it work it would be much appreciated
Click to expand...
Click to collapse
If autowear can't, Automagic can't do it also, since the OS doesn't reflect the changes. My ticwatch E has system apk that responsible for the charging animation. Uninstalling it (via adb) will remove the animation. I wonder if yours, have the same method too. Maybe uninstalling the system apk can remove the sound. But do with your own risk.

Which command should I issue to remove the system apk? I don't really mind having problems to solve or recover

You can connect to adb first. See the tichwatch for example. Then list all the package you have
Code:
pm list packages
The charging animation should be handled by some fossil built-in app. You have to take the risk then. Try to google the packagename first before doing anything, you might get some clue.
if the packagename all start with certain words, and you want to filter for it, you can add grep
Code:
pm list packages | grep fossil
Then if you already sure about which one to disable, you can execute it. Replace the packagename with the one you found.
Code:
adb shell pm disable-user --user 0 com.nameofthepackagename
Do with your own risk!

Related

List of unsolved registery tweaks. Need help.

Ok a lot of fun can be discovered from changing registry entries and seeing what they can do. Here is a small guide:
If an entry has a 0 it means it is disabled or off. If it has a 1 it means it is enabled or on.
Remember and make a note of any change you make in case you need to put it back.
Search for common words in the entries and see what they relate to and if they can be changed Eg:
disable, enable, show, hide, lsk, sms, boost, cache, icon etc. Go through each one. Make any changes you want based on logic of the entry and reset maybe. Go to the app where you would expect to see the change and see if your tweak has worked. If not change the reg back again.
Report back here any discoveries or potential discoveries you come across and maybe we can give advice on what should be changed in the reg entry.
Be in the frame of mind you may need to do a hard reset as a last resort so back up PIM first.
I will make a list of new potential tweaks soon and maybe someone could advise on how we can change it. Any changes found will be added to the hints and tips thread.
Here are a few to get started. Please respond with ideas if you can help and submit your own findings too.
1. HKCU\Software\HTC\WebSnapShot
Enabled currently set to 0.
Which app would use this if we enabled it?
2. HKLM\Drivers\BuitIn\GSensor
EnableShaking currently set to 0.
Sounds useful somewhere.
3. HKLM\Services\MyPhoneService
IsEnabled currently set to 1.
If we disable this if we don't use MyPhone will this free up some services/resources/memory?
4. HKLM\Software\HTC\Camera\Common
DisableCapAnimation currently set to 1.
I presume this means some sort of caputre animation when taking a photo (like the iphone when the iris closes). I tried setting this to 0 to enable it but saw no animation when I took the photo. Maybe something else needs to be done.
5. HKLM\Software\HTC\HTCMessaging
DisableCacheWhenLengthierMessage currently set to 1.
This mean cache is off with long sms messages. If we turned on cache would this be good?
6. HKLM\Software\HTC\HTCMessaging
ManilaEntry currently set to 0.
I set this to 1 but could not find any change. Maybe I am looking in the wrong place.
7. HKLM\Software\HTC\HTCSettings_Improvement
HavePersonalSecurity currently set to 0.
I have set this to 1 and a new option suddenly appears in the Manila Settings tab below About Phone option. It is ABPS, ISP, network location service (Personal Info Center). However tapping on it does not open it up. Hmmmm...
8. HKLM\Software\Tegic\T9
Prediction is currently set to 0.
I thought T9 prediction is already part of it? What could this do if we turned it on?
9. HKLM\Services\Windows Live\Plugins\Mail
Max Mail Headers currently set to 50.
Dy defualt Hotmai only downloads the last 50 messages. I tried changing this entry to 75 but no luck. Anyone else?
Anyone want to get involved? I think it could be a good challenge and we may discover a gem of a tweak.

[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..

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.

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

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.

NST slideshow

Does anyone know how to invoke the slideshow (and how to get out of it).
Do you mean demo mode -> com.nook.partner.daydream.DayDream?
Maybe try:
Code:
adb shell am start -n com.nook.partner.daydream.DayDream
(I don't have partner.apk running so I can't tell immediately.)
Renate NST said:
Do you mean demo mode -> com.nook.partner.daydream.DayDream?
Maybe try:
Code:
adb shell am start -n com.nook.partner.daydream.DayDream
(I don't have partner.apk running so I can't tell immediately.)
Click to expand...
Click to collapse
No, that doesn't do it. ADB returns the error: Bad component name: com.nook.partner.daydream.DayDream
I found this in another post for DISabling demo mode (thought that might be useful....):
"--- turn your Nook ON
--- go to Settings - Screen - on Screen window press-and-hold top-right button AND same time keep tapping the "Screen" caption (on a top of display)
--- Demo Mode will pop up on your display
--- undo 'Toggle the demo mode'
--- now to activate "normal" mode switch off-and-on your Nook !"
This does, indeed make a third entry appear under "Screen" (and greys out the screen timeout option), but checking the toggle demo mode option doesn't seem to do anything so I guess there is additional magic, some odd button combination or a secret handshake, dance, etc., that actually starts demo mode. That knowledge remains unknown to this mortal. Powering down/restarting, rebooting or putting the screen to sleep and reawakening (I didn't try a kiss...) did not do anything. And it just went to sleep on its own right now and on awakening was still in normal mode
I know there is a db entry where the mode can presumably be turned on or off, but the same requirement for additional unknown falderol may apply to actually get the show started. Hmm.
Edit: OK, so I took a look at the packages. Perhaps the one you suggested is for the newer Nooks? Anyway, there is com.bn.demomode so I tried a similar command to the one you suggested: am start -n com.bn.demomode.DemoMode. I got the same error as before (Bad component name).
HOWEVER.....as I was typing this the device just started going through the slides!? So I have discovered one thing already. It's not going to work for what I had hoped. It apparently only reads png images and there is no control over the slides at all, just a relentless circle of the images.
The good news is that the instructions for getting out of demo mode work
The slides are resources inside partner.apk:
res/drawable-xhdpi-v4/demo_00_splash.png
res/drawable-xhdpi-v4/demo_01_glowlight.png
res/drawable-xhdpi-v4/demo_02_display.png
res/drawable-xhdpi-v4/demo_03_navigation.png
res/drawable-xhdpi-v4/demo_04_shop.png
res/drawable-xhdpi-v4/demo_05_touch.png
res/drawable-xhdpi-v4/demo_06_battery.png
res/drawable-xhdpi-v4/demo_07_support.png
res/drawable-xhdpi-v4/demo_08_wifi.png
If you want a real slide show, it's probably better to use an app.
Renate NST said:
The slides are resources inside partner.apk:
res/drawable-xhdpi-v4/demo_00_splash.png
res/drawable-xhdpi-v4/demo_01_glowlight.png
res/drawable-xhdpi-v4/demo_02_display.png
res/drawable-xhdpi-v4/demo_03_navigation.png
res/drawable-xhdpi-v4/demo_04_shop.png
res/drawable-xhdpi-v4/demo_05_touch.png
res/drawable-xhdpi-v4/demo_06_battery.png
res/drawable-xhdpi-v4/demo_07_support.png
res/drawable-xhdpi-v4/demo_08_wifi.png
If you want a real slide show, it's probably better to use an app.
Click to expand...
Click to collapse
Again, I think those might be for a device other than the original NST. There seems to be no partner.apk on the NST and the images for demo mode are in /system/media/slideshow/standard/default but I agree with you about the need for something else. I was just checking to see if a local resource could be harnessed before I looked for something external.
nmyshkin said:
Again, I think those might be for a device other than the original NST.
Click to expand...
Click to collapse
Oops. Sorry, I got all confused. I was thinking NG2 or NG3.
Code:
# cd /data/data/com.android.providers.settings/databases
# sqlite3 settings.db
sqlite> update secure set value='on' where name='demo_mode';
sqlite> .q

Categories

Resources