Hardware button shortcut to activity? - LG Watch Sport

Hello all, I am not sure if anyone has any thoughts about this, but I am curious about something. Does anyone have any thoughts about how to make a hardware button act as a shortcut not just to an app, but to an activity within an app? I am sure the support is there for it, because it works with Google Fit. I would love to be able to press a button to start an IFTTT activity. I do not mind sideloading apps, and am running the 8.0 developer preview.
Any thoughts?
~Leko
Sent from my SM-T810 using Tapatalk

If you install autowear then you might be able to get it to work as you can allocate buttons to certain autowear shortcuts that can possibly call the activity that you need.

Related

Running Nexus one in "Kiosk mode"?

I'm looking to use the Nexus one hardware to create a single purpose device that will run an app at boot up and not allow the user to exit the app. This device will be given to users to take home for days so needs to be tamper-proof. i.e. cannot make calls, cannot SMS, cannot access rest of the OS, etc.
At the Android API level, I believe I can auto-start the app and "disable" the home button but cannot get around the long-press home button recent app list.
One possible solution would be to open it up and physically unplug the buttons' ribbon connector from the PCB.
What I would prefer is to somehow disable the home button using a cooked ROM that will ignore it in this particular app and the app can have some kind of secret way to exit. I do not know how difficult this would be using a rooted Nexus one.
Any input will be greatly appreciated.
Thank you.
You would need to build it from source. (non winzip deving)
If any knowledgeable person get's it it would be pretty easy to boot into recovery and edit system files or wipe it.
The nexus would not be suitable for this because of the nature of the bootloader.
To be honest, I personally think you would be better off building your own device for this. I'm sure that the buttons could be disabled easily enough, but the tamper proof part is a little different.
Main reason:
If you make the device so that you can't boot into recovery, fastboot, or tamper with it in anyway. How would you yourself make any additional modifications to the device?
You guy have some good points.
Maybe it's better off just using rooted stock ROM and set it as home screen then physically disable the hardware buttons. The battery cover will be glued shut to prevent access to SIM and battery anyway
As for making changes to the app, I believe ADK will allow me to update the app through USB. I wonder if its feasible to do auto-update it over network...?
wow your trying to lock the device down sounds like steve jobs lol
would not the best approach to this is to write your app as a home replacement and not show any apps? you could disable access to app drawer and settings, then you would only need to hook/disable home long press.
You wont be able stop a savvy user from flashing something on it easily.
What about setting up a pattern lock and using FLAG_SHOW_WHEN_LOCKED
to display on top of the lock? If the user tries to exit your program they'll be greeted with the pattern lock. Have some timer so your app automatically comes back to the top.
Correct me if I'm wrong, but doesn't the last app list show NO apps if no apps were launched yet?
pikipirs said:
Correct me if I'm wrong, but doesn't the last app list show NO apps if no apps were launched yet?
Click to expand...
Click to collapse
Yes you're right. I've set my app as home screen replacement and after reboot there wasn't any 'recent app' list
Looks like I don't need a custom ROM after all.
Just out of curiosity, what exactly are you doing with the phone that requires it to be tamper proof?
-------------------------------------
Sent via the XDA Tapatalk App
The absolute minimum requirement is that we have a device we can give to a user of any technical proficiency and allow them to easily record videos and post them directly onto a website from anywhere.
[email protected] said:
What about setting up a pattern lock and using FLAG_SHOW_WHEN_LOCKED
to display on top of the lock? If the user tries to exit your program they'll be greeted with the pattern lock. Have some timer so your app automatically comes back to the top.
Click to expand...
Click to collapse
That's an interesting approach, I will have to explore that more.
How can users actually exit the app when it's over the lock screen? Does that mean all buttons including home will not do anything since lock screen is keyguarded? Does touch still register? Is this the workaround that the custom lock screen app uses?
dzeikei said:
Yes you're right. I've set my app as home screen replacement and after reboot there wasn't any 'recent app' list
Looks like I don't need a custom ROM after all.
Click to expand...
Click to collapse
How do you set an app to be the home screen replacement?

How to make the Galaxy gear launch an app on the phone?

I created an automate task to kill S voice and to launch Google Now. This helps me use the active listening wake up command feature on my note 3 to use Google now like the Moto X does. https://db.tt/X7LZSrzR
Does anyone know of a way to make the Galaxy gear button launch S voice on the phone? I'm thinking that combination would allow for Google now use from the watch since the audio would be both sent and received from the watch itself via bluetooth.
Sent from my SM-N900V using Tapatalk
by default the svoice is launched by double pressing the power button
but you can change it worth any other app from the gear manager
Sent from my GT-I9505 using XDA Premium 4 mobile app
The problem is that will only launch S voice on the Galaxy Gear which has limited features. I'm looking to make it launch S voice on the phone.
Sent from my SM-N900V using Tapatalk
I'm still racking my brain trying to find a way. The best I've come up with so far is kinda blah but it works. I installed the eBay for gear app and assigned it to the gear button after a double press. The eBay app opens and you click the view on phone button. I created a automateit app task to kill eBay when it opens and to launch Google now instead.It would work a little better if I could get it to launch voice search instead of google now and then saying google to start the search but that is not an option in automateit. I can't figure out how to use tasker to save my life lol. The audio for Google now is played through the galaxy gear via Bluetooth. It's 3 button presses and you lose the eBay app on your phone to do this though
that's great news
hope some of the devs will jump in and help you
keep up the good work
Sent from my GT-I9505 using XDA Premium 4 mobile app
Was there ever any progress on this?
I realize I'm bumping a two month old thread, but I was just thinking about this the other day...
Not really. I ended up going with the null rom to handle everything I wanted to do.
Sent from my SM-N900V using Tapatalk
cgadgetz said:
Not really. I ended up going with the null rom to handle everything I wanted to do.
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
I too would LOVE to see Full S-Voice or Google Search/Google Now on the Galaxy Gear. That was the only reason that I spent 2 days trying to get the Null rom to work but couldn't. After rooting, I could never get the custom recovery to work. Everytime I tried to boot into recovery the watch would reset itself back to the default settings and I would have to reload everything all over again. After that happened over a dozen time I just gave up.
If anyone figures out a simpler way to get Google Voice Search working on the Gear please let me know...that's all I want, and the Null roms are a long tedious way of doing it for just that one function!
Batman8 said:
Null roms are a long tedious way of doing it for just that one function!
Click to expand...
Click to collapse
Installing null takes less than 5 minutes from start to finish so not sure how long it is taking you to make it long and tedious.
As far as the constant resetting issue you had, I can only imagine you never read the OP for installing TWRP because that issue is addressed in bold.
You might want to actually read the OP for 3 minutes before wasting hours of your time from not following directions and eventually end up breaking something.
StaticMatt said:
Installing null takes less than 5 minutes from start to finish so not sure how long it is taking you to make it long and tedious.
As far as the constant resetting issue you had, I can only imagine you never read the OP for installing TWRP because that issue is addressed in bold.
You might want to actually read the OP for 3 minutes before wasting hours of your time from not following directions and eventually end up breaking something.
Click to expand...
Click to collapse
Hey StaticMatt,
Thanks for the reply. However, I don't know if you install roms for a living or what...but my understanding is that to install the Null roms you first off have to root the Gear, and unless you already have the drivers, the .tar file...etc. that can take time to dl, extract, install, etc.
Then, a custom recovery has to be flashed (along with SU, which never worked either due to errors in MobileGo which you'll also need unless using ADB, in which case you'll need that, in order to push the apps). THEN and only THEN are you ready to install Null!
Although I'm not even close to an expert, I'm also not a NOOB either. I have 2 guides that I followed EXACTLY and neither worked, so with that along with the constant resets, it took a lot longer than 5 minutes for all 3 procedures!
I'll check the info I have against the instructions/guide here in this forum and maybe try it again when I have more time, but if you were trying to say that the info here is better/more precise than maybe YouTube videos then why not just say it? But don't insult me as if I haven't done any homework first. I have 7 Android devices (6 of them I've rooted). I've been on Android since the start and I am very aware of the risks of bricking so I never take such procedures "lightly."
Hopefully, once trying it again, someone else will come to my aid with some actual "help" if I get stuck, instead of attitude and sarcasm. But thanks again at least for the reply.
Questions (regarding the Null roms on the Galaxy Gear):
* First off, I apologize if any of these questions have already been answered but...
1.) I noticed that everyone that is running Null on their Gear has a watch face that looks more like a phone home screen than an actual watch. So does the gear have to look like that when running this rom, or can one still run apps like Watch Styler and still have "full screen" watch faces without the 4 little apps buttons at the bottom of the face?
2.) Once running Null can you set the double-tap launch app to Google Search using the Gear Manager? This is really my main goal. I'd simply like to be able to double-tap my watch button and give Google Search my voice commands, so I don't want to find out after hacking that you can't set it up that way for some reason.
3.) When on Null, can you still have all the same Gear functions like the Media Controller, Notifications, Pedometer, Voice Memo, etc. or would I then have to run all full apps like Google Music, PowerAmp, etc.?
4.) Lastly, how easy is it to revert back to stock if not liking Null? Would I have to reflash the stock image, and if so, how in depth is that process? I'm guessing that I would just open Odin and reflash the one file, but I'd like someone to confirm that please if you don't mind.
Modding this watch seems a bit different than all the phones that I've modded with custom roms (i.e. even the way apps are loaded is quite different in that you can't just attach to a PC via USB and simply drag & drop anymore. It's now all Wondershare MobileGo or ADB and all).
Thanks.
Batman8 said:
Questions (regarding the Null roms on the Galaxy Gear):
* First off, I apologize if any of these questions have already been answered but...
1.) I noticed that everyone that is running Null on their Gear has a watch face that looks more like a phone home screen than an actual watch. So does the gear have to look like that when running this rom, or can one still run apps like Watch Styler and still have "full screen" watch faces without the 4 little apps buttons at the bottom of the face?
2.) Once running Null can you set the double-tap launch app to Google Search using the Gear Manager? This is really my main goal. I'd simply like to be able to double-tap my watch button and give Google Search my voice commands, so I don't want to find out after hacking that you can't set it up that way for some reason.
3.) When on Null, can you still have all the same Gear functions like the Media Controller, Notifications, Pedometer, Voice Memo, etc. or would I then have to run all full apps like Google Music, PowerAmp, etc.?
4.) Lastly, how easy is it to revert back to stock if not liking Null? Would I have to reflash the stock image, and if so, how in depth is that process? I'm guessing that I would just open Odin and reflash the one file, but I'd like someone to confirm that please if you don't mind.
Modding this watch seems a bit different than all the phones that I've modded with custom roms (i.e. even the way apps are loaded is quite different in that you can't just attach to a PC via USB and simply drag & drop anymore. It's now all Wondershare MobileGo or ADB and all).
Thanks.
Click to expand...
Click to collapse
1) these 4 little icons is the dock. most of us are using nova launcher, i personally disabled the dock because it's not necesarry to keep these items on top all the time.
2) i'm not sure if that is possible. perhaps if you don't use nova launcher but something else, you can keep the double tap shortcut. mine is set to power on/power off the screen.
3) you can use 'stock' apps with no issues. i'm using pedometer, notifications and media controller. for the rest i found a replacement apps.
4) i never done it, but it will be 'as easy' as putting custom rom on it. but frankly.. there is no reason not to have null. you can keep null rom and just use stock launcher if that's your liking..
hurdlejade said:
1) these 4 little icons is the dock. most of us are using nova launcher, i personally disabled the dock because it's not necesarry to keep these items on top all the time.
2) i'm not sure if that is possible. perhaps if you don't use nova launcher but something else, you can keep the double tap shortcut. mine is set to power on/power off the screen.
3) you can use 'stock' apps with no issues. i'm using pedometer, notifications and media controller. for the rest i found a replacement apps.
4) i never done it, but it will be 'as easy' as putting custom rom on it. but frankly.. there is no reason not to have null. you can keep null rom and just use stock launcher if that's your liking..
Click to expand...
Click to collapse
Thanks so much Hurdlejade! I really appreciate your response. It's also good to know that what I'm ultimately trying to do with Null may not even be possible (setting double-tap to Google Search/Google Now). I wish the Galaxy Gear version of S-Voice was much better!!!
I really want to be able to invoke Google Now with a double-tap as well, but have had no luck so far.
An alternative that I'm using that is also very convenient is to assign Google Now to one of the long-press button on UDN.
It's more difficult to invoke if you aren't in a situation where you can easily perform the swiping (like driving), but it beats having to scroll through home screens or the app drawer to get to it.
dwallersv said:
I really want to be able to invoke Google Now with a double-tap as well, but have had no luck so far.
An alternative that I'm using that is also very convenient is to assign Google Now to one of the long-press button on UDN.
It's more difficult to invoke if you aren't in a situation where you can easily perform the swiping (like driving), but it beats having to scroll through home screens or the app drawer to get to it.
Click to expand...
Click to collapse
I use gmd gesture control. You can set a gesture like a double tap for opening an app like Google now. I also use gestures to launch tasker tasks.

(APP) Disable Recent apps button

I created this app for my own use because i feel that i misclick the recent app button quite often while playing some landscape game like vainglory which is quite annoying.
This is a very simple application, it would be straight to use it, click on the disable button to disable the recent app button or click on the restore button to restore it.
Note** after click on either of the 2 button your phone will be reboot immediately, so please save your work before proceed.
Note** This app required root.
Installation guide
1) Download the apk and the rar file.
2) Unrar the rar file and extract the whole folder to the root of your internal memory.
3)Enjoy
Awesome app! It totally ruins the VainGlory game on my phone and tablet when it reloads. I wanna start playing on my Galaxy Tab Pro 8.4 (SM-T320) but this doesn't work. Any way you could figure out how to get it to work on a 5.1.1 stock Google rom?
Thanks again
Hey Dude!
I'm making a game and was wondering if you could share how you implemented this.
It would be sweet to be able to amalgamate this function directly into the game,
Cheers!
I seriously need to disable the function of recently used apps. I can't even make a call or text while it keeps changing to the recently used app and it minimize and maximize few times. I don't need this app. This is a Samsung A310
Um you guys do realise that the game tools can disable back and recent keys?
Help
Hi, I do not know if this post is still active.
I'm having a problem, my galaxy s6 flat recently started to constantly activate the recent button.
I have tried everything to disable it, when I comment "#" on the 254 APP_SWITCH key line it deactivates all the buttons, including the power button.
I do not know if this is a sansung problem, but I'm desperate and I can not find a solution.
Is there any possibility to disable or put a new function on the button?
sorry my bad english, I'm using google translate to communicate
tks

App that allows to make profile shortcuts

Does anybody know an app that would allow me to create profiles such as work, home, other, with customized settings like wifi on, Bluetooth off, vibration, and so on, and allow me to place a widget on my homescreen? I saw a few apps that fit the description on playstore but most of them seemed abandoned and still had screenshots from gingerbread. Also it has to work without root as i want to keep my phone clean for Samsung Pay. I don't mind if it's a paid app.
Thanks in advance
P.S. I know there is tasker, its an amazing app i'm sure, but it's not so simple to use.
Sent from my Nexus 9 using Tapatalk
Been looking too for the longest time. EasyProfiles was my go-to profiles app since it had just about everything that could be done built in, including support for tasker and also Secure Settings.
But...abandoned as you said for a long time. It used to work sporadically on my custom lollipop, but somehow has recently stopped working completely.
I too am curious to know if there are any.
Yeah. I have been looking for a long time for such app. Tasker is great but its so complexe that when you create a profile you have to make sure your next profile has settings that counter the first. As an example if you set a night mode with an option to turn off led notification you have to make sure you have an other profile that turns it back on. This is just a simple example but things can get messed up quickly if you're not careful. When using tasker i feel like im coding an app and need to update it with bug fixes in order to get it working well. It's a bit too sophisticated for the simple things i want to do
Sent from my SM-N920W8 using Tapatalk

[Project] Air Gestures to control your phone

With the announcement of the new gestures feature for the Pixel 4 I thought: "I should try something similar with Tasker".
Here it is!
It's obviously less precise because you don't have all the extra sensors needed for accurate gestures, but on the other hand it's infinitely more customizable!
Depending on what situation you're in, you'll be able to do lots of different things!
Included are:
Music control gestures
Whatsapp gesture
These are just 2 examples. You can expand on these and do whatever you want with them!
Import the project here!
Enjoy!
Great job Joao!!!
If I can, I would like to share mine too from time ago. Hope this helps yours
https://www.youtube.com/watch?v=_Pfuk7jy4J8
https://drive.google.com/file/d/10pu5BlcN59xFcvZ9P1pav9YGchhaIDiz/view
I'm assuming one would need root for this, yes?
stanleyopar2000 said:
I'm assuming one would need root for this, yes?
Click to expand...
Click to collapse
No root needed at all!
joaomgcd said:
No root needed at all!
Click to expand...
Click to collapse
So I gave it a whirl and i'm not sure if i'm a tasker noob but I could not seem to get it working and the setup was a little too complicated for me : /
It was saying no profiles currently running even though I switched the toggles
stanleyopar2000 said:
So I gave it a whirl and i'm not sure if i'm a tasker noob but I could not seem to get it working and the setup was a little too complicated for me : /
It was saying no profiles currently running even though I switched the toggles
Click to expand...
Click to collapse
I have imported the profiles and can not get it to work neither. Galaxy S10.
stanleyopar2000 said:
So I gave it a whirl and i'm not sure if i'm a tasker noob but I could not seem to get it working and the setup was a little too complicated for me : /
It was saying no profiles currently running even though I switched the toggles
Click to expand...
Click to collapse
mirrik said:
I have imported the profiles and can not get it to work neither. Galaxy S10.
Click to expand...
Click to collapse
What did you try it with? The music one or the Whatsapp one?
joaomgcd said:
What did you try it with? The music one or the Whatsapp one?
Click to expand...
Click to collapse
Not working with both of them. Tried with google play, spotify and whatsup. After import It asked to install AutoInput and AutoNotification which I did and purchased. I allowed all the permissions but maybe some are missing...
mirrik said:
Not working with both of them. Tried with google play, spotify and whatsup. After import It asked to install AutoInput and AutoNotification which I did and purchased. I allowed all the permissions but maybe some are missing...
Click to expand...
Click to collapse
Thanks. Can you verify that you have Tasker 5.8.2?
Also, did you give AutoNotification access to your notifications? Go to Tasker > Menu > More > Android Settings > Notification Access > Check if AutoNotification is enabled.
joaomgcd said:
Thanks. Can you verify that you have Tasker 5.8.2?
Also, did you give AutoNotification access to your notifications? Go to Tasker > Menu > More > Android Settings > Notification Access > Check if AutoNotification is enabled.
Click to expand...
Click to collapse
Yes, version 5.8.2 installed. AutoNotification has an access. All is set as you indicate. Maybe there is an issue with my proximity sensor. I test it by dialing *#77692# and by default it was off. I turned it on and It worked perfectly. On second attempt to dial It was off again. Maybe It is activated on samsung S10 only at performing specific action as making phone call?
I also checked with Sensoroid - Senso info app what sensor are there at my S10. It lists about 52 sensors found including TMD4910 Proximity sensor, Proximity pocket and Palm Proximity Sensor.
mirrik said:
Yes, version 5.8.2 installed. AutoNotification has an access. All is set as you indicate. Maybe there is an issue with my proximity sensor. I test it by dialing *#77692# and by default it was off. I turned it on and It worked perfectly. On second attempt to dial It was off again. Maybe It is activated on samsung S10 only at performing specific action as making phone call?
I also checked with Sensoroid - Senso info app what sensor are there at my S10. It lists about 52 sensors found including TMD4910 Proximity sensor, Proximity pocket and Palm Proximity Sensor.
Click to expand...
Click to collapse
Ah yes, that is possibly the issue! I've had reports from other people that the S10's sensor is not working as it should and only turns on during calls... Unfortunately I can't help with that one Check here for example.
I would love to hear some other ideas that people on this thread used when activating this. I'm not a WhatsApp user, so I'm only basing my experiences through GPM. Any additional apps where this could be advantageous?
Mate 20 lite not working i wasted 3 euros
---------- Post added at 10:13 PM ---------- Previous post was at 10:11 PM ----------
And yes latest version and autonotification enabled
Works for me. Thanks!
Is it posible to control Google Assistant with gestures? Just asking.
correcting my comment, it works perfectly now
great job
I'm new to tasker, and wanted to know if you can trigger the camera to take a photo with this air gesture?
I imported the file from the OP to my OnePlus 6T. This is the only thing I have setup in Tasker, and for the life of me I can not get it to function. An I missing something
phillymade said:
I imported the file from the OP to my OnePlus 6T. This is the only thing I have setup in Tasker, and for the life of me I can not get it to function. An I missing something
Click to expand...
Click to collapse
Start with making sure the proximity sensor is working. A poster above with a Samsung had a problem like that. If you need an app to test it, try Sensors Toolbox
Then look at the tasker log and see if there is any messages there that will help.
Are you trying the WhatsApp or music controls?
ktmom said:
Start with making sure the proximity sensor is working. A poster above with a Samsung had a problem like that. If you need an app to test it, try Sensors Toolbox
Then look at the tasker log and see if there is any messages there that will help.
Are you trying the WhatsApp or music controls?
Click to expand...
Click to collapse
Music.
I'll try your suggestion
I really want to control the camera with this, but I do not think it's possible.
Sensor is working see photo
Sent from my ONEPLUS A6013 using Tapatalk
View attachment 4859291
phillymade said:
Music.
I'll try your suggestion
I really want to control the camera with this, but I do not think it's possible.
Sensor is working see photo
Sent from my ONEPLUS A6013 using Tapatalk
View attachment 4859291
Click to expand...
Click to collapse
I actually installed this to see what was up. On the music version, the profile "Proximity With Music" has three contexts. The AutoNotification context is set to trigger the profile only on notifications from specific apps. You need to check and make sure your app is enabled there. Also, if you don't have AutoNotification installed, it won't work.
As far as taking a photo, that definitely can be done. Here is a Air Camera project. It builds on Joao's project and requires AutoInput to be installed.
It's possible that it won't work out of the "box" due to two things.
1) The "Camera" profile gets triggered based on the Google Camera app opening. This would need to be updated to whichever camera app is used.
2) In the "Handle Camera Gesture" profile entry task, the AutoInput action is expecting the Google Camera app. If that doesn't exist, that action can be updated to operate the shutter button in whatever camera app is installed.
NOTE: In the "Handle Camera Gesture" profile entry task, there is a paused action, "Take Photo". That is actually the Tasker action that will take a photo regardless whether the camera is open or not. It's a bit silly in this application but could be used instead of the AutoInput action.

Categories

Resources