Git Product home page Git Product logo

Comments (10)

SuperSandro2000 avatar SuperSandro2000 commented on June 19, 2024 1

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.

frech87 avatar frech87 commented on June 19, 2024

Hi, great job. And then how to connect to device without using ip:port? Connect via _adb-tls-connect hostname

from adb-wifi.

saleehk avatar saleehk commented on June 19, 2024

@SuperSandro2000 does this adb pair not doing that?

from adb-wifi.

saleehk avatar saleehk commented on June 19, 2024

Can you share more context ?

from adb-wifi.

vnt-83 avatar vnt-83 commented on June 19, 2024

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.

fiurthorn avatar fiurthorn commented on June 19, 2024

But you have to use the connection port to connect, not the pairing port.

from adb-wifi.

zoutepopcorn avatar zoutepopcorn commented on June 19, 2024

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.

fiurthorn avatar fiurthorn commented on June 19, 2024

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.

bibek-magar avatar bibek-magar commented on June 19, 2024
ess debugging]->[Pai

did you solved it same for me... spinner is not stopping

from adb-wifi.

fiurthorn avatar fiurthorn commented on June 19, 2024

@bibek-magar https://github.com/fiurthorn/adb-wifi

from adb-wifi.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.