我执行adb shell显示一大堆内容,和直接执行adb命令显示的一样,谁遇到过这样的问题,能不能给点指导??
解决方案 »
- 安卓定义一个layout,xml布局,能根据这个xml动态生成多个一样的布局吗?还要添加事件
- 关于ProgressDialog返回键后线程停止的问题,请高手回答
- android多点触控求教
- 请问关于联系人里datakind或者R.string.xxxx的问题
- android中资源的Uri(通过浏览器浏览资源中的页面)
- adb emu命令有哪些?
- android下的反射问题
- Ubuntu 13.04编译android源代码
- 求助。。这个问题找了很久,还是没有找到解决的方法。。
- 画布和layout布局能不能显示在同一个界面
- android应用程序加载手机平台?
- 有没有方法监控一个activity?
Android Debug Bridge version 1.0.26 -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 <serial number> - directs command to the USB device or emulator with
the given serial number. 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.
devices - list all connected devices
connect <host>:<port> - connect to a device via TCP/IP
disconnect <host>:<port> - disconnect from a TCP/IP devicedevice 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
(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 <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 jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <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)
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 help - show this help message
adb version - show version numDATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partitionscripting:
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 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 usepeerdnsadb 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.
而执行adb shell的时候要确保你的模拟器或者手机开启:
一般如果不是系统img 则 不用root权限:
adb shell
# ls
config
cache
sdcard
acct
mnt
d
etc
system
sys
sbin
proc
init.rc
init.goldfish.rc
init
default.prop
data
root
dev
# cd system/app
# ls
Fallback.apk
Music.apk
Mms.apk
Term.apk
PinyinIME.apk
ContactsProvider.apk
CustomLocale.apk
AlarmClock.apk
UserDictionaryProvider.apk
HTMLViewer.apk
Gallery.apk
NetSpeed.apk
AccountAndSyncSettings.apk
SoundRecorder.apk
Contacts.apk
SdkSetup.apk
OpenWnn.apk
DownloadProvider.apk
SpareParts.apk
Calculator.apk
CarHomeLauncher.apk
CarHome.apk
DefaultContainerService.apk
LatinIME.apk
Development.apk
Protips.apk
Phone.apk
PackageInstaller.apk
VpnServices.apk
MediaProvider.apk
SpeechRecorder.apk
DrmProvider.apk
Email.apk
LiveWallpapersPicker.apk
ApplicationsProvider.apk
Camera.apk
Browser.apk
TelephonyProvider.apk
SettingsProvider.apk
PicoTts.apk
TtsService.apk
CertInstaller.apk
Launcher2.apk
Settings.apk
# 就可以看到你的系统的所有apk了