ADB is needed.
Run
Code:
adb shell "settings get secure sysui_qs_tiles"
Save output of previous command
Prepare next command like this
Code:
adb shell "settings put secure sysui_qs_tiles '${previous command's output},nfc'"
Of course don't add ${}. It should look like this example:
Code:
adb shell "settings put secure sysui_qs_tiles 'wifi,bt,cell,rotation,airplane,dnd,location,custom(com.google.android.gms/.nearby.sharing.SharingTileService),flashlight,battery,hotspot,screenrecord,custom(com.dolby.daxappui/.DaxTileService),nfc'"
Now old AOSP NFC tile should be added to QS panel, but it may or may not work right now. It will appear in an unaccessible state and clicking on it may do nothing, but long pressing will open nfc settings.
We can sort of fix it. We need to open QS panel and move to the page with a newly added nfc tile. Then we run this command
Code:
adb shell "cmd statusbar click-tile nfc"
The SystemUI will crash and restart, but after that our nfc tile is usable. It still appears in an unaccessible state, but clicking on it will now successfully turn on nfc, and turn it off, depending on the situation. This UI bug is the only inconvenience. QS tile also reflects changes when nfc was enabled in settings or through Gpay right away, without any delay, so this tile works much better than any 3rd part one that relies on write_secure_setting permission.
After reboot, system_update etc. this tile may stop working, but if it doesn't disappear completely from QS panel, then redoing point 6 is necessary. If it is entirely gone, then the whole procedure must be repeated.
Bonus for future:
Sony have added it's custom nfc tile and also one for lte and sound in xperia 1 II (and as it turns out also 5 ii), that were used in other sony devices, for example xperia 5 with android 11 and a lot of older models. Sadly, event though they can be added using the same method, they can't be used, because they don't show up in QS panel, but they are saved in sysui_qs_tiles and are recognized by the system (behave like a ghost). Maybe Sony will do something about it in future update, since as it seems they were aware of the issue and started fixing it. I found about it from a one smart guy on 4pda here an here.
Maybe someone smarter than me, could hack up an app, that hooks up to those sony's custom services for enabling nfc, and make our own nfc tile, that actually works. I don't know if it is even possible. Porting com.sonyericsson.settings from xperia 5's android 11 firmware may also be some way out, but for sure out of the scope of my abilities.
They (sony) could also fix this built-in AOSP NFC QS tile. The code for it is literally publicly available, because it was fixed in GrapheneOS. If anyone from sony is reading this, please fix it ASAP, since it isn't anything difficult, but annoys every single time.
Related
Guys - I was on NucleaROM, and decided to go back to stock B05 (I have an A2017G). Long story short, I forgot to wipe stuff
Result - Okay-working system with pieces of old NucleaROM data scattered all around. One of the things I actually found interesting was that one of the quick settings tiles had been changed to the battery tile as in LOS... I couldn't pull down the bar to show all of the tiles, it just didn't move, but it struck me that maybe we can modify the bar a bit, getting rid of some tiles like the SIM settings and Lock, Sync, Ultra power save, maybe the sound toggle.
I just wiped everything and reinstalled B05, and have a perfectly stock system.
So, the question at hand: Where does the system store which tiles you have placed? I've been looking around and can't seem to find it.
Hi guys,
I cooked up some tasker mods to address some of the graciously few problems I have with the software of the mate 20x. I thought they might be useful to some of you guys so I figured I'd share. The plugins used are AutoInput, AutoLaunch, AutoNotifications, and AutoTools.
Mod List:
1. Fixed Auto-rotate Lock: uses the quick tile to auto-rotate or lock to any orientation
2. Swipe Recent Apps Switcher: cycle through previous apps by swiping on the bottom of the screen ala iPhone
3. Auto-disable Eye comfort: pop-up prompt when activating chosen apps that automatically disables eye comfort mode
4. Automatic Screen Filter: activates the free app Night Screen when brightness is set to minimum and disables it when brightness is raised
1. Fix Auto-rotate Lock
There are two versions of this mod, one which uses the system quick tile and one which uses an AutoNotifications quick tile. The AutoNotifications quick tile is more reliable and allows you to seamlessly lock orientation in landscape or inverted. The system quick tile is more clunky and you cannot lock in inverted, but it's a bit faster. If anyone knows where to find the system quick tile icons please tell!
Simply import the profiles to Tasker and turn them on. Choose "Rotate On" for the system qt or "AltRotate On" for the AutoNotifications qt.
2. Swipe Recent Apps Switcher
This mod will track all activated apps in an array so they can be systematically called back. It also offers swipe gestures at the bottom of the screen which can be used to cycle through them. Swipe left or right to go back and forth through your recent apps. After settling on an app, the app list will be updated to bring your active app to the front.
To install, import and turn on all profiles and run the swipe task. The Swipe task must be ran to provide gestures. The overlay providing gestures is at the very bottom of the screen, so just swipe your finger along the screen edge. Modify your settings and profiles to make sure that Swipe, AutoTools, and Tasker stay on with full permissions. This mod requires that tasker monitoring use accessibility. In the no root version some apps will refresh their state when activated (es explorer). This is because apps are 'launched' and not 'brought to foreground'. In the root version this is not an issue.
3. Auto-disable Eye comfort
This will provide a discrete pop-up in the corner of your screen when you activate the selected apps. I set up the profile with the apps I use for photo and video editing. When you click the pop up it will automatically open the drawer and disable the eye comfort quick tile. The pop up will go away in 5 seconds if not clicked, or can be swiped away.
To install, place the "bubble" folder in your AutoTools webscreen folder. The file paths should match up, but you may need to modify them. Import and turn on. The no root plugin uses AutoInput to press the fourth quick tile. If you have eye comfort on another quick tile you will need to change the touch coordinates. The root option will, if prompted, automatically switch eye comfort on and off as you switch between monitored apps. If you dismiss the prompt it will not ask again until eye comfort is toggled.
4. Automatic Screen Filter
When brightness is lowered to the minimum level, this mod will launch the app Night Screen to lower the brightness with a screen filter. When the brightness is raised above minimum it will turn night screen off.
You can change the app used, but it must have a toggle or on/off activity to be launched by secure settings. I found Night Screen to be the best for me. Import and turn on profiles.
There may be some bugs due to inconsistent Tasker monitoring and the system messing with things. Unfortunately there is little I can do about this.
ps. the zip is NOT installable
Sorry I'm stumped about how to embed youtube videos. Here's links.
https://youtu.be/KZBQJX3Fges
https://youtu.be/AnVLVCdWC8U
https://youtu.be/SsVjmW-9KwI
I vastly improved the app switcher to function much more intuitively and more like a native function. It's works pretty much exactly like on the iPhone, accept the animations are going the wrong way. I'll test it out a bit then update the post.
You sir are incredible
Post has been updated with a new app switcher, a root app switcher which fixes the launching problem, and a root eye comfort prompt which modifies the setting directly and has enhanced functionality. Also now none of the mods are dependent on the Secure Settings plugin
cobram3 said:
You sir are incredible
Click to expand...
Click to collapse
glad somebody likes it :good:
Allan can I pay you to help/tutor me on creating Tasker apps for my own use?
Please message me
---------- Post added at 02:14 AM ---------- Previous post was at 02:13 AM ----------
AllanRSS said:
glad somebody likes it :good:
Click to expand...
Click to collapse
Such as:
Auto speakerphone when call connects by default
When I get in the car, show a list of media players as a popup (bc bt connected)
$60 via PayPal thx
I really appreciate the offer, but thats not how xda works. This is where people help people, and I've benefited far too much through the days on the generosity of others to be greedy now.
I took a quick look and it and there is a State profile called "BT Connected". You should be able to check your bluetooth settings for the exact name of your car and insert that into the Name field. Then you would make a Scene containing buttons corrosponding to your desired media player. This should be reletively straightforward. When the BT is connected, show the scene with the buttons then launch your choice. This can be done with the AutoLaunch plugin or by android intent by running code 'am start --activity-reorder-to-front PACKAGE_NAME/MAIN_ACTIVITY'. The main activity intent is easily found through terminal if you're rooted but I dont remember how to find it if you're not rooted.
For the call I would use the State profile "Call". I am not sure if this will activate after the call is connected or while the phone is ringing for incoming calls. If its when the phone is ringing I would then set up a loop with "AutoInput Query" to check whether the call was connected. Run a couple tests with the query to see what the variable values are when the call is connected and check for those values to escape the loop. When the call is connected, use auto input to click on the speakerphone button automaticly. You can use the auto option to configure this or you can go into developer mode on your phone and enable show pointer location to get the coordinates. Coordinates are faster that text matching, but you might have to add a wait for 500ms to avoid it touching too early.
That should be it, pretty straightforward. You've inspired me to update this list with my new rotate toolbar and fixes. Happy tinkering!
That being said, I would be willing to do it for you if you would rather pay for a finished solution. However, I greatly encourage you to give it a go yourself, the possibilities are endless once you get comfortable with Tasker.
I've been using this tablet for a few days now, and I've noticed that I don't have the manual rotation feature or a toggle for it. (It's the one that shows a little rotation button prompt when you turn your device, with 'auto-rotate' turned off.) Apparently, One UI devices should have a toggle in the sub-menu that appears when pressing the text in the Auto-rotate quick settings tile, but my Tab S3 doesn't show the toggle there. (Weirdly, my Note 8 also doesn't have the toggle but the feature is active anyway)
I did find a solution, which is an app called Tap'n'Turn that so far is working nicely, but I'd thought I'd ask if there were any other solutions that don't rely on a constantly running service.
Also, I'm running rorymc928's tweaked version of the T820 stock ROM based on the original Android Pie release (September 2019 I think), with Riru EdXposed. Thought I'd add that info just in case I've accidently done something that's hidden the toggle if it's supposed to be present. (On that note, I did try disabling GravityBox, but that made no difference.)
Hi to all!
I really like old OnePlus5 slider behavior with DND mode on middle position. I tried to recreate this with Tasker using many guides on XDA bu to no avail. I have rooted Nord 2 DN2103 (TWRP + Magisk), OOS V11.3.
What I have tried:
1) Emulating hardware inputs of slider with getevent/sendevent, but slider actually sends the same event no matter what position it is moved into, so no result
2) Tried to change all custom settings found by Tasker after slider move:
alert_slider_mode
mode_ringer
oplus_mode_ringer
zen_mode_ringer_level
Only result - I can change the icon of slider mode (ring/vibrate/silent) near the slider, but no actual change to audio mode and volume is still locked in vibrate and silent.
3) I have treied several variants of three_key_mode setting - but it is not present in my phone in the same way as in older guides
What I have found: in /proc/tristatekey folder there are 4 files:
tri_state - contains state as old three_key_mode
hall_data - contains actual position of slider in some kind of coordinates
hall_data_calib - contains threshold levels which defines at which coordinates slider state will change
hall_debug_info - ?dunno?
What is interesting, that hall_data is constantly fluctuating a bit, looks like the system is constantly monitoring coordinates of the slider which could make it difficult to override.
I am completely unfamiliar with *nix systems, so I was not able to change any of these files, even after giving them all permissions and running adb shell as SU. My guess is that /proc is not an usual files folder rather than virtual one, mirroring some internal system state in usable/readble format, so changing these files probably won't change system state even if I managed to do it. Logcat from Tasker also don't show any explicit files manipulation like storing tri_state value. I can add log if needed.
Questions:
1) Will changing either tri_state or hall_data force system into overriden slider state?
2) If yes - how could I change files in /proc?
3) If no - any other ideas so far? Maybe use Tasker Java code function to force AudioManager into desired state?
I would appreciate any help or ideas to explore further.
If someone steals your phone, they will immediately turn off wifi/data services and then turn off cellphone
I've just realized I can do both without needing to unlock. In case of a theft I will be unable to use the android device options to clear the phone memory.
Do you know if there is any option to block these functions while locked? I can't find it anywhere.
Unfortunately there is no option to block access to quick tiles while on lockscreen. It's one of least secure phone which I had since few years, even if they claim differently.
The solution I'm using is:
Use app called Shortcutter which let you put wifi icon in quick tiles and block access to it while on lockscreen. Not all options works as should but it's one solution.
I disabled all tiles eg. gps, airplane mode from quick tiles as I'm not using them (gps, data always on)
Hope it will help
Thank you for pointing this out, I would take those options off the tiles and use them from the settings menu.
Just extra precaution in case you lose or someone steals your phone.
Does someone know how android 12 custom Roms behave in this topic?
GrapheneOS asks you to unlock the phone when you press the Airplane mode tile, for example.
protonaosp also asks you to unlock the phone before disabling internet
Thanks for both replys! Now I have an other reason to try GrapheneOS
What iv done I didn't notice it tipp this post iv removed the settings from the tile qmd then did a shortcut on home screen to settings then internet works ok that way can confirm it's the same on a pixel 6 pro and a pixel 4a to
It looks like all custom roms support this security on lockscreen. I'm using Evolution X rom (unfortunately discontinued at this moment for pixel 6/6pro).