Can't set any app as device administrator - OnePlus 5T Questions & Answers

I can't tap anywhere to set it, here's a screen.

Related

[MOD] How To DISABLE HOME BUTTON WAKE & Assign SWIPE WAKE

This all started after I noticed how much I accidentally hit the Home Button with my flip case on the Note 2,
It sometimes woke the phone and jumped it directly into an app, and thus, can also make unsolicited phone calls or such.
This will come in handy if you have a sticker (or elevated) home button, and when you need to wake the device quickly without having to hit the power button (i.e. check maps while driving, etc.)
**Video demonstration coming soon**
WHAT THIS DOES:
1) Disables your home button wake. Meaning that you will officially stop the home button from waking up your device.
2) Every other function of the home button will be left unchanged.
3) Use app called "GestureDroid" from the Play Store to wake device without having to hit the powerbutton.
INSTRUCTIONS:
**NOTE: You do this at your own risk, you will need to have ROOT in order to perform the first task of disabling your Home Button wake function.
1) Use a file explorer such as Root Explorer (recommended. It creates a wonderful backup of the modified system file) or ES File Explorer from the Play Store. Open up the app
2) Navigate to SYSTEM in your root directory (directory should appear as "/system"), then navigate to USR, and finally locate the folder KEYLAYOUT
4) Mount the read/write to read/edit: Press the "Mount R/W" grey box on the top right area (if using Root Explorer) and it should switch to say "Mount R/O".
5) Look for the file titled as "gpio-keys.kl", and long press for options (if using Root Explorer) and choose the option to "Open in Text Editor"
4) Once in Text Edit mode, look for the line "Key 172 HOME WAKE" and remove the word "WAKE".
7) Press back, confirm and save. Root explorer should now have saved a backup file for you.
8) REBOOT
TOGGLING WAKE GESTURE
1) Go to the Play Store and look for the app called "GestureDroid". There is a free version, and if you want more functions, I would suggest that you support the developer and purchase the pro version for $1.31 USD.
2) Open the app, and tap the green checkmark to enter. Enable "Start/Stop service", and also your preferred choice of 1 gesture or 2 gestures (and etc, if you have the pro version)
3) Under "Action", select WAKE PHONE
4) Go to "Advanced Settings", select ACTIVATE SENSOR IN SLEEP and also ENABLE IN LANDSCAPE.
5) Personally for me, I've edited the Maximum time to become 350ms, this permits me to swipe at a comfortable speed without going frantic trying to wake my phone. I have also changed the Minimum time to be 300ms, and Wake Time to be 6000ms.
**ADDITIONAL NOTES:
- App is on, even if it doesn't show on Notifications Area.
- App can also wake into lockscreen or bypass lockscreen
- You should notice a faint red glow on your sensor if the app is working
- You will need to do your swiping motions closer to the sensor if it doesn't seem to work
- After rebooting, the app might need to be refreshed, turned on/off again, or have the "Activate Sensor in Sleep" option re-enabled.
- For flip cases, I would recommend choosing the "2 Gestures" option.
CREDITS:
Gesture Droid
Root Explorer App
and other tweakers who have done a similar task of disabling home-wake
(i.e. http://forum.xda-developers.com/showthread.php?t=2017221 or http://www.youtube.com/watch?v=GhB5kJGQKsI)
If this MOD has helped you, HIT THE THANKS BUTTON.
I don't have a problem with my home button I think it's a little too hard yet. As far as the app you suggest, I suggest proximity sensor as it is a much better app that works to turn on and off your phone using the cover. Note, you might have to put a thin card on the inside of your cover.
Sent from my SGH-I317 using xda premium
For those who find some issues with GestureDroid (the sensor turns off occasionally) try a app called "Tap Tap App". You need to give it permission to act as administrator over screen on/off after you install the app, but I find that it's a lot more reliable because of this reason.
Tweak with the settings by going into "Unlocking Training", and then selecting "Sensor configuration".
Sent from my SGH-I317M using xda app-developers app
I used this mod because everytime I slide it into my pocket, I do so upside down which means to grip it and pull it out, I tend to hold it in a way that hits the home key before it's out of my pocket causing all sorts of issues for me. Looking around, I also noticed a few configuration files for various controllers and keyboards including the usb Xbox 360 controller and the Apple keyboard. Is it possible to write/download one for something like the PS3 Sixaxis?
Do you mean finding an app that can offer plug and play of your PS3 controller? Or do you mean configuring the individual buttons?
This is the app that's available for the six axis controller:
https://play.google.com/store/apps/details?id=com.dancingpixelstudios.sixaxiscontroller
Sent from my SGH-I317M using xda app-developers app

[Solved] Disable swipe to unlock screen

Is there any way to disable the swipe to unlock on the G3 and just have it open to the phone when I tap the screen?
Let me explain... I followed the guide on here ( bliynd dot com *slash* archives *slash* 289) which allows you to use tasker and secure settings to write a profile that will disable your lock screen when you are on your home wifi (it is basically what the next version of android will have built in). I have a pin screen that welcomes you when you wake the phone whenever I am out but when I am on my home wifi it just shows the "Swipe in any direction to unlock" screen but I just want to be able to turn on the screen and have it just show my phone.
Is this possible?
demonjrules said:
Is there any way to disable the swipe to unlock on the G3 and just have it open to the phone when I tap the screen?
Let me explain... I followed the guide on here ( bliynd dot com *slash* archives *slash* 289) which allows you to use tasker and secure settings to write a profile that will disable your lock screen when you are on your home wifi (it is basically what the next version of android will have built in). I have a pin screen that welcomes you when you wake the phone whenever I am out but when I am on my home wifi it just shows the "Swipe in any direction to unlock" screen but I just want to be able to turn on the screen and have it just show my phone.
Is this possible?
Click to expand...
Click to collapse
just put it on none
jaythenut said:
just put it on none
Click to expand...
Click to collapse
I just noticed that tasker was not running. Enabled tasker and it worked.

Options to turn screen off without hardware button that allows you to re-open?

I've tried various screen off apps and they all require secondary security to turn back on when using the fingerprint scanner. Any ideas?
Would love for an option where the fingerprint scanner can also turn the screen off or even an OK Google command, but then allows the fingerprint scanner to reopen without secondary security.
+1
Sent from my Nexus 5X using Tapatalk
hmmm, you can try to use command 'input keyevent 26' , for tasker task...
this will required root though.
Jackpot! A widget pointing to a tasker task that uses secure settings to run command 'input keyevent 26' as root works like a charm!
Sent from my Nexus 5X using Tapatalk
minnemike said:
I've tried various screen off apps and they all require secondary security to turn back on when using the fingerprint scanner. Any ideas?
Would love for an option where the fingerprint scanner can also turn the screen off or even an OK Google command, but then allows the fingerprint scanner to reopen without secondary security.
Click to expand...
Click to collapse
I was just going to post a similar question. I don't have the phone yet, but i thought maybe someone can create something that allows the fingerprint scanner to turn off the screen. The finger is already in that area so it would be cool to either hold fingerprint scanner for a second to turn screen off or double tap the scanner.
jpen said:
I was just going to post a similar question. I don't have the phone yet, but i thought maybe someone can create something that allows the fingerprint scanner to turn off the screen. The finger is already in that area so it would be cool to either hold fingerprint scanner for a second to turn screen off or double tap the scanner.
Click to expand...
Click to collapse
Any solutions yet?
scottfreeze said:
Jackpot! A widget pointing to a tasker task that uses secure settings to run command 'input keyevent 26' as root works like a charm!
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
Thanks for this! Added it as a Tasker shortcut for double-tap gesture in Nova and it works like a charm.
Great tip. Got tasker set to Nova pinch out to turn off. But also have option to run task from Notification menu as well.
For those who have never used tasker before like me here is a quick note on how to set it up:
Select TASKS tab at top, select + button at bottom, give it a name (screen off) and press check mark.
You will then enter Task Edit. Press + to add an action, then select Code as your action category, then choose Run Shell.
Paste in the text: 'input keyevent 26' under the Command field. Check the Use Root option. Back out once and choose an icon for it if you want at the right lower corner. You can now place a widget for the task or launch the task with Nova etc. And/or go into Preferences and under the Monitor tab you can add it to the Notification Action Buttons.
solara1973 said:
Great tip. Got tasker set to Nova pinch out to turn off. But also have option to run task from Notification menu as well.
For those who have never used tasker before like me here is a quick note on how to set it up:
Select TASKS tab at top, select + button at bottom, give it a name (screen off) and press check mark.
You will then enter Task Edit. Press + to add an action, then select Code as your action category, then choose Run Shell.
Paste in the text: 'input keyevent 26' under the Command field. Check the Use Root option. Back out once and choose an icon for it if you want at the right lower corner. You can now place a widget for the task or launch the task with Nova etc. And/or go into Preferences and under the Monitor tab you can add it to the Notification Action Buttons.
Click to expand...
Click to collapse
Thanks for this detailed description. I've never used Tasker before either, so I'll give it a try. It's a shame such a step is required.
How was it determined that "input keyevent 26" would solve the problem? Will doing this interfere with OTA updates, since it may change a system setting?
Can I use Soft Lock Screen to turn the screen off?
Pumpino said:
Thanks for this detailed description. I've never used Tasker before either, so I'll give it a try. It's a shame such a step is required.
How was it determined that "input keyevent 26" would solve the problem? Will doing this interfere with OTA updates, since it may change a system setting?
Can I use Soft Lock Screen to turn the screen off?
Click to expand...
Click to collapse
There's a known list of Android commands that software can use to simulate some hardware presses, etc.: http://thecodeartist.blogspot.com/2011/03/simulating-keyevents-on-android-device.html
Tasker or using the keyevent 26 will not interfere with the system in any way. By sending the keyevent 26 you are doing exactly what pressing the Power button does - only with software. It does nothing to change any system settings. Not sure about the Soft Lock Screen app, but I suspect that like other software, if you use that, you will prob need to re-enter your password/pattern/pin and the fingerprint won't work. By sending the keyevent 26, you can still unlock it using the fingerprint sensor.
solara1973 said:
Great tip. Got tasker set to Nova pinch out to turn off. But also have option to run task from Notification menu as well.
For those who have never used tasker before like me here is a quick note on how to set it up:
Select TASKS tab at top, select + button at bottom, give it a name (screen off) and press check mark.
You will then enter Task Edit. Press + to add an action, then select Code as your action category, then choose Run Shell.
Paste in the text: 'input keyevent 26' under the Command field. Check the Use Root option. Back out once and choose an icon for it if you want at the right lower corner. You can now place a widget for the task or launch the task with Nova etc. And/or go into Preferences and under the Monitor tab you can add it to the Notification Action Buttons.
Click to expand...
Click to collapse
Thank you for explaining it. Does this require a root? And does it require Nova Launch?
minnemike said:
Thank you for explaining it. Does this require a root? And does it require Nova Launch?
Click to expand...
Click to collapse
It does require root to be able to let Tasker run a shell command. You would not need Nova launcher as you can easily put a widget to launch the Task within Google Now Launcher or any other launcher. Nova launcher is nice because it enables gestures and double tap to do certain actions. I have Nova to launch my phone app when I tap the Home button on the main home screen. Double tap runs my Task to turn off the phone. Pinch in, pinch out, two finger swipe down/up, etc.
Could you have something trigger Tasker to temporarily change the screen timeout to 1 second (and then change it back after the screen is off)?
solara1973 said:
It does require root to be able to let Tasker run a shell command
Click to expand...
Click to collapse
I guess I won't be using this technique then, as I don't want to root at this stage.
Is it possible to get Nova to turn the screen off by something like double-tapping on the status bar (without root and Tasker)?
Pumpino said:
I guess I won't be using this technique then, as I don't want to root at this stage.
Is it possible to get Nova to turn the screen off by something like double-tapping on the status bar (without root and Tasker)?
Click to expand...
Click to collapse
Nova launcher does not have a function to send keyevents or turn off the screen etc.
You can always try some of the Screen Off apps on the playstore and see if anyone of those allow you to unlock the phone again using Imprint. Swipe-Lock, Screen Off and Lock, Screen Lock, etc.
this one works (experimental) https://play.google.com/store/apps/details?id=com.iglint.android.screenlockpro&hl=en
it is paid one

Fingerprint screen overlay.

I have an app which will allow for the use of my finger print to open it. The thing is it wants me to type in my password then set my fingerprint. However the Samsung fingerprint overlay screen is full screen so I can't type the password into the text field.
Is there a setting on my phone I'm missing? Or away to change the fingerprint overlay screen?
Big20x said:
I have an app which will allow for the use of my finger print to open it. The thing is it wants me to type in my password then set my fingerprint. However the Samsung fingerprint overlay screen is full screen so I can't type the password into the text field.
Is there a setting on my phone I'm missing? Or away to change the fingerprint overlay screen?
Click to expand...
Click to collapse
Tell the app developer to update.

[Guide] AOD activeclock (clocktransition) bug workaround on non-flagship phones

This guide is mainly for those who know what the "clocktransition" or "activeclock" bug is, where your AOD brightness drops significantly after a few seconds of AOD set to always on while you have the under-display FP reader on.
This workaround functions by turning AOD off and then on after the screen turns off, eliminating this bug from happening.
It's not perfect but gets the job done.
We use an app called "Tasker" from the Playstore (as well as "Tasker Settings")
Here's the guide:
Open Tasker Settings first just to make sure it's running
You can do this at any time, but make sure you remove Tasker from apps that can optimize battery usage (the app will constantly remind you about this anyway)
Open Tasker and go to the "Tasks" tab (dismiss any of the annoying reminders you get from Tasker)
* Add a new task (+ sign at the bottom) and give it a name. Any will do. I will name it "Aod off-on"
Then add an Action on the screen it takes you to (+ sign at the bottom)
In the "Select Action Category" pop up, search for "Wait" and select it. This "Wait" command is done so that there is a few seconds before the task can turn AOD off and on so you can fully appreciate the clocktransition animation. You can add any value you want here. I recommend between 3 to 7 seconds but it's up to you.
Save (back button)
Add a new action
In the "Select Action Category" pop up, search for "Custom Setting"
In the drop down menu under "Type", select "System" instead of "Global"
In "Name", type aod_mode
In "Value", type 0
Save (back button)
Add a new action
In the "Select Action Category" pop up, search for "Custom Setting"
In the drop down menu under "Type", select "System" instead of "Global"
In "Name", type aod_mode
In "Value", type 1
Save (back button)
You are done with your task, now go back and create a profile that will trigger it
Switch back to the "Profiles" tab and add a new profile (with +)
Select "Event" -> Search for "Display Off"-> Leave Normal Priority
Go back and it will request that you select a task, select the one you created
You should be done. Now, the task will activate everytime you turn the screen off.
Note: If this doesn't work for you, you'll probably have to edit the task and in both instances where you change the aod value to 1 and 0, you'll have to give it root permissions (there should be a checkbox when editing the task and the action to use root)
Enjoy, let me know if it works for you!

Categories

Resources