Skip to content

Instantly share code, notes, and snippets.

@IulianaMitac
Last active May 9, 2023 12:13
Show Gist options
  • Select an option

  • Save IulianaMitac/334814ea633cc60613a4e5438cc7deb1 to your computer and use it in GitHub Desktop.

Select an option

Save IulianaMitac/334814ea633cc60613a4e5438cc7deb1 to your computer and use it in GitHub Desktop.
Pairing android wear emulator with android handheld emulator
Android Studio 2.1
javac 1.8.0_92
Android SDK Platform-Tools 23.1
Android SDK Tools 25.1.3
Handheld AVD
Nexus 5 API 23
System image Android 6.0 with Google API CPU/ABI x86_64
Wear AVD
Android Wear Square API 23
System image Android 6.0 with Android Wear ABI x86
Run emulators and check bouth are active
On terminal:
>adb devices
List of devices attached
emulator-5556 device
emulator-5554 device
Download the Android Wear Companion app.
Apk can be downloaded at http://www.file-upload.net/download-9437648/com.google.android.wearable.app-2.apk.html
Install the app on the phone emulator via command:
>adb -s emulator-5554 install C:\Users\Iuli\Downloads\APKs\com.google.android.wearable.app-2.apk
Forward the handheld AVD's communication port to the wear AVD (must be every time the handheld is connected):
>adb -s emulator-5554 -d forward tcp:5601 tcp:5601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment