news 2026/10/20 11:14:21

adb查看手机CPU架构

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
adb查看手机CPU架构

Android 调试桥 (ADB) | Android 开源项目 | Android Open Source Project

SDK 平台工具版本说明 | Android Studio | Android Developers

1,下载Android SDK Platform-Tools

下载解压Android SDK Platform-Tools 到自己的软件目录,并添加到Path环境变量。


命令行输入adb验证,如果出现类似以下信息,则表示adb环境配置成功!

PSD:\Environments\platform-tools>adbAndroidDebugBridgeversion1.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[default=localhost]-Pport of adb server[default=5037]-LSOCKETlisten on given socketforadb server[default=tcp:localhost:5037]--one-deviceSERIAL|USBonly allowedwith'start-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[defaultport=5555]disconnect[HOST[:PORT]]disconnect from givenTCP/IPdevice[defaultport=5555],or all pairHOST[:PORT][PAIRINGCODE]pairwithadeviceforsecureTCP/IPcommunication forward--list list all forward socket connections forward[--no-rebind]LOCALREMOTEforward socket connection using:tcp:<port>(<local>may be"tcp:0"topickanyopenport)localabstract:<unix domain socket name>localreserved:<unix domain socket name>localfilesystem:<unix domain socket name>dev:<character device name>jdwp:<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>(<remote>may be"tcp:0"topickanyopenport)localabstract:<unix domain socket name>localreserved:<unix domain socket name>localfilesystem:<unix domain socket name>reverse--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 don't 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,or"none";default'~'-n:don't 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 platform'sdefaultABI--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 help`formore options.)uninstall[-k]PACKAGEremovethisapppackagefromthe device'-k':keep the data and cache directories debugging:bugreport[PATH]write bugreporttogivenPATH[default=bugreport.zip];ifPATHis a directory,the bug report is saved in that directory.devices that don't 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[default=any]get-state print offline|bootloader|device get-serialno print<serial-number>get-devpath print<device-path>remount[-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-tools>

2,手机开启USB调试,连接电脑

这里以小米手机为例,

开启开发者模式

按以下方法狂点miui版本,直到出现“您现在已处于开发者模式”。

设置——我的设备——全部参数与信息——miui版本

开启USB调试

按以下方法找到USB调试,点击确定,同意开启USB调试

设置——更多设置——开发者选项——USB调试

USB线连接电脑

手机出现“允许USB调试”,点击确定。

获取手机CPU架构

命令行输入以下

adb shell getprop ro.product.cpu.abi# 查看打印的字符,比如:arm64-v8aarm64-v8a
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/10/20 11:13:37

Claude Code自动技能库:15分钟接入AI自动激活工作流

如果你已经用 Claude Code 写过一两周代码&#xff0c;大概率会熟悉这个场景&#xff1a;每天早上打开终端&#xff0c;先噼里啪啦复制一大段“项目背景”给它&#xff0c;交代完目录结构、测试框架、改动范围&#xff0c;然后才敢把任务抛出去。代码评审要交代一遍&#xff0c…

作者头像 李华
网站建设 2026/10/20 11:12:15

【零基础学AI】第 13 章课后练习与答案

第 13 章练习与答案&#x1f308; 关于《AI 零基础 36 讲》课后训练 &#x1f4da; 与正式讲解配套学习 本篇是《AI 零基础 36 讲》的配套课后训练&#xff0c;与对应章节的正式讲解一起使用。整个系列面向初学者&#xff0c;从日常 AI 使用逐步进入编程、模型训练和大模型应用…

作者头像 李华
网站建设 2026/10/20 11:09:14

子查询:查询中嵌套查询

子查询:查询中嵌套查询 有时候一个SQL语句不够用,需要在一个查询里面"嵌套"另一个查询——这就是子查询。子查询是SQL中非常强大的功能,掌握它能解决很多复杂的查询问题。 一、什么是子查询 子查询就是嵌套在另一个SQL语句中的SELECT语句。 打个比方:你问&qu…

作者头像 李华