HTC SPEAK - One (M7) Q&A, Help & Troubleshooting

I am trying to make a shortcut to the CAR MODE APP known as SPEAK.
There is not an icon for it in the app drawer and I can only find one app ( QUCIKSHORTCUTMAKER ) that can see it installed for creating a shortcut.
When launching my shortcut I get the message: ' Insufficient permissions to launch app '.
I know this has something to do with HTC SENSE but I fail to understand what I have to do to launch this app when NOT in CAR mode.
The shortcut is: com.htc.HTCSPEAKER/com.htc.HTCSPEAKER.Action.VRActivity
Maybe someone with a better understanding of Intents and Activities can help me?
Thanks

I believe the problem is in the HTC Speak apk manifest file. It had provisions that prevent it from being launched if the parent process "car or phone" isn't running.

Related

Ending Driving Mode for Google Maps

So far my attempts to google this answer have come up empty. I can open Google Maps driving mode with AutoShortcut no problem. But making it actually close is turning out to be impossible.
If I try to do a "Kill App", it doesn't kill the notification, leaving it in a bizarre half-open state. Has anyone found an intent or something that can actually kill this off properly?
Have you tried to run a Go Home action before killing the app?
Yes, unfortunately does not help at all. Even gave it ~3 second wait.
Vincent Law said:
So far my attempts to google this answer have come up empty. I can open Google Maps driving mode with AutoShortcut no problem. But making it actually close is turning out to be impossible.
If I try to do a "Kill App", it doesn't kill the notification, leaving it in a bizarre half-open state. Has anyone found an intent or something that can actually kill this off properly?
Click to expand...
Click to collapse
Try code run shell: am force-stop com.google.android.apps.maps & tick "use root". Change the package name if is necessary.
My device is not rooted, is that going to do anything?
Vincent Law said:
My device is not rooted, is that going to do anything?
Click to expand...
Click to collapse
Root is needed to run that command.
But did you try to kill another app with the method you've tried for google maps? Is it working?
So I managed to work out a solution to this, and it involves using the AutoNotifications plugin. I use the plugin to instruct Tasker to press the "end navigation / stop driving" button in the notification tray, which does the correct thing. For those looking to replicate, it's an "internal action", so use the first internal action, not one of the action button options that most guides suggest.
Vincent Law said:
So I managed to work out a solution to this, and it involves using the AutoNotifications plugin. I use the plugin to instruct Tasker to press the "end navigation / stop driving" button in the notification tray, which does the correct thing. For those looking to replicate, it's an "internal action", so use the first internal action, not one of the action button options that most guides suggest.
Click to expand...
Click to collapse
i am trying to "stop driving" using autonotification and cant figure it out. Can you please be more specific than "internal action" which internal action. What variable did you using for the stop driving button. I am trying to use autonotification query and action but i cant figure out which variable in the query to use for the action.
thanks
Vincent Law said:
So I managed to work out a solution to this, and it involves using the AutoNotifications plugin. I use the plugin to instruct Tasker to press the "end navigation / stop driving" button in the notification tray, which does the correct thing. For those looking to replicate, it's an "internal action", so use the first internal action, not one of the action button options that most guides suggest.
Click to expand...
Click to collapse
I'm new to autonotification - I have it set up to query for the "Maps" notification, and it's returning the %anapp variable correctly - I can even click on the notification and bring the focus back to the maps app - but how the heck do you fire this "internal action" to stop driving? I'm sure it must be obvious...
Bulldoguk72 said:
I'm new to autonotification - I have it set up to query for the "Maps" notification, and it's returning the %anapp variable correctly - I can even click on the notification and bring the focus back to the maps app - but how the heck do you fire this "internal action" to stop driving? I'm sure it must be obvious...
Click to expand...
Click to collapse
I just spent a few days trying to figure this out. Here is how I was able to get it working:
Create a new task / add these to a current task:
A1 - Add Action - Plugin, AutoNotification, Query. Tap Edit, Select "Maps" from Apps and under Advanced tap Internal Actions Big, tap the Tag icon. It should populate with %aninternalactions.
A2 - (Only needed for debugging) Add Action, Alert, Flash, tap the Tag and choose %aninternalactions, then edit to choose the first value in the array - %aninternalactions(1)
A3 - Add Action, Plugin, AutoNotification, Actions. Tap Intercept Action, tap the tag and choose %aninternalactions, then edit it again to - %aninternalactions(1)
To test, start driving mode and run the task manually. You should see the button GUID flash (if you enabled A2) and Driving Mode should end :good:
It works now
I figured out a solution.
Tasker gives you the advise to use ADB Wifi.
Here's what I did:
- enable and go to developer settings
- check ADB debugging
- check ADB while charging (only needed, if it stops working for you when you disconnect your USB cable. Try without first!)
- then run from your PC `adb tcpip 5555` to enable adb over wifi
- use Tasker Action "kill app", uncheck "Use Root".
Maps (or Driving Mode) can finally be killed this way.
Tried on Huawei Mate 20 Pro (LYA-L29) running Android 10 (10.0.0.214)
How are you able to open Google maps?
Mine opens for a millisecond then closes.
MSK1 said:
How are you able to open Google maps?
Mine opens for a millisecond then closes.
Click to expand...
Click to collapse
Hi, MSK1,
I searched for a long time for this solution, so maybe this one will help you out.
You can launch Google Maps directly into Navigation mode via using an intent.
You may find this one interesting. https://forum.xda-developers.com/showpost.php?p=46600949&postcount=3
Mine looks like this.
google.navigation:q=Zip+City,+Street+Number
Happy Driving!
Best Regards.
3di said:
Hi, MSK1,
I searched for a long time for this solution, so maybe this one will help you out.
You can launch Google Maps directly into Navigation mode via using an intent.
You may find this one interesting. https://forum.xda-developers.com/showpost.php?p=46600949&postcount=3
Mine looks like this.
google.navigation:q=Zip+City,+Street+Number
Happy Driving!
Best Regards.
Click to expand...
Click to collapse
Thanks.
I found an easier way.
I downloaded the "navigation shortcut" app from the play store.
When I launch this as an app from tasker then the navigation stays on.
Sent from my EVR-N29 using Tapatalk

Tasker or another automate app working?

Hi,
I tried to find root cause, but unfortunately without success. Is there anybody, who using Tasker or another application for automatization of your phone without any issues?
My issue is, Tasker is still "delayed" - but same rules I used before on LG G3 (Android 6.0) - but now on P9 (DualSIM) didn't work.
I have task for Calendar Entry, where if I have appointment in my work calendar, during this time Sound mode is deactivated (only Vibrate).
Some suggestion? I tried white lists, etc. or another app with same bad behavior.
Thank you!
Well, I tried to deactivate power management app from Huawei over ADB and looks good now finally! Its workaround, but tasker now working very well as expected.
adb shell pm hide com.huawei.powergenie
Did you have "Run in Foreground" selected in Tasker's preferences?
My Tasker works fine with that selected, although I also have trusted the app in permissions manager, allowed it to auto launch & activated it as a device administrator in advanced settings/security.
Yeah, I tried every tip over Tasker or phone (EMUI settings) and only deactivate power management helps me.
I had the same problem with IFTTT. It worked perfectly with my LG G3, but was hopeless on the P9. No amount of white-listing or settings would work.
I even had the app in memory, with Google maps running, on GPS, screen on, and it still wouldn't trigger a location based profile.
I've had to revert to manually arming and dis-arming my home security system. Annoying.
I translate from spanish so I'm sorry if your phone shows menus with other name.
You must go to adjust > advanced adjusts > memory and store and at bottom of page "space clean". On new screen push on upper-right wheel, and now on last option "white list of memory clean". Finally look for your app and activate it.
If you don't include app here, clean system will close it on background and timers won't work. It solved my problems.
aidrabmol said:
I translate from spanish so I'm sorry if your phone shows menus with other name.
You must go to adjust > advanced adjusts > memory and store and at bottom of page "space clean". On new screen push on upper-right wheel, and now on last option "white list of memory clean". Finally look for your app and activate it.
If you don't include app here, clean system will close it on background and timers won't work. It solved my problems.
Click to expand...
Click to collapse
"Settings>Advanced settings>Memory & storage>Storage cleaner" and "Memory cleanup whitelist".
Using Agama, I can get an app to start following a reboot. However, I would like to start the App at every Startup. Does Automate or any other app let you do that?
carroamer said:
Using Agama, I can get an app to start following a reboot. However, I would like to start the App at every Startup. Does Automate or any other app let you do that?
Click to expand...
Click to collapse
Why would you need Tasker for that simple.
Settings, type in the Search Autostart and add your app to the list of apps to be started on every reboot.
You may also need to disable Battery Optimization for your app (to make sure it would still work in background when the phone sleeps with dark screen)
That should generally work for all Androids. I don't have Huawei P9 now for years, I remember that EMUI might have had specific Settings organization but there was also Autostart (or Auto start)...
zgfg said:
Why would you need Tasker for that simple.
Settings, type in the Search Autostart and add your app to the list of apps to be started on every reboot.
You may also need to disable Battery Optimization for your app (to make sure it would still work in background when the phone sleeps with dark screen)
That should generally work for all Androids. I don't have Huawei P9 now for years, I remember that EMUI might have had specific Settings organization but there was also Autostart (or Auto start)...
Click to expand...
Click to collapse
When I search 'Autostart' it produces 'No results'
carroamer said:
When I search 'Autostart' it produces 'No results'
Click to expand...
Click to collapse
I had P9 for three years (if you don't believe, you can find tons of my posts here back from 2017-2018)
Now, you have that phone, not me (I got rid of my last Huawei almost three years ago) - I cannot show you and I cannot look into the EMUI settings because I don't have the EMUI phone anymore
But I KNOW that there was a way in EMUI how to control which apps will be automatically started on boot - I know because I played with all that back in those years, II did need for many apps like AdAway, Find My Device and similar that required to be auto-started to operate correctly
Take your time and google and you'll find. Sorry, I tried to help you but I will no more waste my time on that. Huaweis are past time for me
And take your time, use your imagination, If not Autostart, google for EMUI startup manager or something similar to find the answer for your question on the Net

Tasker to run copilot to a certain location

I have a profile that will turn off wifi and turn data on when I leave work.
I am trying to add a task to this that will open copilotand set the navigation to on of my saved destinations.
Can anyone help me with this please?
Never used copilot but i am pretty sure it is possible with autoinput.
You launch the app with tasker, and use a combination of autoinput commands, to have it open what you want.
The "intent" stuff that i know nothing about might be helpful as well.
Sent from my SM-G900F.
Thank, I hope someone could expand further with the items you mentioned please?
You could take a look at its intents on manifest file of the apk.
CrashOverride93 said:
You could take a look at its intents on manifest file of the apk.
Click to expand...
Click to collapse
Sorry haven't a clue what this means?
Tried using autonotification, it seems like it doesn't recognize what is clickable and what is not within your app and so i couldn't do anything with it. Havn't used it for a long time so i might be missing out on something. I probably am.
About intents check this out. Was just reading it since i don't know about intents either. It was interesting http://forum.xda-developers.com/showthread.php?t=2489449
Its an interesting read. Tried using an intent for google maps, your app recognized it. I could feed an address to the app but it will simply display it on the map.
There is most likely an intent for google maps to navigate to an address from your current position. If thats the case, your app most likely will recognize it as well which is what you are looking for.
Sent from my SM-G900F.

"Unable to view photos. Please add gallery to the work profile and try again"

I'm running EMUI9 on the Huawei P30 Pro.
When I take a photo, then click on the photo I've just taken in the circle to the left of the "take photo" button (see attached screenshot; photo preview highlighted be the arrow), I get the message:
"Unable to view photos. Please add gallery to the work profile and try again"
What does this mean? What do work profiles have to do with viewing a photo?
Has anyone else seen this before? It's driving me insane because it makes no sense at all, and there's no info about it anywhere. (I've Googled left, right & centre and found nothing...)
TIA.
Same issue after changing default gallery to google photos, this error pops up when i try view photos from the camera app, did you ever find a solution?
I have just been looking at this from the other side: making it work.
I am a novice device admin for our company and found your post when looking to solve the same issue. I just solved it so came back to pass on the details.
From the error I surmise you have the same basic issue as I had - a Huawei phone configured either as a personal phone also used for work, or a company phone which also allows personal use.
To make these changes you will need to be a device administrator for your organisation - if you aren't someone in your IT team should know who is.
I found to make the camera work I added the app package "com.huawei.camera" as an "Android Enterprise System App". For you to get the error this must have already been done on your phone.
The camera app relies on the Gallery app to show photos, so that app also needs adding as an "Android Enterprise System App". Depending on the mobile device admin portal the app category name may be different but the app package name is the same.
It took a while but I finally figured out the app package name to add is: com.android.gallery3d
Once added in the portal, the device policies sync'd and the Gallery appeared a second time in the full app list (with the work profile icon in the corner), the camera app could then allow the photos to be browsed.
Hopefully this helps resolve your issue too.
Jostain: I'll make an educated guess your problem is similar, but the Google Photos app needs to be added tot he work profile. I don't have the app package name for that but it probably won't be hard to find.
I have not long purchased the Honor 50 and I have the exact same. Could anyone shed any light on a solution for this?
I contacted Honor and their solution was to use their default Gallery app!

Change name and icon of Screen2auto INSIDE android auto?

I already have 2 versions of screen2auto displayed inside android auto. The 2nd one is a cloned one of the original. So I have 2 icons of screen2auto with the same name.. Anyone know what I should change in apk editor or other alternative app to change the name of the cloned? To have for example screen2auto and screen2autoB, or something.. If possible to change the icon also..
If anyone ask himself why to do that. One reason is to run different apps by one click. For example in cloned version of Screen2auto I have select in the settings to run youtube at start.. If i change the name and the icon of Screen2auto to : "YouTube" then I will have inside android auto launcher a YouTube icon which will auto launch YouTube with just 1 click. You could actually do the same by cloning 3rd time screen2auto by name IPTV and an iptv icon, and have 1 click run your iptv app. Etc for every app you want.
If you actually try this, you will find that after running the cloned app you have problems eg freezing (because you started original app screen2auto before), but you can solve this by calling a tasker script to kill screen2auto app every time you go back to android auto launcher..
I have tried all this and are working. I just miss what I ask, a way to change name and icon inside android auto original launcher. If anyone knows post a solution.
I have done this at past, changing name and icon but not in screen2auto but alternative mirroring app that was the main mirroring app then.. So it can be done probably in screen2auto.
Thanks,
I guess you will have to decompile the app. There are instructions online.
Afterwards you can change the Manifest file and look for the icon within the decompiled files.
In the end you can compile the app again and probably you will have to sign it.
But noone will guarantee that your app will work afterwards...
Therefore in my opinion this is a lot of work with no guarantee that the result will be fine in the end.
My proposal is to ask the developer to provide you all 3 apps with mods. I think if you buy him a coffee it will be possible.
SOFO888 said:
I guess you will have to decompile the app. There are instructions online.
Afterwards you can change the Manifest file and look for the icon within the decompiled files.
In the end you can compile the app again and probably you will have to sign it.
But noone will guarantee that your app will work afterwards...
Therefore in my opinion this is a lot of work with no guarantee that the result will be fine in the end.
My proposal is to ask the developer to provide you all 3 apps with mods. I think if you buy him a coffee it will be possible.
Click to expand...
Click to collapse
You are probably right.. There is apk editor, which do mods like this easily but it's true that is not working well with screen2auto.. In previous mirroring app it was working good. Perhaps i may try some other tool, to see if it works better.. Also i don't know where in the code is the information for name (inside AA) and the icon. Someone who create AA apps should know.
I may send a developer a mail, if he wants to support something Iike the above, i describe.

Categories

Resources