View: 12190|Reply: 6

ADB on One Plus

[Copy link]

13

threads

93

posts

711

credits

Senior member

Rank: 4

credits
711
Published in 2018-4-14 00:10:46 | Show all floors |Read mode
Edited by gounthar at 2018-4-14 00:15

Hi,

I finally managed to get my Orange Pi One Plus to work with the latest OrangePi_OnePlus_Android_7.0_en_gapps_v1.3.img.tar.gz.
Now, I would like to connect it through adb; I found that the port is 7100 and not 5555 like my other devices, but... It stays offline.
  1. $ adb connect 192.168.1.18:7100
  2. connected to 192.168.1.18:7100

  3. me@myPC ~
  4. $ adb devices
  5. List of devices attached
  6. 192.168.1.18:7100       offline
Copy code
Most of the times (on other Android devices), I get a popup on the screen asking to approve or reject the computer trying to connect.
This time, I didn't get anything.
What is the procedure to connect to the One Plus running Android so that I can get online and not offline?

Should I try to connect it with USB first? Is there a pin to move somewhere on the card? How could I find the drivers so that Windows can see it as an Android device?

Thanks.



13

threads

93

posts

711

credits

Senior member

Rank: 4

credits
711
 Author| Published in 2018-4-14 04:53:14 | Show all floors
Tonight at home, the 7100 port is not available anymore.
I tried to download Aptoide, but I don't know where the downloaded files go. Not in the downloads folder for sure...

13

threads

93

posts

711

credits

Senior member

Rank: 4

credits
711
 Author| Published in 2018-4-27 04:39:37 | Show all floors
I scanned all the ports of my device, but found none open:
  1. Nmap scan report for 192.168.0.11
  2. Host is up (0.014s latency).
  3. All 65535 scanned ports on 192.168.0.11 are closed
  4. MAC Address: 90:5F:2E:89:64:43 (TCT mobile)

  5. Nmap scan report for 192.168.0.18
  6. Host is up (0.011s latency).
  7. All 65535 scanned ports on 192.168.0.18 are closed
  8. MAC Address: C6:2B:FE:CC:A2:15 (Unknown)
Copy code

4

threads

96

posts

931

credits

Senior member

Rank: 4

credits
931
Published in 2018-4-29 14:33:15 | Show all floors
Just curios. When you check your /proc/loadavg is it actually lower than 3?
Sorry, this has actually nothing to do with your issue, but I am stuck with another problem described here and would appreciate if you could give this a quick check when the device has been idle for a while.

http://www.orangepi.org/orangepi ... o=lastpost#lastpost

13

threads

93

posts

711

credits

Senior member

Rank: 4

credits
711
 Author| Published in 2018-5-1 18:04:31 | Show all floors
Sorry, but as long as I can't connect to the One Plus through network or adb, I am not able to see the load average. There isn't even a shell within the image, I can't do anything with it.

13

threads

93

posts

711

credits

Senior member

Rank: 4

credits
711
 Author| Published in 2018-5-3 22:22:20 | Show all floors
Well, I can connect through ADB with no power thanks to OTG, but when I want to tell the One Plus that I want to connect through the network, the board just doesn't care:
  1. adb -s 20080411 shell
  2. petrel-p1:/ # setprop persists.adb.tcp.port 5555
  3. petrel-p1:/ # getprop persists.adb.tcp.port
  4. 5555
  5. petrel-p1:/ # sync && reboot
Copy code

Then:
  1. adb devices
  2. List of devices attached
  3. 20080411        device
  4. adb connect 192.168.0.14
  5. unable to connect to 192.168.0.14:5555: Connection refused
Copy code

I have to reset the adb through network:
  1. adb -s 20080411 tcpip 5555
  2. restarting in TCP mode port: 5555
  3. ~ openstf$ adb connect 192.168.0.14
  4. connected to 192.168.0.14:5555
  5. ~ openstf$ adb devices
  6. List of devices attached
  7. 192.168.0.14:5555       device
  8. 20080411        device
Copy code

So... I am connected twice to this device (USB and network).

13

threads

93

posts

711

credits

Senior member

Rank: 4

credits
711
 Author| Published in 2018-5-3 22:24:15 | Show all floors
So... To answer your question, I launched this command while the device was doing... nothing:
  1. petrel-p1:/ # cat /proc/loadavg
  2. 3.15 3.29 1.82 3/1033 13165
Copy code
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list