Skip to content

About

Standalone NEMESIS app for Bluetooth PAN (hotspot) on compatible Hyundai/Kia head units

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bluetooth PAN for NEMESIS

A small Android 4.4 application and NEMESIS 1.16 package that connects a compatible Hyundai/Kia head unit to a paired phone's internet connection using Bluetooth PAN.

The package uses the Bluetooth PANU implementation already present in the stock firmware. It does not replace Bluetooth.apk, patch the Bluetooth stack, or require HMG-API.

Tested system

  • Head unit platform: NEEV23
  • Region: USA
  • Firmware: 260507
  • Android: 4.4.2
  • NEMESIS: 1.16.2

The tested firmware is a full NEMESIS compatibility match. Other head-unit models are shown as partial compatibility because the implementation uses the standard Gen5W Bluetooth PAN APIs, but they have not yet been tested.

Features

  • Launchable from NEMESIS Manager's My Packages screen
  • Paired-phone selection
  • Manual connect and disconnect
  • Continuous reconciliation of actual PAN/network state, including external connections and unexpected drops
  • Bluetooth, DHCP, and assigned-address status
  • Optional reconnect when the controller starts, disabled by default
  • Automatic enablement and initialization of the stock PAN profile
  • Persistent connection diagnostics through NEMESIS's built-in log collector

Install

USB drive (recommended)

Download bluetooth.pan-<version>-usb.zip and extract it to the root of a USB drive. The result should look like this:

NEMESIS.data
README.txt
packages/
└── bluetooth.pan-<version>.zip

Insert the drive after Android has started and accept the NEMESIS installation prompt.

Package Store or ADB

The bare bluetooth.pan-<version>.zip is the canonical package archive used for Package Store submission and direct installation:

adb push bluetooth.pan-3.0.0.zip /data/local/tmp/bluetooth.pan.zip
adb shell '/system/xbin/nemesis install /data/local/tmp/bluetooth.pan.zip'
adb shell '/system/xbin/nemesis pkg-launch bluetooth.pan'

The phone must already be paired with the vehicle. Enable its Bluetooth tethering or Bluetooth hotspot service before pressing Connect. On some phones, this is separate from the Wi-Fi hotspot setting.

Migrating from versions 2.0.1 and earlier

Version 3.0.0 uses the new NEMESIS ID bluetooth.pan and Android package org.egmp.bluetoothpan. Uninstall the legacy package before installing 3.0.0:

adb shell '/system/xbin/nemesis uninstall iphone.bluetooth.pan'

NEMESIS will refuse to install both identities together, preventing two supervisors from attempting to control the same stock PAN service.

Diagnostics

adb shell '/system/xbin/nemesis service status bluetooth.pan/pan-supervisor'
adb shell '/system/xbin/nemesis log service bluetooth.pan/pan-supervisor'

The supervisor log includes the app's connection requests, PAN profile state, Bluetooth connection transitions, network state, and Android runtime failures. It is also included when Logs → Copy to USB is used in NEMESIS Manager. A successful connection creates bt-pan with an address assigned by the phone.

Build

Requirements:

  • JDK 17
  • Android SDK platform and build-tools (aapt2, d8, apksigner)
  • zip and Python 3

Set ANDROID_HOME, then run:

./build.sh

The build produces exactly two release artifacts in dist/:

  • bluetooth.pan-<version>-usb.zip — recommended USB distribution
  • bluetooth.pan-<version>.zip — Package Store and direct-install archive

You may provide an external signing key:

APP_KEY=/secure/path/bluetooth-pan.p12 APP_KEY_PASS='…' ./build.sh

Without APP_KEY, the build creates a temporary development key. NEMESIS package updates uninstall the previous APK before installing its replacement, so APK signer continuity is not required. This also means an update resets the app's saved phone selection and reconnect preference. Keys and build output are ignored by Git and must never be committed.

Safety and limitations

This is experimental software for an in-vehicle infotainment system. Do not interact with it while driving. Automatic reconnect is opt-in. The current package has only been tested on the system listed above.

License

GPL-3.0-or-later.

About

Standalone NEMESIS app for Bluetooth PAN (hotspot) on compatible Hyundai/Kia head units

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages