P20 Pro Power Menu [★ROOT★] app/Tasker scene + other useful Tasker stuff - Huawei P20 Pro Themes, Apps, and Mods

★★★Hey all! I'll start by assuming anyone reading this post is using a P20 Pro, on stock ROM, already familiar with Tasker AND rooted. If you have a P20 Pro and you're rooted, but have no experience with Tasker, I may still be able to lend some experience. But if you are not using a P20 Pro, or you are not already rooted, even if you're down with Tasker you'll have to figure out the first two somewhere else then come back here.★★★
Okay then. I love this phone. I mean [email protected]#king love it. My previous 2 phones were the unrootable Canadian variant LG G5 and the fragile as glass Sony Z2. Needless to say it's been a while since I've enjoyed all the splendors that come with a rooted phone and had a lot of catching up to do. You may have seen me recently poking around elsewhere asking questions like a noob as lots has changed since Chainfire dominated the su scene lol. Magisk is absolutely amazing once figured out, and as always I've been forever grateful to the helpful community here at XDA and wishing I had more to give back. So here's a small offering, however useful it may be to any of you. It's a simple app, built in Tasker, that allows to restart the system ui, perform a software reboot (fast reboot), full hardware reboot, shutdown, enable/disable ADB, enable/disable WIFI scanning even when off, and enable/disable the high volume headphone warning. I even included light and dark themes! Please keep in mind this was built in Tasker App Factory and I am not a programmer, so while I may be able to take requests to add more switches for hidden features I have no designs on improving the interface. I am also sharing the Tasker files for the task and scene I built for anyone ambitious enough that may want to modify them for themselves. You MUST be rooted for any of this app/task to work, but you do not need to install any additional plugins. All the commands are native in Tasker thanks to recent updates. Without further ado, may I present to you a very simple P20 Pro power/hidden features menu:
{
"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"
}
The downloads are below. If you install the APK you don't need the Tasker files and vice versa. One or the other. I've also included my Tasker task for closing all recent apps with one touch. Again it requires no outside plugins, only root and the latest version of Tasker. I'm going to reserve the first few posts, I've got other Tasker profiles that are peculiar to this phone others may find useful such as Smart Unlock at home. I'll post that soon and maybe a few others. If anyone has useful Tasker tricks for the P20 they'd like to share please do so! I'll move the best ones up here to the first post. (if anyone actually reads this hahaha....)
Please uninstall any old versions before installing the update.
[UPDATE: App and Tasker files have been updated with options to reboot into bootloader or whichever recovery you currently have installed.]
[UPDATE 2: Improved the UI and cleaned up the routines, runs smoother and more reliable]
[UPDATE 3: Fixed broken reboot command, please install latest version from below]
[UPDATE 4: MAJOR UPDATE: Overhauled the UI, cleaned up more commands, added Model, Build Version and Uptime to main screen]

Smart Unlock via Tasker ★No Root★
As you've probably noticed, Smart Unlock is severely limited to only bluetooth pairings on the P20. I miss having the option to keep my phone unlocked when my WiFi is near so here it is, re-created in Tasker. How is this different from any other Tasker based Smart Unlock tutorials? It's not, but our P20 keeps track of time in milliseconds rather than seconds, so if you try entering 7200 for a 6 hour unlock your screen will still lock in less than 10 seconds. I went mad for a week trying to figure out why it wasn't working before I noticed the stock values had an extra three digits behind them. So for a 6 hour unlock, for instance, you would need to enter 7200000 not 7200. The files included below will default to instant locking when Smart Unlock is disabled or 12 hour unlocking when enabled. You can easily change this by changing the values in the appropriate task.
To make this work there are 3 profiles and 4 tasks to install. The first profile is simply a switch to determine if you are home or not. I use a separate profile for this as I also have other profiles that trigger when %HOME is set and it makes more sense to only have one profile active at a time than several lagging on system resources. There is a loitering time of 60 seconds in both the enter and exit tasks to ensure if you are on the edge of your connection the other profiles won't trigger erratically. Once the profile is imported you will have to replace 'Your WiFi goes here' in the WiFi field with your SSID(s). The next two profiles simply monitor the %HOME value for change and react accordingly.
The four task profiles are straight forward. Lock the phone instantly, lock in 12 hours, Smart Unlock on (with notification) and Smart Unlock off. You will need all 4 installed initially, though it is possible to migrate the lock commands into the Smart Unlock tasks if you wish. I keep them separate for simplicity in changing the times or to link them to other tasks.
To install simply import ALL of the files below into Tasker, replace the placeholder with YOUR WiFi, and enable the profiles. Use the Power Menu app from above to activate wifi scanning when turned off or the At Home profile will not work when your wifi is off. Alternatively you can enable 'toggle wifi' in the profile context but I've found that to interfere with downloads when using data connection. In Tasker preferences set the following:
- make sure to check the box for 'Run in Foreground'
- 'Use Reliable Alarms' should read 'when off'
- set 'Wifi Scan Seconds' to 90 or less (lower values eat more battery)
- and lastly set 'All Check Seconds' to 180 or less
I've found values above those numbers will result in slow Wifi polling and your phone may not lock for a long time when you leave home. With these preferences I find my phone usually locks within 3 minutes of leaving 'home' area.
That's it, enjoy wifi context based Smart Unlock on your new P20 Pro.
[UPDATE: I've consolidated all tasks into a single project file. Install this, set your wifi and it's ready to go]

More Tasker fun
Flick for Smart Remote
A very simple profile linked to the %HOME variable used in Smart Unlock. I use the remote function on this phone while I'm at home A LOT. This makes it convenient and fun. Whenever you're at home, the display is on and in portrait orientation simply flick your wrist in a crack the whip motion and you'll instantly switch to Smart Remote. The addition of the extra variables keeps this from triggering when you don't want it to, ie: not at home, it's in your pocket, or even if you drop it you won't lose your foreground screen unintentionally. If you want to use it differently simply switch the variables to your liking. I personally don't use Smart Remote, Anymote Smart Remote from the Play store has many more features and works fine with the P20 we just aren't a supported device. Also here's a link to the whip sound referenced in the task:
https://www.zedge.net/ringtone/99dd...tm_campaign=sharing#ZEDGE #notification_sound
Turn your P20 into a gaming console without switching your default launcher
Needed apps: GameBox Launcher, Ultimate Rotation Control (or any other rotation app that has a Tasker plugin), QuickTask, TouchTask
This is a bit of a hack that can really be done on any phone but works AMAZINGLY well on the P20. GameBox Launcher default is portrait orientation for the UI which annoys me, especially when I have my phone anchored in my gaming controller. This task will force sensor landscape using root, then load GameBox. You lose a bit of functionality in the apps menu, but the gaming menu turns into a proper banner style game launcher with gamepad navigation controls. It takes a few minutes to set up but makes my P20 feel as close to a handheld console as it gets. QuickTask is used to create a custom toggle in the Quick Settings menu, although the native Tasker toggle could be used...it just isn't as pretty. The toggle allows to switch between game mode and normal launcher mode. You could also place shortcuts for the launch and exit tasks on your home screen, same effect. Now why do I call this Game Mode instead of just a launcher hack?.....
The home button override profile will intercept home button presses, kill your home launcher (default in the profile is Nova Launcher) using root, and relaunch a fresh copy of GameBox Launcher as long as you are in Game Mode. It's essentially impossible to access your home launcher the normal way so keep that Exit Game Mode task or toggle handy, and this setting theoretically could survive a reboot so ALWAYS make sure to use the proper exit task. With the override profile enabled GameBox becomes your 'default' launcher without having to actually change your default, making it super simple to switch between games on the fly. When you're done activate the exit task; rotation will be restored to auto, GameBox is killed with root and your home launcher (again, the default in the task is Nova) is launched.
To Use:
- install all of the necessary apps and grant permissions
- import all of the 'Game Mode' profiles and tasks into Tasker.
- in QuickTask create a new tile called 'gamemode' and choose gamepad as the icon. Set this new tile somewhere accessible in your Quick Settings menu.
- create Tasker widgets linked to the launch and exit tasks on your home page.
If everything imported properly the new tile will become your Game Mode toggle and will enable/disable along with Game Mode. The links on the home screen are simply for secondary access. A screenshot of my P20 in 'Game Mode' is below:

Hello I did not succeed to install the app directly
I m rooted and I allowed the apk to be installed
Could you help please

xn3m said:
Hello I did not succeed to install the app directly
I m rooted and I allowed the apk to be installed
Could you help please
Click to expand...
Click to collapse
it install fine. what is the error message when it failed to install ?

otonieru said:
it install fine. what is the error message when it failed to install ?
Click to expand...
Click to collapse
Application not installed

xn3m said:
Application not installed
Click to expand...
Click to collapse
Try this version, I renamed the apk so it may have messed with the signature. If this doesn't work you'll have to try the Tasker files until I can rebuild the app. Cheers!
[EDIT: This is older version without bootloader or recovery but I will leave it up as an option]

otonieru said:
it install fine. what is the error message when it failed to install ?
Click to expand...
Click to collapse
Does it work fine for you after the install? Unfortunately I was only able to test the app on my phone but it should work properly for any P20 Pro on stock ROM. Thanks for trying it!

djparent said:
Does it work fine for you after the install? Unfortunately I was only able to test the app on my phone but it should work properly for any P20 Pro on stock ROM. Thanks for trying it!
Click to expand...
Click to collapse
I havent found the need to use it. Would be good if it actually offer to reboot into : recovery, bootloader, erecovery, etcetera.
System UI restart is useful though. Sometimes there's glitch with app UI and i dont want to do full reboot, and system UI restart is the option

otonieru said:
I havent found the need to use it. Would be good if it actually offer to reboot into : recovery, bootloader, erecovery, etcetera.
System UI restart is useful though. Sometimes there's glitch with app UI and i dont want to do full reboot, and system UI restart is the option
Click to expand...
Click to collapse
I didn't bother with recovery, bootloader etc as I use ADB for those. The intention for this was just a simple power off/reboot app without clutter or advertising but I'll consider adding those options soon as they may be useful. The Wifi scanning toggle should be particularly useful to anyone using Tasker with 'WiFi near' contexts. I couldn't find that switch anywhere in the Settings UI and with WiFi turned off the context won't trigger. So maybe that'll be helpful at some point lol? Also the 'high volume' headphone warning is annoying as hell, tap this once after each reboot and you'll see it no more.

otonieru said:
I havent found the need to use it. Would be good if it actually offer to reboot into : recovery, bootloader, erecovery, etcetera.
System UI restart is useful though. Sometimes there's glitch with app UI and i dont want to do full reboot, and system UI restart is the option
Click to expand...
Click to collapse
I've updated the app in the OP to include bootloader and recovery options. Thanks for the suggestion

Update: Power Menu V3
Major update! V3 is ready for daily use. I've cleaned up the godawful UI and added some information tidbits that may be useful to anyone experimenting with updates or rebranding and wants to easily check their current version. System uptime is also posted front and center so you know if it's time for a reboot. I'm not sure if this app needs anything else but if you'd like to see a new switch or button added please request in the thread and I'll give it consideration. Thanks to everyone who has dl'd and given feedback.
Remember to uninstall the old version before updating!

P20 pro unrooted
Is there any way to use tasker to disable mobile data? It used to work just fine on my old nexus 6p,but with my p20 pro when I try using the mobile data action, it shows it worked in tasker with the green dot, but mobile data status did not change.

Related

[APP] Anti Theft Control 2013

*ANNOUNCEMENTS:*
- ATC 2013 has been built to operate with AOSP and custom ROMS. However please don’t leave negative comments and complains if you can’t launch the app or make it work on a highly modded ROM. We will certainly not support all the amateur ROM developers out there. If it's not working for you then send us an email with your ROM details instead of rating low.
- Keep in mind that ATC 2013 will appear in your applications' list as Photo Manager. This is a disguise because we don’t want anyone to be aware there's a security application installed. To launch the application simply press the "Photo Manager" icon in your app list, read the description inside and then open your dialer and call this number: 4141
- To uninstall the ATC 2013 please disable "Device Administration" and "Uninstall Protection" options from the settings and then uninstall Photo Manager App.
- Before your download and install Anti-Theft Control 2013 YOU MUST read the documentation and watch the video guide. The application is extremely powerful and requires attention.
*PRODUCT DESCRIPTION:*
Anti Theft Control 2013 Security Engine Will help you protect your phone from unauthorized activities. The app has many security & self protection measures and it's one of the most customizable security applications on the Market!
Features List:
- Fully Hidden from the System.
- Uninstall & market Protection for all your applications
- Perimeter Zone Protection
- Sim Security Protection
- Activation by SMS
- Activation by Email
- Activation by Call
- Lock Phone Command
- Lock Phone Widget
- Control Panel Widget
- Spy Cam Command
- Spy Sound Recording Command
- Spy Video Recording Command
- Retrieve Call Logs Command
- Retrieve Sms Logs Command
- Call Me Now Command
- Wipe Data Command
- Where's my phone Command
- Battery level command
- Log Engine & Log Viewer
- Block outgoing Calls
- FTP Connectivity
- Drop box Integration
- Automatic Lock Down if Sim Card change occurs.
- Notification for the unauthorized user with your personal information.
- Automatic notification on your host phone number and your host email address of the phone's location and unauthorized user's phone number.
- Automatic GPS tracking of the phone when Lock Down occur.
- Find My Phone Ringer with sms command (even if the phone is in silent mode).
- Customizations for the Ring Mode (Time and Vibration)
- Boot and Connectivity Receivers for Checking the Status of your Protection.
- Silent Lock and Ring Commands. (Will not appear on the sms inbox and will not make the phone to ring at all)
- Programmatically enable mobile network data. (3G/HSDPA/LTE)
- Programmatically enable WIFI data.
- Track Phone's IP Address.
- Please Read the documentation: http://goo.gl/uW9z6
*SUPPORT:*
- Anti Theft Control 2013 has been tested with almost all the popular devices on the market. If you can’t get it to work with your device then maybe something is wrong with your setup, a 3rd party application OR a Custom ROM. Please report the problems and your device model.
- Keep in mind that aftermarket task killers and sms applications may cause serious problems to Anti-Theft Control. We recommend using the default sms application and no task killers.
- If you want a full GPS Tracking Engine with professional features please download from the market "Location Tools"
- If you're experiencing problems with the app instead of rating low and provide useless comments Send us an email first and tell us your problem, your device and android version details.
{
"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"
}
Download From Play Store : Click
Or Scan with your android Phone from here http://mobile.oneosolutions.com/index.php?option=com_content&view=article&id=174&Itemid=205
Added uninstall protection. The engine is in test stage so feel free to report problems.
It does not recognize sms commands, phone just acting like receiving ordinary message. I have GO Sms pro installed, maybe that's the reason...
hbr7 said:
It does not recognize sms commands, phone just acting like receiving ordinary message. I have GO Sms pro installed, maybe that's the reason...
Click to expand...
Click to collapse
Yeap thats the reason!
Wipedata and Admin rights options added. Also the uninstall protection will now protect all the apps from unauthorized uninstall
while been locked just by pressing HOME button i get to home screen and i have access to do anything.
Then after 5 seconds Locked screen returns asking for unlock password.
Then again i press home buttom and i get access. So accually this isnt working quite well.
Im using latest MIUI on HD2.
denyboy said:
while been locked just by pressing HOME button i get to home screen and i have access to do anything.
Then after 5 seconds Locked screen returns asking for unlock password.
Then again i press home buttom and i get access. So accually this isnt working quite well.
Im using latest MIUI on HD2.
Click to expand...
Click to collapse
Hello Sir,
Please read the documentation and watch the introductory video to understant how the system works.
Android os dont allow the devs to overwrite the home key so yes any time you press the home key will get you to the home screen ( this happens with all the security apps in the android market ) but anti theft control has a smart engine to not allow you to navigate anywhere else. For example you press home key and the lock screen disappears for 3 seconds if you try fast to open anything between these 3 seconds it will not let you and will popup faster the lock screen. The phone is totally unusable even with the ability to hide the lock screen for 3 seconds. Thats the reason there is the uninstall protection and the Administrator rights for the app so even if you are able to hide the screen for 3 seconds (until pop ups again) you cant close services or uninstall anything.
hope this helps.
Best Regards,
Oneo Solutions
darkrage1985 said:
Hello Sir,
Please read the documentation and watch the introductory video to understant how the system works.
Android os dont allow the devs to overwrite the home key so yes any time you press the home key will get you to the home screen ( this happens with all the security apps in the android market ) but anti theft control has a smart engine to not allow you to navigate anywhere else. For example you press home key and the lock screen disappears for 3 seconds if you try fast to open anything between these 3 seconds it will not let you and will popup faster the lock screen. The phone is totally unusable even with the ability to hide the lock screen for 3 seconds. Thats the reason there is the uninstall protection and the Administrator rights for the app so even if you are able to hide the screen for 3 seconds (until pop ups again) you cant close services or uninstall anything.
hope this helps.
Best Regards,
Oneo Solutions
Click to expand...
Click to collapse
Thanks my reply. This is accually great app and im sattisfied with it. Few smaller issues but other than that great.
It would be great if you could create SMS command to send GPS location when you send that GPS command. Not only when you lock your phone.
Thanks.
Hi there
After last update, the phone locked by itself,now I can move just between sms (double click on home screen) and AntiTheftControl lock screen
Is there any way to temporary disable software or bypass this screen ?
Thanks a lot in advance
Phone model: Motorola Droid Pro (xt610)
Svjatosha said:
Hi there
After last update, the phone locked by itself,now I can move just between sms (double click on home screen) and AntiTheftControl lock screen
Is there any way to temporary disable software or bypass this screen ?
Thanks a lot in advance
Phone model: Motorola Droid Pro (xt610)
Click to expand...
Click to collapse
Hello,
We fixed the issue for the random locks. Please if you need further assistance contact us at [email protected]
Please keep the reports coming
darkrage1985 said:
Please keep the reports coming
Click to expand...
Click to collapse
Might want to make it a bit easier to access the app:
Anti Theft Control
polobunny said:
Might want to make it a bit easier to access the app:
Anti Theft Control
Click to expand...
Click to collapse
Hello and thank you for your attention. I will not release the apk to the forums but its so easy to install it from the market what's the problem?
The brand New Engine "Perimeter Security Zone". Now you can set a perimeter zone from your location (center point) and when this perimeter is bridged the phone will take immediate action. With this way you can secure that your phone is in the place you left it.
2013 Release is out! Happy New Year guys
This app has been removed from play store. What's the reason behind it?
merquise said:
This app has been removed from play store. What's the reason behind it?
Click to expand...
Click to collapse
We really dont know. We never got a reply from google about the removal. however the app is again available on the Play Store with some changes.
what happens if someone steal it and want to restore the factory settings or perhaps go to recovery
If he goes to recovery you can't help it.. Password protecting download/recovery mode isn't supported atm..
Seems nice, I might try it on my S3 but I would like to see a few questions answered first
You can send a SMS command to the phone without locking it down? The purpose is to get as much as GPS positions first without the robber knowing. The program sends the new SIM card info (number) to a predefined number? :good:
btw, if I don't like the app, disabling Administration Rights option and uninstall protection option and uninstalling it normally (as I would do with any app) will remove it as if it was never on the phone?

[APP][4.0+][Material] Easy Lock - Double tap status bar/nav bar to sleep

Easy Lock
Double tap status bar/nav bar/lockscreen/notification shade to quickly put your device to sleep!
Double-tapping status bar does NOT work in Android 8 and above. Only double tap anywhere or double tap homescreen will work due to changes in system APIs.
{
"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"
}
Especially useful in devices where power button is hard to reach
Often faster and easier than using the power button
Reduce the wear and tear of power button
Also has the option of double tapping anywhere/double tapping homescreen to lock.
_
Requirements
Android 4.0 (ICS) or higher
NO root required
_
Screenshots
_
Downloads
Version 1.3: http://bit.ly/2oDv77H (Please uninstall the previous version first)
All features of the app are available for free, without any ads. (The in-app purchase inside the app will not work as the app has been removed from play store)
Please do not mirror without permission. Link to this thread or play store page if you want to share this app elsewhere. So that users will know where to check for updates and get support from.
Please note: Hopefully it won't come to this, but just in case, to uninstall the app, you'll have to deactivate device admin permission first (Settings -> Security -> Device Admin -> Easy Lock).[/SIZE]
_
Permissions explained
Admin permission is required to turn of the screen and put the phone to sleep
Lollipop smart lock is not supported by Device Admin. It's an Android system limitation. However, smart lock is supported by Easy Lock if you have root access. If you see a prompt for root access, this is what that's for.
Draw over other apps permission is required to detect double taps.
App Usage Statistics (in Lollipop and above) is required if you enable the option 'Try to avoid soft key presses'. This permission will be requested only if you enable this option.
_
Source code
Source code is distributed under Apache v2 license. Source repository: https://github.com/aravindsagar/EasyLock
_
Developed by
Aravind Sagar
Find me in G+​
Update v1.1
Added option to avoid lock screen touches
Minor bug fixes
Update is currently rolling out in Google Play.
Update to Easy Lock
v1.3
- Fixed a bug which causes the app to request admin permissions even when it was already granted.
Update is available in Google Play Store.
I had added an option to enable double-tap anywhere to lock the screen. I'm sure it'll be a nuisance for most people, since it'll get activated while typing, double tap to zoom photos etc, but there were some requests for it. However, that update was rejected by Play Store. Hence I've disabled that feature in the play store version of the app. If anyone is interested in the above mentioned feature, I can upload an apk having double tap anywhere to lock functionality.
Not available in Google play, can u please give me the download link, i love this app
Wani Aamir said:
Not available in Google play, can u please give me the download link, i love this app
Click to expand...
Click to collapse
Unfortunately the app has been removed from the Play Store because it interacts too much with System UI. I'll upload the apk here by tomorrow.
aravindsagar said:
Unfortunately the app has been removed from the Play Store because it interacts too much with System UI. I'll upload the apk here by tomorrow.
Click to expand...
Click to collapse
Could you upload apk already? thanks!
00471 said:
Could you upload apk already? thanks!
Click to expand...
Click to collapse
Sorry it took so long, I was away from my system. OP has been updated with a download link.
aravindsagar said:
Sorry it took so long, I was away from my system. OP has been updated with a download link.
Click to expand...
Click to collapse
No problem and thanks, anyway the double tap on softkey to sleep is big problem, even the function to prevent it doesnt work, good luck
Odoslané z HUAWEI GRA-L09 pomocou Tapatalku
Amazing work!
I've traditionally always rooted my android devices, but with marshmallow I'm trying to keep them stock for the security/stability benefits. My new Huawei Honor 8 didn't have a double tap to sleep feature built in, and with no root I couldn't use gravitybox to get it. I also couldn't find anything satisfactory in the app store, as I just wanted something that would make the device sleep, but not wake up (my phone wakes up by itself as soon as you touch the fingerprint scanner). The V1.2 of this app works perfectly! I lowered the double tap to 150ms, which seems to be about as fast as I can comfortably double tap the status bar/nav bar, but is faster than I would normally mash the back button, removing the need for ignoring the nav buttons. Plus it seems to take no more than 40mb of ram, with it averaging more about 25mb, which is great. Luckily for me, Huawei's EMUI implementation of android prevents your app from interfering with the fingerprint scanner, even without root. I tested your app on my galaxy tab s2 (also running android 6.0.1) and as expected, using it to sleep the device interfered with the fingerprint scanner, but not so on this great little Huawei device (I just had it on my tablet for testing, it already turns itself on/off with its flip cover). I can understand why Google removed it from the play store (at anything over 250ms it's easily to accidentally trigger with the back button) but I'm glad I found it. I've never actually had a button wear out or break on me because I upgrade phones too often, but it still feels nice to be able to turn my phone on and off without any buttons. Great work!
Edit: it's really too bad that the donate button doesn't work. Do you have any other apps in the play store that I could buy/donate to support you?
Wow, thanks for the app! Working great on my S7 edge (unrooted).
Just tried it on my pixel xl works great but the only gripe I have is that when it locks the phone I can't use my fingerprint reader to open it after which is making me not use it anymore because it's so much faster to use the fingerprint scanner. If that's fixed I'll definitely be using it.
Thanks
shadowdrag96 said:
Just tried it on my pixel xl works great but the only gripe I have is that when it locks the phone I can't use my fingerprint reader to open it after which is making me not use it anymore because it's so much faster to use the fingerprint scanner. If that's fixed I'll definitely be using it.
Thanks
Click to expand...
Click to collapse
@aravindsagar Hi, I have the same problem on my Z5 Compact. When I double tap the status bar, the phone locks.
But when I wake it up, if I use my fingerprint to unlock, I also have my patern (or pin, or password, whatever security is set) → Double security instead of one.
I only encounter this issue while using your app. If Easy Lock is disabled, I can unlock my phone just with my fingerprint.
Is their a way to fix this issue? (or an alternative to double tap status bar to lock?)
Thanks
Thibault1171 said:
@aravindsagar Hi, I have the same problem on my Z5 Compact. When I double tap the status bar, the phone locks.
But when I wake it up, if I use my fingerprint to unlock, I also have my patern (or pin, or password, whatever security is set) → Double security instead of one.
I only encounter this issue while using your app. If Easy Lock is disabled, I can unlock my phone just with my fingerprint.
Is their a way to fix this issue? (or an alternative to double tap status bar to lock?)
Thanks
Click to expand...
Click to collapse
same problem, any way to fix this issue?
Bump on this. Love it but need to be able to unlock with fingerprint sensor.
Other apps get around this by simply turning the screen off. Works great with amoled. Not sure how easy that is to implement.
I would donate for this if it would implement the method to lock the screen with root instead of using Admin (so, as mentioned in previous posts above, I could use the fingerprint reader to unlock afterwards). The shell command "input keyevent 26" does this as long as it's done with superuser access. I have a QuickTile through the Automate script app do exactly that currently, but I'd prefer to be able to double-tap the status bar instead of using a prime Quick Tile space.
This is horrible and will never replace the custom ROM feature. I can't use my fingerprint and I can't even enter my password without it locking again. It also locks when I double tap a softkey (even with the option to prevent against it).
If use device administrator, open lock cant using fingerprint, btw good app.. i search tap to sleep app that can using fingerprint to wake/unlock..
Arrow launcher has this. Always work.
Trying the Lawnchair (Pixel) launcher which lacks this feature. Only works on status bar. Users of this launcher want this!
(All permissions set up. MIUI device.)
Just a note, Arrow launcher has double tap anywhere to sleep, not double tap status bar, and it also has to be set to be a device Admin, so again the fingerprint reader is rendered useless. Not knocking Arrow Launcher, just wanted to specify in case others with fingerprint readers are tempted to try it for this purpose.
Is any option double tap to wake the device ?

System UI Tuner - Apply System UI Tuner settings on any Android device.

I just received the Nougat update and realized that the big Samsung in the sky disabled System UI Tuner. So when faced with defeat I decided to spin up an Android emulator and using the some nifty ADB commands reverse engineer all the settings inside the System UI Tuner menu. I then confirmed you could just apply the same settings and they would work and then created an easy to use application to apply them.
{
"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"
}
To get started you will first want to enabled [Developer Options]:
Go into [Settings]
Tap on [About device]
Repeatedly tap on the [Build Number] until a toast notification comes up stating you have enabled developer options.
Go back
Next you will want to go into [Developer Options] and enable [USB Debugging]:
Go into [Developer Options]
Scroll down and tap on [USB Debugging]
Finally plug in your device to your computer accept any prompts that appear on your phone and run the application. The application will take a few seconds to load as it finds your phone, but after that you will be able to select the settings you want and see them instantly apply to your phone. Features I've noticed that do no work on the Galaxy S7 are: Battery Percentage in the icon, and Do Not Disturb features.
Download - Version 1.1.0
Source Code
Big thanks goes out to @regaw_leinad for AndroidLib (Thread) and @muniz_ri for DeOdexed Marshmallow Rom (Thread)
Release Notes
v1.1.0
Improved performance was doing a lookup of the user id when I could have just passed "current" to the settings executable.
Added NFC for Samsung Devices.
v1.0.0
Initial Release
Images
Power Notification Controls on the Galaxy S7
No alarm icon showing and long time.
This is a great app - warning for S7 users, though - when I tried to disable the alarm icon, the phone kept crashing system UI. I fixed it by relaunching the app and turning the alarm icon back on. So far, that's the only thing I've seen that doesn't work. I have time and battery icon turned off and so far the phone has rebooted a few times without any issues - it doesn't crash system UI and remembers my settings.
Nice work! Great way to hide time/battery without root.
bigkevbosky said:
This is a great app - warning for S7 users, though - when I tried to disable the alarm icon, the phone kept crashing system UI. I fixed it by relaunching the app and turning the alarm icon back on. So far, that's the only thing I've seen that doesn't work. I have time and battery icon turned off and so far the phone has rebooted a few times without any issues - it doesn't crash system UI and remembers my settings.
Nice work! Great way to hide time/battery without root.
Click to expand...
Click to collapse
That is strange. That is the one thing I have disabled and it's working for me on my S7 (SM-G930T). I did do a factory reset after getting the update so that may be the reason why it's working on my phone.
bigkevbosky said:
This is a great app - warning for S7 users, though - when I tried to disable the alarm icon, the phone kept crashing system UI. I fixed it by relaunching the app and turning the alarm icon back on. So far, that's the only thing I've seen that doesn't work. I have time and battery icon turned off and so far the phone has rebooted a few times without any issues - it doesn't crash system UI and remembers my settings.
Nice work! Great way to hide time/battery without root.
Click to expand...
Click to collapse
StevenMattera said:
That is strange. That is the one thing I have disabled and it's working for me on my S7 (SM-G930T). I did do a factory reset after getting the update so that may be the reason why it's working on my phone.
Click to expand...
Click to collapse
I don't get errors disabling any icons, however, when I'm trying to enable the battery percentage in icon and nothing happens. Do you know any way to do this? Hiding icons is pretty nice without root. Good job.
serio22 said:
I don't get errors disabling any icons, however, when I'm trying to enable the battery percentage in icon and nothing happens. Do you know any way to do this? Hiding icons is pretty nice without root. Good job.
Click to expand...
Click to collapse
That is correct. I did not see any changes with battery percentage, or with the Do Not Disturb features. (Should have probably included that in the original post.) I left them in the app, because maybe they will work on other phones.
StevenMattera said:
That is correct. I did not see any changes with battery percentage, or with the Do Not Disturb features. (Should have probably included that in the original post.) I left them in the app, because maybe they will work on other phones.
Click to expand...
Click to collapse
Yeah still good to leave there. At least I can hide the icon to save some room. Thanks man, good find
Sent from my SM-G935T using Tapatalk
I used it to remove the annoying Alarm Icon. I always have an alarm so having a icon for it seems a little redundant. Thank you for this!
StevenMattera said:
I just received the Nougat update and realized that the big Samsung in the sky disabled System UI Tuner. So when faced with defeat I decided to spin up an Android emulator and using the some nifty ADB commands reverse engineer all the settings inside the System UI Tuner menu. I then confirmed you could just apply the same settings and they would work and then created an easy to use application to apply them.
To get started you will first want to enabled [Developer Options]:
Go into [Settings]
Tap on [About device]
Repeatedly tap on the [Build Number] until a toast notification comes up stating you have enabled developer options.
Go back
Next you will want to go into [Developer Options] and enable [USB Debugging]:
Go into [Developer Options]
Scroll down and tap on [USB Debugging]
Finally plug in your device to your computer accept any prompts that appear on your phone and run the application. The application will take a few seconds to load as it finds your phone, but after that you will be able to select the settings you want and see them instantly apply to your phone. Features I've noticed that do no work on the Galaxy S7 are: Battery Percentage in the icon, and Do Not Disturb features.
Download - Version 1.0.0
Source Code
Big thanks goes out to AndroidLib - https://forum.xda-developers.com/showthread.php?t=1512685
Click to expand...
Click to collapse
is there anyway to remove the nfc icon with this ?
many thanks
ryanz999 said:
is there anyway to remove the nfc icon with this ?
many thanks
Click to expand...
Click to collapse
Great idea! After digging through the android source code on how the icon_blacklist setting works. Then digging through a DeOdexed Marshmallow rom (Thanks @muniz_ri [thread=3415952]thread[/URL]) and de-compiling a few APK's, I was able to find the key Samsung uses on the NFC icon. (For anyone interested it's "nfc_on") A link to the new version has been updated in the original post.
StevenMattera said:
Great idea! After digging through the android source code on how the icon_blacklist setting works. Then digging through a DeOdexed Marshmallow rom (Thanks @muniz_ri [thread=3415952]thread[/URL]) and de-compiling a few APK's, I was able to find the key Samsung uses on the NFC icon. (For anyone interested it's "nfc_on") A link to the new version has been updated in the original post.
Click to expand...
Click to collapse
Absolute legend works a treat on my S7 !!!!
Would it be possible to remove the carrier name from the status bar with this app?
I've tried using this and it's Power Notification Control setting is very buggy on my S7. It works perfectly fine on my wife's. This lead me to believe that maybe it was an internal thing going on with mine because I was a beta tester for samsung and she wasn't, but we're both on 7.0, so I flashed stock 7.0 with odin to have a clean system and see if that was the problem, but I'm still having the same issue.
(It changes the ui, adds the option but when I go to activate it, I can not push the star to activate the bar and change the setting.
This mod has improved my quality of life. HAHA!
blankfaced said:
I've tried using this and it's Power Notification Control setting is very buggy on my S7. It works perfectly fine on my wife's. This lead me to believe that maybe it was an internal thing going on with mine because I was a beta tester for samsung and she wasn't, but we're both on 7.0, so I flashed stock 7.0 with odin to have a clean system and see if that was the problem, but I'm still having the same issue.
(It changes the ui, adds the option but when I go to activate it, I can not push the star to activate the bar and change the setting.
Click to expand...
Click to collapse
I have the same problem with my s7 edge
I am happy to find this app. Hate that alarm and bluetooth icon always being there. Seems to be working great on my S7 edge. Is there a way to remove the AM/PM in the clock? I know when its morning or night.
Love the app any chance to remove this garbage it added after root?
hatdrc said:
I am happy to find this app. Hate that alarm and bluetooth icon always being there. Seems to be working great on my S7 edge. Is there a way to remove the AM/PM in the clock? I know when its morning or night.
Click to expand...
Click to collapse
I would love this as well. I know if it's am or pm. I was a beta tester for 3 months and I repeatedly asked samsung to remove it. Worthless and takes up space.
I have tried using this app on my Galaxy s6 but it does not work. I do know however that the icon_blacklist adb commands do in fact work (as I have used them to hide my wifi and cellular icons in the status bar), so if this program is based on icon_blacklist, then it should. I researched androidlib.dll and made sure I have .NET framwork 3.5 or higher installed and enabled, and I do. Any help would be greatly appreciated. Also, it's a Samsung Galaxy S6 920v, MM 6.0.1. Not sure if this will work only on Nougat or not.
StevenMattera said:
I just received the Nougat update and realized that the big Samsung in the sky disabled System UI Tuner. So when faced with defeat I decided to spin up an Android emulator and using the some nifty ADB commands reverse engineer all the settings inside the System UI Tuner menu. I then confirmed you could just apply the same settings and they would work and then created an easy to use application to apply them.
Click to expand...
Click to collapse
Incredible app.
Is there any way to activate the "Dark Theme" in the SYS UI Tuner? Especially useful for us S7 AMOLED users.
Hi,
This is a great program! I'm just curious, will this work with other phones? We are experimenting with the same thing over on the LG V20 forums but only with the adb commands themselves, no front-end app or anything like that. So is it possible that this would work?
If not, would you mind sharing the adb command for enabling Power notification controls? That's the feature I want the most but after some quick Googling I can't find out how to do that.
Thanks!
EDIT: Whoops, I didn't see on GitHub that it says it will work on any Android device. I tested it out on the devices in my signature (LG V20 US Unlocked & LG G Pad III 8.0 Wi-Fi if you're on mobile and can't see my signature). The "Power notification controls" feature that I was mostly after doesn't work. I have the same problem as these guys:
blankfaced said:
I've tried using this and it's Power Notification Control setting is very buggy on my S7. It works perfectly fine on my wife's. This lead me to believe that maybe it was an internal thing going on with mine because I was a beta tester for samsung and she wasn't, but we're both on 7.0, so I flashed stock 7.0 with odin to have a clean system and see if that was the problem, but I'm still having the same issue.
(It changes the ui, adds the option but when I go to activate it, I can not push the star to activate the bar and change the setting.
Click to expand...
Click to collapse
Patybello said:
I have the same problem with my s7 edge
Click to expand...
Click to collapse
Any ideas? I messed around with a few of the "Status Bar" icon settings and those seem to work.
EDIT 2: I figured out how to get Power notification controls working (kinda)! It's still a little wonky and sometimes it locks up, crashes, or just resets though. blankfaced and Patybello, let me know if this works for you. What you have to do is get a notification from the app you want to change into your notification shade. Then slowly pull it left or right just a little bit until the cog icon appears, and click on it. From there if you tap the star icon with the A in it you can set the app's notification priority level (some levels on certain apps cause the notification window to reset/crash when you select them though , so YMMV)! Just make sure you hit "Done" afterwards. Sometimes you can then go into Settings > Notification > Apps to change it from there but a lot of times it just completely freezes up or resets itself, so I would recommend not trying to make any changes in there. I can't reboot my phone right now but I did reboot my tablet and it appears that the priority levels stuck, so hopefully this lasts!

[APP] 10th Aug. ◦ Edge Sense Plus 1.8.0 ◦ Customize Active Edge on your Pixel 2

{
"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"
}
Featured by:
XDA-Developers: Customize the Google Pixel 2’s Active Edge to do any action with Edge Sense Plus [XDA Spotlight]​
What is Edge Sense Plus?
Edge Sense Plus was initially just meant for the HTC U series. It let's you customize the squeeze action and adds some more squeeze gestures and features.
But with the Pixel2 also coming with a squeezable frame I had the goal to make it compatible with it too.
..and after a couple of days debugging with @k4r70ng (I don't own the device, big thanks to him, was a great help) we are here now!
Requirements
You have to be on Oreo 8.1 or Android P.
You need to run a STOCK based ROM, because Active Edge is broken on AOSP roms.
You need to be rooted with magisk to use it.
Install the Active Edge System Mod Magisk Module from the MagiskManager Repo and the EdgeSensePlus from the playstore and you are ready to go!
Telegram Group
Join Telegram Edge Sense Plus Group
How does it work
To make it working on the Pixel2 I had to modify the SystemUIGoogle.apk that runs the ElmyraService (Service that processes the squeeze gestures).
I intercept the events and pass them to the EdgeSensePlus Application that starts the appropriate action then that you selected.
Some more adjustments were made, so the squeezing also works when you are in immersive mode, camera or when Google Assistant is deactivated/uninstalled.
What can it do?
Custom actions:
Currently you can choose from over different actions
Quickly Start camera - Also when screen is off and locked
Per App Action - Execute different squeeze actions depending in what app you are!
Sidebar
Gesture Panel - Draw custom gestures to start different actions
Custom App
Shortcuts - e.g. to make direct calls, start tasker tasks and more!
Scroll up/down
Flashlight
Recent Apps
Toggle Autorotation
Autobrightness (6 states: Auto, Min, Low, Mid, High, Max)
Split Screen
Expand/Collapse Statusbar
Toggle NFC
Toggle Display on/off
Toggle Autorotation
Toggle DND
Toggle Vibration
Toggle Bluetooth
Toggle WiFi
Music Play/Pause
Previous Track
Next Track
Toggle Keep awake
Google Assistent
Lock Screen
Back
Home
Toggle Sync
Sync all accounts
Previous App
Take Screenshot
Clear all notifications
GPS
Answer/End call
Immersive Mode
Shell command
Per app actions:
With the per app action, you can define different squeeze actions per app. So the chosen action will be executed dependent in what app you are currently are.
Double Squeeze: (Premium)
If you often accidentally trigger a short squeeze, that won't happen anymore if you map your desired action to the double squeeze gesture.
You can define a double squeeze interval, to ensure you are quick enough to trigger it every time.
Long Squeeze:
Missed a long squeeze action on your Pixel? Edge Sense Plus has it!
G-Sensor usage: (Premium)
If enabled, will be able to execute different actions depending on the current position of your device, whether it is flat or upright in your hand.
That way you can have six different squeeze gestures: short, long, doublepress in flat or upright device position.
Media control:
The media control will override your set squeeze actions while media is playing so you can control your media.
That includes play/pause, increase/decrease volume and skip to next and previous track.
Squeeze sounds:
Ever thought it would be funny if a squeeze of your Pixel2 would make a sound, if it is a *click*, *oink* , *fart* or whatever you think of?
You can use any .mp3 file to make that happen!
Sidebar:
The Sidebar has 4 different panels, Applications, Shortcuts, Recent Apps (Premium), Quicksettings (Premium).
Panel colors are customizable
Instructions
You must be on at least Oreo 8.1 to to be able to use it. Root with Magisk is required since the magisk module is mandatory!
It is recommended to have a working TWRP backup in case something goes wrong. Check the FAQ for help too.
Like always: Flash on your own risk. I'm not responsible for any damaga to your device
Flash the Magisk Module either in Magisk Manager or TWRP
Install Edge Sense Plus
Enjoy.
Downloads
Now also available via the MagiskManager Repo:
I recommend to install and update the Magisk Module directly via the MagiskManager repository directly in the MagiskManager app.
All releases will be also available on the GitHub repository
Edge Sense Plus:
Ok lol I am blind, thanks for app!
This looks great and more powerful than other options to intercept the squeeze gesture. Thanks for taking the time to port it!
Would it be possible to provide a module download with an Md5? I downloaded and flashed the module, wound up in a bootloop and had to restore a backup. I'd like to try this, but really want to be careful. Thanks
FAQ
Q: Will it also work on the Pixel2 XL?
A: No, it will bootloop your device. There is a separate thread on the Pixel2 XL forum.
Q: My device bootloops after flashing the magisk module.
A: Ensure you are on the latest Pixel2 OTA. To get out of the bootloop, go to the magisk thread and install the magisk uninstaller and then reinstall magisk again.
Q: The magisk module zip is greyed out when I try to install it.
A: I have no explanation why it happens for some. Install a FileManager like SolidExplorer or FX File Explorer, then Select that File Browser in the System File Explorer to select the path
Thanks. Yeah Pixel 2 on the latest January update with TWRP and Magisk 15.2.
Yep it was a bad download. Thanks for the Md5. I'm all set now :good:
jascolli said:
Yep it was a bad download. Thanks for the Md5. I'm all set now :good:
Click to expand...
Click to collapse
great, glad to hear.
Love the app so far! One thing that bothers me is that when I launch google assistant, it makes the beeping noise twice. Is there anyway to change that?
SuperSmashedBro said:
Love the app so far! One thing that bothers me is that when I launch google assistant, it makes the beeping noise twice. Is there anyway to change that?
Click to expand...
Click to collapse
Aware of that. Will look into this today. Does not happen on my U11... so debugging will take a bit longer.
Are there any plans to distribute the app through the Play Store? And is it normal for the app to constantly ask me to upgrade to premium? By constantly, I literally mean constantly. It seems to be tied to scrolling down the settings page, and it pops up 2-3 times before I reach the bottom.
Also, will squeezing still silence an incoming call? Are there any settings that might prevent the squeeze from silencing an incoming call?
AZImmortal said:
Are there any plans to distribute the app through the Play Store? And is it normal for the app to constantly ask me to upgrade to premium? By constantly, I literally mean constantly. It seems to be tied to scrolling down the settings page, and it pops up 2-3 times before I reach the bottom.
Also, will squeezing still silence an incoming call? Are there any settings that might prevent the squeeze from silencing an incoming call?
Click to expand...
Click to collapse
Currently the app is just visibible for HTC U Devices.
Im afraid of bad ratings from pixel users, since it does just work with root. On the U11 it works without.
Will try improve the scrolling issue.
I just override the google assistant action. So the other native squeeze actions should still work.
AZImmortal said:
Are there any plans to distribute the app through the Play Store? And is it normal for the app to constantly ask me to upgrade to premium? By constantly, I literally mean constantly. It seems to be tied to scrolling down the settings page, and it pops up 2-3 times before I reach the bottom.
Also, will squeezing still silence an incoming call? Are there any settings that might prevent the squeeze from silencing an incoming call?
Click to expand...
Click to collapse
Can you check if that fixes the scrolling issue?
https://www.dropbox.com/s/1rs8vn24o27vrxb/app-release.apk?dl=0
j to the 4n said:
Can you check if that fixes the scrolling issue?
https://www.dropbox.com/s/1rs8vn24o27vrxb/app-release.apk?dl=0
Click to expand...
Click to collapse
Your update seems to have fixed the constant update pop-up for me. Thanks! Just bought pro for the additional features. Awesome work!
Sent from my Pixel 2 using Tapatalk
btreu1 said:
Your update seems to have fixed the constant update pop-up for me. Thanks! Just bought pro for the additional features. Awesome work!
Sent from my Pixel 2 using Tapatalk
Click to expand...
Click to collapse
Much appreciated (-:
I've noticed that pocket detection makes active edge misbehave. I don't know if this is a known issue, but I thought I'd share my experience.
The other thing I thought was an issue was with setting a shortcut to a Tasker task. For anyone who may not understand how it works, you have to open Tasker and choose "exit" from the menu at the top right of the app before you can set the task shortcut in Edge Sense Plus.
Sent from my Pixel 2 using Tapatalk
btreu1 said:
I've noticed that pocket detection makes active edge misbehave. I don't know if this is a known issue, but I thought I'd share my experience.
The other thing I thought was an issue was with setting a shortcut to a Tasker task. For anyone who may not understand how it works, you have to open Tasker and choose "exit" from the menu at the top right of the app before you can set the task shortcut in Edge Sense Plus.
Sent from my Pixel 2 using Tapatalk
Click to expand...
Click to collapse
In what way misbehave? No issues reported yet on the u11 for half a year
Playstore compatibility for Pixel2/XL
burp

Development [DNDSync] My App for Do Not Disturb Synchronization on Non-Samsung Phones

Hello everyone!
I'm using the Samsung Galaxy Watch 4 with a Pixel 3a XL and I was a bit annoyed that the option to synchronize the Do Not Disturb (DND) state between watch and phone seems to be only available when paired to a Samsung phone. So I made an App to fix this and I'd like to share it with as many people as possible (I don't know how much interest there is).
{
"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"
}
As for now it is not in the Google Play Store but you can find the APK files, instructions and the source code on my GitHub.
Besides the DND sync I also implemented to (optionally) toggle Bedtime mode on the watch depending on the DND state of the phone (this is a bit experimental though, since I had to use an Accessibility Service for that, more on that below).
NOTE: For bedtime mode toggle to work it is important that the Bedtime Mode button is on the first page of quick settings and in the first row the button in the middle!
The installation on the watch is a bit technical (needs ADB) and here I want to explain why it is how it is.
Why do I need ADB?​In order to listen to DND changes and also change the DND state, the app needs the permission from the user. On the phone it is no problem to grant said permission (it's the ACCESS_NOTIFICATION_POLICY for those curious) because the system provides a permission screen where the user can handle that permission. On the watch this screen is missing and therefore the user can't grant the permission to the watch. That's where ADB comes into play. I found a command which allows to enable the permission for the app via ADB. (I could only test this with my watch, I think (and hope) it will work on other devices too) In order for the app to work properly, you have to execute this command once after installation. The details are in the GitHub instructions.
Why is Bedtime mode experimental?​In an ideal world I would know a command to use in my program that controls the Bedtime mode setting directly. Unfortunately I haven't found such a command (if anyone knows, please let me know). As a workaround I figured I could simulate the touch gestures which you would use to do it manually: Swipe down to open the Quick Settings, tap the icon for Bedtime mode, use back button (or swipe up) to close the Settings. In order to do that I use an Accessibility Service, which you have to enable if you want to use the feature (see instructions). It is experimental because all I can do is perform the gestures and hope everything went alright, no way to really confirm that Bedtime mode is actually on or off (that I know of at the moment).
I made a video that demonstrates both the 2-way synchronization of the DND state and the Bedtime mode feature:
Last but not least a little Disclaimer: I'm not very experienced in Android App Development and I've never released an App before. Even though it works fine for me I have no idea what might happen on other systems and configurations, so please be gentle
I'm happy to hear your thoughts, feedback, ideas, bug reports and I will see if I can do something about it.
Let me know if you have any questions!
Stay safe!
Looks good, I'm going to install. Using watch4 and OnePlus 8T running Pixel experience rom. Will report back.
I'm wondering if this will work with the silent and vibrate function of the switch on the side of the 8T because that switch doesn't use DND
If possible it'd be cool if you made an option for that in the app
spart0n said:
Looks good, I'm going to install. Using watch4 and OnePlus 8T running Pixel experience rom. Will report back.
I'm wondering if this will work with the silent and vibrate function of the switch on the side of the 8T because that switch doesn't use DND
If possible it'd be cool if you made an option for that in the app
Click to expand...
Click to collapse
Cool thanks!
The app listens to DND changes so I think your scenario won't trigger the sync but I can look into it and I guess it's doable, but I have to have a closer look first.
So the switch on your phone toggles between silent, vibrate and sound? And you would like the watch to mirror this mode instead of DND? Just to make sure I understand you correctly.
rhaeus said:
Cool thanks!
The app listens to DND changes so I think your scenario won't trigger the sync but I can look into it and I guess it's doable, but I have to have a closer look first.
So the switch on your phone toggles between silent, vibrate and sound? And you would like the watch to mirror this mode instead of DND? Just to make sure I understand you correctly.
Click to expand...
Click to collapse
You got that exactly right! You rock!
There is an app similar to this one: https://play.google.com/store/apps/details?id=se.blunden.donotdisturbsync
It doesn't work for me, though (Pixel 3, stock software). that app had the limitation of only syncing one way (watch to phone) - is the other direction (phone to watch) what the adb command is for?
tinuthir said:
There is an app similar to this one: https://play.google.com/store/apps/details?id=se.blunden.donotdisturbsync
It doesn't work for me, though (Pixel 3, stock software). that app had the limitation of only syncing one way (watch to phone) - is the other direction (phone to watch) what the adb command is for?
Click to expand...
Click to collapse
Yes, I saw this app but I never actually tried to use it tbh, mainly because I wanted the Bedtime feature and a new challenge The adb command this app uses didn't work when I tried it on my watch. The app was develped for Wear OS 2.0, so my guess is that's why the command doesn't work. I found a different command that works for me on the new OS.
Exactly. In order to control the DND state the app needs the permission from the user. On the phone it's not a problem to grant it but on the watch there is no UI for the user to grant it, the adb command gives the permission to the app. Without it the app can't change the DND state and that's why phone->watch does not work.
Great job...
I don't have my watch4 yet but DND was one of the things I was going to look into but I guess no need to rush anymore...
Also, since you made it and you never released an app before, I hope you signed your apks with release-keys of your own, it will maintain the integrity of the apks whether you release any new version or not, no one can abuse your apks to release updates that can actually update your original work and overwrite it...
Just a dev looking after another ...
Take care and cheers
Dante63 said:
Great job...
I don't have my watch4 yet but DND was one of the things I was going to look into but I guess no need to rush anymore...
Also, since you made it and you never released an app before, I hope you signed your apks with release-keys of your own, it will maintain the integrity of the apks whether you release any new version or not, no one can abuse your apks to release updates that can actually update your original work and overwrite it...
Just a dev looking after another ...
Take care and cheers
Click to expand...
Click to collapse
Thank you so much for your kind words!
I used the signing functionality from Android Studio and in the process I created keys, so I hope that I did the right thing there.
spart0n said:
You got that exactly right! You rock!
Click to expand...
Click to collapse
Hey, I want to give you a little update: I looked into it and of course I hit a few road blocks, thanks Android..
The battery optimizations introduced in Android 8 make it a bit more difficult than before to listen to the ringer mode changes. I think I found a way to do it, but I'm not sure if or how it will impact battery life, but I think I'm optimistic on that one. Another problem I'm facing is coming from the Android API. When I use the API to enable silent mode it just triggers DND, which is really annoying and I believe it should not? And I believe it is not what your phone is doing and what you are looking for. I've seen people complaining about that in forums but at this point I'm not sure how to deal with this. So overall I get the feeling I'm kind of fighting the Android System at the moment
Also, sorry for the long delay, I don't have a lot of time at the moment since I really should focus on my upcoming exams
Cheers!
rhaeus said:
Hey, I want to give you a little update: I looked into it and of course I hit a few road blocks, thanks Android..
The battery optimizations introduced in Android 8 make it a bit more difficult than before to listen to the ringer mode changes. I think I found a way to do it, but I'm not sure if or how it will impact battery life, but I think I'm optimistic on that one. Another problem I'm facing is coming from the Android API. When I use the API to enable silent mode it just triggers DND, which is really annoying and I believe it should not? And I believe it is not what your phone is doing and what you are looking for. I've seen people complaining about that in forums but at this point I'm not sure how to deal with this. So overall I get the feeling I'm kind of fighting the Android System at the moment
Also, sorry for the long delay, I don't have a lot of time at the moment since I really should focus on my upcoming exams
Cheers!
Click to expand...
Click to collapse
Silent can be DND just not vibrate. So that should help you. Also you're awesome for working on this
Just installed this on my GW4 working with my Oneplus 8T. Seems to be working great. Definitely willing to test out any additional changes you may require. In any case, like to say kudos, for developing this.
Pixel 3 and GW4 Classic - DND Sync works perfectly. Bedtime mode, however, does not if you (as I did) reassigned the quick settings buttons.
I now made sure that DND is quick setting button 1 and bedtime mode is button 2, but it's still hit or miss. Sometimes, the swipe gesture isn't performed and I can't quite see why that is.
Edit: one other gripe I have is that bedtime mode gets activated on the watch when I flip my phone over (the setting on the phone is "flip to shhh". That's no good for me, so I turned bedtime mode sync off completely. I still use the dnd sync portion though!
However, I'm already quite enjoying this a lot, DND sync alone is well worth the app. I'd encourage everyone to check it out!
Just posting to see, for those using this, if they are experiencing the watch getting out of sync with the phone. This had been working reliably up until the latest watch update as far as I can tell. Now there are several instance of DND still being on on the the watch, while my phone has disabled DND. Also wise versa, not on while phone has going to DND per schedule. Curious if others have seen the same. I have also noticed that DND/Bedtime mode no longer dims the screen on the watch like it use to, but I believe that a Samsung issue. In any case, curious if anyone else experiencing the same and or if perhaps new version in the works. Again, this had been working great; really liked this app. Hope development hasn't been abandoned.
Note: I just uninstalled and reinstalled on both watch and phone to see if maybe something got screwed up with the watch version update. Will see
Hi there, i´m trying to install this but i got lost on Github, where can i fand apks?
Edit: nevermind, i found it and works excellent dnd sync on pixel 4 xl, thanks a lot
Figured I'd report back that the app is working perfectly again after the reinstall. My guess is that the update on the watch must have reset the permissions or something. In any case, figured I share in case anyone else experiences the same. Happy it's working reliably again.
Excuse me, why does my watch always turn on and off automatically
@rhaeus is there any way to make an app or your app sync alarms from watch to phone and be able to snooze or disable them and have it sync between both devices? This was possible when using a Samsung phone with the Active2.
rhaeus said:
Hello everyone!
I'm using the Samsung Galaxy Watch 4 with a Pixel 3a XL and I was a bit annoyed that the option to synchronize the Do Not Disturb (DND) state between watch and phone seems to be only available when paired to a Samsung phone. So I made an App to fix this and I'd like to share it with as many people as possible (I don't know how much interest there is).
View attachment 5398215View attachment 5398217View attachment 5398219View attachment 5398221
As for now it is not in the Google Play Store but you can find the APK files, instructions and the source code on my GitHub.
Besides the DND sync I also implemented to (optionally) toggle Bedtime mode on the watch depending on the DND state of the phone (this is a bit experimental though, since I had to use an Accessibility Service for that, more on that below).
The installation on the watch is a bit technical (needs ADB) and here I want to explain why it is how it is.
Why do I need ADB?​In order to listen to DND changes and also change the DND state, the app needs the permission from the user. On the phone it is no problem to grant said permission (it's the ACCESS_NOTIFICATION_POLICY for those curious) because the system provides a permission screen where the user can handle that permission. On the watch this screen is missing and therefore the user can't grant the permission to the watch. That's where ADB comes into play. I found a command which allows to enable the permission for the app via ADB. (I could only test this with my watch, I think (and hope) it will work on other devices too) In order for the app to work properly, you have to execute this command once after installation. The details are in the GitHub instructions.
Why is Bedtime mode experimental?​In an ideal world I would know a command to use in my program that controls the Bedtime mode setting directly. Unfortunately I haven't found such a command (if anyone knows, please let me know). As a workaround I figured I could simulate the touch gestures which you would use to do it manually: Swipe down to open the Quick Settings, tap the icon for Bedtime mode, use back button (or swipe up) to close the Settings. In order to do that I use an Accessibility Service, which you have to enable if you want to use the feature (see instructions). It is experimental because all I can do is perform the gestures and hope everything went alright, no way to really confirm that Bedtime mode is actually on or off (that I know of at the moment).
I made a video that demonstrates both the 2-way synchronization of the DND state and the Bedtime mode feature:
Last but not least a little Disclaimer: I'm not very experienced in Android App Development and I've never released an App before. Even though it works fine for me I have no idea what might happen on other systems and configurations, so please be gentle
I'm happy to hear your thoughts, feedback, ideas, bug reports and I will see if I can do something about it.
Let me know if you have any questions!
Stay safe!
Click to expand...
Click to collapse
Hello. where is the application itself?
shaker74 said:
Hello. where is the application itself?
Click to expand...
Click to collapse
In the post you quoted it says they are on his GitHub and there is a link to it.
shawkes said:
In the post you quoted it says they are on his GitHub and there is a link to it.
Click to expand...
Click to collapse
I looked there, I did not find any apk applications

Categories

Resources