You can help with Code or with Energy everthing are welcome ;)
BTC:bc1qufk82juerzuw3d6r5ehkjmufha2xjefp48due9 ADA:addr1qxyp4l0lxa3gmme65rj5p76uw2quxenwnzrmee06y4432sqxfnfm0ypc9zy9f07rfpjjk3wgw5vh7a0mtqwk8ulwfzcslmzr9z
This simple ADB-Wrapper try makes easy connect to android devices over wifi, without console use, and do other things.
Chinese Guide 简体中文指南
⚠️ ONLY TESTED IN WINDOWS (For while, you need have ADB Interface installed in your system)
- ADB:📱 Reset connected devices port to :5555 (Open current device port with (equivalent
adb tcpip 5555
)) - ADB:📱 Connect to device IP (Need type the IP from device (equivalent
adb connect ${your ip}:5555
)) - ADB:📱 Disconnect from any devices (Disconnect ever device attached (equivalent
adb disconnect
)) - ADB:📱 Connect to device from List (Show an list from devices attached to connect (equivalent
adb devices
)) - ADB:📱 Pick .APK file and install (Install on current active device (Will prompt user on Android Screen))
- ADB:📱 Setup custom ADB location (Configure location of ADB)
- ADB:📱 Remove custom ADB location (Clear custom ADB location)
- ADB:🔥 Enable Firebase events debug mode (Run firebase events in debug mode)
- ADB:🔥 Disable Firebase events debug mode (Run firebase events in debug mode)
- ADB:
⚠️ Kill ADB server (Kill ADB Server runing (equivalentadb kill-server
))
By default the extension is looking for ADB in the following locations:
- Linux -
$HOME/Android/Sdk
- MacOS -
$HOME/Library/Android/sdk/platform-tools
- Windows -
%USERPROFILE%\AppData\Local\Android\Sdk\platform-tools
(if the%USERPROFILE%
environment variable is not defined the path to the profile directory of the current user will be used as the starting point)
The extension will resolve the ADB location each time an ADB command is executed.
The ADB location can be customized using the Setup custom ADB location
command. The custom ADB location can be cleared using the Remove custom ADB location
command.
Below you can see some GIFs demostrating use cases.
- First connect your device trough USB
- Run
ADB:📱 Disconnect from any devices
- And run
ADB:📱 Reset connected devices port to :5555
- And Then
ADB:📱 Connect to device IP
enter your device (settings > status > ip address) IP address and be fine
- Pick apk file with command
ADB:📱 Pick .APK file and install
- Allow ADB install on device screen
- Wait until copy de file and icon appear
- Now you can run the APP
All done with Jest you can read more about here.
We need help to incrase test coverage report, if you can learn, send a pull request !
How to run tests:
➥ npm run test
> adb-interface-vscode@0.20.5 test F:\vinic\Documents\GitHub\adb-wifi-code
> npx jest --coverage
PASS src/domain/adb-wrapper/test/list-adb-suite.test.ts (5.26s)
PASS src/domain/adb-wrapper/test/install-apk-file.test.ts (5.28s)
PASS src/domain/firebase-channel/firebase-manager.test.ts (5.33s)
PASS src/domain/adb-resolver/adb-resolver.test.ts
PASS src/domain/adb-wrapper/test/connect-device-suite.test.ts
PASS src/domain/adb-wrapper/test/kill-adb-suite.test.ts
PASS src/domain/adb-wrapper/test/helpers.test.ts
------------------------------------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
------------------------------------------|----------|----------|----------|----------|-------------------|
All files | 72.22 | 55.81 | 73.81 | 71.96 | |
------------------------------------------|----------|----------|----------|----------|-------------------|
=============================== Coverage summary ===============================
Statements : 72.22% ( 156/216 )
Branches : 55.81% ( 48/86 )
Functions : 73.81% ( 31/42 )
Lines : 71.96% ( 154/214 )
================================================================================
Test Suites: 7 passed, 7 total
Tests: 16 passed, 16 total
Snapshots: 0 total
Time: 17.148s
Ran all test suites.
You can also use the project alias that watch file changes while developing:
➥ npm run test:watch
# output...