adb查看手机CPU架构
发布时间:2026/10/20 11:14:26 锦皓数字建站

Android 调试桥 (ADB) | Android 开源项目 | Android Open Source ProjectSDK 平台工具版本说明 | Android Studio | Android Developers1下载Android SDK Platform-Tools下载解压Android SDK Platform-Tools 到自己的软件目录并添加到Path环境变量。命令行输入adb验证如果出现类似以下信息则表示adb环境配置成功PSD:\Environments\platform-toolsadbAndroidDebugBridgeversion1.0.41Version34.0.5-10900879InstalledasD:\Environments\platform-tools\adb.exeRunningonWindows10.0.22631global options:-a listen on all network interfaces,not just localhost-d useUSBdevice(errorifmultiple devices connected)-e useTCP/IPdevice(errorifmultipleTCP/IPdevices available)-sSERIALuse devicewithgivenserial(overrides $ANDROID_SERIAL)-tIDuse devicewithgiventransport id-Hname of adb server host[defaultlocalhost]-Pport of adb server[default5037]-LSOCKETlisten on given socketforadb server[defaulttcp:localhost:5037]--one-deviceSERIAL|USBonly allowedwithstart-server or server nodaemon,server will only connecttooneUSBdevice,specified by a serial number orUSBdevice address.--exit-on-write-error exitifstdout is closed general commands:devices[-l]list connected devices(-lforlongoutput)help showthishelp message version show version num networking:connectHOST[:PORT]connecttoadevice viaTCP/IP[defaultport5555]disconnect[HOST[:PORT]]disconnect from givenTCP/IPdevice[defaultport5555],or all pairHOST[:PORT][PAIRINGCODE]pairwithadeviceforsecureTCP/IPcommunication forward--list list all forward socket connections forward[--no-rebind]LOCALREMOTEforward socket connection using:tcp:port(localmay betcp:0topickanyopenport)localabstract:unix domain socket namelocalreserved:unix domain socket namelocalfilesystem:unix domain socket namedev:character device namejdwp:process pid(remote only)vsock:CID:port(remote only)acceptfd:fd(listen only)forward--removeLOCALremove specific forward socket connection forward--remove-all remove all forward socket connections reverse--list list all reverse socket connections from device reverse[--no-rebind]REMOTELOCALreverse socket connection using:tcp:port(remotemay betcp:0topickanyopenport)localabstract:unix domain socket namelocalreserved:unix domain socket namelocalfilesystem:unix domain socket namereverse--removeREMOTEremove specific reverse socket connection reverse--remove-all remove all reverse socket connections from device mdns check checkifmdns discovery is available mdns services list all discovered services file transfer:push[--sync][-zALGORITHM][-Z]LOCAL...REMOTEcopy local files/directoriestodevice--sync:only push files that are newer on the host than the device-n:dry run:push filestodevicewithout storingtothefilesystem-z:enable compressionwithaspecified algorithm(any/none/brotli/lz4/zstd)-Z:disable compression pull[-a][-zALGORITHM][-Z]REMOTE...LOCALcopy files/dirs from device-a:preserve file timestamp and mode-z:enable compressionwithaspecified algorithm(any/none/brotli/lz4/zstd)-Z:disable compression sync[-l][-zALGORITHM][-Z][all|data|odm|oem|product|system|system_ext|vendor]sync a local build from $ANDROID_PRODUCT_OUTtothedevice(defaultall)-n:dry run:push filestodevicewithout storingtothefilesystem-l:list files that would be copied,but dont copy them-z:enable compressionwithaspecified algorithm(any/none/brotli/lz4/zstd)-Z:disable compression shell:shell[-eESCAPE][-n][-Tt][-x][COMMAND...]run remote shell command(interactive shellifno command given)-e:choose escape character,ornone;default~-n:dont read from stdin-T:disable pty allocation-t:allocate a ptyifon a tty(-tt:force pty allocation)-x:disable remote exit codes and stdout/stderr separation emuCOMMANDrun emulator console command app installation(see also adb shell cmdpackagehelp):install[-lrtsdg][--instant]PACKAGEpush a singlepackagetothedevice and install it install-multiple[-lrtsdpg][--instant]PACKAGE...push multipleAPKstothedevicefora singlepackageandinstall them install-multi-package[-lrtsdpg][--instant]PACKAGE...push one or more packagestothedevice and install them atomically-r:replace existing application-t:allow test packages-d:allow version code downgrade(debuggable packages only)-p:partial application install(install-multiple only)-g:grant all runtime permissions--abiABI:override platformsdefaultABI--instant:cause the apptobeinstalled as an ephemeral install app--no-streaming:always pushAPKtodeviceand invokePackageManageras separate steps--streaming:force streamingAPKdirectly intoPackageManager--fastdeploy:use fast deploy--no-fastdeploy:prevent use of fast deploy--force-agent:force update of deployment agent when using fast deploy--date-check-agent:update deployment agent when local version is newer and using fast deploy--version-check-agent:update deployment agent when local version has different version code and using fast deploy(Seealso adb shell pm helpformore options.)uninstall[-k]PACKAGEremovethisapppackagefromthe device-k:keep the data and cache directories debugging:bugreport[PATH]write bugreporttogivenPATH[defaultbugreport.zip];ifPATHis a directory,the bug report is saved in that directory.devices that dont support zipped bug reports outputtostdout.jdwp list pids of processes hosting aJDWPtransport logcat show device log(logcat--helpformore)security:disable-verity disable dm-verity checking on userdebug builds enable-verity re-enable dm-verity checking on userdebug builds keygenFILEgenerate adbpublic/privatekey;privatekey stored inFILE,scripting:wait-for[-TRANSPORT]-STATE...waitfordevicetobein a given stateSTATE:device,recovery,rescue,sideload,bootloader,or disconnectTRANSPORT:usb,local,or any[defaultany]get-state print offline|bootloader|device get-serialno printserial-numberget-devpath printdevice-pathremount[-R]remount partitions read-write.ifa reboot is required,-Rwill will automatically reboot the device.reboot[bootloader|recovery|sideload|sideload-auto-reboot]reboot the device;defaultstobootingsystem image but supports bootloader and recovery too.sideload reboots into recovery and automatically starts sideload mode,sideload-auto-reboot is the same but reboots after sideloading.sideloadOTAPACKAGEsideload the given fullOTApackagerootrestart adbdwithrootpermissions unroot restart adbd without root permissions usb restart adbd listening onUSBtcpipPORTrestart adbd listening onTCPonPORTinternal debugging:start-server ensure that there is a server running kill-server kill the serverifit is running reconnect kick connection from host sidetoforcereconnect reconnect device kick connection from device sidetoforcereconnect reconnect offline reset offline/unauthorized devicestoforcereconnect usb:attach attach a detachedUSBdevice detach detach from aUSBdevicetoallowuse by other processes environment variables:$ADB_TRACEcomma/space separated list of debug infotolog:all,adb,sockets,packets,rwx,usb,sync,sysdeps,transport,jdwp $ADB_VENDOR_KEYScolon-separated list of keys(files or directories)$ANDROID_SERIALserial numbertoconnectto(see-s)$ANDROID_LOG_TAGStagstobeused by logcat(see logcat--help)$ADB_LOCAL_TRANSPORT_MAX_PORTmax emulator scan port(default5585,16emus)$ADB_MDNS_AUTO_CONNECTcomma-separated list of mdns servicestoallowauto-connect(defaultadb-tls-connect)Onlinedocumentation:https://android.googlesource.com/platform/packages/modules/adb//refs/heads/master/docs/user/adb.1.mdPSD:\Environments\platform-tools2手机开启USB调试连接电脑这里以小米手机为例开启开发者模式按以下方法狂点miui版本直到出现“您现在已处于开发者模式”。设置——我的设备——全部参数与信息——miui版本开启USB调试按以下方法找到USB调试点击确定同意开启USB调试设置——更多设置——开发者选项——USB调试USB线连接电脑手机出现“允许USB调试”点击确定。获取手机CPU架构命令行输入以下adb shell getprop ro.product.cpu.abi# 查看打印的字符比如arm64-v8aarm64-v8a
锦
锦皓数字建站
深耕本土企业品牌数字化升级,专注原创端正雅致商务官网,从视觉设计到稳定运维全程保驾护航。