[HOW-TO] Repair Smart Stay + with Tasker (root) - Android General

INTRO
Hey everyone!
Some of you, like me, loved to use the smart stay feature of Samsung, they disables the dimming of the screen while you are looking at it.
Unfortunately, on the latest builds (CM11 like CM12), this app is broken. What happens is that, when an app is using the camera and another tries to access it, there is a conflict. For example, you are using the camera. If smart stay + tries to see if you are still there, it tries to access the camera which is already in use. And so, the camera app doesn't know what to do and crashes ^^
A way to repair this is to modify directly the app to pause the search when the camera is already in use, but we can't do that, the only one who can is the app dev ^^ Another way is to refuse access to the camera when using the camera app, but not sure how we can do that... The way I did is bypassing this error by killing smart stay + when I use a specific app like the camera
Apps
To do this, you need to install :
Tasker : lets you automate stuff depending of the state of the phone, an app, or even the sensors,
Secure Settings : lets you change the phone settings directly from Tasker,
TaskKill : lets Tasker kill apps using several different methods.
Watch out! Make sure you have the latest version of each, or else bugs may appear!
Lets Start!
So, start by installing as those apps, and install the latest version of Smart Stay + (if you are on CM12, you can't download it from Play Store cause it's incompatible, so you need to use the apk from the Internet). Don't launch Smart Stay +, and don't enable its setting in the accessibility menu on the phone!
First off, we need to give root rights to Secure Settings. Launch the app, then go to the System+ tab and enable it. It will then ask for root rights, accept and we are good to go on.
Kill Switch
Now, launch Tasker and go on the profile tab (if you want to follow everything in english in the app, press the 3 dots in the upper right corner, then Preferences, go all the way down in the UI tab, then change the language). Create a new context using the + icon on the bottom of the app, then chose Application. A list of all your apps will be shown, so you need to chose which app will kill the other one. Here, I want the Camera app to be the "killer", so I chose the apps using the camera (I have Camera Next as well as the stock camera, so I chose both) :
Screenshot 1​
To go back, do not press the X button on the upper right corner! It will erase your config Press the button on the upper left corner to go back to the profiles. The app will show you then a menu where you can enter a new task. Chose New Task and name it "Kill". A new screen will be shown :
Screenshot 2​
Click +, then go into Plugin, and you will see all the plugins. Click on TaskKill, then press on the Pen logo on the upper right corner to config the plugin. Here, you can choose the method to use to kill, and the app. You need to use the Extrem method, or else Smart Stay will keep rebooting... Choose Smart Stay in the list, then click apply. Set the Timeout to 0, then save it by clicking on the upper left corner, and return to the profiles list.
Here is what we should see :
Screenshot 3​
Starting the App
We now need to start smart stay after we finished using the camera, and it's a bit tricky. You can either start the app using Tasker, but it will ask for you to enable the accessibility option of Smart Stay (happens every time), and that is really a bummer... That made me look if we can't directly turn on that setting from Tasker, so that we don't need to open the settings, close the app, etc... And it is! We can change that settings from Tasker using a plugin! Buuuut, the catch is that we need root...
Soooo to enable this setting, you need to long press on the action we just did named "Kill", and add an Exist Task. Next, do a new task named "Start". After, choose the plugin Secure Settings, then press on the Pen logo on the upper right corner to config the plugin. Here, you can choose which action you want. Go to System+ Actions, then press Accessibility Services. A new menu will appear, where you can see the different apps that has an Accessibility Setting. Choose Smartstay+, and make sure the button underneath it is Disabled (so that it disables that setting). Save it, then go back to the profiles list using the button on the upper left corner.
Here is what you should see :
Screenshot 4​
Testing
Tada! Done! You can now launch the camera app without having it bug! To test it out, you can go on each action, like "kill" and press the play button on bottom of the screen. You will see that the notification is closed. Go into the "start" action and press play, you will that icon return! Go try it out using the camera app!
Misc / Other Method
You may ask why I didn't use the Secure Settings in the first place, and the reason is that it doesn't work well. The app isn't totally killed, it's just paused, so we don't know if it still has access to the camera, or if it is draining battery... Using TaskKill ensure us that it isn't running in the background, and so not draining any battery.
For Android L users, you may know that with Smart Lock, you can unlock the phone with your face. To do so, Android uses the stock camera app. This means that you won't have any bugs at all using that unlocking method with Smart Stay, thanks to our bypass
Another method that was pointed out by triviums (1+1 forums) is to use Smart Stay EX Pro. It has an option to disable scanning when certain apps are launched. But, after testing this out, it doesn't work as well as my method. There is a missing option in that app which is Smart Timeout. Without this feature, it still scans if the user is there, even though he is typing something or scrolling a page. Smart Stay + has this feature for free )
If this could be implemented (cause on the photos on Google Play, the feature is there for PRO users, but after installing you don't see it...), then it may be better (no need to kill and restart app, which takes some battery). If this doesn't work, then the battery you gain from not killing the app is lost in the use of the camera when it isn't necessary...

Related

Auto Hide Taskbar

Hey bro i get this app from the market Honeybar it work great with root access.
I work with touchwiz work 100%.
Program tested MX Video Player,Dolphin Browser HD.
It works well and I suggest using Button Savior in conjunction. Barely seen my taskbar in a week
Works pretty well, main problems I have with it are accidentally re-enabling the taskbar in games (tapping near the bottom), and also accidentally hiding it when trying to hit the 'menu' button in portrait mode. They're too close together so it's hard to avoid hitting it.
I asked the author about the possibility of other trigger locations, or gestures, and he responded but didn't sound like he planned to do anything soon.
I installed HB myself, and although it is nice in some ways to get the taskbar (I use that reference with tongue'in'cheeck) out of the way, there are too many apps I have that place "menu" in the location of the hidden button even when I set it to shift left. Many apps I have to rotate to landscape to get to the apps settings menu hidden behind the shift-left positioning for HB. It's just not a sound UI choice.
The option to just leave the taskbar hidden and use Button Savior is better, but it's like using one hack to make another one work halfway correctly in its effects. HB needs more development and it doesn't look like it's going to happen as of now.
koreanschoolkid said:
It works well and I suggest using Button Savior in conjunction. Barely seen my taskbar in a week
Click to expand...
Click to collapse
Thanks very much for your info. Yeah... this Button Savior is a real true name in case of the HoneyBar's gone somewhere..
Problem I see with using Button Savior all the time is that you do lose the notifications.. and then it's still easy to accidentally bring back the real bar when playing games etc. Oh well.
speedrabbit said:
Problem I see with using Button Savior all the time is that you do lose the notifications.. and then it's still easy to accidentally bring back the real bar when playing games etc. Oh well.
Click to expand...
Click to collapse
I don't know about the games... the notification is hiding except the sound but the real trouble is when the call is coming.... you have to activate the task bar to bring back the panel "Answer or Denied" (!!!)
FYI
speedrabbit said:
Problem I see with using Button Savior all the time is that you do lose the notifications.. and then it's still easy to accidentally bring back the real bar when playing games etc. Oh well.
Click to expand...
Click to collapse
I did indeed get quite angry at the loss of notifications but I was able to (sort of) get around that by changing the screen density to 171 using Blade Buddy. This set me back to a 2.x launcher.
It doesn't really work 100% however as browser, Gmail, Google Talk will constantly crash. I was able to work around the browser by just getting another browser and Gmail by uninstalling the Honeycomb version of Gmail and installing the Gingerbread version. I didn't care enough to do anything more than uninstall Google Talk.
On the positive side I no longer have to deal with the taskbar. Ever.
koreanschoolkid said:
I was able to work around the browser by just getting another browser and Gmail by uninstalling the Honeycomb version of Gmail and installing the Gingerbread version.
Click to expand...
Click to collapse
Does the Gingerbread version have the Gingerbread UI? i.e. without the multi-paned stuff? I tried loading a Gingerbread version a while back but it didn't work (just crashed). I prefer Gingerbread style -- more room for the content rather than lists of labels.
Sigilist said:
I installed HB myself, and although it is nice in some ways to get the taskbar (I use that reference with tongue'in'cheeck) out of the way, there are too many apps I have that place "menu" in the location of the hidden button even when I set it to shift left. Many apps I have to rotate to landscape to get to the apps settings menu hidden behind the shift-left positioning for HB. It's just not a sound UI choice.
The option to just leave the taskbar hidden and use Button Savior is better, but it's like using one hack to make another one work halfway correctly in its effects. HB needs more development and it doesn't look like it's going to happen as of now.
Click to expand...
Click to collapse
Yes this is exactly my only issue with honeybar. it would be nice if we could choose the right side as the "offset". Even in portrait I have space just to the right of center that would allow access to honeybar on/off and not interfere with the menu on a lot of apps.
There's a much better way to do this. Using tasker, I have a profile set up that auto hides the toolbar for certain apps and then restores it automatically when I switch away from them.
Follow the instructions in this thread:
http://forum.xda-developers.com/showthread.php?t=1301857
Sent from my GT-P6210 using Tapatalk
Yes but how do you switch away from them?
That is actually what I am trying to figure out how to do. I am trying to set it up when in specific apps it takes away the task bar but also only within these apps after something... (haven't really figured that out yet) happens it will bring it back for an exit. In a perfect world I would love to be able to press both volume buttons to close an app. Which in this case would be perfect but tasker can't do that...
I'm using task switcher pro. It lets you map a gesture to the back button or home button.
Sent from my GT-P6210 using Tapatalk
what might be cool is to "shake" device to bring back the bar.
you guy also can use AutomateIt... kind of like tasker but to me it more friendly user...
http://forum.xda-developers.com/showthread.php?t=1123423
and the pro version is cheaper too...
Using tasker I did manage to make the bar go away by shaking. Instead of setting programs to do it make it toggle the bar by using a shake. I don't have it in front of me to do step by step but if someone wants me to I can put it up.
I would most certainly love to see that "How too" Zadeis.
Thanks.
Here you go!
gucabe said:
I would most certainly love to see that "How too" Zadeis.
Thanks.
Click to expand...
Click to collapse
OK the link smaug408 put up leads to a guide on how to set up a task that when an App starts it will remove the bar at the bottom. The thing is though you no longer have a back button and get out of the app unless it has a dedicated exit button.
http://forum.xda-developers.com/showthread.php?t=1301857
I take no credit for the premade files for tasker. The thanks goes to the creator Quietthinker through that link.
-First Open the link and download the attached StatusBarToggle.zip and place the files into /sdcard/Tasker/tasks (in this case you will only need the StatusBarToggle.tsk.xml, the StatusBar_Hide.tsk.xml, and the StatusBar_Show.tsk.xml files)
-Second open tasker and go to the "tasks tab" and tap and hold the Tasks Tab at the top. An options window will come up but select Import and import all of them into tasker
-Third go to the profiles tab and tap the Green plus at the left and give it a name. ShakeToToggle can work but you can name it whatever you like.
A context window will popup and you will select Event and then the Sensor Category and finally select the Shake Event.
You can mess around with the setting for the shake gesture now or tweak it in to your liking after everything is set up up to you.
-Forth once you have the setting you like press the green check mark, select the StatusBarToggle task and you are done. Now when you shake your tablet side to side it will make the status bar go away.
Now I just happened to figure out that you can shake instead of using an app for the context. I take little credit for how this works.
This method requires Super User Permissions. It will ask on the first toggle of the bar if you allow it to remember it afterward, if not it will ask each time.
Great app. Works perfectly

[TOOL][Android:2.3+]ChargeDroid Plus - An App to help you plug your charger in

[What is it]
ChargeDroid Plus is a tool to help users find where their charging port is. For instance it's dark and your about to go to bed and can't see the side of your phone, you don't end up having to stab the side of the phone over and over again.
[How it works]
ChargeDroid Plus works in a very simple way. When you start the App you're presented with two easy to use buttons, One to set the pointer, and one to show the pointer.
Naturally, when you first launch the app you'd need to set the location of your charging port, Click the Button that says "Set Charger Location", select the side it's on, and go from there.
After that, all you need to do it click "Show Pointer" or, use the Widget to quickly launch the Pointer.
Feedback is greatly welcomed, so are feature requests.
PlayStore Link: ChargeDroid Plus
Note: This is a relaunch of a previous app of mine. This relaunch aims to be an easier to use app, and support any phone out of the box.
Reserved for later use.

S7 Hyper noob questions

Hi Guys,
Been using MIUI for many years since my 1st smartphone and now with my Galaxy S7 its a brand new and diferent world, therefore I need you help if possible.
At this stage my doubts are:
1. Some apps don't have the 3 dots to cal the respective options menus and I always access this menu with the capacitive keys. Where is the Menu key or how can I activate it?
2. Is there a way to keep a regular backup of the calls history, text messages, etc to some samsung cloud so that if I flash a rom I can restore all the data?
In Miui there is the Miaccount and when I do a factory reset I can just login in the account and it will automatically download all this data. Its a great feature!
3. Where is the Power Toogles Widget?
4. Does Samsung as some kind of PC Manager to connect to the phone?
I think its Kies right, but this is for older phone....
5. is it possible to share (download gpx file or share in social networks) the activities from S Health app?
6. When I send a text message I'm getting notified that the other poerson received the message with the my text message received ringtone.... How do I change this?
7. Is there an option to close an app by Long-press the back capacitive key?
8. How can I choose the bluetooth download folder to be in the external SD?
9. No FM radio?
10. What app can I use to backup my apps+data without root?
11. Where is th QR Code scanner?
Thank you in adavnce
Djuganight said:
Hi Guys,
Been using MIUI for many years since my 1st smartphone and now with my Galaxy S7 its a brand new and diferent world, therefore I need you help if possible.
At this stage my doubts are:
1. Some apps don't have the 3 dots to cal the respective options menus and I always access this menu with the capacitive keys. Where is the Menu key or how can I activate it?
2. Is there a way to keep a regular backup of the calls history, text messages, etc to some samsung cloud so that if I flash a rom I can restore all the data?
In Miui there is the Miaccount and when I do a factory reset I can just login in the account and it will automatically download all this data. Its a great feature!
3. Where is the Power Toogles Widget?
4. Does Samsung as some kind of PC Manager to connect to the phone?
I think its Kies right, but this is for older phone....
5. is it possible to share (download gpx file or share in social networks) the activities from S Health app?
6. When I send a text message I'm getting notified that the other poerson received the message with the my text message received ringtone.... How do I change this?
7. Is there an option to close an app by Long-press the back capacitive key?
8. How can I choose the bluetooth download folder to be in the external SD?
9. No FM radio?
10. What app can I use to backup my apps+data without root?
11. Where is th QR Code scanner?
Thank you in adavnce
Click to expand...
Click to collapse
1. Long press back button
2. Sync with Samsung account
3. Not available
4. Samsung switch for full backup
5. No idea
6. Not possible I think
7. No. Not needed.
8. You cant.
9. Nope.
10. Samsung switch
11. Install app use optical reader from samsung.
Sent from my SM-G930F using Tapatalk
great takerhbk, thank you very much.
that Text Messages receiving sound makes no sense at all and must have a solution
Djuganight said:
great takerhbk, thank you very much.
that Text Messages receiving sound makes no sense at all and must have a solution
Click to expand...
Click to collapse
Messages > 3 dots top right menu > Settings > More settings > Text Messages > Delivery reports (Disable)
Thank you very much.
It would be great to know if the message was received or not.
In Miui the messages are stamped as received...
If you get a reply, they received it
Eheheh
1. You could use an app like 'Button Mapper' to redefine the keys. 'Xposed Additions' does more, but requires root access and the XPosed framework.
2. I use Titanium Backup (needs root) and save apps and data to the external SD card. Without root, you could try Helium Backup. It works for some phones sometimes. You could also backup your apps + data to the Google cloud.
4. I think that 'My Phone Explorer' is an excellent PC interface / synchronization client for just about any Android phone.
7. Yes. I agree; this *is* needed. See my reply to question 1. Since I get in and out of my phone quickly many times per day, I go even further. When I long-press the Back key, it runs a Tasker script that simulates pressing Home twice (to close the foreground app and return to the Home screen), brings up the Recent Apps screen, simulates a click to 'Close All' (to keep unused apps from draining the battery or using data), and then simulates the power button to turn off the screen.
10. See my reply to question 2.
Bob G said:
1. You could use an app like 'Button Mapper' to redefine the keys. 'Xposed Additions' does more, but requires root access and the XPosed framework.
2. I use Titanium Backup (needs root) and save apps and data to the external SD card. Without root, you could try Helium Backup. It works for some phones sometimes. You could also backup your apps + data to the Google cloud.
4. I think that 'My Phone Explorer' is an excellent PC interface / synchronization client for just about any Android phone.
7. Yes. I agree; this *is* needed. See my reply to question 1. Since I get in and out of my phone quickly many times per day, I go even further. When I long-press the Back key, it runs a Tasker script that simulates pressing Home twice (to close the foreground app and return to the Home screen), brings up the Recent Apps screen, simulates a click to 'Close All' (to keep unused apps from draining the battery or using data), and then simulates the power button to turn off the screen.
10. See my reply to question 2.
Click to expand...
Click to collapse
Thank you very much.
Button mapper seems to be exactly what I'm looking for. Just did a quick test on several apps and either the required options are paid or need root ehehhe
Titanium Backup is the app I always used. I have the paid version but for now without root I have to let it go.
I'm going to try MyPhoneExplorer as the SmartSwitch from Samsung is really really poor. This don't even look like an official app to do what is meant to do....
regarding point 7, well I think a Button Mapper app is also the solution
No call recording option in this phone?

[GUIDE] [FRP] LG V20 US996 US Cellular - FRP Bypass - Multiple Bypass Methods

[FRP] LG V20 US996 US Cellular - FRP Bypass - Multiple Bypass Methods
Security Patch - Feb 01 2018
Android 7.0
What's needed?
1) Little time
2) BlueTooth earpiece (optional depending on method)
3) WiFi
4) OTG / SDCard (optional depending on method)
5) APK's (optional depending on method)
Initial Setup:
Hard Reset phone. Enable wifi and then enable talkback by holding two fingers on the screen. Draw an L from top to bottom on the screen to get to menu, scroll down to Help at the bottom of the list and press this. Now press on [about switch access]. Press on the youtube video to open it up. Now share the video to a message. Type in any number at the top and press enter. To the right hit the + sign to add it as a new contact. Now when adding the new contact scroll down to location and press this. When the map opens search for a location and then press on it, hold down for a sec or press again and you should see a little blue route icon pop out from the bottom right side of the screen. Once it does press it to get into Google Maps. Start a route and then press the Microphone icon and say "open settings". Now the following methods are all different but since we are going to focus mainly on my crashing the setup wizard method I love using we will need to pair a bluetooth ear piece. So goto bluetooth in settings and pair yours. Goto Security and disable phone administrator. Now goto Apps in settings and top right press this and select show system. Scroll to Google Framework, Disable, Stop this application then clear the Data and Cache. Reboot. Use Bluetooth or initial method above to get back to settings and goto Security and enable Unknown Sources.
Method 1 - Crash The Setup Wizard
1) You will need some files so you can either a) download them from google by using bluetooth saying "google" to get to google. b) load the files on an sdcard. c) load the files on a flash drive connected to an OTG cable and hoot this up to your phone. The files you will need? Sidebar, Quick Shortcut Maker or Shortcut Master Lite, and the others needed I will edit this for the methods they're needed for when I get ahold of another V20 and time to finish up some of these other methods. Install Sidebar and open it up. Install Shortcut Maker and no need to open just yet. Swipe from the left of the screen to slide into view the sidebar. Go and add these to the bar, settings, google, shortcut maker/ shortcut master lite and anything else you want to add.
2) Time to get on with crashing the Setup Wizard! Using your bluetooth goto aettings. Goto Applications now and do this for each and every one of these proesses im about to list. Disable, Force Stop, Clear Data and Cache. ALL except for Google App this one JUST clear cache and disable/stop. Now the applications? Setup Wizard (both), Google Account Manager, Google Play Services, Google Framework, Google One Time Init, Google App, Google Backup Transport, Google Calender Sync, Google Contact Sync, Google Partner Setup, Google Play Store and last one.. Google Text to Speech Engine.
3) Slide sidebar into view and open Shortcut Maker or Shortcut Master Lite which ever one you installed. Search for Setup and then in the results search for the LG SetupWizard with the following text below it.
Code:
com.android.lgsetupwizard.setuphomeinit[/home] launch this and it will take you back to where you started all of this. Forward through and disable wifi then go forward through pages until setup wizard closes, do this again but you want to hit forward and back on the last part before you get the setup wizard closing msg. Eventually you'll break through onto the homepage. Now goto settings, enable developer settings by going to about and clicking the build multiple times until it says they are enabled. Go back to settings and you will now see Developer Settings near the bottom. Go into these settings then enable 1) oem unlocking 2) usb debugging. Then goto settings -> backup and reset and reset your phone. Wait for it to reboot.
[B][I]Viola![/I][/B] [U]You are done now.[/U] Follow through the Setup Wizard like normal now and make use of your previous paperweight.
[B]Method 2 [/B]- No Crash Login Bypass using apk's
[I](To be continued when I get another V20 in person to do FRP on and some Dev work. I will edit this post after I get another.)[/I]
[B]Method 3[/B] - LG Backup Transfer File
Follow initial steps.. and this time open up LG Backup and goto where you manually select a backup file to import. Open my restore file [FILE WILL BE ATTACHED WHEN I CREATE IT]. When done reboot. Then if you installed sidebar and put shortcut maker / shortcut master lite on it use it or use the bluetooth to get to open this. Search for Setup and then in the results search for the LG SetupWizard with the following text below it. [code]com.android.lgsetupwizard.setuphomeinit[/home] launch this and it will take you back to where you started all of this.
[I]I will be doing this bypass method on any LG I get in from suppliers / auction that is capable of making use of it for here on out on most my tutorials provided I have time.[/I]
[I](To be continued when I get another V20 in person to create this file and do FRP on for testing and some dev work. I will edit this post after I get another.)[/I]
[B]Method 4[/B] - Firebase App Indexing Dev Mode
(To be continued when I get another V20 in person to do FRP on for testing and some dev work. I will edit this post after I get another.)
[FONT="Impact"][COLOR="Gray"]q=][/COLOR][/FONT]
[B]-[/B][FONT="Book Antiqua"][COLOR="Orange"]noidodroid[/COLOR][/FONT][B] 2019[/B]
Why not just say it's one method if that's all that's actually there.
pro_granade said:
Why not just say it's one method if that's all that's actually there.
Click to expand...
Click to collapse
Just the way i chose to do this. I have the other methods just did not have the time to 100% test them on a physical V20 in hands as i was doing it for someone else who needed it back. I normally use hardware these days for FRP Removal but cant resist freestyling and finding ways on my own / other compatible methods. This is much cleaner this way as everything is setup and ready for me to edit once i get another physical one in hand which wont be hard. I deal with a lot of auctions and big distributors in bulk phones as part of my job. All in due time.. Im a busy guy. heh
Also now that i have gave an idea on what else works anyone else can feel free to take it on themselves and post a thread. Helping out here.
Thanks

How do you stop an app?

Can anyone explain the various options for "stopping" an app? As far as I can tell, you can:
1. Swipe it off the app switcher screen
2. Long press and hit "Pause app"
3. Long press, tap info, and turn off all notifications
4. Go to settings, apps, and "force stop"
What's the technical difference between all of these? It seems unbelievable that there isn't a simple way to fully stop all processes associated with an app until you manually restart it.
I'm mainly interested in squeezing the last bit of use out of old phones.
Well, I thought this would get more of a reaction. Would it be more enticing if I asked for a more technical discussion on how these functions work?
I know I can Google this stuff, but pretty much everything I come across is focused on the basics of turning off notifications. The most technical content in the articles I've found says things like, apps don't use system resources when they're just sitting in the background and appear in the app switcher. But honestly, that seems ridiculous. If an app CAN send a notification, regardless of whether Android displays it, then it will obviously use resources periodically.
So I'm looking for what actually happens when you turn off notifications, pause an app, swipe it off the switcher, or force close. After that I'll be looking for a tool that will make it easy to manage what I want running.

Categories

Resources