yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] keertikumar_ws:
Hi,

Important : Requires ROOT

This is a simple App that emulates the click of Power Button.

Handy when u want to reduce wear and tear of the physical button or if the button is not working.

Currently the following method of Trigger are available:

- Using the Swipe Up Assist action which usually opens the Google Now App

- Application icon (In Launcher)

- Shortcut

- Intent Support - Use 'in.pathri.screenoff.SCREEN_OFF' as Intent action to trigger screen off from ANY App, including TASKER

Following are planned to be added:

- Widget (Is it Needed?? )

- Tasker Extension

Advantage over other similar apps in Market:

The usual 'Screen Off' 'Screen Lock' Apps that are available in market, makes the 'Smart Lock' feature introduced in Lollipop not work. Also this makes the timeout period set in the 'Automatically Lock' security settings to not work.

Since my App uses shell commands (and hence the need for Root) to emulate Power Button press, both Smart Lock and 'Automatically Lock' settings work. :)

Disclaimer:

AFAIK should not cause any problems in any device since nothing dangerous is being used. But still the usual disclaimer : ' I am not responsible for any damage done to your device, hand, home etc... LOL :p'

Have tested so far in the following Mobiles. Would be glad if others test it out in various mobiles and report here.

Nexus 5

HTC One X

Change Log:

v0.1 - 5th Jan:

- Initial Version with only Google Now Swipe gesture support

v0.2 - 8th Jan:

- Added the following:

Application launcher

Shortcut

Intent Support : 'in.pathri.screenoff.SCREEN_OFF'

v1.0 - 18th Jan:

Modified code to support more Devices. Probably must work in all Android devices irrespective of Android Version

v1.1 - 20th Jan

Shouldn't be showing in recents anymore

v1.2 - 20th March

Added icon for the swipe up gesture

Fixed a bug that was causing adding shortcut to crash in certain launchers(AFAIK GEL based)

v2.0b - 30th March

Adding a new material icon - thanks to [MENTION=2936784]slider112[/MENTION]
[Android Apps and Games] thahim:
Cant we turn off screen from tasker alone
[Android Apps and Games] keertikumar_ws:
That feature is not yet available. It is planned though in future updates :)

If possible can you verify If the swipe up gesture is turning screen off in your phone? Would like to confirm whether my App is working across devices

Thanks
[Android Apps and Games] thahim:
It brings my magazines app.

What I meant to say is that we can do this with tasker.
[Android Apps and Games] keertikumar_ws:
AFAIK, If we use tasker to screen off, it will immediately lock and would not respect the Smart Lock feature. Please correct me If am wrong.

Regarding the gesture bringing up the magazine app, have u configured the swipe up gesture do that by default ? Or After installing this App,the swipe up gesture got assigned to it?
[Android Apps and Games] thahim:
This is default action on my phone. I can't reconfigure it.
[Android Apps and Games] keertikumar_ws:
Oh ok. Is it possible for u to clear defaults for that magazine app and test out this App. Just wanted to be sure it works across devices :)

Btw, what device are you using?
[Android Apps and Games] thahim:
No its by defaultfs, and this action can't be changed on note 3.
[Android Apps and Games] kleineronkl:
I want to use this app with Nova Launcher.. Double tap Funktion .. Choose app under nova settings. But i couldn't choose your App. It isn't also not in my App drawer.

Sent from my Nexus 5
[Android Apps and Games] keertikumar_ws:
Currently this app supports Google Now swipe up gesture only. Other forms of opening the App will be updated soon :)
[Android Apps and Games] keertikumar_ws:
Oh..ok.. Then I Guess the swipe up gesture you are talking might not be the one I am referring to. The gesture I am referring to usually triggers Google Now /Google search

Does the gesture that opens the magazine app, work on custom launcher?? If no, I Guess that gesture is part of Samsung launcher and can't be overridden without launcher replacement :(
[Android Apps and Games] keertikumar_ws:
Hi, Possible to try the new v1.0 of this app? Guess it should be working as expected using Nova :)

Hi, Is it possible for you to test this app either through the App in the App Drawer or through shortcuts? Would be glad if you could test it, so that we can be sure of the devices that the App supports.

Thank u :)
[Android Apps and Games] thahim:
It works when I click the icon my phone locks.
[Android Apps and Games] keertikumar_ws:
Thanks a lot my friend :)

Regarding overriding the swipe up gesture in ur Note 3 , I think it might be possible with an Xposed module. I have never written one, so not Sure. I am ready to try to make a Xposed module, If it's ok for u to test it out in ur mobile (have no previous experience in writing Xposed module, so a word of caution )
[Android Apps and Games] thahim:
I have tried that mod already it doesnt replaes the gesure action.
[Android Apps and Games] keertikumar_ws:
When i searched in Xposed module repo, i couldn't find any module related to the swipe up gesture :(

Which mod u tried ?? :confused:
[Android Apps and Games] ratbags:
For some reason not working for me on nexus 4. Gave su privileges but setting up shortcut or opening app do nothing. Edit: this was some glitch with super user, reinstalling sorted it thanks.
[Android Apps and Games] keertikumar_ws:
Great :)
[Android Apps and Games] ratbags:
Can you work it so it doesn't show up in recent apps list? Thanks.
[Android Apps and Games] keertikumar_ws:
Strange. For me it is not appearing in the Recent apps list. May be caused by Android version difference. BTW which Android Version are u using? And how did u trigger the App(Via App Drawer, shortcut, Google Now Assist gesture) ?

[MENTION=2833188]kleineronkl[/MENTION] and [MENTION=386274]thahim[/MENTION]

Possible to check in your mobile whether it is showing up in Recent App List? Thank u
[Android Apps and Games] kleineronkl:
[MENTION=2833188]kleineronkl[/MENTION] and [MENTION=386274]thahim[/MENTION]

Possible to check in your mobile whether it is showing up in Recent App List? Thank u[/QUOTE]

Checked. It is.
[Android Apps and Games] keertikumar_ws:
[MENTION=6343418]ratbags[/MENTION] and [MENTION=2833188]kleineronkl[/MENTION]

Updated app to v1.1. Shouldn't be showing in Recents any more. Please let me know if it isn't working. Thanks for the feedbacks, Really Appreciate it :)
[Android Apps and Games] californicated:
Seems to work fine on N5 with 5.1. An small suggestion: Although I like how the app icon looks like, it might be a nice idea to update it to material guideline.
[Android Apps and Games] ndg1988:
Device Updates

I tried this on a few devices with no success. I installed the app on a rooted Nexus 6 and 7 running Lollipop and the action does nothing. Not only does the Google Now gesture not work, but it won't even let me apply the widget.

Please let me know if I'm missing something, or if this can be fixed.

Thanks.
[Android Apps and Games] keertikumar_ws:
Sure will work on it. Thanks a lot for your feedback :)
[Android Apps and Games] keertikumar_ws:
Very sad to hear that it is not working for u :( After installing, When u do the swipe up action, what actually happens? Does it show u the application picker? Also does the desktop shortcut turn off the screen?? If not possible to send me a logcat so that I can see what exactly might be the issue? Thanks a lot for ur support :)
[Android Apps and Games] ndg1988:
I actually had a similar problem as the comment above me with SuperSU. After uninstalling, re-installing, and successfully granting SuperSU, I was able to get it working.

Thanks for the app and keep up the awesome work.
[Android Apps and Games] keertikumar_ws:
Ahhh... I see. So the app requested for root access only After reinstalling the app. Is my understanding correct?

Please Press Thanks If I was helpful in any way :)
[Android Apps and Games] ndg1988:
The issue is about timing. After using the Google Now gesture and setting the action to perform ScreenOff "always", you need to make sure to grant SuperSU permission quickly when the window pops up. If you allow access later, through the SuperSU app, it won't work properly.

Did that make sense?
[Android Apps and Games] keertikumar_ws:
Yup It does. Thanks a lot for the explanation. Will check if possible to make the SU issue go away ;)
[Android Apps and Games] ndg1988:
Thanks for being so attentive. I actually work for WonderHowTo.com (http://creator.wonderhowto.com/neilg/) and I'll be covering your application very soon, so thanks again.
[Android Apps and Games] keertikumar_ws:
Woowww.. Thanks a lott :D
[Android Apps and Games] marvasten:
It does not in Moto G (XT1032) with 5.0.2, rooted
[Android Apps and Games] keertikumar_ws:
What happens on the swipe up gesture? Is only the swipe up gesture not working ? Or the shortcut too is not working??
[Android Apps and Games] justk3ys:
Working good on my z ultra stock rom 4.4.4 rooted

.. But can you change icon search with icon shutdown when i swipe up
[Android Apps and Games] marvasten:
My mistake. Root permission was denied. I allowed this and it's working OK.
[Android Apps and Games] tw1tch175:
So I sent in a report about this app crashing Action Launcher when I try to set the shortcut from this app. Turns out the crash is a result of the app not being named correctly.

This is Chris Lacy's comment on it

http://i.imgur.com/3TRPiKH.png
[Android Apps and Games] keertikumar_ws:
[MENTION=5466501]justk3ys[/MENTION] - I didn't notice it till u mentioned it :eek: Will update it in the next release :)

[MENTION=3397810]tw1tch175[/MENTION] - I am not sure what the comment means actually. Will take a look into it by installing 'Action Launcher' and let u know the results by this week :good: Thanks for the report :)
[Android Apps and Games] tw1tch175:
It's in the latest beta and he already fixed the issue for the next update, I'm not sure exactly what he means by it either. Just thought I would pass it along.

Edit: It seems on the Nexus 6 that this app for some reason breaks ambient display and double tap to wake. I'm not sure what is causing it

This command seems to work so I wonder if it can be added to the app? http://xdaforums.com/showpost.php?p=59433129&postcount=640
[Android Apps and Games] keertikumar_ws:
I don't understand clearly what needs to be added to the app :( It is already using command similar to the one that is mentioned in the post u linked.

Possible for us to take it offline coming this weekend so that it would be faster for us to communicate?
[Android Apps and Games] tw1tch175:
Well I just reinstalled and it doesn't seems to be causing a problem this time, maybe something else was acting up at the same time.

Also anyway an update on the name thing, for some reason when setting the shortcut for this app it doesn't properly send the apps name to the program calling it

Also, thank you for this app...though I really wish it was just part of android, cmon google.
[Android Apps and Games] keertikumar_ws:
Yeah seriously, Screen Off needs to have a separate API so that it respects the Smart Lock feature. Hope they add it soon :)

Regarding the issue which got fixed by reinstalling, was it the Nexus 6 ambient display issue?

Also, in which version of the launcher was it crashing? So that I can do appropriate changes in my app also. Many application might crash If used with my application right...If the issue isn't fixed..that's Why :)
[Android Apps and Games] tw1tch175:
I was broken in beta 3, I don't know if you can still get it though as he pushed beta 4.

http://i.imgur.com/kLRhdqf.png

Here is what he did to fix it, under tap empty space both of those are set to the shortcut for ScreenOff. So I'm not sure why the launcher wasn't able to request an app name for the shortcut.
[Android Apps and Games] keertikumar_ws:
Updated the App. The new version 1.2 should be displaying an icon in the swipe up gesture now :)

[MENTION=3397810]tw1tch175[/MENTION] : Regarding the crash you were reporting it in Action Launcher beta 3, I tried to get the latest Beta and noticed that the base look of the launcher was that of the GEL. Installed GEL and tried adding my app's Shortcut to home screen and GEL crashed immediately :eek:

Found the bug and its now fixed and working in GEL also :good: Thanks for the bug report :)
[Android Apps and Games] keertikumar_ws:
Guys, I am planning to push the App to Play Store. But I feel the Apps description can be a lot better than the current one. Any help appreciated in editing the Apps Description :fingers-crossed:

Also, as one of the member suggested, need to get a new icon that complies with Material Design. Any suggestions on a new icon ??
[Android Apps and Games] tw1tch175:
Well your app store description should probably start with,

"YOU MUST BE ROOTED! NEEDS ROOT! ROOT USERS ONLY!!!!!! - If you leave a negative review because you don't have root I will punch you." :good:
[Android Apps and Games] slider112:
I love this icon:

I also love the app, works great on my N6 :good:
[Android Apps and Games] vasilis_:
Is there a tap to unlock device option or swipe to unlock available?
[Android Apps and Games] keertikumar_ws:
Great start [emoji23] Will be included... Thank u [emoji3]
[Android Apps and Games] keertikumar_ws:
Icon looks kool [emoji6] will wait to see If any more suggestions come up.. and If none else comes up this will be the icon of my little App [emoji5]
[Android Apps and Games] keertikumar_ws:
Unfortunately unlocking using touch gestures can't be achieved Just by using a App. U need to have a custom kernel that supports it. There a lot of Kernels out there with such options . One thing I could remember was, 'double to wake ' option. Google is ur best friend [emoji6]
[Android Apps and Games] californicated:
Perfect :good:
[Android Apps and Games] vampire36:
[MENTION=3983081]keertikumar_ws[/MENTION] : Works perfect on N4
[Android Apps and Games] tsalta:
Awesome app :) exactly what i need it.

I used to use Slide UP to sleep on My HTC M8 with Sense Toolbox since the new Lolipop and Sense the toolbox not working anymore so intsead to sliding to the status bar and stuffs like that i just asign this app to my softkey button

Double press HOME and the device is puted on Sleep

I do like the option for the Slide up gestures as weel if u dont use google now is good idea but in case you use it just asign action for the softkeys action bar :)

Thanks mate
[Android Apps and Games] keertikumar_ws:
Thanks a lot for ur feedback. Appreciate it :)
[Android Apps and Games] peterbonge:
Nice app, especially for people without Tasker.

For people with Tasker (and root): It is possible to emulate the power button with a shell command:

Action -> Code -> Run Shell -> Command = "input keyevent 26" -> Enable "Use Root"

I've tested it with my Nexus 5 and it respects Smart Lock.
[Android Apps and Games] tw1tch175:
If you are going to put this on the play store I do have one massive recommended that will probably save you a lot of headache.

Make selecting the app actually start an app instead of just shutting the screen off. The way SuperSU breaks the first time you try to run the app will be a major issue for a lot of users. If you have it actually load an app you can have a "Give Root Access" button right at the start so the user can grant supersu access by having the app run some other root command so SuperSU recognizes the app and can be told to permanently allow it. You will have to rely on shortcuts, intent, the swipe up and probably a widget for actual screen off but it seems like a small sacrifice.
[Android Apps and Games] keertikumar_ws:
Sounds great :good: . In that way I can have some info about the usage of the App and as well as link to this forum for support ;)
[Android Apps and Games] keertikumar_ws:
Tried adding the icon [MENTION=2936784]slider112[/MENTION] provided and the shortcut and Application icon look great :D but using the same image for swipe up seems big to me. Have attached a Screen shot. Let me know how it looks for u guys. If it looks big, have to some how reduce it to an exact size ( tried reducing it randomly but a white background around the icon is getting displayed)

Will also add two versions of apk with big and small icons for swipe up in the main post.
[Android Apps and Games] lambdaplus:
This works perfect!

I'm using Nexus 5. I use this app for locking screen (through a power toggles shortcut).

Smart lock feature works in tandem with Gravity screen, which I use to wake device through proximity sensor. :good:

Thanks a lot :)
[Android Apps and Games] Arstoien:
Yes but Tasker is actually slower. Good job to the dev and thanks! A small thing is that I don't like seeing an icon when swiping up, and would appreciate it if I had an option to not see an icon there. Looks super smooth on Lollipop.
[Android Apps and Games] keertikumar_ws:
Completely removing any visual indication for the swipe up might be completely out of scope for an App,as I think it would involve doing changes in Android itself. But I will Keep it in my To-do list to see the extent to Which it can be achieved using an App ;)
[Android Apps and Games] Arstoien:
I think it's just a matter of removing the icon from the swipe, no? At least if I assign Tasker profile assist, then it doesn't show me any icon, and it's just the white semi-transparent circle expanding, and it looks quite slick.

Here's your app: https://www.dropbox.com/s/7ya0niosidifjdt/Record_30_2_2015_21_20_1.mp4?dl=0

Here's what I mean (using Tasker): https://www.dropbox.com/s/h54wobw5jkaljf9/Record_30_2_2015_21_19_13.mp4?dl=0

(download the vids, to see full framerate. They're only 1.5MB each)

Hope you see what I mean :)
[Android Apps and Games] keertikumar_ws:
Ahhh I see, so you just need no Icon. My understanding was that you wanted that semi-transparent circle itself be removed :eek: . This can be done I guess :) Will try to include such an option in my next update. But my next update might take time though :( Bit busy with my personal works
[Android Apps and Games] keertikumar_ws:
Need Help Guys

Any feedback ?? :confused: I dont know how to reduce the size of the image, it's giving a white border if i reduce the size :( can any one help me?
[Android Apps and Games] californicated:
For the appdrawer, the icon could be a tad smaller. Other than that it looks great.

The white border when swiping up isn't that bad. But here I'd prefer the old icon. The transparent background makes it integrating nicely as if it was a stock feature.
[Android Apps and Games] aamadorj:
Thanks for this app. It's working perfectly at my N5 running a custom Lollipop ROM.
[Android Apps and Games] misteurz:
Perfect app! It does what I needed!

Envoyé de mon LG-D855 en utilisant Tapatalk
[Android Apps and Games] hawara1995:
Best app

Thank you so much, simple feature but i need it everytime on

my LG G2 :)
[Android Apps and Games] cybercop007:
avast shows threat

i ve been looking for such an app but after installing the avast anti virus app in my android phone says screen off a potential threat.

why is it??
[Android Apps and Games] keertikumar_ws:
I am seriously not sure why. My best bet is just because this app requests root access.

As a off topic discussion , is an anti virus app really needed for android platform?? [emoji102] I have never used one in the android devices I had, and I have never faced any 'virus attack ' [emoji15]
[Android Apps and Games] Arstoien:
It is most certainly not needed. One of the reasons is this here. A little bit of common sense is 10 times more useful than "anti virus" on Android.
[Android Apps and Games] keertikumar_ws:
Exactly my thoughts [emoji106]
[Android Apps and Games] riceknight:
Doesn't seem to work on my 2nd gen Moto X. Gave Supersu permissions, but nothing happens with the app or shortcut. Any suggestions would be very much appreciated.
[Android Apps and Games] keertikumar_ws:
Can u try reinstalling it? Some users have reported that re installation makes the app work and might be due to some strange reason the app is being denied su access.
[Android Apps and Games] cosme1:
Cool app. Thanks bro!
[Android Apps and Games] giorgis91:
Doesn't work on MM anymore

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] kryzeK:
It's work nice in my N4 with MM. But I downloaded the small_icon version and... this is so big! hahahaha Don't follow the material design guidelines (shadow and size). So, please, you can fix it?
[Android Apps and Games] :
That's very bad news :( I'll update further on, I just hope this will be fixed because living without this app would be grim :(

Nexus 6 64gb - CyanogenMod 12.1 (Android 5.1.1) [MENTION=3705640]520[/MENTION] dpi

LG G watch R
[Android Apps and Games] giorgis91:
Don't worry. I uninstalled and installed 2.0 version and now it works :)
[Android Apps and Games] :
Wow amazing :) thank you for letting us know!!

Nexus 6 64gb - CyanogenMod 12.1 (Android 5.1.1) [MENTION=3705640]520[/MENTION] dpi

LG G watch R
[Android Apps and Games] tauru242:
How can i put screen off app instead of google now.?I want it to work when i long press the home button. I am running android 6.
[Android Apps and Games] Arstoien:
Not possible atm, as far as I know.
[Android Apps and Games] crescal:
I have looking for this for a long time! Thanks for this!

One strange point to note though: After installing the app, I selected "Open" in the installation screen. For some reasons, SuperSU denied the root access automatically. After that I couldn't make this app work, not even enabling the root access in the SuperSU manually. Then I uninstalled the app, and reinstalled it again. But this time I clicked "Done" in the installation screen, went back to the app drawer, hit the ScreenOff app button. Waited a second and the SuperSU prompt window finally appeared. Hit "Allow" and it works all fine now! (BTW My device is Nexus 5X running Android 6.0 if this matters)
[Android Apps and Games] PhilDX:
you can use the "Now Gesture Tweaks" app from the play store to assign any app to the home button long press event

Edit:

https://play.google.com/store/apps/details?id=com.spada.nowgesturetweaks
[Android Apps and Games] EncryptedCurse:
I just installed it on my Amazon Fire 7 (CM 12.1), but nothing happens when I tap the icon.

Even the SuperSU dialog doesn't pop up — I had to manually grant it root access, though it obviously hasn't helped.
[Android Apps and Games] Tomo123:
Hats off to the dev. Cleanest Screen Off app available.
[Android Apps and Games] clambert11:
Works fantastic. Needed a replacement since my old app no longer works on MM. Thank you!
[Android Apps and Games] sotoLOTO-:
Great app! 1 request here though - a pal wants an app like this, but she won't root her phone. Is there an app like this requiring no root access, pls?
[Android Apps and Games] kenkiller:
No. It can't be done without root because it's an Android security feature.
[Android Apps and Games] BiggerSpain:
BIG THANKS, huge help.

Regards.
[Android Apps and Games] mhaha:
Awesome, perfect app to fix the fingerprint unlock "bug" in MM! Props

Request: please do a widget, yes it's "needed" by me :P I prefer no text under the lock icon.

Request 2: probably asking for too much, but would be sweet if custom icons are allowed.

Example of the above 2 features combined in this also awesome app: https://play.google.com/store/apps/details?id=com.dc7.SilentModeToggle

Thanks man
[Android Apps and Games] dima-82:
Works perfectly on OnePlus X (Unofficial CyanogenMod 13.0 with 3.4.0 kernel [Jun 11, 2016] by Sultanxda), rooted

I tried about 10 - 15 soft lock apps.

Actually I tried to find an app which switches off the screen but does NOT lock.

Because since Lollipop no one of the mentioned apps work with SmartLock and the Xposed Module No Lock Home 2 for LP and MM.

All apps lock the screen and make No Lock Home 2 senseless.

I spend hours and days to find an app like this here.

And yesterday I was redirected from an other xda topic to this thread.

Thank you for that app!

Is it already on the playstore? I would even pay a couple of euros for that greate work.