Code Monkey home page Code Monkey logo

aagatewaywifi's Introduction

AAGateWay Wireless Android Auto using Master Wifi Hotspot (Root required on slave)

I have reworked the AAGateway to wait for USB adapter AND connection to WiFi.
This only works running on the slave and connecting to master wifi hotspot

Shout out to the (couldn't of done this without them):

XDA forum link for discussion, requests and support

You can build it or get it from the Releases section and you have to install it on the slave phone.

Set up:

MASTER (doesn't need to be rooted)

  • You MUST have Android Auto Head Unit Server running on your Master device (you cna just leave it running)
  • You also must have WifI tether on Master device, which the slave can connect to
    NB I use Tasker to automate both of these things i.e. turn on wifi tether when connected to car bluetooth and some screen touches for AA HUS

SLAVE

  • Remove battery restrictions on AAgateway app on slave - Click the request battery button
  • Allow storage access - Click the request storage button This is for writing a log file to sdcard when logging set to full + log
  • Root is required - click request root button. This is to enable toggling USB to connect to car head unit when service ready
  • Ensure slave can connect to master wifi tether, i.e. save the network. But NO other wifi (you don't want it to connect to the wrong network)
  • Worth making sure that the screen wakes on power input, as some phones don't connect to wifi with screen off. This app does wake lock for up to 5 mins but doesnt work if screen off

Settings

  • Logging Level: Prob worth changing it to full + log while setting up (shows stuff in ui and writes to sdcard/aagatewaylog.txt)
    Full just shows it all in ui (ui only updates when app is open), and info just shows the key elements on screen.
  • The setting control wifi means the app will turn on wifi when the slave is powered and turn it off after its has no power.
    The app only waits for wifi connection, not specifically your master, hence make sure only one wifi set up
  • Alternative usb toggle is if the standard one doesn't work (see later)

First time you try connecting you will need to allowed root access (TODO add prompt at startup) done
First time it will prompt do you want to use aawireless for android automotive, click 'always'

Once done, plug slave into car, turn car on, enable wifi (if set wifi control to true, does it for you)
Slave should show it has usb device and once connects to master wifi, then wifi will show connected, then usb will toggle and service will start

AA should fire up, if not it will retry. Let it retry a few times
If it doesn't work, unplug slave and restart your HUS on master (i.e. stop it and start it again). Then try again

If after a few attempts of this you never get a flash of Android Auto then possibly there is issue between head unit, slave and master.
I've put in an alternate usb toggle option. So change that setting to true and try it all again.
If still fails after that then no idea, sorry. If you can debug it yourself great, raise a pr

NB I an NOT a developer, just a hobbyist who likes to play and would like AA wireless in his car :-)
I only have a couple of combinations to try and test this on. Happy to look at issues but be patient I may never get to em, my focus is it working for me, just sharing to try and help others.
Please don't start complaining if its not working or I am not responsive to questions or issues

Known issues

If slave stops, master doesn't seem to realise (AA still thinks its connected). This bawks the HUS. So you need to restart the HUS before next use
TODO find a more graceful way of killing connection
DONE

Many other issues... this wont be plane sailing, so dont expect it to be!!

aagatewaywifi's People

Contributors

north3221 avatar olivluca avatar borconi avatar mikeeq avatar

Stargazers

 avatar  avatar virus al7rbi avatar  avatar Aditya Kasibhatla avatar  avatar Pawel Choinski avatar STR Motors avatar Lee Chantrey avatar Miguel Fuertes avatar

Watchers

 avatar  avatar

aagatewaywifi's Issues

Errors in the APP (constructive criticism)

@north3221
#bug
Hello I found your App version and I love it, it works fine on my TP-LINK Neffos C5 Max TP702A slave (root).
Problems that happen frequently:
->Sometimes it says "AAGateWay Stop Working", and makes me pick up my cell phone, and the idea would be to leave it tidy in the glove box.
->Many times when shutting down through Automate after Power Loss, when starting it asks to reselect the preset between AAGateway and Android Auto.
->If the USB cable stays connected all the time, and even if it turns off and on again, it doesn't connect to the master cell phone, it always forces me to go to the slave cell phone to disconnect the cable.
I'm commenting with you to help improve, I can be your tester, I can help if you want.
Thanks

DPI change

Is it possible to get the DPI change of the original AAgateway integrated into this fork?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.