[Q] change live wallpaper with tasker - Nexus 7 Q&A, Help & Troubleshooting

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

Related

[6.19Update]Mini Weather 1.4

Mini Weather 1.4
[6.19 Update]
Fix follow bugs:
a.Weather data displays without spaces
b.The "day" use Weekday instead of date
c.Add a default picture when the Condition had not defined
What's new?
1.Support weather Icon on WM6.1 CHome, Normal theme(SmartPhone 2003,05,06 PPC 03/05/06);
2.Free software; Mini,needn't run in background,use system resource;
3.Could be get Weather by user define
4.Support weather background
How to use?
1.Install
If you use old version, please start Mini Weather->Setting->Clean Notify->Yes->Exit,and delete the Mini Weather folder. Then setup Mini Weather 1.4 English.CAB to you phone.
2.How to use?
a.Start Mini Weather,go to Setting->Normal setting, select your connect,Src(you can add a data src, and named as MiniConfigX.ini(X can be 1 to 8),City(you can add your city by modify miniconfigX.ini), Save and try "Update to home", if return right info, check if it show on the home. if return error info, please check you network setting or you data source.if succeed, to update to CHome, it will change to a invalid theme, then it will change to last theme.
b.Automatic Update. Go to Setting->Advanced Setting, select the time you want to update, such as 07:30, then add, you can add 12 update times, Save and exit, you needn't keep it run in background,it will update on time. if you select DateChan and add a time(such as 00:01), Mini Weather will change the second day's weather to today, but no connect to network to update. you can also set a eary update time(such as 06:15), it also update weather on Home
c.About some options
(1)When you select Normal theme show as icon or PPC show as icon:
t1,t2,t3,mean item of the line 1,2,3 to show
x1,y1: First icon's position, x2,y2: Second icon's position
R,G,B: Text Color Size: Text font size
Zoom1,Zoom2: First,Second icon size, between 16 to 40
if you want to use you theme,please change you backgroud to "\new.bmp", SPO3 is "\storage\new.bmp"
(2)When you select SlidingPanel:
t1,t2,mean item of the line 1,2 to show when you select the weather panel
t3,Item to show when you unselect the weather panel
3.Uninstall
Go to Setting->Main display->select your theme->Save, start Mini Weather->Setting->Clean Notify->Yes->Exit, and delete the Mini Weather folder.
4.Advanced application
a.Update after synchronization
If you use this funtion, Mini Weather will update after you phone synch with PC, it will use PC's network. Attention, please may sure you want to use this funtion. If you delete or move this software, may be it well have a Notify Error when your phone synchron,Smartphone 2003 may not have tools to clear.
b.How to modify the ini file? How to add another webpage data?
Please read "data source.txt"
c.Add/Modify Icon
Icon define in Iconcfg.ini, you can modify it to add other icon. Now it doesn't full, because my english is so poor, and i don't know the all weather string. I hope some one add more string to it, and share.
here is the iconcfg.ini, i exp something:
[ICON]
Icons=8
;Icons number
Icon1=micon\1
;first icon file name,
Bg1=sun
;first weather background picture file name,
Weather1=Clear
;if the weather include string "Clear", it will use first icon micon\1.png in Chome, Normal theme will use micon\1.bmp/png/jpg
;as same as Icon1.....you can use "," between two string,like "Cloudy,Rain", means use the icon while the weather include both of two string
Icon2=micon\1
Bg2=sun
Weather2=Sunny
d.Parameter
"-AutoGet" Update weather to home then exit;
"-GetTime" Get network time and save to system time;
Smone
2008.5.31
WOW!!
Thanks. Just installed and enjoying it.
Question:
In the Data source.txt , it's mentioned:
Days=4
;how many days in the weather info,if RealTime is 1,please add 1;
So,does Days=5?
Thanks
I get update failed all the time
loe84 said:
1.Support weather Icon on WM6.1 CHome, text on Normal theme(SmartPhone 2003,05,06 PPC 03/05/06);
2.Free software; Mini,Just 160KB(include icon); needn't run in background,use system resource;
3.Could be get Weather by user define
Please read the Readme.txt in the zip file.
Click to expand...
Click to collapse
How about releasing the source code for it ?
sorry, i make mistake, i didn't config realtime weather in miniconfig1.ini, it just have 3 days weather, so Days=3,
OrganicM
I haven't think releasing the all source code
Nice program
But just wonder, is this for Smartphone.............sorry for my stupid question..
cheerz
queer~dude said:
But just wonder, is this for Smartphone.............sorry for my stupid question..
cheerz
Click to expand...
Click to collapse
smartphone and ppc,
come from Hong Hong?
I come from GuangZhou,China,
you can try chinese version
hey man
loe84 said:
smartphone and ppc,
come from Hong Hong?
I come from GuangZhou,China,
you can try chinese version
Click to expand...
Click to collapse
yea i am from hong kong.....good to see you man and thanks for the information....i prefer english version...hehe...will try tonight when get back home...
cheerz
xfaith said:
I get update failed all the time
Click to expand...
Click to collapse
Check and correct your settings under "Connect"
Date
Sorry! Double post.See next post.
Thanks
Date
Why cant the date follow my "Regional Settings"?
Why is the "Humidity" and "Wind" condition not displayed?
I find the display from the previous version better with more info.
And any chance of having the temperature in C instead of in F? Yes I can change to C but the value is still in F!
What's this for:
[Goble]
...
...
...
CityAdd=
ConAdd=
Thanks
what is this theme for?
I got it to work, me stupid.
1. I forgot to put %20 for spaces on the ini.
2. I had to add back the plugin order back on the sliding panel.cpr file (organics doesn't use that). For some reason this one needs it.
3. I am creating a cab file, it should be done tonight, just need to verify the updates, need to add in the reg settings for the CWeather, and the Sliding Panel, everything else looks great.
This is a major improvement over the last one. I do miss Wind Speed/Humidity, but I might play with the Ini file to see if that would work.
Also it gives more then one page worth of info, with icons on all the pages.
X
@xfaith
see my pm on humidity and wind.
Why cant the date follow my Regional Settings?
What is this for? how is it implemented?
Nice, but did not see any Current Temp display? a must have for me...
I dont think I'll be having this installed for long unless the date format is according to my Regional Settings and the readings is in Celcius.
Thanks
Edit
After fiddling with the ini files and understanding it better, I find this apps suites my requirement perfectly. Its light weight and user configureable to choose which weather report provider. Update times are also very flexible.
So MiniWeather stays on my device.
Thanks
Display "Current" & "Forecast" conditions
How do I get both the "Current" & the "Forecast" conditions be displayed like the previous version?
How to convert to and display in Celsius?
<current_conditions>
<condition data="Haze"/>
<temp_f data="86"/>
<temp_c data="30"/>
<humidity data="Humidity: 49%"/>
<icon data="/images/weather/haze.gif"/>
<wind_condition data="Wind: mph"/>
</current_conditions>
-
<forecast_conditions>
<day_of_week data="Today"/>
<low data="77"/>
<high data="89"/>
<icon data="/images/weather/chance_of_storm.gif"/>
<condition data="Chance of Storm"/>
</forecast_conditions>
Edit
I managed to get the Current and day forecast displayed except that the time is not correctly displayed:
Currently 9:0
when it should be:
Currently 09:00
Thanks
Currently I am using one of the following url to sync my device time. It would be great if you can incorporate this too:
0.fr.pool.ntp.org
1.fr.pool.ntp.org
2.fr.pool.ntp.org
Can you explain more on the offset values. How do you determine the offset position and numbers?
Thanks
MiniWeather on CClock
Please tell how do you put the MiniWeather on the CClock slide??

[Research, Android 4.2] Try to enable multi user support on phones

Like we all know Google has decided that multi user support is only needed on tablet devices. I don't agree with Google here so right after I've got Android 4.2 on my Galaxy Nexus I started to do some research to get multi user support enabled. My goal was to get a generic app published (probably it needs root access) that would allow to enable multi user support on any Android 4.2 phone.
After some research I figured out this is not possible. Multi user support is deeply integrated into the OS and the only way to get it enabled is by modding a custom ROM. In my investigation I started looking at the AOSP source code. There are two entries points that are relevant: the new UserManager API checks if multi users are supported on the device and KeyguardHostView allows to switch users on the lock screen.
UserManager
If you don't already have the whole AOSP available then you can only download this repository:
git clone https://android.googlesource.com/platform/frameworks/base
base/core/java/android/os --> UserManager.java --> function getMaxSupportedUser():
SystemProperties.getInt("fw.max_users",
Resources.getSystem().getInteger(R.integer.config_multiuserMaximumUsers))
This can be achieved quite easily. Open a shell and type:
su
setprop fw.max_users 5 (actually any value > 1 works)
Now the user menu is visible in Android settings. Here you can choose "Create new user" just like you do on your Nexus 7. A new user account is created and your phone is running in the new user account. In the QuickSettings notification bar you go back to your lock screen. However the icons to switch users are missing. So let's look at the lock screen....
KeyGuard
Download the repository:
git clone https://android.googlesource.com/platform/frameworks/policies/base
base/policy/src/com/android/internal/policy/impl/keyguard --> KeyguardHostView.java
Actually what happens here is that KeyboardHostView is trying to add the KeyguardMultiUserSelectorView layout into the lock screen if the number of users is greater than one. Unfortunately we will see an exception in logcat because layout R.id.keyguard_user_selector is simply not included in phone layouts. Probably we could change build.prop to enable tablet mode and get it enabled, but that's not really what we want to do.
Now the idea is to develop a lock screen widget that would simulate the KeyboardHostView. The app probably needs to be installed as system app so it's available for all users. So let's go ahead and look what exactly is happening...
First the list of users is retrieved:
UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
um.getUserList()
This user list is added to KeyguardMultiUserSelectorView:
base/policy/src/com/android/internal/policy/impl/keyguard --> KeyguardMultiUserSelectorView.java
In order to finally switch users it just calls:
ActivityManagerNative.getDefault().switchUser(avatar.getUserInfo().id);
Doesn't really look like rocket science! Let's try to reproduce this in our own app....
Implementation
The UserInfo class (which is returned in a List in getUserList) is not included in Android SDK. Copy into your project from AOSP sources:
base/core/java/android/content/pm/UserInfo.java
Some little hack for a hidden constructor:
public UserHandle getUserHandle() {
// Constructor UserHandle(int) is hidden, use public constructor instead
Parcel pId = Parcel.obtain();
pId.writeInt(id);
return new UserHandle(pId);
}
Oh well, the UserManager.getUserList() is hidden. Use reflection to retrieve the user list:
List<UserInfo> users = new ArrayList<UserInfo>();
final UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE);
Method getUsers = userManager.getClass().getMethod("getUsers", null);
users = (List<UserInfo>) getUsers.invoke(userManager, null);
ActivityManagerNative is nowhere available. Use reflection to get an instance:
Class activityManagerNative = classLoader.loadClass("android.app.ActivityManagerNative");
Method getDefault = activityManagerNative.getMethod("getDefault", null);
Object instanceActivityManagerNative = getDefault.invoke(null, null);
Too lazy to figure out the proper call to getMethod, so just search for switchUser method:
Method switchUser = null;
Method methods[] = instanceActivityManagerNative.getClass().getDeclaredMethods();
for (Method m : methods) {
if (m.getName().equals("switchUser")) {
switchUser = m;
}
}
Call switch user with some ID that we retrieved from the user list:
switchUser.invoke(instanceActivityManagerNative, new Object[] { users.get(1).id } );
Executing this code will crash because we are missing some permissions....
Permissions
android.permission.MANAGE_USERS is needed for getUserList()
This permission has androidrotectionLevel="signature|system"
--> Install app in system partition (we'd like to do this anyway) and the permission is granted
android.permission.INTERACT_ACROSS_USERS_FULL is needed for switchUser(). However this permission has androidrotectionLevel="signature".
Here we can already stop because the app needs to be signed with platform key in order to get this permission. Sadly there's no way we can do this on devices with a retail firmware. Only way to get this permission is by building our own ROM from AOSP.
Besides, the alternative permission android.permission.INTERACT_ACROSS_USERS only has androidrotectionLevel="signature|system" but it seems this is not good enough for switchUser()....
Implementation in Custom ROMs
As we can directly modify the framework files this shouldn't be too much effort:
--> set the fw.max_users system property to a value > 1
--> copy the KeyguardMultiUserSelectorView layout from a tablet device (R.id.keyguard_user_selector)
I don't really have the time and motivation to maintain any custom ROMs so I'm stopping here.
Thanks!
Hey just wondering if you could explain more on the second part. I got the first part enabled perfectly. Thanks
illinoissparks18 said:
Hey just wondering if you could explain more on the second part. I got the first part enabled perfectly. Thanks
Click to expand...
Click to collapse
what do you exactly mean with "second part"?
If you don't mind root access then you can use Switchme. It's an app that allows user profiles to be created and used. It's fairly stable too.
McJesus15 said:
If you don't mind root access then you can use Switchme. It's an app that allows user profiles to be created and used. It's fairly stable too.
Click to expand...
Click to collapse
I know about Switchme. However this thread is only about Android's native user management.
Lol sorry I got the user tab to show up. Now i need the lockscreen features haha sorry
illinoissparks18 said:
Lol sorry I got the user tab to show up. Now i need the lockscreen features haha sorry
Click to expand...
Click to collapse
Probably you mean this part?
copy the KeyguardMultiUserSelectorView layout from a tablet device (R.id.keyguard_user_selector)
Click to expand...
Click to collapse
You can only achieve this my compiling from source and migrate the user selection view into the phone layout. The most complicated part is probably to find some free space on the screen
Native multi user support works on Android 4.2 phone
I've got Android 4.2 on my Galaxy Nexus I started to do some research to get multi user support enabled. After some research I figured out this is very simple. It is only two steps from native multi user support on your phone.
1. First of all you need to enable "User" menu in Android settings:
Open build.prop file with any text editor and add line (actually any value > 1 works):
fw.max_users=5
2.Next, to make the icons to switch users visible - change display resolution.
Open build.prop file with any text editor find line with parameter ro.sf.lcd_density and change value from 320 to 192
Save changes what you made just. Reboot your phone and enjoin native multi user support on your phone.
ArtuCer said:
I've got Android 4.2 on my Galaxy Nexus I started to do some research to get multi user support enabled. After some research I figured out this is very simple. It is only two steps from native multi user support on your phone.
1. First of all you need to enable "User" menu in Android settings:
Open build.prop file with any text editor and add line (actually any value > 1 works):
fw.max_users=5
2.Next, to make the icons to switch users visible - change display resolution.
Open build.prop file with any text editor find line with parameter ro.sf.lcd_density and change value from 320 to 192
Save changes what you made just. Reboot your phone and enjoin native multi user support on your phone.
Click to expand...
Click to collapse
The different density activates the tablet layout. But your apps and everything changes from phone UI to tablet UI as well, doesn't it?
ramdroid77 said:
The different density activates the tablet layout. But your apps and everything changes from phone UI to tablet UI as well, doesn't it?
Click to expand...
Click to collapse
Well, it is one more way.
ArtuCer said:
Well, it is one more way.
Click to expand...
Click to collapse
Yes it's possible, I wrote this in my analysis as well. But for daily use a phone is simply not usable when using the tablet UI.
ramdroid77 said:
Yes it's possible, I wrote this in my analysis as well. But for daily use a phone is simply not usable when using the tablet UI.
Click to expand...
Click to collapse
I got the multi-users running nicely with Vanilla RootBox and changing the screen density.
Is there no quick way to "hack" the x,y co-ords of the icons? Rather than compiling a full build? I don't mind tinkering, but don't really want to start creating full builds when the Rom I'm using is running nicely without it.
EDIT - solved.
Okay, found a simple way via:
http://forum.xda-developers.com/showthread.php?p=37146983
and
http://forum.xda-developers.com/showthread.php?t=2063195
OP, may I ask something?
Is it possible for a third party app (not a system app) to check if there is more than 1 user that uses the device?
if not, would root help?

[WIDGET][YotaPhone2]Yota Toolbelt 1.0.4

Introduction
What is it?
Yota Toolbelt is my stab at developing something useful for the Yotaphone 2. It's a functional widget for the back screen, combined with a simple front screen widget. It has been tested on the latest Lollipop firmware (1.44).
What it does?
- The front screen widget allows you to toggle mirroring mode with a single click.
- The back screen widget allows you to toggle mirroring, wifi, Bluetooth, wifi tethering, ringer mode and YotaEnergy. Additionally you can place shortcuts to URLs to open your favorite websites quickly.
- The new "Contact list" action allows you to browse your contact list, make calls and send SMS's from it.
Click to expand...
Click to collapse
Images
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Check the screenshots tab for more
Click to expand...
Click to collapse
Installation instructions
I'm not going to bother putting this on Google Play because of the extra work with little benefit, so you have to install the apk manually. Here's how:
1. Check "allow installation of apps from unkown sources" from Settings - Security so that you can install the file.
2. Download the apk file and put it on your phone, or download it to your phone directly.
3. Open the apk file with some file manager and install it.
After this you can add the front screen widget like you would add any widget, by long pressing your home screen, selecting widgets, and then dragging the "Yota Toolbelt" on your home screen.
The back screen widget can be added from Yotahub.
Click to expand...
Click to collapse
Download
Download here (1.0.4)
Click to expand...
Click to collapse
Changelog
Code:
Current changelog: 2015-07-11
Version 1.0.4
- [NEW] Toggle for Wifi tethering.
- [NEW] Toggle for ringer mode: Normal/Vibrate (Toggling silent mode is simply not possible on Lollipop - Thanks Google!)
- [CHANGE] Added shortcuts to related system settings on long press to all but the Mirror widget in the config utility.
Old change logs:
Code:
Version 1.0.3
- [NEW] General settings for Contact list. These settings affect ALL INSTANCES of contact lists.
---- Choose the sort order
---- Choose name format
---- Choose dialer (EPD / mirrored). This should be changed only if you are having trouble making calls from the Contact list.
---- Lock EPD automatically when calling from Contact list to prevent accidental presses.
- [NEW] Added fast scroll support for the Contact list
- [FIX] Fixed Contact list not always closing after sending SMS or making a call
- [FIX] Fixed Mirror widget starting in incorrect state when mirrored.
Version 1.0.2
- [NEW] Contact list
- [FIX] Fixed a bug where widgets would not react after a while
Version 1.0.1
- [NEW] More advanced configuration utility
- [NEW] Battery level monitor / YotaEnergy toggle
- [NEW] Support for bookmark shortcuts that can be opened in EPD browser
or the default system browser in mirrored mode
- [NEW] Support for all widget sizes
- [NEW] Support for white theme
- [CHANGE] Changed the graphics to follow Yota's icons more closely.
Click to expand...
Click to collapse
Known issues
- This Widget requires Lollipop to work. No backwards compatibility.
- The battery widget doesn't have push effect. Also, toggling YotaEnergy on takes surprisingly long time. There's nothing I can do about that.
Click to expand...
Click to collapse
FAQ
The graphics.. They look.. ehrm..
- Awesome, right!? I'm a programmer, not an artist. If someone wants to create new graphics for the widget, I am very willing to change them. Each button should be the same size, at least 140x140px.
What are all these permissions?
- Bluetooth/Wifi/Network permissions are required for toggling wifi and Bluetooth directly without the system's dialogs.
- The vibration permission allows the buttons to vibrate on click.
- The READ_CONTACTS permission is for the new contact list portion, allowing it to list your contacts.
- The PHONE_CALL permission is for making a call using the front screen's dialer.
- The READ_PHONE_STATE is used for making the "lock EPD on dial" function work
Click to expand...
Click to collapse
For developers
I had to do some serious reverse engineering to figure out how to activate and deactivate the mirroring and YotaEnergy, so to save everyone's time, here's how to do it:
Activate mirroring from front screen:
Code:
Intent i = new Intent("yotaphone.intent.action.MIRRORING_START");
context.sendBroadcast(i);
i = new Intent("yotaphone.intent.action.MIRRORING_START_MANUAL");
context.sendBroadcast(i);
Activate mirroring from back screen:
Code:
Intent i = new Intent("yotaphone.intent.action.MIRRORING_START_FROM_BS");
context.sendBroadcast(i);
Deactivate mirroring:
Code:
Intent i = new Intent("yotaphone.intent.action.MIRRORING_STOP");
context.sendBroadcast(i);
To check is mirroring on right now, and to lock the EPD (asynchronous):
Code:
ServiceConnection mConnection = new ServiceConnection() {
public void onServiceConnected(ComponentName className, IBinder service) {
IFrameworkService mService = IFrameworkService.Stub.asInterface(service);
boolean isMirroringOn = mService.isMirroringOn();
mService.lockBackScreen();
}
public void onServiceDisconnected(ComponentName className) {}
};
Intent i = new Intent("yotaphone.intent.action.GET_SERVICE_BINDER").setPackage("com.yotadevices.yotaphone2.bsmanager");
context.getApplicationContext().bindService(i, mConnection, Context.BIND_AUTO_CREATE);
//Remember to unbind when you don't need the service anymore
To detect when mirroring is started, listen for the following broadcast:
Code:
yotaphone.intent.action.MIRRORING_START
To detect when mirroring ends, listen for both of these broadcasts:
Code:
yotaphone.intent.action.MIRRORING_STOP_MANUAL
yotaphone.intent.action.MIRRORING_STOP
To turn YotaEnergy on:
Code:
final Intent i = new Intent("yotaphone.intent.action.POWERSAVE_START");
context.sendBroadcast(i);
To turn YotaEnergy off:
Code:
final Intent i = new Intent("yotaphone.intent.action.POWERSAVE_STOP");
context.sendBroadcast(i);
To open Yota's EPD browser:
Code:
Intent i = new Intent();
i.setComponent(new ComponentName("com.yotadevices.yotaphone.yd_browser", "com.yotadevices.yotaphone.yd_browser.BSBrowser"));
i.putExtra("URL_TO_OPEN", "http://www.google.com");
context.startService(i);
Click to expand...
Click to collapse
XDA:DevDB Information
Yota Toolbelt, Device Specific App for the YotaPhone
Contributors
Jeopardy
Version Information
Status: Stable
Current Stable Version: 1.0.4
Stable Release Date: 2015-07-11
Created 2015-06-28
Last Updated 2015-07-11
Suggest features
I am open to suggestions for functions to add. Functions I've considered:
Flashlight - this one's doable, but it seems a little pointless. How are you going to turn the flashlight on in the dark when there's no backlight on the EPD?
Volume/Vibrate/Silent toggle - Probably doable, but requires some work so that it's easy to use.
Rotation lock - Not sure about this, but pointless anyway. The rear screen doesn't support horizontal view in the first place, unless you're mirroring, and then you might as well use widgets on your front screen.
Airplane mode - This one requires root access, and is quite hacky to implement.
NFC toggle - Cannot be done without root.
GPS toggle - Cannot be done without root.
Any ideas?
Thanks for doing this.
You might want to add Hotspot and data network
Would you be able to add Shortcuts? That would be very useful and its a shame the stock app does not allow this.
All Day On XDA said:
Thanks for doing this.
You might want to add Hotspot and data network
Would you be able to add Shortcuts? That would be very useful and its a shame the stock app does not allow this.
Click to expand...
Click to collapse
I'll look into your suggestions. I think the hotspot function required root access, and that is not very user friendly.
About the shortcuts - Isn't the stock Apps Launcher widget exactly what you're looking for?
Jeopardy said:
I'll look into your suggestions. I think the hotspot function required root access, and that is not very user friendly.
About the shortcuts - Isn't the stock Apps Launcher widget exactly what you're looking for?
Click to expand...
Click to collapse
the stock app allows links to apps only. Shortcuts are a subset of apps that can be added to the desktop. Eg in Google Maps you can create a shortcut on your homescreen that starts directions to a pre set destination. Or eg Chrome allows shortcuts to websites to be placed on the homescreen.
Edit: This may be beyond the scope of this widget. Apologies
All Day On XDA said:
the stock app allows links to apps only. Shortcuts are a subset of apps that can be added to the desktop. Eg in Google Maps you can create a shortcut on your homescreen that starts directions to a pre set destination. Or eg Chrome allows shortcuts to websites to be placed on the homescreen.
Edit: This may be beyond the scope of this widget. Apologies
Click to expand...
Click to collapse
Ah, I see. I've never used these before.
It is possible yes, but the biggest issue here is how you create and associate them to the widget. By default the shortcuts are created by the applications, like Chrome and Google Maps, and those applications send the shortcut Intent to the Launcher application. There is no way of telling the system that the shortcut should show up on this widget.
It probably could be possible to create these shortcuts manually for supported applications, like Chrome, but that would require quite a lot of work.
Nice work @Jeopardy! Thanks for sharing some dev notes too, might be useful for future widgets/apps.
PS You could officially kick off the "YotaPhone Original Android Development" device subforum with your widget (0 threads there now).
SteadyQuad said:
Nice work @Jeopardy! Thanks for sharing some dev notes too, might be useful for future widgets/apps.
PS You could officially kick off the "YotaPhone Original Android Development" device subforum with your widget (0 threads there now).
Click to expand...
Click to collapse
Thank you. Yeah I was wondering for the right place to put this. Now that you mentioned it, I guess the proper place would be the Original Android Development, but to put it there now would require a moderator.
Jeopardy said:
I am open to suggestions for functions to add. Functions I've considered:
Flashlight - this one's doable, but it seems a little pointless. How are you going to turn the flashlight on in the dark when there's no backlight on the EPD?
Volume/Vibrate/Silent toggle - Probably doable, but requires some work so that it's easy to use.
Rotation lock - Not sure about this, but pointless anyway. The rear screen doesn't support horizontal view in the first place, unless you're mirroring, and then you might as well use widgets on your front screen.
Airplane mode - This one requires root access, and is quite hacky to implement.
NFC toggle - Cannot be done without root.
GPS toggle - Cannot be done without root.
Any ideas?
Click to expand...
Click to collapse
Since I am using the "default" black theme I would prefer to have an option to switch between "black" and "white" version. I already created the changed images to basically switch your images to "all transparent" with white icons and a white circle around them for "pressed status". Since I am a new user I can't attach them to the post yet. Can you tell me a way to share them with you?
Besides that: can you share the sources of your widget to allow us to build upon it ourselves?
Thanks for your work on this!
crazy-ivanovic said:
Since I am using the "default" black theme I would prefer to have an option to switch between "black" and "white" version. I already created the changed images to basically switch your images to "all transparent" with white icons and a white circle around them for "pressed status". Since I am a new user I can't attach them to the post yet. Can you tell me a way to share them with you?
Besides that: can you share the sources of your widget to allow us to build upon it ourselves?
Thanks for your work on this!
Click to expand...
Click to collapse
I just sent you a private message about those images.
I'll consider sharing the source later. At the moment it is rather messy and very much hardcoded. I am currently rewriting the configuration Activity to allow rearranging of the icons and adding some new functions. It will take some time for me to finish this to a level I'm satisfied with.
Jeopardy said:
I just sent you a private message about those images.
I'll consider sharing the source later. At the moment it is rather messy and very much hardcoded. I am currently rewriting the configuration Activity to allow rearranging of the icons and adding some new functions. It will take some time for me to finish this to a level I'm satisfied with.
Click to expand...
Click to collapse
Mail sent.
Thanks for the info. Looking forward to see updates to this useful tool (and the first widget posted in here!).
All Day On XDA said:
the stock app allows links to apps only. Shortcuts are a subset of apps that can be added to the desktop. Eg in Google Maps you can create a shortcut on your homescreen that starts directions to a pre set destination. Or eg Chrome allows shortcuts to websites to be placed on the homescreen.
Edit: This may be beyond the scope of this widget. Apologies
Click to expand...
Click to collapse
I just released an update which addresses your idea of shortcuts for system's default browser (Chrome) and EPD's browser. Now the widget's framework is so flexible that it is very easy to add new shortcut targets. The only problem (still) is that the shortcuts have to be created manually from the widget, which means relatively complex dialogs. Shortcuts for browser is extremely handy, but can you think of some other app whose shortcuts would be as useful?
i have try it on my Yota 2 4.4.3 apk not work !
9100_it said:
i have try it on my Yota 2 4.4.3 apk not work !
Click to expand...
Click to collapse
That was to be expected. I don't think they included the SDK library until Lollipop. Sorry.
Major update
Okay, here's a new update for you guys.
First off, the minor (but important fixes) include fixing nonresponsive buttons if the device has been inactive for a long time, and some minor optimizations.
The big new function is a fully functional contacts list! I had been working on this for a while, waiting for Yota to update their caller app so I wouldn't have to do it. But it seems they are busy doing something else. So I became impatient and decided to include it here, as it needs an EPD widget anyway to launch it. So just add the contact list widget to the toolbelt from options, open it from the back screen, and you can browse all your contacts (with phone numbers) and then call them directly from the EPD. It also supports sending SMS's, but the catch is that it uses the front screen SMS editor via mirroring, not Yota's sleek EPD editor. The reason for this is there's no way to hook up to Yota's editor.
While I was building this update I also noticed quite serious security flaw in Yota's EPD dialer app. By default if you want to make a phone call from your app you need to add android.permission.CALL_PHONE to your manifest. However, I found out that Yota has left their EPD dialer app completely open for any app to ask for immediate phone call (like mine does), without any permissions what-so-ever. What were they thinking?
It also became frustratingly clear how bad the SDK is at the moment. The documentation is nonexistent, and you cannot even create dialogs. So many workarounds had to be made to make this work nicely.
But anyways, let me hear your opinions and experiences. There's bound to be some bugs somewhere and there's plenty of room to expand the contact list portion, provided I have the time.
Looking forward to trying the newest version. Thanks for building this!
You might want to consider contacting the Indiegogo campaign folks, as it looks like you've earned yourself a free phone. I can't post the link because I guess I'm too new a user on here, but if you look at the updates and scroll down to "25 days ago":
FYI: If anyone successfully develops an application or service to work natively for the "always on" display I will reward them with a YotaPhone 2 for FREE at the end of the campaign!
Click to expand...
Click to collapse
MichaelA said:
Looking forward to trying the newest version. Thanks for building this!
You might want to consider contacting the Indiegogo campaign folks, as it looks like you've earned yourself a free phone. I can't post the link because I guess I'm too new a user on here, but if you look at the updates and scroll down to "25 days ago":
Click to expand...
Click to collapse
Wow, might as well try it. Thanks for the info!
Hi thanks for standing in where yota appear to lack
just downloaded and installed but although the contacts list works well the phone dialer doesnt but i do have a call confirm slider app (used to stop wrongly dialed numbers) which could block this (it does the same with yota dialer)
only way i have managed to work around this is to mirror the android dialer app but would be nice if you could? do anything?
like your commitment to develop - think you should look at a donate function somewhere..would buy you a coffee or two for your efforts
regards
kam1962 said:
Hi thanks for standing in where yota appear to lack
just downloaded and installed but although the contacts list works well the phone dialer doesnt but i do have a call confirm slider app (used to stop wrongly dialed numbers) which could block this (it does the same with yota dialer)
only way i have managed to work around this is to mirror the android dialer app but would be nice if you could? do anything?
like your commitment to develop - think you should look at a donate function somewhere..would buy you a coffee or two for your efforts
regards
Click to expand...
Click to collapse
Basically what I do, is ask the official EPD dialer to make the phone call for me. If your call confirm slider app blocks the yota dialer, it will also block this. I guess you cannot add exceptions to the caller app? (Probably not, knowing Android's telephony API...)
An ugly workaround for your specific case would be for me to turn mirroring on when you press the call-button from my contacts list, and then ask the system's default dialer to make the call. Then your call confirm slider app would show up normally in the mirrored mode and you could finish the call. I might consider adding this later on as a setting somewhere, but no promises. It would be a lot cleaner if the mirroring mode would not be needed to finish the call, because turning it on takes quite a while and is a hassle to deal with when trying to do simple actions.
What is the name of the app you are using? I'll take a look.
call confirm
Jeopardy said:
Basically what I do, is ask the official EPD dialer to make the phone call for me. If your call confirm slider app blocks the yota dialer, it will also block this. I guess you cannot add exceptions to the caller app? (Probably not, knowing Android's telephony API...)
An ugly workaround for your specific case would be for me to turn mirroring on when you press the call-button from my contacts list, and then ask the system's default dialer to make the call. Then your call confirm slider app would show up normally in the mirrored mode and you could finish the call. I might consider adding this later on as a setting somewhere, but no promises. It would be a lot cleaner if the mirroring mode would not be needed to finish the call, because turning it on takes quite a while and is a hassle to deal with when trying to do simple actions.
What is the name of the app you are using? I'll take a look.
Click to expand...
Click to collapse
thanks for reply been searching for it but cannot find it anywhere on app store!!! so guessing its gone
must have transferred from old phone or it just been removed from market this year? cannot remember
its called call confirm slider version 0.9.1 icon is black circle with telephone handset inside but dont have any other details.
had it for a few years now and has been stable / reliable
very similar to this
https://play.google.com/store/apps/details?id=com.callconfirmer.free
regards

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.

Categories

Resources