USB Tethering - Tasker Tips & Tricks

I'm looking for a way to switch the USB Tether on my rooted Xiaomi Mi 5x with MIUI 10.4.
The standard USB Tether action in Tasker is not available for my device, and even the secure setting plugin encounters an error when executing the USB Tether action.
Any help will be appreciated, thanks.

Have you tried using tasker and Autoinput ... As Autoinput can simulate touch points on a screen you can pretty much make any app an automatic app ... It takes a bit of getting used to but once you have got the basics you will be amazed !
Sent from my Pixel 2 XL using Tapatalk

Related

Bluetooth Tethering v Wifi Hotspot

Currently been using my Nexus with my GSII and bluetooth tethering for internet access, thinking that bluetooth being lower powered, short range, its probly less demanding on the phones battery.
Does this still apply to modern devices with combined radios?
Also has anyone found a widget to connect/reconnect to a paired bluetooth device?
I think the nexus is going to deep sleep, and closes the connection to the phone. But it doesn't bring it back when it wakes...which means its Settings>Bluetooth>Click on Phone...which is 2 clicks too many!
cjb110 said:
Currently been using my Nexus with my GSII and bluetooth tethering for internet access, thinking that bluetooth being lower powered, short range, its probly less demanding on the phones battery.
Does this still apply to modern devices with combined radios?
Also has anyone found a widget to connect/reconnect to a paired bluetooth device?
I think the nexus is going to deep sleep, and closes the connection to the phone. But it doesn't bring it back when it wakes...which means its Settings>Bluetooth>Click on Phone...which is 2 clicks too many!
Click to expand...
Click to collapse
just got it set up, it works great! Thanks for this, I was using Wi-fi tether the other day, killed all 3 of my batteries
I've been using WiFi tether at work; are you guys saying that using Bluetooth tether is less cumbersome on the battery?
I've been trying bluetooth tether all day today.
I have GSM Galaxy Nexus running official 4.1.1
Nexus 7, on 4.1.1 also.
I get them bluetooth paired up and bluetooth tethered via the Galaxy Nexus' cell data.
It works for like a minute then after that, they would disconnect (unpair from bluetooth).
Been doing this all day long every time I try.
Also the 2 are only 3ft away.
Any Ideas?
EDIT: Just saw this URL from another post.. guess it's a bug: http://code.google.com/p/android/issues/detail?id=22369
nxt said:
I've been trying bluetooth tether all day today.
I have GSM Galaxy Nexus running official 4.1.1
Nexus 7, on 4.1.1 also.
I get them bluetooth paired up and bluetooth tethered via the Galaxy Nexus' cell data.
It works for like a minute then after that, they would disconnect (unpair from bluetooth).
Been doing this all day long every time I try.
Also the 2 are only 3ft away.
Any Ideas?
EDIT: Just saw this URL from another post.. guess it's a bug: http://code.google.com/p/android/issues/detail?id=22369
Click to expand...
Click to collapse
Same setup, and same issue.
On a side note is there a way to use NFC to automatically pair the two devices via Bluetooth? I'd like to just touch them together and voila they are paired?
doctahjeph said:
Same setup, and same issue.
On a side note is there a way to use NFC to automatically pair the two devices via Bluetooth? I'd like to just touch them together and voila they are paired?
Click to expand...
Click to collapse
Just to pair normally? No.
But if you beam a picture, it auto turns on the bt, pairs, sends the picture, then turns off bt. The two devices does not have to be paired up beforehand either.
Google did show off new feature of NFC/BT at Google I/O during the sessions.
They showed off headphones and speakers that when you touch your JB device to the headphone/speaker, it auto pairs and audio starts playing.
So yes it's possible to auto pair devices, but those other devices need to support it.
This is a known bug with the galaxy nexus phone. It will kill BT tether when the phone goes into sleep.
Download an app called wake lock from the play store and set a partial wake lock and the problem will go away.
Your battery drain will be slightly higher though.
Sent from my Nexus 7 using xda premium
ManMythLegend said:
I've been using WiFi tether at work; are you guys saying that using Bluetooth tether is less cumbersome on the battery?
Click to expand...
Click to collapse
So far it seems to be, which it should as Bluetooth is a short range low powered protocol.
I wasn't sure that with the modern design in phones, when the radio's are all one chip, if the power saving would still apply.
nxt said:
I've been trying bluetooth tether all day today.
I have GSM Galaxy Nexus running official 4.1.1
Nexus 7, on 4.1.1 also.
I get them bluetooth paired up and bluetooth tethered via the Galaxy Nexus' cell data.
It works for like a minute then after that, they would disconnect (unpair from bluetooth).
Been doing this all day long every time I try.
Also the 2 are only 3ft away.
Any Ideas?
EDIT: Just saw this URL from another post.. guess it's a bug: http://code.google.com/p/android/issues/detail?id=22369
Click to expand...
Click to collapse
Try turning off your WiFi before pairing....I think that worked for me
Are you guys using that PDAnet and FoxFi setup in order to pair the devices? Thats the only way I can bt pair my galaxy nexus and nexus 7 together.
mmm, nope its native feature in the Resurection Remix rom I'm using on my GSII
Not having any luck installing PDANet 3.5 on the Nexus 7, any ideas?
Got FoxFi installed on my HTC Desire and ticked Bluetooth DUN. Can pair it to tablet but tablet doesn't get any Internet access, so need PDANet installed for that I think.
Edit: PDANet 2.20 on the market was installable, bluetooth tethering working ok now. Really old version though...
Further edit: Looks like it is "PDANet Tablet" version I'm using, hence the confusion. 2.20 appears to be the latest one.
Just tested BT tethering on my N7 with my SGS2 (which was using wifi at the time). Worked perfectly. I did a quick speedtest and got 750kbps down and 1500kbps up (weird wifi...). I was shocked I would get such good speeds over BT. Anyway, I like this option better then a wifi hotspot. First, it's easier to setup. Second, it (apparently) uses less power. And third, it will allow me to access some special hotspots I might not get on my tablet. For example, with AT&T, they give you free hotspot access at some locations with their devices. I wouldn't be able to use my tablet there directly, but could daisy chain through the phone. Coolbeans.
Bluetoothkeepalive works to keep the bluetooth connection for bluetooth tethering. Just trying it out and hasn't dropped yet over about 15 minutes.
OK a little help please. First off nothing is rooted.
I have installed pdanet and fifox on my HTC sensation. I can connect the Bluetooth from my nexus 7 to the sensation but I can't get internet access. I checked the setting in the Nexus "Use for internet access" but still nothing.
What else should I try?
Thanks for your help
Sent from my Nexus 7 using xda app-developers app
bigbeerdrinker said:
OK a little help please. First off nothing is rooted.
I have installed pdanet and fifox on my HTC sensation. I can connect the Bluetooth from my nexus 7 to the sensation but I can't get internet access. I checked the setting in the Nexus "Use for internet access" but still nothing.
What else should I try?
Thanks for your help
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Go on the tablet, into Bluetooth, and you should see your phone in there, click on it. It'll then say connected. You'll get internet access.
I have now noticed that the bluetooth connection does drop after a minute or so, which can be a little annoying.
I'll try bluetoothkeepalive.
Another good app to get is Bluetooth Auto Tethering, it keeps tethering as an option on every time your phone boots, no extra interaction on the phone to enable tethering every time. Just enable/disable the connection from the tablet to automatically turn tethering on/off on your phone!
bigbeerdrinker said:
OK a little help please. First off nothing is rooted.
I have installed pdanet and fifox on my HTC sensation. I can connect the Bluetooth from my nexus 7 to the sensation but I can't get internet access. I checked the setting in the Nexus "Use for internet access" but still nothing.
What else should I try?
Thanks for your help
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
You might try going to Settings - More - Tethering & portable hotspot - check wi-fi hotspot and configure
barbo said:
You might try going to Settings - More - Tethering & portable hotspot - check wi-fi hotspot and configure
Click to expand...
Click to collapse
You are right about that, I got stuck on doing that yesterday. As for the general discussion about bluetooth tethering vs. wifi tether. I tried it out today and I can say its much better on the battery life, but the speed is pretty low. I keep doing a speed test on my phone and couldn't get over 1.48 Mbps, then tried wifi tether and was easily getting over 5Mbps.

Disable USB Charging (root required)

Download: https://play.google.com/store/apps/details?id=org.bramantya.stopcharging&hl=en
*** ROOT REQUIRED ***
Bored with various apps that make your phone charge faster?
Want to stop charging your phone's battery when connected to USB?
You are a developer that often connect their phone via USB and don't want the battery to suffer?
Disable USB Charging will disable usb charging (obviously..). Allowing you to connect your phone via USB without straining your battery again and again and again.
---
Please mention your Android version or custom ROM if it's not working for you. Thank you.
orangpelupa said:
Download: https://play.google.com/store/apps/details?id=org.bramantya.stopcharging&hl=en
*** ROOT REQUIRED ***
Bored with various apps that make your phone charge faster?
Want to stop charging your phone's battery when connected to USB?
You are a developer that often connect their phone via USB and don't want the battery to suffer?
Disable USB Charging will disable usb charging (obviously..). Allowing you to connect your phone via USB without straining your battery again and again and again.
---
Please mention your Android version or custom ROM if it's not working for you. Thank you.
Click to expand...
Click to collapse
Is it only for Nexus 6? Asking since it is filed under nexus or us it for all devices
Great App, working on my Oneplus 3 with rooted Stock Rom. Glad I found it and thank you for your effort!
orangpelupa said:
Download: https://play.google.com/store/apps/details?id=org.bramantya.stopcharging&hl=en
*** ROOT REQUIRED ***
Bored with various apps that make your phone charge faster?
Want to stop charging your phone's battery when connected to USB?
You are a developer that often connect their phone via USB and don't want the battery to suffer?
Disable USB Charging will disable usb charging (obviously..). Allowing you to connect your phone via USB without straining your battery again and again and again.
---
Please mention your Android version or custom ROM if it's not working for you. Thank you.
Click to expand...
Click to collapse
Just curious and trying to learn here, why would anyone not want their phone to charge when plugged into USB, and how does doing so strain the battery?
JimSmith94 said:
Just curious and trying to learn here, why would anyone not want their phone to charge when plugged into USB, and how does doing so strain the battery?
Click to expand...
Click to collapse
The answer for that is very long. But here's the short version :
To keep the battery from staying at max capacity for a long duration.
The very detailed explanation I think available at batteryuniversity website.
Btw nowadays I used this to keep my phone from overheating though.
Especially useful when I connect it to computer like a whole day with the screen always on. Like this last few weeks when I'm developing Twitter chat for Pokémon go https://play.google.com/store/apps/details?id=org.bramantya.gochat
It use GPS all the time, screen on all the time and switching back and forth with pokémon Go. My adb catlog filled with overheats errors
So this app stops the charging so my phone not as hot.
About the compatibility. My target is to make this work for all devices but currently it doesn't
Right now still working to make it work on Samsung.
Been looking for something like this for long time.....
Can you please get it to work on photon q (carbon KK rom)?
Hey awesome app. It works on my phone. Now i don't have to worry no more when tethering via usb. However, I do wish you can implement sort of auto enable or disable when battery reach at certain level. That would be even better.
hello, is it now working with the Samsung S7 with Android 7 ?
"Disable ADB USB Charging ROOT* not working in my rooted alcatel pop c7 7040E, android 4.2.2 Jellly Bean
is there any other way/s to disable usb charging?
I can confirm it's working on my Oneplus 3T. You should make a thread in a general forum. Great work!
orangpelupa said:
Disable USB Charging will disable usb charging (obviously..). Allowing you to connect your phone via USB without straining your battery again and again and again.
Click to expand...
Click to collapse
Does it modify /system in any way?
I'm trying to keep OTAs alive.
P.S. Using Magisk systenless root.
Edit
Nevermind, it doesn't.
Does it work with
- Xiaomi Redmi Note 4 Snapdragon 625 version?
- Xiaomi Mi Max / Mi Max 2
- Samsung Galaxy S7 Nougat
Installed.
Feedback: Didn't work on Nexus 6 LinageOS 14.1.
Working on my sm-t713 on Lineage OS 14.1.
And as i said on the play store, i'll get premium version if there is a widget to disable charging in it !
OldUncle said:
Installed.
Feedback: Didn't work on Nexus 6 LinageOS 14.1.
Click to expand...
Click to collapse
Now it works!
Not working on Moto Z Play - Stock Nougat 7.1.1
Enviado de meu XT1635-02 usando Tapatalk
I've searched the last two days for a solution to prevent charging while connected to a PC. Google is full with discussions, but all are from 2011 to 2014.
But today I found this xD and it Works with my rooted Xiaomi Mi Max 2 with Global MIUI 9 7.11.6
Great app, works on N6, Pixel XL, and Pixel 2 XL. As many know, this app is a lifesaver for DJI remotes. If you have a quadcopter and use the remote via OTG (e.g., Mavic Pro), the phone will drain the remote faster. This app solves the problem.
@orangpelupa, great work! Does the app use console commands to disable/enable charging? If yes, what are they? I would like to automate/script the process if possible. I would still be glad to buy the pro version.
snovvman said:
Does the app use console commands to disable/enable charging? If yes, what are they? I would like to automate/script the process if possible. I would still be glad to buy the pro version.
Click to expand...
Click to collapse
Here is info if you have Tasker or other scripting tool. You can set it up so when DJI Go runs, it will disable charging and when it exits, charging is re-enabled.
https://stackoverflow.com/questions/30731921/how-to-disable-battery-charging-during-adb-connection
What features does the pro version add? Would love a widget.

[Android 4.1+]Proxy/GateWay for Android Auto

Background
- Couple of years ago Google have launched Android Auto, but up till recently the only way to connect your device to the car/head unit was to plug in a USB cable. As of 2018 this starts to change, BUT it looks like you will need to get new hardware for this and older cars/head units won't be upgraded to support this, neither phones with older OS.
Concept
- Since many of us will like to have this wire free but not ready / willing or have the possibility to upgrade the units/cars/phones I have thought of a way to achieve this, by using a small auxiliary device, like for example a very cheap and basic Android TV stick, which can be plugged in/mounted in the car and which can fulfil the roll of a Wifi antenna for your car.
This app should allow you to transform any android powered device into a Wifi receiver for your Android Auto compatible Car/Headunit. Please do not confuse Android Auto, with Android powered headunit (usually Chinese, like MTCB, MTCD, Joying, etc).
AAGateWay Documentation.
Beta released (04.01.2020)
What is it?
AAGateWay is a an app which should allow you to use an auxiliary (slave) device to connect your existing Android Auto compatible car to your phone (master) using a hotspot created on your phone.
How to use it?
SLAVE SETUP
1) Install the app using XDA Labs (Only on SLAVE) : https://www.b3itlabs.com/prod.php?id=3
2) Configure
FOR BOTH ROOTED AND NOT-ROOTED SLAVES
CASE 1: Master is running Pie or higher
Pair Master and Slave over BT (do this from the normal BT settings)
Open app
If slave is ROOTED and ONLY if you are using a TV STICK convert the app to system app. (if app not visible after conversion, reboot device)
Enable the start tethering option (If asked make sure you manually configure the hotspot, to have the name HUR and the password AndroidAutoConnect)
Select the masters phone BT MAC
Exit
CASE 2: Master is running Android 8 or lower
Create a Wifi hotspot from the master
Connect slave to it
Reopen AAGateWay and select the masters hotspot from the "Phone Wifi SSID" list
Slave is ROOTED - This will give a much bigger compatibility with cars, it should work with any car/unit (but depends a lot on the slave used, read below)
Slave is NOT ROOTED - This mode won't work on all cars and it has caveats.
MASTER SETUP
CASE 1: Master is running Pie or higher
Install WiFi Launcher for HUR (https://play.google.com/store/apps/details?id=com.borconi.emil.wifilauncherforhur)
Make sure WiFi Launcher is version 2.1 or higher!!!
Open WiFi Launcher
FOR Android 10, set permission location to ALWAYS!!!!!!
Select slaves BT from the BT list and exit
DO NOT ENABLE ANY OF THE OTHER OPTIONS!!!!
If you do not want to use WiFi Launcher you can use the following Tasker task to launch AA on any condition you want: https://drive.google.com/file/d/1UO-Z5P0oQpHEdrQjYqvSM48L1TI-K5g8/view?usp=sharing
CASE 2: Master is running Android 8 or lower
Open Android Auto, go to Settings, scroll down tap the version 10 times, then from the 3 dotted top right corner select start headunti server.
Exit Android Auto
Leave the Headunit Server running
When you get into the car turn on the hotspot on the master (or use Tasker, automate or anything else do that for you)
CONNECTING
Go to the car, plug in the slave to the car's USB and start the car
Slave is ROOTED
Nothing should happen, car should NOT detect the phone (SLAVE) at this stage. If the car does detect the slave being connected, it means your slave doesn't allow a proper USB toggle, in which case you should try enabling non-root mode.
Master is Pie and above
If you selected to tether from the slave, at this point you should see the slave turning on the hotspot, otherwise you might see the slave trying to connect to a Wifi network.
Slave will notify master
Master will automatically start WiFi Launcher
Master will connect to slaves hotspot
Master will start AA on the phone and notifies slave
Slave will enable USB
If you are using a phone as slave you will get a prompt if you want to use AAGW as the default app for this action, make sure you select ALWAYS ans yes. (TV stick should work automatically)
Projection should start
Slave is NOT-ROOTED (or running in non-root mode)
You will get a prompt to use AAGateWay for this action, make sure you select always.
Car should display a splah-screen saying waiting for master. (on some car's screen you might see a scrambled image)
After splash-screen is displayed, the slave will start tethering, or will try to connect to the masters hotspot depending on the setting.
Once a network connection is established between the 2 devices, you will see the AA icon turning on on the master and Android Auto should be displayed on the car's screen. It is possible that the screen will stay /turn black, if that happens, you can try to press the home button on the infotainment system, then re-open Android Auto on it.
Troubleshoot and getting help
As the thread has so much information it will be really nice if we can try to stick to one format of troubleshooting, by using one of this 2 templates:
Master is running Pie or above and slave is tethering:
Running in root mode: (Yes/No)
If running in non-root mode, is the splashscreen visible on the car: (Yes/No)
If running in non-root mode, did you set the masters BT inside AAGW app?: (Yes/No)
Did the slave actually turned on the hotspot on the slave: (Yes/No)
On the master did you select the slaves BT in the Wifi Launcher app?: (Yes/No)
When the master connected to the car's BT did the Wifi launcher app started up?: (Yes/No)
Did the master connected to the slaves hotspot?: (Yes/No)
Did the AA icon appeared on the master at all (in the notification bar)?: (Yes/No)
Master is running Oreo or below and master is tethering:
Running in root mode: (Yes/No)
If running in non-root mode, is the splashscreen visible on the car: (Yes/No)
If running in non-root mode, did you set the masters BT inside AAGW app?: (Yes/No)
Did you select the masters hotspot name in AAGW?: (Yes/No)
Have you started the Headunit server on the master?: (Yes/No)
On the master did you select the cars BT in the Wifi Launcher app?: (Yes/No)
When the master connected to the car's BT did the Wifi launcher app started up (notification bar)?: (Yes/No)
Did the master turned on the hotspot?: (Yes/No)
Did the slave connected to the masters hotspot?: (Yes/No)
Getting rid of all automation and manually starting it all (regardless of Android version on master and slave):
Uninstall AAGW on the master
Start the headunit server from within Android Auto on the master
Create a hotspot on the master
Open AAGW on the slave and make sure it's not set to tether
in AAGW make sure you select the masters hotspot
If AAGW is set to non-root mode make sure you select the masters BT (just press the button AAGW will do a BT scan of nearby devices and you can pick it from the list)
Go to the car and plug the slave in
Start the car
If slave is running in ROOT mode, slave will first try to connect to the masters Wifi and you will see a notification on the master that AA is running, only then the car should recognise a plugged in device.
If the slave is running in non-root mode, first you will see a splash screen on the car, then you will see slave connects to masters Wifi (if not already connected), then you will see AA starting on the master.
How do I collect a bug report / logcat
Open Settings > About phone.
Scroll down to the Build number.
Tap the Build number 7 times in quick succession until "You're now a developer" appears.
Return to the Settings menu and select Developer options.
At the top of the screen, make sure 'Developer options' is set to On (green).
Scroll down to Debugging and enable both USB debugging and Bug Report Shortcut on (green).
Tab on Logger buffer sizes: Default setting is 256K. Select 16M to help capture more information for debugging. Of note, it can affect the apps performance especially with lower spec phone, so change it back after you have finished submitting bug reports.
On slave make sure you enable debugging inside AAGW, on master open Android Auto go to developer settings and make sure force logging is enabled.
Reproduce the problem
Hold the Power button down until the menu appears.
Select Take bug report. and wait for the device to capture the bug report.
Tap the 'Bug report captured' notification when it appears.
Send the bug report by email to [email protected]
Know problems, workaround:
- Latency & lag. This will be really down to the devices you are using. I have tested it with a MK808B Plus, it work’s ok most of the time but occasionally you will get the odd lag. I’ve also tested it with a Nexus 7 tablet, and there was no lag at all, so device does matter, as well as probably ROM.
- I get random disconnection. There can be 2 causes for this, one the USB connection fails between the car and the auxiliary device, or the Wifi fails between the phone and the auxiliary device. In my tests I saw a few Wifi disconnections without any reason on the MK808, but non on the Nexus. Changing the tethering option from WPA2 to Open did help with this.
- App is closed without error or reason. The app runs in a background process, with a minimal interaction with the foreground, some devices/OS will kill background apps. I saw this happening on Nokia and I saw this happening on OnePlus as well. Try disabling battery optimisation for AAGateWay, that might help.
- I just cannot get it to work… Try using a phone, that will at least give you some visual guidance. Make sure that your device connects to the phone Wifi hotspot, make sure that AA Headunit server is running on the phone (try to force stop Goolge Play Services, stop and restart the headunit server)… All fails contact me
- Nothing happens on the master, using Wifi Launcher for HUR app. In this case, try to manually start the headunit server on the master, and manually turn on a hotspot, then reconfigure you're slave to connect to the masters hotspot (even if the master is running Pie or higher).
Device compatibility:
Master:
Any phone which normally works with Android Auto
Slave with ROOT:
- Tested and know to work: - MK809V, Nexus 7 (depending on rom), Sony X Compact (depending on rom)
-Tested and not working as expected: Pixel 2, MK808B
- While root is necessary, not all phones can toggle USB port on and off by software. And there can be other problems, for example on some devices when you turn off the USB the phone loses the ability to detect the power connection as well, which is use as trigger to start the whole process. It is almost impossible to predict if a phone will be a good slave candidate or not.
Other things
- Xiaomi phones (MIUI makes a mess), try not to use it for Slave
- Generally older phones (pre oreo) are more likely to work fine as a slave device.
Any suggested slave?
- Yes, use an MK809V TV stick, as the experience with it, is pretty slick and it should work out of the box. If you get a MK809IV try to get the one with Android 5.1.1 as the one with Android 7.1 has problems with the tethering.
FAQ.
Q: Can I use this with any car and phone combination?
A: Assuming your car is already Android Auto compatible, then YES.
Q: Can I also automate the start of the Headunit server?
A: Only with a rooted phone, using the following shell command: am startservice -W com.google.android.projection.gearhead/com.google.android.projection.gearhead.companion.DeveloperHeadUnitNetworkService
Q: Can I use Wifi-Direct to connect instead of WIfi?
A: No.
Q: Does the traffic come out from my monthly data allowance?
A: NO, traffic between auxiliary device and phone hotspot does NOT count as internet traffic, HOWEVER if you do have other apps on the auxiliary device which download updates, etc in the background that WILL be counted as internet traffic. So I suggest double check the apps on the aux device and disable all those which aren’t needed.
Q: Will the car/head unit provide enough power?
A: It should provide at least 500mA that’s the standard USB current, while I cannot guarantee that will be enough in all cases, it should do, assuming you do turn off all unneeded services on the TV stick.
Q. What about start up time?
A. It will depend a lot on the device you are using. A low-entry TV stick boot time is about 1 minute, which can be a bit too much for an initial car setup. As mentioned earlier, these devices usually have 2 USB ports, you can for example connect the power USB port to a continues power supply in the car, in which case the boot time will be non-existent since the device is always running. If you are using a phone, the phone battery will probably hold the charge just fine for a couple of days, if you disable all apps on it and you set up a profile to go into aeroplane mode when it’s not charging. Tasker or Automate are your friends for that. If you cannot connect the TV stick to a continues power source, you might consider using a small portable power pack which powers the tv stick (should hold power for a few days) and the power pack can be charged while the car is running.
Q. Can I decrease boot time for TV Sticks/Phones by removing all unrelated software.
A. Yes, actually quite a lot. Once you have your configuration ready and everything is working as expected, you can uninstall/disable all packages beside this ones:
package:android
package:com.android.apkinstaller
package:com.android.providers.settings
package:com.android.packageinstaller
package:com.notriddle.null_launcer (or any other launcher, but NULL launcher has no memory consumption, no app drawer no nothing, perfect for headless - see: https://github.com/notriddle/null-launcher )
package:com.android.inputmethod.latin
package:com.android.settings
package:uk.co.borconi.emil.aagateway
package:com.android.shell
package:com.android.systemui
Easy way to list / disable all apps will be using a computer and following commands
Code:
adb shell pm list packages
This will list all installed packages
Code:
adb shell pm disable xxxx
where you replace xxxx with the package name (Ex: com.android.shell )
Q. Will using Wifi 5Ghz give me better performance?
A. Well if both of your devices support it, SURE!
Q. Is the source code available?
A. Sort-of, please see: https://github.com/borconi/AAGateWay this is only for the sketch, however new version does contain code which lift restrictions on 3rd party apps in Android Auto. To prevent the abuse of this by some, further code won't be updated to GitHub, however if you want to build your own version, please do contact me for details.
Guarantee or Warranty
- Due to the fact that there are so many possibilities and combinations of cars, head units, slave and master devices, there is no way for me to test all of them, however if you did purchase the software and you are not able to get it to work for any reason, please email me on [email protected] and I'm more then happy to refund the purchase.
Teaser:
VERY interested in the progress on this, Emil. For one, this would allow me to charge my Samsung using the Quick Charge adapter in my cigarette lighter, rather than relying on the anemic power output of my truck's USB port. Or if I want to get fancy, I could install a wireless charger and use that.
Thanks for all of your hard work.
Sent from my SM-G935V using Tapatalk
Hi Emil,
What about original headunits that have integrated Wifi, but do not have Wireless Android Auto enabled? Is this something that you could enable to work as well?
Another great idea.
Definitely interested..
thanks.
Sent from my iPad using Tapatalk
I thought of you instantly when I saw this thread on Reddit, but didn't imagine that you were the creator.
Congratulations and thanks again!
Jackos said:
Hi Emil,
What about original headunits that have integrated Wifi, but do not have Wireless Android Auto enabled? Is this something that you could enable to work as well?
Click to expand...
Click to collapse
Sadly no, that will require altering the firmware on the car and each unit is different. It is possible that those unit might get an official update for Wifi support, but although I'm not 100% certain, I think it will only work with 5Ghz Wifi network, so if you're unit is 2.4Ghz only probably it won't get the update.
If I will ever have times (something which I never have ) I might look into adding this to some units out there, but that is so far down the line, that realistically speaking probably will never happen.
Very interesting idea. I have a couple of these android sticks here and maybe even a modern mediabox that might offfer a bit more performance. I guess you want to power it from the USB socket from the car. Not sure how much current you can draw from these ports.
What is the pc below the radio doing?
This is awesome news! looking forward to progress!
lukesan said:
Very interesting idea. I have a couple of these android sticks here and maybe even a modern mediabox that might offfer a bit more performance. I guess you want to power it from the USB socket from the car. Not sure how much current you can draw from these ports.
What is the pc below the radio doing?
Click to expand...
Click to collapse
Performance is not really needed the slowest device should work just fine. You can theoretically disable all processes and apps, so even a device with 512Mb ram will do.
Indeed I'm taking power directly from the headunit/car in the demo I use an MK808B powered directly from the Sony XAV-100 which only provides like 500mA, so should do (especially if you kill all apps which can use CPU and turn of everything but Wifi on the stick).
The PC is the power source , to lazy to make a separate power switch so I powered the Sony from my PSU directly
Emil Borconi said:
Performance is not really needed the slowest device should work just fine. You can theoretically disable all processes and apps, so even a device with 512Mb ram will do.
Indeed I'm taking power directly from the headunit/car in the demo I use an MK808B powered directly from the Sony XAV-100 which only provides like 500mA, so should do (especially if you kill all apps which can use CPU and turn of everything but Wifi on the stick).
The PC is the power source , to lazy to make a separate power switch so I powered the Sony from my PSU directly
Click to expand...
Click to collapse
Ok, got the Mk802, 808 etc etc so I might finally have a good destination for those. Lazy and working is a combo that also works. :good:
Wondering if there is like a beta test thing, or is it complex to get it up and running? I'm pretty sure a lot of people are seriously interested in this. It would offer the freedom of charging your phone the proper way.
lukesan said:
Ok, got the Mk802, 808 etc etc so I might finally have a good destination for those. Lazy and working is a combo that also works. :good:
Wondering if there is like a beta test thing, or is it complex to get it up and running? I'm pretty sure a lot of people are seriously interested in this. It would offer the freedom of charging your phone the proper way.
Click to expand...
Click to collapse
Not that far away, the only problem this will be braking my fix for obd2aa, so I need to make the 2 things compatible. I also need to do find a way to set the defaults without plugging into the car, you won't really be able to plug in a HDMI screen when you plug it in the car.
I've started fully rewriting my HUR app moving all the code from C to Java, once that is done and I fix other issues with obd2aa I will be pushing this forward
Ideally I will like to have a release available before I go on holiday on the 17th of July but not sure I will manage to do it all by that time.
Emil Borconi said:
Not that far away, the only problem this will be braking my fix for obd2aa, so I need to make the 2 things compatible. I also need to do find a way to set the defaults without plugging into the car, you won't really be able to plug in a HDMI screen when you plug it in the car.
I've started fully rewriting my HUR app moving all the code from C to Java, once that is done and I fix other issues with obd2aa I will be pushing this forward
Ideally I will like to have a release available before I go on holiday on the 17th of July but not sure I will manage to do it all by that time.
Click to expand...
Click to collapse
Yup, sounds like a bit of an issue that you can't really test since we'll have no screen. Well maybe a sort of a config txt file. Most of us will have to clear the thing on a tv screen or monitor anyway because a lot of crap is installed on these devices. I guess it makes sense to have something that can show if the stick is getting data from the phone. There is always a way.
Emil Borconi said:
Not that far away, the only problem this will be braking my fix for obd2aa, so I need to make the 2 things compatible...
Click to expand...
Click to collapse
No offense to obd2aa, I use it daily, but I'd be interested in this even without it
Where is the APK to give it a try ?
Emil Borconi said:
Currently only a placeholder for those interested in the project while working on development.
Background
- Couple of years ago Google have launched Android Auto, but up till recently the only way to connect your device to the car/head unit was to plug in a USB cable. As of 2018 this starts to change, BUT it looks like you will need to get new hardware for this and older cars/head units won't be upgraded to support this, neither phones with older OS.
Concept
- Since many of us will like to have this wire free but not ready / willing or have the possibility to upgrade the units/cars/phones I have thought of a way to achieve this, by using a small auxiliary device, like for example a very cheap and basic Android TV stick, which can be plugged in/mounted in the car and which can fulfil the roll of a Wifi antenna for your car.
This app should allow you to transform any android powered device into a Wifi receiver for your Android Auto compatible Car/Headunit. Please do not confuse Android Auto, with Android powered headunit (usually Chinese, like MTCB, MTCD, Joying, etc).
If you are interested in this project please simply subscribe to this thread and follow the updates.
Teaser:
Click to expand...
Click to collapse
I'm interested, I have a Tahoe with AA and an Android stick. Your project sounds great, can't wait!!
You should have it by the 17th of July, I'm just in the middle of rewriting another app, once I completed that I will focus on this one. I'm going away on a holiday on the 17th of July so I'm really pushing to have it out there by then.
Having the same XAV-AX100, and I was pissed off when I heard that in order to use wireless android auto it needs to be replaced.
Great idea, can`t wait to test it.
Do you think it can works also with windows stick.? Or only android?
Sent from my iPad using Tapatalk
jeromeo01 said:
Do you think it can works also with windows stick.? Or only android?
Sent from my iPad using Tapatalk
Click to expand...
Click to collapse
Never heard of a windows stick... Any link/reference? In theory it can work with almost anything but since Android Auto need Open Accessory, Android device will be the preferred option, having all the classes already available.
Emil Borconi said:
Never heard of a windows stick... Any link/reference? In theory it can work with almost anything but since Android Auto need Open Accessory, Android device will be the preferred option, having all the classes already available.
Click to expand...
Click to collapse
Its exactly the same.
Mini PC stick, but using windows 10 as OS.
Just a little bit more expensive. But I already have one to try. [emoji6]
https://www.windowscentral.com/best-stick-pcs
Sent from my SM-G965F using Tapatalk

Automating USB Storage Popup.

Hi Guys,
I need help for creating a profile/task in tasker that will automatically unlock my device and then auto click on "ALLOW" popup that appears after connecting my phone to pc using usb cable.
I've tried some patterns but no success, so any help would be great..
Thanks
I use Autoinput to make this happen ... It swipes up and then types my lockscreen code and clicks the allow button also... To make it more secure I have set to only allow this to run when my phone is connected to my android watch so it knows I'm near and also connected to my home WiFi as I only really use this at home !
Sent from my ONEPLUS A6013 using Tapatalk
netcracker said:
...
I've tried some patterns but no success, so any help would be great..
Thanks
Click to expand...
Click to collapse
Post the profile that isn't working for help troubleshooting it.
Cueball666uk said:
I use Autoinput to make this happen ... It swipes up and then types my lockscreen code and clicks the allow button also... To make it more secure I have set to only allow this to run when my phone is connected to my android watch so it knows I'm near and also connected to my home WiFi as I only really use this at home !
Sent from my ONEPLUS A6013 using Tapatalk
Click to expand...
Click to collapse
Thanks but in my case i want it to run only when a USB cable is connected not a smart watch or Wi-Fi[emoji847]
Sent from my SM-G925T using Tapatalk
You can do that too!
Sent from my ONEPLUS A6013 using Tapatalk

Screen mirroring thru usb cable

Hello everyone! Does anyone know how to do this?
I've tried connecting it wirelessly thru Cast but this takes up too much demand on my internet connection , I'm wondering if I can do it just thru my USB Cable to PC.
Thanks in Advanced!
Yep it's possible by using scrcpy
Since its only USB2.0(480MBit and no USB C DisplayPort) , you will have nearly double the bandwith on full signal WiFi connection(5GHz AC 866MBit)
So I don't think that USB would be better. It would be better to improve your WiFi if possible.
+1 for scrcpy. I've used it on my Xiaomi Mipad 4 and it works fine, but via USB and via Wifi. To make it work on wifi, you just need to run adb in tcp/ip mode. Google it.
Considering that the K20 Pro has a much better hardware than the Mipad 4, then using scrcpy will definitely work just fine.

Categories

Resources