Jump to content

Recommended Posts

Скрытый текст

 


### версия adb
~ # adb version
Android Debug Bridge version 1.0.32

### вывод списка устройств
~ # adb devices
List of devices attached 
PMPхх016030хххх	device

~ # adb devices -l
List of devices attached 
PMPхх016030хххх        device usb:2-1.2 product:PMT3108_3G model:PMT3108_3G device:PN80A03G

### тел Samsung (WaveII)
### до разрешения отладки
~ # adb devices
List of devices attached 
хххххххххххххххх	unauthorized

~ # adb devices -l
List of devices attached 
хххххххххххххххх       unauthorized usb:2-1.2

### после принятия
~ # adb devices
List of devices attached 
хххххххххххххххх	device

~ # adb devices -l
List of devices attached 
хххххххххххххххх       device usb:2-1.2 product:omni_wave model:GT_S8530 device:wave

 

работа с adb

Скрытый текст

 


~ # adb shell
shell@PN80A03G:/ $ busybox uname -a
Linux localhost 3.14.0 #43 SMP PREEMPT Thu Aug 11 20:04:51 CST 2016 i686 GNU/Linux
   
shell@PN80A03G:/ $ cat /proc/cpuinfo                                           
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 93
model name	: Genuine Intel(R) CPU         @ 728
stepping	: 1
microcode	: 0x101
cpu MHz		: 416.000
cache size	: 512 KB
physical id	: 0
siblings	: 4
core id		: 2
cpu cores	: 4
apicid		: 4
initial apicid	: 4
fdiv_bug	: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush mmx fxsr sse sse2 ss ht nx rdtscp lm constant_tsc arch_perfmon xtopology pni pclmulqdq monitor ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt aes lahf_lm 3dnowprefetch tsc_adjust smep erms mm_type_aliasing
bogomips	: 892.92
clflush size	: 64
cache_alignment	: 64
address sizes	: 32 bits physical, 48 bits virtual
power management:
...

shell@PN80A03G:/ $ 

### тел
~ # adb shell
   
root@wave:/ # busybox                                                          
BusyBox v1.21.1-jb bionic (2013-07-25 21:23 +0100) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed
copyright notices. Merged for bionic by tpruvot@github

Usage: busybox [function [arguments]...]
   or: busybox --list
   or: function [arguments]...

	BusyBox is a multi-call binary that combines many common Unix
	utilities into a single executable.  Most people will create a
	link to busybox for each function they wish to use and BusyBox
	will act like whatever it was invoked as.

Currently defined functions:
	[, [[, adjtimex, arp, ash, awk, base64, basename, bbconfig, blkid,
	blockdev, brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chattr, chgrp,
	chmod, chown, chroot, clear, cmp, comm, cp, cpio, crond, crontab, cut,
	date, dc, dd, depmod, devmem, df, diff, dirname, dmesg, dnsd, dos2unix,
	du, echo, ed, egrep, env, expand, expr, false, fbsplash, fdisk, fgrep,
	find, flash_lock, flash_unlock, flashcp, flock, fold, free,
	freeramdisk, fstrim, fsync, ftpget, ftpput, fuser, getopt, grep,
	groups, gunzip, gzip, halt, head, hexdump, id, ifconfig, inetd, insmod,
	install, ionice, iostat, ip, kill, killall, killall5, less, ln,
	losetup, ls, lsattr, lsmod, lsof, lsusb, lzcat, lzma, lzop, lzopcat,
	man, md5sum, mesg, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2,
	mkfs.vfat, mknod, mkswap, mktemp, modinfo, modprobe, more, mount,
	mountpoint, mpstat, mv, nanddump, nandwrite, nbd-client, nc, netstat,
	nice, nohup, nslookup, ntpd, od, patch, pgrep, pidof, ping,
	pipe_progress, pkill, pmap, poweroff, printenv, printf, ps, pstree,
	pwd, pwdx, rdev, readlink, realpath, reboot, renice, reset, resize,
	rev, rm, rmdir, rmmod, route, run-parts, rx, sed, seq, setconsole,
	setserial, setsid, sh, sha1sum, sha256sum, sha3sum, sha512sum, sleep,
	sort, split, stat, strings, stty, sum, swapoff, swapon, sync, sysctl,
	tac, tail, tar, taskset, tee, telnet, telnetd, test, tftp, tftpd, time,
	timeout, top, touch, tr, traceroute, true, ttysize, tune2fs, umount,
	uname, uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unxz,
	unzip, uptime, usleep, uudecode, uuencode, vi, watch, wc, wget, which,
	whoami, xargs, xz, xzcat, yes, zcat

root@wave:/ # busybox uname -a                                                 
Linux localhost 3.0.101-g9800976 #2 PREEMPT Mon Jun 8 22:24:14 CEST 2015 armv7l GNU/Linux
 
root@wave:/ # cat /proc/cpuinfo                                                
Processor	: ARMv7 Processor rev 2 (v7l)
BogoMIPS	: 99.26
Features	: swp half thumb fastmult vfp edsp thumbee neon vfpv3 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc08
CPU revision	: 2

Hardware	: wave2
Revision	: 0030
Serial		: хххххххххххххххх
root@wave:/ # 

 

+

"шнурок+воздух"

~ # adb devices
List of devices attached 
192.168.5.3:5555	device
PMPхх016030хххх	device

++

пакет в репах

Edited by TheBB
++
  • Thanks 1
Link to comment
Share on other sites

А на телефоне, что необходимо сделать, чтобы появилась возможность подключаться "по воздуху"?

Режим отладки включен, через кабель спокойно подключается

Link to comment
Share on other sites

На телефоне должно быть что-то, вроде "ADB over network"

~ # adb connect 192.168.5.8
connected to 192.168.5.8:5555
~ # adb shell
root@wave:/ # ls -al /
drwxr-xr-x root     root              2017-03-11 19:48 acct
-rw-r--r-- root     root          388 2017-03-11 19:48 boot.txt
drwxrwx--- system   cache             2015-06-24 00:18 cache
lrwxrwxrwx root     root              2017-03-11 19:48 charger -> /sbin/healthd
dr-x------ root     root              2017-03-11 19:48 config
lrwxrwxrwx root     root              2017-03-11 19:48 d -> /sys/kernel/debug
drwxrwx--x system   system            2005-01-03 02:57 data
-rw-r--r-- root     root          301 2017-03-11 19:48 default.prop
drwxr-xr-x root     root              2017-03-11 20:00 dev
...

 

Link to comment
Share on other sites

как перепрошить телефон через наш роутер?) 

в режиме загрузчика(перепрошивки) adb не видит мое устройство

в режиме рекавери и в Вкл_телефона adb отпределяет 

Edited by edm
Link to comment
Share on other sites

  • 5 months later...
  • 3 years later...

Прошу подсказки, как при перезагрузке роутера выполнять

adb connect ip_adress_tv

для автоматического подключения к устройству.

Link to comment
Share on other sites

  • 2 years later...

Вот тут заморочился с камерой, у меня подключена на старый планшет через rtsp, при нажатии питания на планшете уже выводит нужную картинку, хочу при помощи ADB сделать, что бы включался, команда есть, осталось придумать как сделать так, что бы при появлении одного устройства в сети с адресом 192.168.3.33 отправлялась эта команда на планшет.... 

ДА и похоже пакет старый, коннектится, но команды не отправляет, пишет device offline

 

Edited by Андрей Волосков
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...