This is no longer needed due to native support in Android / Android Studio. See: https://developer.android.com/tools/adb#connect-to-a-device-over-wi-fi
A PowerShell Script that enables wireles coding with Android
This script works after the concept of: https://developer.android.com/studio/command-line/adb
- Your computers security guidelines have to be set to RemoteSigned (Set-ExecutionPolicy RemoteSigned) -> Enter an 'a' to change it for everything
- Android Studio (or a similar program) with Android Platform tools installed (adb has to be in 'C:\users[user]\appdata\local\Android\Sdk\platform-tools\adb.exe' or you have to change the line 'cd (Path)' in the script to the path of the file 'adb.exe'.)
- Your smartphone must have been connected to the computer at least once before.
- Your smartphone has to permanently trust the computer
- If possible, also allow Debugging when the 'only-charging'-Mode of your phone is active
- Download Adroid Studio: https://developer.android.com/studio
- Download adb(Platform-Tools): https://developer.android.com/studio/releases/platform-tools
- !Can also be installed in Android Studio!
- Connect smartphone via USB to your computer
- Launch script
- Wait until your computer starts to ping your smartphone
- Disconnect smartphone
- Now you can code wireless!
- The error-message 'daemon not running' is normal
- Device is offline -> Check wether your phone is connected to the same network as your computer!
- No Devices found -> Check wether your smartphone trusts your computer, then restart the script.
Dieses Script funktioniert nach dem Konzept von: https://developer.android.com/studio/command-line/adb
- PC´s Scurity Richtlinien auf RemoteSigned stehen (Set-ExecutionPolicy RemoteSigned) -> a eigeben um es für alle zu ändern
- Androidstudio(oder anderes Programm) mit Android Platform tools (adb muss in
C:\users\[benutzer]\appdata\local\Android\Sdk\platform-tools\adb.exe
liegen oder die Zeilecd (Path)
im Skript ändern zu dem Ordner wo die adb.exe liegt) - Handy muss schonmal verbunden worden sein
- Handy muss den Schlüssel von dem PC schon immer vertrauen
- Am besten ist Debugging auch im nur Laden Modus aktiv
- Download Adroid Studio: https://developer.android.com/studio
- Download adb(Platform-Tools): https://developer.android.com/studio/releases/platform-tools
- !Kann auch in Adroid Studio installiert werden!
- Handy mit USB anschließen
- Script starten
- Warten bis es anfängt das Handy anzupingen
- Handy abziehen
- Wireless Coden
- Die Fehler, dass die adb nicht gestartet, ist ist normal!
- Device is offline -> Überprüfen ob Handy mit gleichen Netzwerk verbunden ist
- No Devices found -> Überprüfen ob Handy schon Schlüssel von PC trusted, dann script neu starten