[Android Q&A, Help & Troubleshooting] ptstr:
Hello,

I have iPhone 12 Pro Max with iOS 14.4.1. I got NewTerm3 installed.

I'm looking to pair/connect to Android 11+ device with ADB (pairing is a new feature for Android 11+ for wireless debugging). I got the android hostname, port and pairing code.

From Windows 11, I use adb.exe from command line (which is part of the Android SDK Platform Tools to download from [https://developer.android.com/tools...er.android.com/tools/releases/platform-tools)) to do that.

In that link, there are 3 options to download:

* Download SDK Platform-Tools for Windows

* Download SDK Platform-Tools for Mac

* Download SDK Platform-Tools for Linux

I download the first option for Windows, that gives me a folder (it's only 6MB) with the adb.exe inside it.

Usage example pair, connect and send commands:

C:\adb>adb pair 192.168.X.X:YYYYY

Enter pairing code: 993914

Successfully paired to 192.168.X.X:YYYYY [guid=adb-XXXXXXX-YYYYY]

C:\adb>adb connect 192.168.X.X:YYYYY

connected to 192.168.X.X:YYYY

C:\adb>adb shell echo hello world

hello world

If I download the second option for Mac, will I be able to run it on NewTerm3 on my iOS or does it require a special conversion to make it compatible?

How can I do the same thing from within an iPhone? Can I just download the adb.exe from the above link and run it in NewTerm3 or it won't run as it's compiled for a different architecture? I see u/saurik provided a link to it here 8 years ago on this post: [

https://www.reddit.com/r/jailbreak/comments/3enybs

This is the link: [http://test.saurik.com/reddit/adb-1.0.31-1](http://test.saurik.com/reddit/adb-1.0.31-1) (but it appears to be broken now)

That was adb-1.0.31-1 which my understanding is it's a 32bit version. Someone replied a year ago asking "Any chance for an updated version of this for arm64e?"

I wonder how Fire TV app allows me to send keyboard input from my phone to my Fire TV Stick, doesn't it also uses ADB since it's running on Android as well? Is the component that the app uses is available somewhere to download from Cydia or Github as an ipa?

Someone suggested to try running adb on iSH app? because Alpine linux supports android-tools package. So I downloaded the iSH Shell app from the App store.

I see someone posted about here:[https://github.com/ish-app/ish/issues/498](https://github.com/ish-app/ish/issues/498)

He used this command and repo:

apk add android-tools --repository=[http://dl-cdn.alpinelinux.org/alpin...//dl-cdn.alpinelinux.org/alpine/edge/testing)

I tried to run this command too, looks like it got installed. When I do adb version it says it's 1.0.41.

But when I try to connect to an ip that's on the local network that's already been paired with, it fails to connect:

Welcome to Alpine!

You can install packages with: apk add <package>

You may change this message by editing /etc/motd.

iPhone:~# adb connect 192.168.X.X:YYYYY*

daemon not running; starting now at tcp:5037*

daemon started successfully

failed to connect to 192.168.X.X:YYYYY

iPhone:~#

I tried to connect with another app that uses adb, and it has no problem to connect with the same ip:port. So it's only an issue when either running it from iSH Shell app and/or the specific package that I installed for adb. I tried to restart the Android phone but to no avail.

Are you able to connect with it? Any other suggestions/apps that support running adb?

Thank you.