|
===============歡迎閱讀==============
今天我來發(fā)個(gè)不用電腦中興盒子的教程。
前方高能,請(qǐng)準(zhǔn)備好膝蓋!
準(zhǔn)備材料:
root過的安卓手機(jī)一部,
安裝juicessh.apk,
adb計(jì)算器(安卓apk),
中興盒子一臺(tái)接上網(wǎng)絡(luò)接上電視機(jī)(例ip地址:192.168.1.146)。
dangbei.apk和其他的apk軟件
切入正題:
1,算碼開adb,不再供述細(xì)節(jié)了,大把的帖子。
2,打開手機(jī)上的juicessh,點(diǎn)擊連接,然后右下角有個(gè)加號(hào)+點(diǎn)擊下,
Screenshot_2018-06-11-12-57-45-010_com.sonelli.ju.png (90.59 KB, 下載次數(shù): 31)
下載附件
保存到相冊(cè)
2018-6-11 13:02 上傳
類型選擇本地設(shè)備,然后點(diǎn)擊右上角的√
Screenshot_2018-06-11-12-57-53-190_com.sonelli.ju.png (131.91 KB, 下載次數(shù): 28)
下載附件
保存到相冊(cè)
2018-6-11 13:03 上傳
在連接里面就有個(gè)localhost,點(diǎn)擊打開,輸入su,然后進(jìn)行su授權(quán)。
Screenshot_2018-06-11-12-58-14-533_com.sonelli.ju.png (101.51 KB, 下載次數(shù): 35)
下載附件
保存到相冊(cè)
2018-6-11 14:32 上傳
授權(quán)后是變成root@xxx:/ #而不是root@xxx:/$
然后輸入adb看看是否有很長(zhǎng)一串回應(yīng)
出現(xiàn)bash: adb: command not fount之類的表示不行喲
3,由于我的這臺(tái)手機(jī)沒有root,之前的一臺(tái)搞壞了。所以這次隨便拿個(gè)盒子,采用一樣的方式另一個(gè)盒子作為演示:
- 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 [bootloader|recovery] - 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> [parameters] - 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
- [parameters] - 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:Ethernet HWaddr E8:BB:3D:60:00:00
- inet addr:192.168.1.151 Bcast:192.168.1.255 Mask:255.255.255.0
- inet6 addr: fe80::eabb:3dff:fe60:0/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric: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.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:4096 Metric: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% |****************************************************************| 8038K 0: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 Apr 9 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 Apr 9 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
復(fù)制代碼
screenshot_1523326660.png (2.26 MB, 下載次數(shù): 35)
下載附件
保存到相冊(cè)
2018-6-11 14:18 上傳
screenshot_1528424881.png (937.64 KB, 下載次數(shù): 29)
下載附件
保存到相冊(cè)
2018-6-11 14:19 上傳
如果覺得贊不妨打賞一下???
↓↓↓↓↓↓↓↓↓↓↓↓
|
評(píng)分
-
查看全部評(píng)分
上一篇: b860av1.1-t 怎么去除光貓檢測(cè)?下一篇: 湖南移動(dòng)芒果TV B860A_V2016.03.05_2016-03-05生產(chǎn)版本
|