大佬玩机之随时随地玩(中兴盒子),前方高能!!!!!!!!!!!
===============欢迎阅读==============
今天我来发个不用电脑中兴盒子的教程。
前方高能,请准备好膝盖!
准备材料:
root过的安卓手机一部,
安装juicessh.apk,
adb计算器(安卓apk),
中兴盒子一台接上网络接上电视机(例ip地址:192.168.1.146)。
dangbei.apk和其他的apk软件
切入正题:
1,算码开adb,不再供述细节了,大把的帖子。
2,打开手机上的juicessh,点击连接,然后右下角有个加号+点击下,
类型选择本地设备,然后点击右上角的√
在连接里面就有个localhost,点击打开,输入su,然后进行su授权。
授权后是变成root@xxx:/ #而不是root@xxx:/$
然后输入adb看看是否有很长一串回应
出现bash: adb: command not fount之类的表示不行哟
3,由于我的这台手机没有root,之前的一台搞坏了。所以这次随便拿个盒子,采用一样的方式另一个盒子作为演示:
root@p201_iptv:/ # adb
Android Debug Bridge version 1.0.31
-a - directs adb to listen on all interfaces for a connection
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <specific device> - directs command to the device or emulator with the given
serial number or qualifier. Overrides ANDROID_SERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices
('-l' will also list device qualifiers)
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [<host>[:<port>]]- disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devices.
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>]- copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward --list - list all forward socket connections.
the format is a list of lines with the following format:
<serial> " " <local> " " <remote> "\n"
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb forward --no-rebind <local> <remote>
- same as 'adb forward <local> <remote>' but fails
if <local> is already forwarded
adb forward --remove <local> - remove a specific forward socket connection
adb forward --remove-all - remove all forward socket connections
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>
- push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
('--algo', '--key', and '--iv' mean the file is encrypted already)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.
adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
- write an archive of the device's data to <file>.
If no -f option is supplied then the data is written
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-obb|-noobb enable/disable backup of any installed apk expansion
(aka .obb) files associated with each application; the default
is noobb.)
(-shared|-noshared enable/disable backup of the device's
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages...> is the list of applications to be backed up.If
the -all or -shared flags are passed, then the package
list is optional.Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)
adb restore <file> - restore device contents from the <file> backup archive
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
networking:
adb ppp <tty> - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
- Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition
is updated.
environmental variables:
ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.
1|root@p201_iptv:/ #
root@p201_iptv:/ # busybox ifconfig
eth0 Link encap:EthernetHWaddr E8:BB:3D:60:00:00
inet addr:192.168.1.151Bcast:192.168.1.255Mask:255.255.255.0
inet6 addr: fe80::eabb:3dff:fe60:0/64 Scope:Link
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:321958 errors:0 dropped:0 overruns:0 frame:0
TX packets:882786 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49438559 (47.1 MiB)TX bytes:1259331036 (1.1 GiB)
Interrupt:40
lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNINGMTU:4096Metric:1
RX packets:33 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2572 (2.5 KiB)TX bytes:2572 (2.5 KiB)
root@p201_iptv:/ #
root@p201_iptv:/ #cd /sdcard
root@p201_iptv:/sdcard #
root@p201_iptv:/sdcard # wget http://192.168.1.204:9056/dbzm_2.2.8_dangbei.apk -O dangbei.apk
Connecting to 192.168.1.204:9056 (192.168.1.204:9056)
dangbei.apk 100% |****************************************************************|8038k0:00:00 ETA
root@p201_iptv:/sdcard #
root@p201_iptv:/sdcard # chmod 0777 dangbei.apk
root@p201_iptv:/ # adb connect 192.168.1.146
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
connected to 192.168.1.146:5555
root@p201_iptv:/sdcard # adb devices
List of devices attached
emulator-5554 device
192.168.1.146:5555 device
root@p201_iptv:/sdcard # adb -s 192.168.1.146:5555 install dangbei.apk
2107 KB/s (8231384 bytes in 3.814s)
pkg: /data/local/tmp/dangbei.apk
Success
root@p201_iptv:/sdcard # adb -s 192.168.1.146:5555 root
adbd is already running as root
root@p201_iptv:/sdcard # adb -s 192.168.1.146:5555 shell
root@square:/ #
root@square:/ #
root@square:/ # mount -o remount,rw /system
root@square:/ # echo "mount -o remount,rw /system" >> /system/etc/init.zte.post_boot.sh
root@square:/ # echo "adbd&" >> /system/etc/init.zte.post_boot.sh
root@square:/ # echo "setprop config.Android.AppInstallCtrl 3" >> /system/etc/init.zte.post_boot.sh
root@square:/ # echo "setprop config.USBInstallCtrl 3" >> /system/etc/init.zte.post_boot.sh
root@square:/ # echo "settings put secure install_non_market_apps 1" >> /system/etc/init.zte.post_boot.sh
root@square:/ # echo "settings put global install_non_market_apps 1" >> /system/etc/init.zte.post_boot.sh
root@square:/ # am start com.dangebi.tvlauncher
root@square:/ #
root@square:/ # cat /system/bu*
# begin build properties
# autogenerated by buildinfo.sh
ro.build.version.sdk=19
ro.build.version.codename=REL
ro.build.version.release=4.4.2
ro.product.sdk.software=V81511320.2001
ro.build.sdk.date=Mon Apr9 08:03:00 HKT 2018
ro.build.sdk.date.utc=1523232180
ro.build.type=userdebug
ro.build.user=stb-android
ro.build.host=ubuntu126
ro.build.tags=release-keys
ro.product.name=aosp_square
ro.product.device=square
ro.product.brand=ZXV10 B860AV1.1
ro.product.board=ZX296716
ro.product.manufacturer=ZTE Corporation
net.zte.refactor=1
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.locale.language=zh
ro.product.locale.region=CN
ro.wifi.channels=
ro.board.platform=zx296716
# ro.build.product is obsolete; use ro.product.device
ro.build.product=square
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=aosp_square-userdebug 4.4.2 KVT49L eng.stb-android.20180409.080129 release-keys
ro.build.fingerprint=Android/aosp_square/square:4.4.2/KVT49L/V81511320.2001:userdebug/release-keys
ro.build.characteristics=default
# end build properties
ro.stanby.new.solution=1
ro.product.chipserial=zxic
ro.build.operator=2
ro.build.hard=ZTE
ro.build.equipment=B860AV1.1-T2
ro.product.devicesummary=B860AV2.2
ro.product.SpdifHide=1
#
# from device/zxic/square/system.prop
#
#
# system.prop for zx296702
#
# settings
ro.screen.has.brightness=false
ro.screen.has.tvout=true
ro.screen.has.timeout=false
hw.nobattery=true
hw.nolocation=true
hw.nophone=true
hw.has.accelerometer=false
persist.sys.ui.hw=true
# disable strictmode
persist.sys.strictmode.disable=true
# dalvik heap
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=128m
dalvik.vm.heapsize=384m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
# disable lockscreen
ro.lockscreen.disable.default=true
#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.com.android.dateformat=MM-dd-yyyy
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.alarm_alert=Alarm_Classic.ogg
ro.config.notification_sound=pixiedust.ogg
ro.carrier=unknown
debug.hwui.render_dirty_regions=false
persist.sys.language=zh
persist.sys.country=CN
persist.sys.timezone=Asia/Shanghai
persist.sys.app.rotation=force_land
wifi.interface=wlan0
ro.kernel.android.checkjni=0
dalvik.vm.dex2oat-filter=speed
dalvik.vm.dexopt-flags=v=n,o=a
ro.opengles.version=131072
zxic.benchmark.dvfs=true
ro.product.target.category=OTT
sys.bootanim.timeout=17000
net.zte.refactor=1
ro.config.max_starting_bg=20
persist.sys.dalvik.vm.lib=libdvm.so
ro.board.usb.camera=true
dalvik.vm.lockprof.threshold=500
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.product.version.base=V81511341.1004 2018-04-09
ro.product.version.software=V81511341.1004
ro.build.display.id=V81511341.1004
persist.sys.Version=V81511341.1004
ro.product.113.software=V81541.1004
ro.build.version.incremental=V81511341.1004
ro.build.date=Mon Apr9 08:41:05 HKT 2018
ro.build.date.utc=1523234465
ro.product.build.date=2017-11-25
ro.build.display.id=V81511341.1004
ro.build.version.incremental=V81511341.1004
root@square:/ #
END
by kerry
如果觉得赞不妨打赏一下???
**** Hidden Message *****
老铁666!必须支持一波! 楼主能帮帮我吗?谢谢了qq978500902 炒作吗?能用吧! 感谢分享 好高深的样子 cxshuxj 发表于 2018-6-12 07:52
root过的安卓手机?
没root过的,你打个busybox试试,都不一定有权限 彼此的羁绊 发表于 2018-6-11 15:10
这个似乎是新的验证码了
干它 爱科丝 发表于 2018-6-11 15:09
可惜我到ADB就开不了。哪位大师提供D字头6位随机码ADB计算器?
这个似乎是新的验证码了 抓住这个人,又来骗我优币了 大佬确实牛 前来观看大佬教程 又来骗我优币 感谢大佬的教程 满满的干货! 膝盖给你 {:118:}完全看不懂 感谢分享 好高深的样子 好文!已打赏!