Enable WiFi for specific Apps - Android Head-Units

Is there an easy way to create a shortcut / script that will enable WiFi when running Waze or G-Maps, but not other apps ?
Alternatively is there an easy way to prevent the Joying from "calling home" and potentially sharing my passwords & phone numbers with China ?

pwood999 said:
Is there an easy way to create a shortcut / script that will enable WiFi when running Waze or G-Maps, but not other apps ?
Alternatively is there an easy way to prevent the Joying from "calling home" and potentially sharing my passwords & phone numbers with China ?
Click to expand...
Click to collapse
Any idea on whether this is a thing with these units? Thought it was only that certain phone manufacturer that was busted..

Related

[Q] How can i set/change Global Settings like Airplane Mode on/off

Hi XDA,
I'm in development of a widget app and want to provide several functions like toggle Airplane Mode, Data Roaming, GPS etc.
As of API Level 17 Airplane Mode and Data Roaming have been moved to protected Settings.Global* and i dont know how i can provide my users this functionality.
I heard of some permission "WRITE_SECURE_SETTINGS" but appearently this is not the problems solution yet. Is it? - didnt work in Emulator
Has anyone experience in this and can explain me how i can i provide these functions, which seem to be protected?
Thanks,
Wambo92
* I'm not allowed to link outside, but this is what i wanted to link to:
developer.android.com/reference/android/provider/Settings.Global.html
Settings.Global is read-only. The only way that special permission will work is if you build the OS yourself.
New Global Settings
The system settings have been updated to support multiple users with the addition of Settings.Global. This collection of settings is similar to Settings.Secure settings because they are read-only, but applies globally across all user spaces on the device.
Several existing settings were relocated here from either Settings.System or Settings.Secure. If your app is currently making changes to settings previously defined in Settings.System (such as AIRPLANE_MODE_ON), then you should expect that doing so will no longer work on a device running Android 4.2 or higher if those settings were moved to Settings.Global. You can continue to read settings that are in Settings.Global, but because the settings are no longer considered safe for apps to change, attempting to do so will fail silently and the system will write a warning to the system log when running your app on Android 4.2 or higher.
Click to expand...
Click to collapse
zalez said:
Settings.Global is read-only. The only way that special permission will work is if you build the OS yourself.
Click to expand...
Click to collapse
Okay, so I'm just going to link to the settings and display the state whether its on or off in API Level 17 or higher in my widgets.
Anyway, i don't like googles decision to strictly restrict developers changing these settings.

2G - 4G switch

Is there any app or widget that can automaticaly switch to 2G network when I turn off data, and automaticaly switch to 3G/4G when I trun on data ?
I've found many apps where they can switch between 2G-3G-4G but not automaticaly.
Tasker can do this.
This app might also work
http://forum.xda-developers.com/nexus-4/themes-apps/app-intelli3g-2g-3g-4g-toggle-battery-t2580234
That thread no longer exists. Tasker is quick and easy to do it with bro try that. Will save your manual toggle efforts as well.
sunny.0092 said:
That thread no longer exists. Tasker is quick and easy to do it with bro try that. Will save your manual toggle efforts as well.
Click to expand...
Click to collapse
I've read about Tasker but is seems to need Root access in order to alter 2G - 3G - 4G
Can someone confirm/deny that changing network modes require root ?
yonef said:
I've read about Tasker but is seems to need Root access in order to alter 2G - 3G - 4G
Can someone confirm/deny that changing network modes require root ?
Click to expand...
Click to collapse
Yes it does require root unfortunately, sorry for half baked info earlier. But that (rooting) seems to be the only way to get what you want and a lot more using tasker few similar apps n plugin.
sunny.0092 said:
Yes it does require root unfortunately, sorry for half baked info earlier. But that (rooting) seems to be the only way to get what you want and a lot more using tasker few similar apps n plugin.
Click to expand...
Click to collapse
I use Automagic to drive the UI to flip between 3G and 4G. Root not required for this, but screen needs to be on and the phone unlocked for it to succeed (as if you were doing it manually). My Automagic flow/script waits for the right conditions (unlocked/screen on and, for me, the phone being away from or at home) and then I see it make the change. It's better than remembering to do it manually, anyway...
WibblyW said:
I use Automagic to drive the UI to flip between 3G and 4G. Root not required for this, but screen needs to be on and the phone unlocked for it to succeed (as if you were doing it manually). My Automagic flow/script waits for the right conditions (unlocked/screen on and, for me, the phone being away from or at home) and then I see it make the change. It's better than remembering to do it manually, anyway...
Click to expand...
Click to collapse
Is it possible to configure automagic to :
When I switch on DATA - do switch to 3G automaticaly (screen will be on and phone will be unlocked anyway)
When I switch off DATA - do wtitch to 2G straight away
I dont need nothing more.
yonef said:
Is it possible to configure automagic to :
When I switch on DATA - do switch to 3G automatically (screen will be on and phone will be unlocked anyway)
When I switch off DATA - do wtitch to 2G straight away
I dont need nothing more.
Click to expand...
Click to collapse
My MXP only offers the user to switch between 4G and 3G - I don't know how to force it to 2G (I'm UK based)
Automagic does not seem to have a trigger to spot if you have set DATA on or off, but it DOES have an action which may work
The action Set Mobile Datanetwork State turns the mobile datanetwork on or off.
Warning: This function is not officially supported by Android and might not work on all devices.
So, if it works, you could create a shortcut of your own to toggle DATA on or off and also explicitly drive the UI to make other settings at the same time...
Automagic has a trial so you could try it. It's all based on flow diagrams which you edit to accomplish what you want, and has scripting too.
http://automagic4android.com/en/help/base-concepts
I moved to it from Llama, I couldn't get my head around Tasker, and haven't looked back. Both Dev and users are VERY responsive on the Automagic forum too
For example, here is my flow to control 3G/4G. It looks for my location set in another flow and the current network state, setting it appropriately.
http://goo.gl/iS2eBA
... and the script that drives the UI to check the radio button for 4G (if not already checked), return to what was on the screen before and set a global variable to the network type it set
http://goo.gl/UqCmC5
WibblyW said:
My MXP only offers the user to switch between 4G and 3G - I don't know how to force it to 2G (I'm UK based)
Automagic does not seem to have a trigger to spot if you have set DATA on or off, but it DOES have an action which may work
The action Set Mobile Datanetwork State turns the mobile datanetwork on or off.
Warning: This function is not officially supported by Android and might not work on all devices.
So, if it works, you could create a shortcut of your own to toggle DATA on or off and also explicitly drive the UI to make other settings at the same time...
Automagic has a trial so you could try it. It's all based on flow diagrams which you edit to accomplish what you want, and has scripting too.
http://automagic4android.com/en/help/base-concepts
I moved to it from Llama, I couldn't get my head around Tasker, and haven't looked back. Both Dev and users are VERY responsive on the Automagic forum too
For example, here is my flow to control 3G/4G. It looks for my location set in another flow and the current network state, setting it appropriately.
http://goo.gl/iS2eBA
... and the script that drives the UI to check the radio button for 4G (if not already checked), return to what was on the screen before and set a global variable to the network type it set
http://goo.gl/UqCmC5
Click to expand...
Click to collapse
Thanks mate, I'll try it and see how it works

Security and smart lock

I do not have an Android head unit yet but I've been looking into security options. Case use examples where you'd want security, if you need to leave your car with a service centre; if you let a family member or friend use the vehicle; worst case scenario if it gets stolen. In all scenarios people would have access to your Google account (Gmail, Play Store, Calendar etc).
So far the solutions I've seen are:
1. Don't use your primary Google account. This is the most secure, but also the least convenient.
2. Using AppLock and other apps. I haven't tried this on any Android device so I don't know how truly secure it is at locking sensitive apps and data. I'm not even sure how convenient it really is.
Here's an idea for a third option for Lollipop and above head units, that in theory is the most elegant solution provided they have the same security functionality as the stock Android OS.
1. Enable the lock screen feature in the Android settings so it requires a pin to login.
2. Employ the smart lock feature in Android so the head unit unlocks when it detects a trusted device, such as a Bluetooth connection with your smartphone, your Fitbit, etc.
3. Add a guest user account to the head unit for times when someone else will use the car so they can still use basic features, but not access your sensitive data.
I'm not sure how this would affect boot time, or if the aforementioned security features have been disabled in these head units, etc. Let me know if this would work.
vxn said:
I do not have an Android head unit yet but I've been looking into security options. Case use examples where you'd want security, if you need to leave your car with a service centre; if you let a family member or friend use the vehicle; worst case scenario if it gets stolen. In all scenarios people would have access to your Google account (Gmail, Play Store, Calendar etc).
So far the solutions I've seen are:
1. Don't use your primary Google account. This is the most secure, but also the least convenient.
2. Using AppLock and other apps. I haven't tried this on any Android device so I don't know how truly secure it is at locking sensitive apps and data. I'm not even sure how convenient it really is.
Here's an idea for a third option for Lollipop and above head units, that in theory is the most elegant solution provided they have the same security functionality as the stock Android OS.
1. Enable the lock screen feature in the Android settings so it requires a pin to login.
2. Employ the smart lock feature in Android so the head unit unlocks when it detects a trusted device, such as a Bluetooth connection with your smartphone, your Fitbit, etc.
3. Add a guest user account to the head unit for times when someone else will use the car so they can still use basic features, but not access your sensitive data.
I'm not sure how this would affect boot time, or if the aforementioned security features have been disabled in these head units, etc. Let me know if this would work.
Click to expand...
Click to collapse
Have you been able to get this working? I am also looking for a similar solution to stay secure while keeping primary Google account.
roxylove said:
Have you been able to get this working? I am also looking for a similar solution to stay secure while keeping primary Google account.
Click to expand...
Click to collapse
The unit I've got had half of the Settings menu disabled, including Lockscreen. Before I rooted it and installed normal settings I used activity shortcut to get to the hidden menu options. I described it here: https://forum.xda-developers.com/showpost.php?p=73282307&postcount=6
For some reason unlock with trusted devices mostly doesn't work. But overall it works and device is not accessible unless you enter pin.

Allow <app> to enable Bluetooth? Turn off user confirmation in Android P.

Since updating to Android Pie, apps need user confirmation when changing system settings like turning on bluetooth.
This defeats the purpose of automating processes with apps like tasker.
Had been looking for the solution on the web for a while and had not found any posts providing a solution.
I saw others with similar problems, but no solution that worked.
I found a solution and want to share it here.
The issue can be resolved in the following manner.
You need to give the specific app permission to write system settings.
Go to Settings>Apps>Apps.
Press the three dots at the top right.
Special Access>Write System Settings
Search for the app (e.g. Tasker)
Activate the setting for the app.
When the app activates Bluetooth, it will no longer ask for user confirmation.
Hope this helps people out there.
KR
Litening
Hi in my case it doesn't work.
Honor 8 pro with Android 9.0.1.161, using an NFC tag that turns Bluetooth on or off, using the "NFC Task" app, whenever the system displays a screen with the text "NFC task wants to enable / disable bluetooth" and two choices "allow" or "refuse".
Steps dont work in my Huawei Y9 2019, with Android 9.01, any other suggestion?, write access settings are ON for all the apps that needs bluetooth, but bluetooth keeps asking the same, aprove or deny...
Same here, Mate 20 X. Had this already turned on.
Don't Work P30 Pro Android 10
Anyone was able to find a solution?

Yulu E10 Plus - Auto Start Apps/Alexa

I currently have the Yulu E10 Plus for F150. My specifications are attached. I have an Alexa Auto that works well with the device, however, in order for it to connect the Alexa app requires it is open. I wanted to automate the opening of the Alexa app, however, there appears to be no native way to do it. I tried using an app like Tasker or Automate but it has a couple of problems.
1. The device kills all apps that the user opens when it sleeps or restarts.
2. Accessibility settings are turned off after each sleep/reboot.
I wanted to root to whitelist certain apps but there does not appear to be solid information on how to accomplish that for this model of head unit. It does have the UIS7682 CPU but none of the information I have found in the forums covers that along with the specific MCU and System version. Want to be sure as to not brick my device.
Wondering if anyone has advice or experience with this type of head unit.
Thanks in advance!
swifty1290 said:
I currently have the Yulu E10 Plus for F150. My specifications are attached. I have an Alexa Auto that works well with the device, however, in order for it to connect the Alexa app requires it is open. I wanted to automate the opening of the Alexa app, however, there appears to be no native way to do it. I tried using an app like Tasker or Automate but it has a couple of problems.
1. The device kills all apps that the user opens when it sleeps or restarts.
2. Accessibility settings are turned off after each sleep/reboot.
I wanted to root to whitelist certain apps but there does not appear to be solid information on how to accomplish that for this model of head unit. It does have the UIS7682 CPU but none of the information I have found in the forums covers that along with the specific MCU and System version. Want to be sure as to not brick my device.
Wondering if anyone has advice or experience with this type of head unit.
Thanks in advance!
Click to expand...
Click to collapse
First you could check if your device has the option to auto start the navigation app and if you can set another app as navigation app.

Categories

Resources