Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.88 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.88 KB

LTE Dongle Manager

This app has some features to handle LTE dongles in Android Car Head Units.

Features

USB Reset (UsbResetManager.kt)

Executes setprop sys.usb.config none as root.

USB_ModeSwitch (UsbModeSwitchManager.kt)

Executes the command usb_modeswitch with some hard-coded parameters. For now, you have to change them manually in the file UsbModeSwitchManager.kt and generate the APK.

Huawei switchDebugMode (HuaweiSwitchDebugModeManager.kt)

Access the address http://192.168.8.1/html/switchDebugMode.html in a WebView so that it can execute the JavaScript code provided by the LTE dongle.

Starts a Wi-Fi scan so that the application can see if prioritized APs are available. If so, the application shuts down the ethernet interface in order to establish the Wi-Fi connection. The parameters (interface name and selected APs) can be changed at Settings.

Ethernet / Wi-Fi Switch (EthernetWifiManager.kt)

If there is a prioritized Access Point available, the app shuts down the ethernet interface in order to establish the Wi-Fi connection. If a Wi-Fi connection is no more available, the app turns the ethernet interface on again.

Some events trigger the Ethernet / Wi-Fi switch procedure:

  • Application starting (at the boot)
  • Screen turns on (after standby)
  • Wi-Fi interface enabled
  • Wi-Fi disconnection
  • Button "Wi-Fi Scan" at the main screen
  • ACTION_TIME_TICK -> every 5 minutes