APK to define Touchpoints with Hardware Buttons - Android Head-Units

Hey Guys,
i have a general question. Is there a mod or. APK where i can define a point/dot on my Touchscreen and map it to a Hardware Button of the car (e.g. Steering wheel Buttons)?
What i want to Do is, to control the Touchscreen without touching. Seems funny but would be perfect, cause id like the steering wheel buttons.
I am using Android Auto with HeadUnit Reloaded, and switching through music with my Buttons works perfectly. Now it would be awesome to launch Google Assistant through a Button. Inside HUR isnt the Option to map the Assistant. And in my Hal9K mood i tried several Things.
So i thought, i am. 90% Inside Android Auto and the G Assistant Touch Icon is in bottom right corner. So i need a App that points on that Display location and simulate a Touch press, when i press the steering wheel. Is that possible?
Thanks for your time and help
Best wishes
R. Schulz

Waffel57 said:
Hey Guys,
i have a general question. Is there a mod or. APK where i can define a point/dot on my Touchscreen and map it to a Hardware Button of the car (e.g. Steering wheel Buttons)?
What i want to Do is, to control the Touchscreen without touching. Seems funny but would be perfect, cause id like the steering wheel buttons.
I am using Android Auto with HeadUnit Reloaded, and switching through music with my Buttons works perfectly. Now it would be awesome to launch Google Assistant through a Button. Inside HUR isnt the Option to map the Assistant. And in my Hal9K mood i tried several Things.
So i thought, i am. 90% Inside Android Auto and the G Assistant Touch Icon is in bottom right corner. So i need a App that points on that Display location and simulate a Touch press, when i press the steering wheel. Is that possible?
Thanks for your time and help
Best wishes
R. Schulz
Click to expand...
Click to collapse
That is a great idea! There is a way to send touches on the screen. You can do it via command line, e.g. :
input tap 560 960
You can also send key events the same way:
input keyevent KEYCODE_WAKEUP
You can browse in internet for the whole list. To determine the coordinates you can enable debug mode, and there is an option that is called INPUT -> pointer location.
This will display the coordinates on the screen whether you put your finger on.
Now, to map hardware buttons I think there are a couple of applications that let you do that. You can also map the hardware button to the key M to start the assistant. If I remember properly that is the hot key from HUR to start the microphone.
Let me know how it goes, I am also interested!
EDIT: Yet another way is to trigger an intent from the HUR app:
am start -a gb.xxy.hr.mic
There are several apps that let you start intents like tasker.
Am application to map the buttons without requiring root is Button Mapper.
Sent from my ONEPLUS A3003 using Tapatalk

Fgarcor said:
That is a great idea! There is a way to send touches on the screen. You can do it via command line, e.g. :
input tap 560 960
You can also send key events the same way:
input keyevent KEYCODE_WAKEUP
You can browse in internet for the whole list. To determine the coordinates you can enable debug mode, and there is an option that is called INPUT -> pointer location.
This will display the coordinates on the screen whether you put your finger on.
Now, to map hardware buttons I think there are a couple of applications that let you do that. You can also map the hardware button to the key M to start the assistant. If I remember properly that is the hot key from HUR to start the microphone.
Let me know how it goes, I am also interested!
EDIT: Yet another way is to trigger an intent from the HUR app:
am start -a gb.xxy.hr.mic
There are several apps that let you start intents like tasker.
Am application to map the buttons without requiring root is Button Mapper.
Click to expand...
Click to collapse
Thanks for that informative and interesting answer. Thats a lot of input for me. I will try some of this stuff in the next days and let you know if it works and whats the best solution for me

Waffel57 said:
Thanks for that informative and interesting answer. Thats a lot of input for me. I will try some of this stuff in the next days and let you know if it works and whats the best solution for me
Click to expand...
Click to collapse
The other day while driving I suddenly had a question. Why cannot you use the voice activated trigger! Ok Google, to start the voice commands? That way you don't need to press the voice button.
Sent from my ONEPLUS A3003 using Tapatalk

Toggeling with voice is Okey but often i have to scream or turn volume down. Or say it multiple Times. So a key is much more comfortable to me. My Touchscreen is Not perfectly reachable during driving so steering wheel buttons would be the perfect solution for me ?

Hey Fgarcor,
I had some time so investigate the problem. What i have done so far:
Mapping all my Hardware Keys to specific keycodes:
-Google Assisstant - - > 289
-Start Route - - > 288
-Switch Spotify - - > 291
-See Notifications - - > 292
-Route Option A - - > 283
-Route Option B - - > 284
-Route Option C - - > 285
So thats all "Events" i need for android auto. Then i went into debug Mode an locate the coordinates for each section:
-Google Assisstant - - > 925 x 556 y
-Start Route - - > 224 x 450 y
- Switch Spotify - - > 215 x 550 y
- See Notifications - - > 791 x 562 y
- Route Option A - - > 260 x 175 y
- Route Option B - - > 260 x 275 y
- Route Option C - - > 260 x 375 y
So i have all Information that i needed an just have to merged them but i dont know where can i define specific commands. I tried "Button Remapper Pro" but the APK does Not detect my keycodes.
Where can i Set up some command lines? Do i have to install a specific Module in Magisk Manager? Or is there Kind of a console on my rooted Android Radio?
Sorry, i dont understand it for 100% and need your help, Thanks
Best wishes
René

Waffel57 said:
Hey Fgarcor,
I had some time so investigate the problem. What i have done so far:
Mapping all my Hardware Keys to specific keycodes:
-Google Assisstant - - > 289
-Start Route - - > 288
-Switch Spotify - - > 291
-See Notifications - - > 292
-Route Option A - - > 283
-Route Option B - - > 284
-Route Option C - - > 285
So thats all "Events" i need for android auto. Then i went into debug Mode an locate the coordinates for each section:
-Google Assisstant - - > 925 x 556 y
-Start Route - - > 224 x 450 y
- Switch Spotify - - > 215 x 550 y
- See Notifications - - > 791 x 562 y
- Route Option A - - > 260 x 175 y
- Route Option B - - > 260 x 275 y
- Route Option C - - > 260 x 375 y
So i have all Information that i needed an just have to merged them but i dont know where can i define specific commands. I tried "Button Remapper Pro" but the APK does Not detect my keycodes.
Where can i Set up some command lines? Do i have to install a specific Module in Magisk Manager? Or is there Kind of a console on my rooted Android Radio?
Sorry, i dont understand it for 100% and need your help, Thanks
Best wishes
René
Click to expand...
Click to collapse
Hi Rene,
I don't have the pro version, I just tested on my phone to associate a long press on the volume down button to start the Google assistant and it worked. So I guess for your case you can do the following to associate a key with the Google assistant, I see several options:
- On the main screen select "add buttons". Now that the hardware button is not any of the standard buttons like home, recents, volume, etc that you would find on a phone.
- then press the hardware button you want to add so the application automatically reads the code, on this case one of the keycodes that you sent before.
- associate the action with the button you just pressed, you can associate to:
--- actions: like sending keycodes (only for pro it seems), or intents (actions inside an application that can be started from outside of the application), other typical actions like volume control, home, etc
--- applications: launching one of the installed applications
--- shortcuts: available for some applications to start an action quickly.
- here you can select as action send keyevent and there you can choose to send KEYCODE_M. That is specified by HUR as the key to launch the mic, in your case assistant, that way you are independent of a change in the interface and coordinates.
- you can select also to send a shell command, and there you can write what we discussed before "input tap x y". And replace X and Y with your coordinates.
- you could also select directly the assistant under actions, veggie the last one, but I think that would trigger the assistant on your head unit Android and but in HUR.
I hope it helps, if questions, feel free to ask.
Sent from my ONEPLUS A3003 using Tapatalk
---------- Post added at 02:50 PM ---------- Previous post was at 02:46 PM ----------
Waffel57 said:
I tried "Button Remapper Pro" but the APK does Not detect my keycodes.
Click to expand...
Click to collapse
Sorry I missed this part, how did you get your keycodes in the first place?
Sent from my ONEPLUS A3003 using Tapatalk

Thanks for your reply Basically i opened Hal9K MOD Settings. There is a Option called "remap Buttons". There i can enable "keycodes" so whenever i press a key, the Code will displayed for a few seconds. I also can Change the Button functions from a define keycode list (i am Not able to enter a specific keycode). So i put all the Buttons i want to use to a defined keycode which has no function on my Radio yet.
I downloaded tasker and tried to Set up shell commands. I Used "Input tap x y" whenever the specific keycode Was Red. But it seems, tasker cant read the keycodes? I tried to put in the if statement:
getKeyCode() == 289
Keyevent.getKeyCode() ==289
Input keyevent == 289
And some combimations of that but Google assisstant wont start.
Maybe i have to implement a whole Script for that? Never die amything like that, could be funny ?
Thanks for your help so far

Shell command from tasker

Waffel57 said:
Mapping all my Hardware Keys to specific keycodes:
-Google Assisstant - - > 289
-Start Route - - > 288
-Switch Spotify - - > 291
-See Notifications - - > 292
-Route Option A - - > 283
-Route Option B - - > 284
-Route Option C - - > 285
Click to expand...
Click to collapse
Did I understand you correctly? These numbers from above were assigned by you? Or did you read them via tasker?
Sent from my ONEPLUS A3003 using Tapatalk

Correct, i assigend them in Hal9K, they were inside the list. I think i cant read them with tasker or i just have the wrong command.

Waffel57 said:
Correct, i assigend them in Hal9K, they were inside the list. I think i cant read them with tasker or i just have the wrong command.
Click to expand...
Click to collapse
Can you try with the following app? This is the one I use to know what are the values of the key pressed.
https://play.google.com/store/apps/details?id=aws.apps.keyeventdisplay
You can check whether the keys are pressed, if they are detected by Android and in that case which value are they bound with.
I am not sure whether the mapping you made was to give a keycode to a hardware button or to remap existing keycodes. In the second case I would skip the remapping and just use the original values.
You can check with this app before and after assigning the keycodes to the hardware buttons, and maybe I can understand better how does it work for you. Sorry.
Sent from my ONEPLUS A3003 using Tapatalk

Fgarcor you are absolutly right, thank you!! But this confuses me much more ? find attached a Screenshot from your apk.
It seems that the keycodes i "mapped" in Hal9K, werent really mapped. Cause in the output of "keyeventdisplay" there are different keycodes. As you mentioned, this have to be the right Codes.
Nevertheless there are just a couple of Buttons recognized but this would be Okey first of All.
A big Mysterium for me is still Tasker ? I dont know how to Set up a Profile that makes a Input tap whenever a Button was Pressed? Which variable/function Do i have to Check for the keyevent?
Im sorry for annoying you, but there is no comprehensibly thread to find on Google. Do you have some experience with tasker and Set up something like this?
I am really thankful for your help so far

Waffel57 said:
Fgarcor you are absolutly right, thank you!! But this confuses me much more [emoji85] find attached a Screenshot from your apk.
It seems that the keycodes i "mapped" in Hal9K, werent really mapped. Cause in the output of "keyeventdisplay" there are different keycodes. As you mentioned, this have to be the right Codes.
Nevertheless there are just a couple of Buttons recognized but this would be Okey first of All.
A big Mysterium for me is still Tasker [emoji85] I dont know how to Set up a Profile that makes a Input tap whenever a Button was Pressed? Which variable/function Do i have to Check for the keyevent?
Im sorry for annoying you, but there is no comprehensibly thread to find on Google. Do you have some experience with tasker and Set up something like this?
I am really thankful for your help so far
Click to expand...
Click to collapse
It looks like the 19,20,21,22 area corresponding to the arrows (up, down, left right, not necessarily in that order) and the 87, 88 could be select and back?
I think I have something similar in my head unit.
Coming back to the mapping to actions. You said that Button Mapper is not detecting your key presses when you try to add a button? Even after unmapping them from your keycodes in your head unit? Because that is the easiest way to move forward.
Regarding tasker I haven't used it much. Once I tried to set a routine but it turned out macrodroid did the job better than tasker and I sticked to it.
Let me check if I can find it how to do it in tasker.
EDIT: it seems that tasker needs a plugin called auto input where you can either select the key presses to react to, as a trigger, or they can be detected by the app. This is a paid plugin with a trial period of 7 days.
And then I read in some forums that to run a shell command you may need to have root on the device what I guess it is not the case in your display. That also made me think if button mapper or similar could run a shell command.
I need to check a bit further.
Sent from my ONEPLUS A3003 using Tapatalk

So, once again, i tried Button mapper to recognize my Button Keys but nothing will be found. I deleted all keycodes and Pressed any Button, but they wont be displayed in Button mapper.
I also have to mention that i am rooted through Hal9K, i have Magisk Manager and can give superuser for Apps (did that for Button mapper).
Thanks for searching the Internet, i tried Auto Input, but didnt had that much time So far. Seems like i have to read/watch Videos about that plugin and tasker Routines. I hope i have time for that at the weekend. But it would be awesome if it would work, cause i See a lot of opportunity in that.
Thanks for your time, maybe that will help some other Guys

Related

Become a G2 / Android Ninja with these Tips/Tricks

I thought I'd share everything I've learned regarding Android & the T-Mobile G2 over the past 2+ weeks (thanks XDA!). I'm amazed at how many people don't read these forums - they simply blurt out their questions. Well follks, here's what I've picked up by reading reading reading & exploring exploring exploring. Hope this helps n00bs and leets alike.
Android
Press & Hold HOME to see multitasking applications sorted by most recent
Press & Hold SEARCH to activate Google Voice Actions (or VLingo if installed)
Long Press keyboard keys to see alternate characters
Tap Dots near the Dock Bar (bottom set of icons) to shift screens
Assign your Power Button to 'End Calls' via Menu >Settings >Accessibility > Check "Power button ends call"
Add 'Power Control' Widget to easily enable/disable your WiFi/BlueTooth/GPS/Screen/Auto-Sync
Using Volume Control buttons, you can put the phone into Silent or Vibrate modes
You can add Shortcuts to your most used contacts & it will give an icon that lets you access Call/SMS/Email/GTalk/Facebook
Keyboard Tips
Double Press ALT for Num/Symbol Lock
Double Press SHIFT for Capitalization Lock
Hold ALT & Long Press physical keys to see alternative characters
Map Application Shortcuts such as Search + G to launch Gmail. Located under Settings >Applications >Quick Launch
Menu +A(Select All), +C(Copy), +V(Paste), +X(Paste)
Menu +F(Find), +S(Share)
(G2 Only?) Reboot, Press and hold Power + Volume Down + trackpad
(G2 Only?) Use LauncherPro to Assign 'Activities' to the Quick Keys such as Compose SMS or Tweet
(G2 Only?) Press & Hold the Camera Button to activate the Camera
(G2 Only?) While in Camera Mode, gently press the camera button to auto-focus
Miscellaneous
Install a custom launcher like ADW or LauncherPro
- Tip 1: If you get LauncherPro, I encourage you to explore the 'Swipe' feature by Long Pressing any icon in the Dock. Allows for two actions!
- Tip 2: My personal favorite is when you hide the status bar and set the HOME button to display notifications when you press it (Only possible if you make LauncherPro default launcher)
- Tip 3: Long Press an Application & when the Trash Can Appears, Hold over the Trashcan to get an Uninstall Option
Use Tasker to automate things on your phone
TeslaHD will turn your phone's LED into a Flash Light or Strobe Light
AppBrain + Fast Install is excellent for exploring apps from the comfort of a browser (also lets you set backgrounds)
- This App also makes it easy to restore apps if you didn't remember to set your 'backup' as automatic when configuring your phone
VLingo is a great alternative to Voice Actions if you're not on 2.2 OR you want deeper integration with Twitter/Facebook/Foursquare
Google Gestures is a great app to assign to a secondary swipe (see LauncherPro) & is handy when voice doesn't work and you can't easily type
DolphinHD is a great alternative browser that has three great features: Tweet a Page (with Title & Link), Desktop Mode, and Google Mobilizer View
Dial 611 to get to T-Mobile Customer Support (not always clear to new subscribers)
Best Keyboard for two-finger text input is SwiftKey. Swype is good if you practice with one finger.
Other Great Apps to Consider
Evernote (for note storage)
Dropbox (for access to files from your desktop)
Fast Reboot (for a heavy handed, kill all apps when you notice slow performance)
Dato GTasks (simple, easy to use app that integrates with Google Tasks)
NewsRob (elegant RSS reader for Google Reader)
Smooth Calendar (nice calendar widget that shows more than the default Calendar widget)
Xtremelabs Speedtest (helps you test for HSPA+ speeds)
Twicca (better than the standard Twitter App & very beautiful. Easy to map Tweet-Activity to a G2 Quick Key)
Chrome to Phone (possibly my favorite app once I learned how to use it. Great for a variety of needs so I encourage experimentation)
Optimize Your G2
Go to SETTINGS > APPLICATIONS > DEVELOPMENT and enable USB DEBUGGING
Search the Market for "Visionary" and Install (advice: Reboot & then run it for the first time) By default, it will run automatically on boot each time.
- Note: If you want to remove ROOT, visit APPLICATIONS > MANAGE APPLICATIONS > VISIONARY and press "Clear Data". Then re-run & turn off Root-on-Boot or just Uninstall.
Search the Market for "ConnectBot" & Install. Run Connectbot & press the down-arrow next to "ssh" to choose "local" & press Enter (no Nickname needed)
- You will be presented with a command line prompt of "$" & yes, it will be VERY TINY on your screen. Simply type "su" (no quotes) to gain super user.
- Read the first post to determine which items you want to permanently disable (essentially remove) from your phone: http://forum.xda-developers.com/showthread.php?t=809231
Visit the market to download "Startup Cleaner 2.0" by Bright Wallace. It will allow you to prevent items from starting up. The software is buggy, but works better than anything else I've encountered.
- Tip: Use the 'Batch Prevent' to prevent all apps from starting, then exit the app. Run the app again & then toggle the apps you want to start by tapping them. Otherwise, the app is very unresponsive when trying to manage apps on an individual basis. You may need to re-run Visionary after you've allowed it to run on boot via Startup Cleaner.
Setup Wifi Tethering
Once you have Root & SuperUser, use your browser to visit http://code.google.com/p/android-wifi-tether/downloads/list & download the most recent version of "Wireless Tether".
- Once downloaded, run it to install. If you have trouble with this, I recommend using Chrome-to-Phone & simply right-click the file link to choose "Chrome-to-Phone"
After successful installation, run the Wireless Tether app. Recommend changing the SSID Name (name that appears).
- Note: Multiple people report issues with WiFi Encryption, so I recommend SETTINGS > ENABLE ACCESS-CONTROL. Your phone will log when something tries to connect to it & then you can "allow" by choosing MENU > ACCESS CONTROL and clicking the checkbox next to the device you want to allow.
{Update} If you're feeling adventurous, check out this article on how to use Tasker
http://androinica.com/2010/08/19/9-ways-to-make-android-automatic-with-tasker/
{Update 2} Long-press App & dragging over trashcan for uninstall is a LauncherPro feature, not android. Thanks to tekkaman_01 for the note!
{Update 3} Removed "When screen is locked but keyboard is open, you only have to press a key to unlock" because it isn't a consistent experience. Not sure what makes it work sometimes.
{Update 4} Added two sections: Optimize Your G2 & Setup WiFi Tethering. Small formatting changes to previous entries.
Long Press an Application & when the Trash Can Appears, Hold over the Trashcan to get an Uninstall Option is a feature of LauncherPro not stock android...
Updated - much thanks!
No problem
Sent from my T-Mobile G2 using XDA App
Great job, OP.
Great job, OP. I'm sure many people will appreciate this.
Does this merit a sticky?
Sent from my T-Mobile G2 using XDA App
Ghostcreamy said:
I'm amazed at how many people don't read these forums - they simply blurt out their questions.
Click to expand...
Click to collapse
You're right....people who don't read the forums and just blurt stuff out are horrible. Oh wait....what's this?
http://forum.xda-developers.com/showthread.php?t=804439
Ghostcreamy said:
[*]When screen is locked but keyboard is open, you only have to press a key to unlock
Click to expand...
Click to collapse
I've heard this before but this hasn't worked for me on two different G2s.
great, thanks
aedv said:
You're right....people who don't read the forums and just blurt stuff out are horrible. Oh wait....what's this?
http://forum.xda-developers.com/showthread.php?t=804439
Click to expand...
Click to collapse
thank you
<10 chars>
The cheat sheet of all cheet sheets!
Another good one is to:
HOLD Dots near the Dock Bar to see all screens in a mini navigation look.
Thanks!
Snap!
aedv said:
You're right....people who don't read the forums and just blurt stuff out are horrible. Oh wait....what's this?
http://forum.xda-developers.com/showthread.php?t=804439
Click to expand...
Click to collapse
SNAP!
I read that thread, but it was fragmented and I already had all of this in Evernote. Regardless, I appreciate the response & I'll continue to monitor that thread for any other tips that I can compile into this one.
Side note: You don't have to be mean to make a point Put a little love in your heart!
GC
Ghostcreamy said:
SNAP!
Side note: You don't have to be mean to make a point Put a little love in your heart!
GC
Click to expand...
Click to collapse
+1!! Great post OP!
Sent from my T-Mobile G2 using XDA App
Updated original post (OP) with a section on optimizing your G2 & setting up Wifi Tethering. Hope it helps!
awesome tips. i was wondering if theres a good way to allow the home screen and apps screen to auto rotate with gravity(only rotates with keyboard out)? and then on the flip side, to lock the orientation?
Not sure about locking, but LauncherPro or ADW launcher will rotate to landscape.
Sent from my T-Mobile G2 using XDA App
Here's a tip if you are using Launcher Pro: setup a 2x2 picture frame widget in the middle of a home panel. The frame should have a picture of an icon for things like settings, games, news, people, etc. Then add related app icons around the frame. This way, when you pinch a homescreen and pull up the 7 panel view, you can easily tell at a glance which panel has the apps you want
Sent from my T-Mobile G2 using The Force
"+X(Paste)"
Shouldn't that be "+X(Cut)"?
In the gmail and xda apps (the only ones I've tested so far) when you push the space bar after a word/letter, it will add a '.[space]'.
Sent from my T-Mobile G2 using XDA App
Great post Ghostcreamy. I figured out that you could swipe the home icon of launcher pro, but why it never occured to me that the other icons also have this feature?
Edit:There's your first "Thanks" on the meter...awww.

[Q] How to launch Voice Search using headset while screen locked?

Jelly Bean introduced headset controls which allowed Play/Pause and Next for single and double presses respectively on headsets. I can confirm both these work just fine.
However, the long-press option to launch Voice Search only works while screen is unlocked. When screen is locked, long-press has no effect (it does not even register as a single press)
I tried the following:
1. Disabling Pattern lock (which I mostly use)
2. Turning on screen (but still locked) and then long pressing.
3. Keeping Google Search on in the background and then locking screen.
No luck.
Cannot seem to get any useful info regarding this on the Internet.
There is no point in the voice search shortcut on headsets if the phone has to be dug out from my pocket and unlocked. There has to be a way to bypass that.
Can somebody help??
EDIT: I am also unsure if this is an Android-specific problem or a ROM specific problem, so it would be kind of you if you could test it yourself. You can see my ROM details in the signature. I use Samsung headset in combination with my Nexus 4.
UPDATE: I tried turning off the "Power button immediately locks phone" option and set "Automatically lock phone after sleep" time to 30 minutes. Still the long press doesn't work. It works only after screen is turned on again. Whaaaaa...?!
ANOTHER UPDATE: This issue is present on Google Code but it has been closed without further comments. Please star this issue so that it is noticed by the development team.
Been really frustrated about this as well. Any help would be greatly appreciated.
I'm running Jellybeer 4.0 on SGH i717m
Astounding. I even have to use a third party app to dial by voice reliably. What good is Google's extensive voice technology if you can't use it?
I'm equally as confused. One advantage of owning an iPhone is that you've got an excellent bike companion that could read and reply to texts, make calls, check the time, etc all while keeping my eyes on the road and hands on my handlebars. I always figured my Nexus S didn't do that because I was running a different ROM - but 4.2 on a brand new Nexus.....come on.
rhoadster91 said:
Jelly Bean introduced headset controls which allowed Play/Pause and Next for single and double presses respectively on headsets. I can confirm both these work just fine.
However, the long-press option to launch Voice Search only works while screen is unlocked. When screen is locked, long-press has no effect (it does not even register as a single press)
I tried the following:
1. Disabling Pattern lock (which I mostly use)
2. Turning on screen (but still locked) and then long pressing.
3. Keeping Google Search on in the background and then locking screen.
No luck.
Cannot seem to get any useful info regarding this on the Internet.
There is no point in the voice search shortcut on headsets if the phone has to be dug out from my pocket and unlocked. There has to be a way to bypass that.
Can somebody help??
EDIT: I am also unsure if this is an Android-specific problem or a ROM specific problem, so it would be kind of you if you could test it yourself. You can see my ROM details in the signature. I use Samsung headset in combination with my Nexus 4.
UPDATE: I tried turning off the "Power button immediately locks phone" option and set "Automatically lock phone after sleep" time to 30 minutes. Still the long press doesn't work. It works only after screen is turned on again. Whaaaaa...?!
ANOTHER UPDATE: This issue is present on Google Code but it has been closed without further comments. Please star this issue so that it is noticed by the development team.
Click to expand...
Click to collapse
the closest thing that i know of is using touch control to swipe to unlock (like pressing the power button) the using NAV RING to swipe the nav ring to google search, or what ever app you like. not sure if this is what you want but it may get you closer.
HB66 said:
the closest thing that i know of is using touch control to swipe to unlock (like pressing the power button) the using NAV RING to swipe the nav ring to google search, or what ever app you like. not sure if this is what you want but it may get you closer.
Click to expand...
Click to collapse
Here is what appears to be the correct place to file this complaint.
https://productforums.google.com/d/msg/websearch/ZbaIyhTIje4/GAKOqRrNjnAJ
Someone else started the report, I added as well, maybe someone at google will see and fix this oversight.
I have to admit I have wanted to be able to do this for a long time on my motorcycle, being able to press one button and use voice controls would be a god send, although when riding I use an E-Dash app that keeps the screen awake so voice is available.
Still.......would be nice to be able to leave the phone alone, say in a bag or on my hip and use my Bluetooth headset to do all the work
Sent from my Nexus 4 using xda app-developers app
WilliamWynter said:
Been really frustrated about this as well. Any help would be greatly appreciated.
I'm running Jellybeer 4.0 on SGH i717m
Click to expand...
Click to collapse
Solutions Etcetera said:
Astounding. I even have to use a third party app to dial by voice reliably. What good is Google's extensive voice technology if you can't use it?
Click to expand...
Click to collapse
bryantee said:
I'm equally as confused. One advantage of owning an iPhone is that you've got an excellent bike companion that could read and reply to texts, make calls, check the time, etc all while keeping my eyes on the road and hands on my handlebars. I always figured my Nexus S didn't do that because I was running a different ROM - but 4.2 on a brand new Nexus.....come on.
Click to expand...
Click to collapse
HB66 said:
the closest thing that i know of is using touch control to swipe to unlock (like pressing the power button) the using NAV RING to swipe the nav ring to google search, or what ever app you like. not sure if this is what you want but it may get you closer.
Click to expand...
Click to collapse
thedarkharlequin said:
Here is what appears to be the correct place to file this complaint.
https://productforums.google.com/d/msg/websearch/ZbaIyhTIje4/GAKOqRrNjnAJ
Someone else started the report, I added as well, maybe someone at google will see and fix this oversight.
Click to expand...
Click to collapse
Lord_alias said:
I have to admit I have wanted to be able to do this for a long time on my motorcycle, being able to press one button and use voice controls would be a god send, although when riding I use an E-Dash app that keeps the screen awake so voice is available.
Still.......would be nice to be able to leave the phone alone, say in a bag or on my hip and use my Bluetooth headset to do all the work
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Please check this link
My solution:
1. Download Bluetooth Launch from Play Store
2. Launch, scroll to Google Search and expand it
3. Enable option “com.google.android.googlequicksearchbox.VoiceSearchActivity”
4. close
5. launch Google Now go to Settings -> Voice and enable Bluetooth Headset option
6. connect not working Bluetooth or wired headset and long press button. Dialog should appear and select Bluetooth Launcher always!
7. test if this is the complete solution for you. If it doesnt work properly when screen is locked try following:
- Install Xposed Framework
- go to Downloads and Install "AppSettings"
- open AppSettings and go to Google Search
- Turn On Settings and check "Show when locked"
- save
- restart Phone
If you are having issues with your selected language in Google Now. Also use AppSettings and change Location for Google Search to desired one. Now you should be able to use Google Now in your preferred language.
stunner2002 said:
My solution:
1. Download Bluetooth Launch from Play Store
2. Launch, scroll to Google Search and expand it
3. Enable option “com.google.android.googlequicksearchbox.VoiceSearchActivity”
4. close
5. launch Google Now go to Settings -> Voice and enable Bluetooth Headset option
6. connect not working Bluetooth or wired headset and long press button. Dialog should appear and select Bluetooth Launcher always!
7. test if this is the complete solution for you. If it doesnt work properly when screen is locked try following:
- Install Xposed Framework
- go to Downloads and Install "AppSettings"
- open AppSettings and go to Google Search
- Turn On Settings and check "Show when locked"
- save
- restart Phone
If you are having issues with your selected language in Google Now. Also use AppSettings and change Location for Google Search Now you should be able to use Google Now in your preferred language.
Click to expand...
Click to collapse
But Exposed Framework requires your phone to be rooted, which I'm done doing... to much of a pain when it comes time to update

[Q] WatchOn - Activities

I set up the WatchOn app to control my devices. I can control them individually just fine. However, what I'd like is to hit a button for an activity, say watching a movie, and it automatically turns on the TV, sets its input to DVD, turns on my receiver, sets its input to DVD, and turns on the Blu Ray player.
Is this something this app does? If so, where do you access this? If not, why does it ask you for all the inputs on your TV and receiver?
DLarva said:
I set up the WatchOn app to control my devices. I can control them individually just fine. However, what I'd like is to hit a button for an activity, say watching a movie, and it automatically turns on the TV, sets its input to DVD, turns on my receiver, sets its input to DVD, and turns on the Blu Ray player.
Is this something this app does? If so, where do you access this? If not, why does it ask you for all the inputs on your TV and receiver?
Click to expand...
Click to collapse
Do you actually have a remote control that does all that with the press of one button? Cause I never seen one. I don't think that's possible with the phones WatchOn.
Reinaldo33897 said:
Do you actually have a remote control that does all that with the press of one button? Cause I never seen one. I don't think that's possible with the phones WatchOn.
Click to expand...
Click to collapse
Yes, I do. It is a logitech harmony.
The reason why I thought it might is because WatchOn has you set the input types on your TV and receiver. If you have to turn each component on manually, then it has no idea what input you want the TV on, so you have to set that manually as well, so why ask for the input.
If it can't do this, it doesn't seem like much of a stretch of the imagination to add a "Watch TV" button which just runs through a step of button presses for you.
I dont know I think watchon is a joke. Samsungs way of saying hey I can turn your components on and off lol. But see if you can hit play on the blueray and it should put tv in blueray input. But then I think yoy manually have to get it back to tv mode.
I think its a nice app if you want to search for tv shows but really worthless to operate the whole system.
Sent from my SAMSUNG-SGH-I337 using xda premium
Well 1 somewhat long way to do it is using the "Tasker" app. It can emulate virtual screen taps and bunch of other stuff.
Create a task from tasks tab.
Add Action -> App -> Load App -> WatchOn
Add Action -> Task -> Wait and set it to wait a few seconds for the app to load.
Add Action -> Script -> Run Shell and for command enter in "sleep 0.1; input tap 564 1856" where numbers are X,Y of your screen you want tapped.
- sleep X seconds is same as adding wait action. so you can change to whatever duration you want
- To determine X,Y values go in Settings->More ->Developer Options -> check Show Pointer Location.
- If its not there, to unlock the Dev Options menu, go to Settings -> About Device and scroll down to the "Build Number." Tap on your "Build Number" 7 times.
Keep adding actions for tapping all the WatchOn buttons you need (switch to remote view, load the correct room/tv etc).
Then just throw a tasker widget on ur screen and you have ur 1 button that auto does everything you want; after like 10 secs of running lol, sadly not instant.
PM me if you want to try this and need help

Low Vision: Toggle "Magnification Gestures" With Widget

Hi I just got a Nexus 6p and its been great but I have low vision and if I keep the option turned on the phone, it becomes very laggy so I would like to only use it when I need to.
Help would be greatly appreciated!
Thank you .
This isn't exactly what you wanted, but it's kind of close...
I use ADW as my launcher, which allows me to set custom shortcuts on my home screen. Other launchers might offer the same functionality.
I long pressed on my home screen and selected the Add tab on the popup. I then tapped Custom Shortcut, and tapped "Pick your activity." Next, I tapped Activities, scrolled down to Settings and expanded the list. It's rather long, but in that list there is one called "Accessibility(.Settings$AccessibilitySettingsActivity)". I selected that one, gave it a name (what it displays under the icon), and pressed OK. This created a settings gear icon on my home screen that when tapped goes straight to the accessibility options in the settings menu, and then you can tap the toggle for Magnification.
Alternatively, you should be able to do the same thing with Tasker if you have it installed and it's a bit easier. Make a new Task, give it a title (anything) and press the plus to add a step. Select Settings, then Accessibility settings (first option). There is some "if" options, but you can just tap your back button to go back to the step list. Create a widget for Tasker (1x1 task) and select the name of the task you just created. You then need to select an icon for the "widget" by tapping the icon in the lower right that looks like 9 squares in a grid. There are a bunch of built in icons you can choose from, or use your own. The result will be an icon on your desktop that goes to the accessibility options screen, allowing you to quickly toggle the magnification gesture.
Again, sorry this isn't exactly what you asked for, but it would save some taps. Luckily the mag gesture toggle is high enough in the list of options that it should always be on the screen when you open the accessibility settings, so you won't need to scroll.
Lastly, if you are rooted, you could use Tasker to also hit the toggle for you. If you want instructions for that, please do let me know and I'd be happy to share how to do that. It would allow you to tap the "widget" and it would then launch the accessibility settings, wait a second and then tap the toggle, and go back to the home screen. That way you wouldn't need to toggle it yourself.
fury683 said:
This isn't exactly what you wanted, but it's kind of close...
I use ADW as my launcher, which allows me to set custom shortcuts on my home screen. Other launchers might offer the same functionality.
I long pressed on my home screen and selected the Add tab on the popup. I then tapped Custom Shortcut, and tapped "Pick your activity." Next, I tapped Activities, scrolled down to Settings and expanded the list. It's rather long, but in that list there is one called "Accessibility(.Settings$AccessibilitySettingsActivity)". I selected that one, gave it a name (what it displays under the icon), and pressed OK. This created a settings gear icon on my home screen that when tapped goes straight to the accessibility options in the settings menu, and then you can tap the toggle for Magnification.
Alternatively, you should be able to do the same thing with Tasker if you have it installed and it's a bit easier. Make a new Task, give it a title (anything) and press the plus to add a step. Select Settings, then Accessibility settings (first option). There is some "if" options, but you can just tap your back button to go back to the step list. Create a widget for Tasker (1x1 task) and select the name of the task you just created. You then need to select an icon for the "widget" by tapping the icon in the lower right that looks like 9 squares in a grid. There are a bunch of built in icons you can choose from, or use your own. The result will be an icon on your desktop that goes to the accessibility options screen, allowing you to quickly toggle the magnification gesture.
Again, sorry this isn't exactly what you asked for, but it would save some taps. Luckily the mag gesture toggle is high enough in the list of options that it should always be on the screen when you open the accessibility settings, so you won't need to scroll.
Lastly, if you are rooted, you could use Tasker to also hit the toggle for you. If you want instructions for that, please do let me know and I'd be happy to share how to do that. It would allow you to tap the "widget" and it would then launch the accessibility settings, wait a second and then tap the toggle, and go back to the home screen. That way you wouldn't need to toggle it yourself.
Click to expand...
Click to collapse
Thanks a lot!
So it sounds like theres no way to make a widget the will toggle it specifically, without rooting my device.
And if I do root it and use Tasker it will take almost the same time as if I didn't.
If thats no other way then I guess I should root it even though Id prefer not too.
Unless theres another way, Instructions would be great! Thanks again!
Are you familiar with Tasker? It's a paid app, but it's absolutely worth it and you'll find lots of uses for it. I use it to auto reply to text messages while I'm driving, mute my phone when I'm at work (calendar based) turn on wifi when I'm at home (location based), etc.
First thing you need to do is find the location of the toggle on the screen. Go to Developer Settings and turn on "Show Pointer Location". This will make a gray bar at the top of your screen that lists your X and Y coordinates at the top when you are touching the screen. Go to the accessibility settings and touch the toggle, taking note of what the X and Y coordinates are for that touch input.
To simulate touch input, can make a task that opens the accessibility settings as I described above, then add a "wait" command (Task > Wait), enter a value of 1 second. Next enter a command for Code and select Run Shell. Under the command, type "input tap x y" where x and y are the x and y coordinates that you found for the toggle. Make sure the "use root" box is checked. Lastly, add a Tasker command to go to the home screen (back to where you started with the "widget").
Back all the way out of Tasker to save that task, then go back in and press the play button at the bottom left side to test your setup. You should see it launch the accessibility settings, wait a second, toggle, and go home. The first time you run it you will need to grant Tasker root permissions, so be ready for that. If you're not quick to approve it, the task may proceed and go to your home screen before you press approve, so you might need to run it again a second time after you approve it.
If you need more help with, or have any questions, please do let me know. Happy to help.
fury683 said:
Are you familiar with Tasker? It's a paid app, but it's absolutely worth it and you'll find lots of uses for it. I use it to auto reply to text messages while I'm driving, mute my phone when I'm at work (calendar based) turn on wifi when I'm at home (location based), etc.
First thing you need to do is find the location of the toggle on the screen. Go to Developer Settings and turn on "Show Pointer Location". This will make a gray bar at the top of your screen that lists your X and Y coordinates at the top when you are touching the screen. Go to the accessibility settings and touch the toggle, taking note of what the X and Y coordinates are for that touch input.
To simulate touch input, can make a task that opens the accessibility settings as I described above, then add a "wait" command (Task > Wait), enter a value of 1 second. Next enter a command for Code and select Run Shell. Under the command, type "input tap x y" where x and y are the x and y coordinates that you found for the toggle. Make sure the "use root" box is checked. Lastly, add a Tasker command to go to the home screen (back to where you started with the "widget").
Back all the way out of Tasker to save that task, then go back in and press the play button at the bottom left side to test your setup. You should see it launch the accessibility settings, wait a second, toggle, and go home. The first time you run it you will need to grant Tasker root permissions, so be ready for that. If you're not quick to approve it, the task may proceed and go to your home screen before you press approve, so you might need to run it again a second time after you approve it.
If you need more help with, or have any questions, please do let me know. Happy to help.
Click to expand...
Click to collapse
I just realized I need to buy an adapter for that USB C lol.
Before I go ahead with all of this work, your completely sure there is no other way to toggle magnification without rooting?
Thanks!
drewtass said:
I just realized I need to buy an adapter for that USB C lol.
Before I go ahead with all of this work, your completely sure there is no other way to toggle magnification without rooting?
Thanks!
Click to expand...
Click to collapse
Sorry for the delay. I am not aware of any widgets. I couldn't find a widget on the Play Store or light Google searching.
Regarding the adapter, the 6p should have come with a short USB A to USB C cable specifically for connecting to a PC.
drewtass said:
Hi I just got a Nexus 6p and its been great but I have low vision and if I keep the option turned on the phone, it becomes very laggy so I would like to only use it when I need to.
Help would be greatly appreciated!
Thank you .
Click to expand...
Click to collapse
Have you used the built in magnification gesture? You turn it on in accessibility settings, then when you need something to be bigger, just tap the screen 3 times rapidly. You can use pinch to zoom to adjust the text size. When you're finished with it, tap the screen 3 times again. I use it when an app's text is just too small.
EMcTx said:
Have you used the built in magnification gesture? You turn it on in accessibility settings, then when you need something to be bigger, just tap the screen 3 times rapidly. You can use pinch to zoom to adjust the text size. When you're finished with it, tap the screen 3 times again. I use it when an app's text is just too small.
Click to expand...
Click to collapse
Haha Yes I have tried it you have to tap your finger 3 times to magnify which means every time you tap something once it waits to see if you will tap more times and cause slight lag.
Niceeee idea bro, i will try it
moqueet said:
Niceeee idea bro, i will try it
Click to expand...
Click to collapse
Are you saying you will try to make a widget like this?
fury683 said:
Sorry for the delay. I am not aware of any widgets. I couldn't find a widget on the Play Store or light Google searching.
Regarding the adapter, the 6p should have come with a short USB A to USB C cable specifically for connecting to a PC.
Click to expand...
Click to collapse
No problem!
Lol I was so excited for my new phone I never checked but I found it !
Thanks I will root it when I get the chance.
i have the same exact problem,i absolutely love the feature as i wouldn't be able to use any phone with out it but it also gets frustrating sometimes (the touch delay) for example in the dialer app or Instagram.
a toggle in the notification panel would be great or an app through which you specifically enable/disable the gestures for each individual app.
any other alternative would be appreciated, somebody posted the same issue here with a possible fix (which i am not exactly sure how to implement) https://code.google.com/p/android/issues/detail?id=39685
hassanabid94 said:
i have the same exact problem,i absolutely love the feature as i wouldn't be able to use any phone with out it but it also gets frustrating sometimes (the touch delay) for example in the dialer app or Instagram.
a toggle in the notification panel would be great or an app through which you specifically enable/disable the gestures for each individual app.
any other alternative would be appreciated, somebody posted the same issue here with a possible fix (which i am not exactly sure how to implement) https://code.google.com/p/android/issues/detail?id=39685
Click to expand...
Click to collapse
Nice to know I'm not the only one.
Sorry for the late reply been busy with school. It would be nice to have this option maybe like a button shortcut .
Hey guys so that way of using tasker is very slow and not feasible.
Is there any other way of making a quick toggle magnification gestures. It would be nice if I could hold the menu button to enable it. (IPhone tripple tap home button to toggle)
Thanks again.
I have low vision as well and have also found that leaving the magnification gesture turned on causes the phone to be laggy even when I don't actually have the magnification turned on. Instead of using that, I rooted my phone, changed the global DPI and I use App Settings (an Xposed module) to increase the font size in some apps or force the standard DPI in apps that have issues with the custom one.
There's a gestural workaround I've employed: if instead of just putting down my finger I drag my finger slightly (in any direction) then the lag almost disappears. Doing this helps a lot but obviously its a bit of an awkward gesture.
Al--g said:
There's a gestural workaround I've employed: if instead of just putting down my finger I drag my finger slightly (in any direction) then the lag almost disappears. Doing this helps a lot but obviously its a bit of an awkward gesture.
Click to expand...
Click to collapse
How did you set it up?
There's no set up. I just do that gesture to get the scrolling to stop when I have magnification enabled.
GuinnessX said:
How did you set it up?
Click to expand...
Click to collapse

Factory Mode Test

Many would have noticed a system app called "Factory Mode" in stock FW. And I have been trying many codes but could never enter factory mode. An app from Google Store does the trick easily.
An app called "Shortcut Master (Lite)" can be used to test many functions of sub devices in Le Max 2 as below:
1. Install the above said app from Google Play Store.
2. Open the app and the first page shows some mini details about how to use it.
3. Touch on the 3 vertical dots on right top. It provides a list of options like "Secret Code Explorer", "App Explorer", etc.
4. Select "Search" and at the bottom where it says "Enter text to search" type "factory" - case does not matter.
5. The app will search and show list of apps with "factory" as part of keyword.
6. Select "FactoryMode" - com.letv.factory.MainActivity. Three options will pop up. Select "Launch".
7. It will popup another screen with multiple options to run tests in Chinese and English.
WARNING: Do not touch second button with Chinese caption on column one below -SUB_MMI button. It will force factory reset without any warning.
8. 4 of the buttons are in Chinese and 4 are in English.
SUB_MMI - Option 1 processes auto sequential testing up to proximity sensor if I am right.
Option 2 tests LCD - for colors, intensity, side buttons, navigation button. Only back could be tested as Home and Menu behaves exactly like they are.
Third button in Chines opens a list of all sub devices and the selection options are in English.
SL_MMI - Touching this opens up another screen and the second button inscribed in Chinese pops up another list of tests in English.
Please explore.
All navigation buttons work all the time as defined and hence test mode can be exit at any time.
I do not know if Finger Print test exists and if yes where.
Hope someone who knows Chinese find out and post a detailed post. And I do hope it helps a few who wonder how to check if certain sub are working or not.
And a BIG thanks to the developer "vndnguyen" for his work on "Shortcut Master".

Categories

Resources