In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "what are the commonly used Adb commands". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Adb
Sort out some adb commands
Abd wifi connectadb devices view all connected devices' udidadb tcpip 5555 settings tcp port adb connect device_ip:5555 (ip can be seen in the device's wifi)
Device refuses to connect
The device installs the terminal emulator software, obtains the root permission through kingroot and other software, and enters the following command in the emulator when the susetprop service.adb.tcp.port 5555top adbdstart adbdPC side executes the adb connect device_ip:5555adb chmod file system permission: when adb shell su chmod 777 file_path does not allow, remount the file adb shell su mount to find the mount node that needs to rewrite the directory, and copy its name For example, the corresponding subdirectories of / dev mount-o rw,remount / dev path,path can read and write adb screen recording.
Screenrecord is a shell command that supports more than Android4.4 (API level 19). The recorded video format is mp4 and is stored in the SD card of the mobile phone. The default recording time is 180 s.
Adb shell screenrecord-- size 1280x720-- bit-rate 6000000-- time-limit 30 / sdcard/demo.mp4-- size specifies the video resolution;-- bit-rate specifies the video bit rate, default is 4m, the smaller the value, the smaller the saved video file;-- time-limit specifies the recording time, if the setting is greater than 180, the command will not be executed; adb screenshot
Adb shell screencap-p | sed's /\ rsquared Universe D:/screen.png'>
Take a screenshot and export the picture to D disk. Save the file name screen. The format can be specified as jpg or png.
Commonly used simple commands
Import adb push D:/test.txt / sdcard/ PC end files under the device / sdcard path
Adb pull / sdcard/test.txt sdcard/ / Export the files in the device / DVR directory to disk D on your computer
Adb install demo.apk installs demo.apk on the device
Adb logcat View system logcat Log
Adb shell getprop ro.product.cpu.abi, check the kernel version of the Android device
Adb shell getprop ro.build.version.sdk, view the sdk version
Adb shell getprop ro.product.model, check the phone model, such as SM-G9200
Adb shell getprop ro.product.manufacturer, check the phone manufacturer, such as Samsung (or ro.product.brand)
Adb shell pm list features, such as android.hardware.nfc, to see if NFC is supported
Adb shell pm list packages, list of installation package names in the device
Adb shell wm size to check the phone resolution
When PC connects multiple devices at the same time, adb-s udid and udid are the unique identifiers of mobile phones, which can be viewed in the settings for mobile phones.
This is the end of the content of "what are the commonly used Adb commands". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.