Comments (10)
does this adb pair not doing that?
no, you need to run adb connect IP:PORT
afterwards otherwise it does not appear under `ยดadb devices`` but the qr code is currently not working for me. The spinner on my device just spins indefinitely
from adb-wifi.
Hi, great job. And then how to connect to device without using ip:port? Connect via _adb-tls-connect hostname
from adb-wifi.
@SuperSandro2000 does this adb pair not doing that?
from adb-wifi.
Can you share more context ?
from adb-wifi.
Can I express my thoughts?
The function called connect (which calls exec adb pair) should be renamed to pair. And a new function called connect should be added (which calls exec adb connect).
And then in function startDiscover:
pair(item)
connect(item)
from adb-wifi.
But you have to use the connection port to connect, not the pairing port.
from adb-wifi.
Maybe we can do this:
const portscanner = require('portscanner')
const {exec} = require("child_process");
portscanner.findAPortInUse(36000, 49999, '192.7.1.1', (error, port) => {
console.log('AVAILABLE PORT AT: ' + port)
exec(`adb connect 192.7.1.1:${port}`, (error, stdout, stderr) => {
if(!error) {
console.log("connected")
} else {
console.log("oopsie")
}
});
})
But it can be slow. Or entering first 2 digits of the port?
from adb-wifi.
why not use the port from the android device?
it is displayed right next to the qr code button.
function main() {
console.log(
"[Developer options]->[Wireless debugging]->[Pair device with QR code]"
);
if (process.argv.length < 3) {
console.log("Usage: adb-wifi <port>");
return;
}
showQR();
startDiscover();
}
from adb-wifi.
ess debugging]->[Pai
did you solved it same for me... spinner is not stopping
from adb-wifi.
@bibek-magar https://github.com/fiurthorn/adb-wifi
from adb-wifi.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adb-wifi.