色哟哟视频在线观看-色哟哟视频在线-色哟哟欧美15最新在线-色哟哟免费在线观看-国产l精品国产亚洲区在线观看-国产l精品国产亚洲区久久

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示

fireflyAIO-3399C主板ADB簡介

firefly ? 來源:firefly ? 作者:firefly ? 2019-12-13 10:24 ? 次閱讀
ADB 使用
前言

adb,全稱 Android Debug Bridge,是 Android 的命令行調試工具,可以完成多種功能,如跟蹤系統日志,上傳下載文件,安裝應用等。

準備連接
USB數據線ADB
  • AIO-3399C用Type-C數據線連接設備Type-C口和主機。

  • AIO-3399C(AI)用雙端公頭USB數據線連接設備藍色USB 3.0口和主機,還需要在AI0-3399C(AI)勾上 設置->USB->Connect to PC

當設備端狀態欄提示 USB debugging connected 時,便可進行調試:

adb devices adb shell
網絡ADB
  • 設備端接入局域網后,還需要打開網絡ADB調試開關 設置->開發者選項->網絡ADB調試

查看3399的IP地址,PC端通過網絡訪問

例:

adb connect + IP adb shell
Windows下的 ADB 安裝

首先參照安裝 RK USB 驅動一節安裝好驅動。 打開命令行窗口,輸入:

cd C:\adb adb shell

如果一切正常,就可以進入adb shell,在設備上面運行命令。

Ubuntu 下的 ADB 安裝
  • 安裝 adb 工具:

sudo apt-get install android-tools-adb
  • 加入設備標識:

mkdir -p ~/.android vi ~/.android/adb_usb.ini # 添加以下一行 0x2207
  • 加入 udev 規則:

sudo vi /etc/udev/rules.d/51-android.rules # 添加以下一行: SUBSYSTEM=="usb", ATTR{idVendor}=="2207", MODE="0666"
  • 重新插拔 USB 線,或運行以下命令,讓 udev 規則生效:

sudo udevadm control --reload-rules sudo udevadm trigger
  • 重新啟動 adb 服務器

sudo adb kill-server adb start-server
常用 ADB 命令
連接管理

列出所有連接設備及其序列號

adb devices

如果有多個連接設備,則需要使用序列號來區分:

export ANDROID_SERIAL=<設備序列號> adb shell ls

多設備下連接指定設備

adb -s 序列號 shell

可以通過網絡來連接 adb:

# 讓設備端的 adbd 重啟,并在 TCP 端口 5555 處監聽 adb tcpip 5555 # 此時可以斷開 USB 連接 # 遠程連接設備,設備的 IP 地址是 192.168.1.100 adb connect 192.168.1.100:5555 # 斷開連接 adb disconnect 192.168.1.100:5555
調試
獲取系統日志 adb logcat
  • 用法

adb logcat [選項] [應用標簽]
  • 示例

# 查看全部日志 adb logcat # 僅查看部分日志 adb logcat -s WifiStateMachine StateMachine
運行命令 adb shell

獲取詳細運行信息 adb bugreport

adb bugreport用于錯誤報告,里面包含大量有用的信息。

  • 示例

adb bugreport # 保存到本地,方便用編輯器查看 adb bugreport >bugreport.txt
root 權限

如果 TARGET_BUILD_VARIANT 使用的是 userdebug 模式,要獲得 root 權限,需要先運行:

adb root

讓 adb 的設備端切換到 root 權限模式,這樣 adb remount 等需要 root 權限的命令才會成功。

應用管理
安裝應用 adb install
  • 用法:

adb install [選項] 應用包.apk

選項包括:

-l forward-lock -r 重新安裝應用,保留原先數據 -s 安裝到 SD 卡上,而不是內部存儲
  • 示例:

# 安裝 facebook.apk adb install facebook.apk # 升級 twitter.apk adb install -r twitter.apk

如果安裝成功,工具會返回成功提示 “Success”;失敗的話,一般是以下幾種情況:

  • INSTALL_FAILED_ALREADY_EXISTS: 此時需要用 -r 參數來重新安裝。

  • INSTALL_FAILED_SIGNATURE_ERROR: 應用的簽名不一致,可能是發布版和調試版簽名不同所致。如果確認 APK 文件簽名正常,可以用 adb uninstall 命令先卸載舊的應用,然后再安裝。

  • INSTALL_FAILED_INSUFFICIENT_STORAGE: 存儲空間不足,需要檢查設備存儲情況。

卸載應用 adb uninstall
  • 用法:

adb uninstall 應用包名稱
  • 示例:

adb uninstall com.android.chrome

應用包名稱可以用以下命令列出:

adb shell pm list packages -f

運行結果是:

package:/system/app/Bluetooth.apk=com.android.bluetooth

前面是 apk 文件,后面則是對應的包名稱。

命令行幫助信息 adb help
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 [-p] <local> <remote> - copy file/dir to device ('-p' to display the transfer progress) adb pull [-p] [-a] <remote> [<local>] - copy file/dir from device ('-p' to display the transfer progress) ('-a' means copy timestamp and mode) 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 ' 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] [-d] [-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) ('-d' means allow version code downgrade) ('-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 . 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.

聲明:本文內容及配圖由入駐作者撰寫或者入駐合作網站授權轉載。文章觀點僅代表作者本人,不代表電子發燒友網立場。文章及其配圖僅供工程師學習之用,如有內容侵權或者其他違規問題,請聯系本站處理。 舉報投訴
  • 嵌入式主板
    +關注

    關注

    7

    文章

    6092

    瀏覽量

    35839
  • 安卓
    +關注

    關注

    5

    文章

    2140

    瀏覽量

    57884
  • Firefly
    +關注

    關注

    2

    文章

    539

    瀏覽量

    7212
收藏 人收藏

    評論

    相關推薦

    fireflyAIO-3399C主板接口介紹

     AIO-3399C 提供了豐富的接口,主要包括:電源接口, Type-C(OTG),1 x USB3.0,4 x USB2.0(接口×2,座子×2),HDMI,以太網,雙LVDS屏幕接口,eDP屏
    的頭像 發表于 12-04 10:26 ?2924次閱讀
    <b class='flag-5'>fireflyAIO-3399C</b><b class='flag-5'>主板</b>接口介紹

    fireflyAIO-3399C主板FAQs方案

    AIO-3399C默認出廠固件是支持LVDS+HDMI 1080P的雙屏顯示,HDMI分辨率最高只能到1080P。
    的頭像 發表于 12-04 10:23 ?1226次閱讀
    <b class='flag-5'>fireflyAIO-3399C</b><b class='flag-5'>主板</b>FAQs方案

    fireflyAIO-3399C主板散熱介紹

    散熱套件 鋁制散熱片 產品參數 適配:AIO-3399C 尺寸:43mm (L)* 39.5mm(W)*11mm(H)
    的頭像 發表于 12-09 15:56 ?1290次閱讀

    fireflyAIO-3399C主板紅外遙控器簡介

    紅外遙控器 產品參數 產品:12鍵紅外遙控器 版本:Firefly定制版 電源:兩節7號電池 適配:AIO-3399C 描述:支持AIO-3399C開發板的遙控開機功能
    的頭像 發表于 12-09 15:59 ?1671次閱讀

    fireflyAIO-3399C主板電源適配器簡介

      注意:AIO-3399C一體機正常工作需要電源12V/2A,電流低于2A可能會因電流過小而異常重啟,為了保證開發板的正常工作,請使用電壓為12V,電流為2A~3A的電源,推薦使用Firefly官網電源配件。
    的頭像 發表于 12-09 16:11 ?1505次閱讀

    fireflyAIO-3399C主板屏幕模組介紹

    屏幕模組 7.85寸MIPI液晶屏模組 注意:默認的AIO-3399C主板不帶mipi_dsi接口,如需要此功能需修改硬件。 詳細請參考LCD驅動章節
    的頭像 發表于 12-09 16:08 ?1983次閱讀
    <b class='flag-5'>fireflyAIO-3399C</b><b class='flag-5'>主板</b>屏幕模組介紹

    fireflyAIO-3399C主板UART介紹

    AIO-3399C 支持SPI橋接/擴展4個增強功能串口(UART)的功能,分別為UART1,UART2,RS232,RS485。每個UART都擁有256字節的FIFO緩沖區,用于數據接收和發送。
    的頭像 發表于 12-09 16:12 ?1987次閱讀
    <b class='flag-5'>fireflyAIO-3399C</b><b class='flag-5'>主板</b>UART介紹

    fireflyAIO-3399C主板RTC介紹

    AIO-3399C開發板上有 一個集成于RK808上的RTC(Real Time Clock),主要功能有時鐘,日歷,鬧鐘,周期性中斷,雙通道32KHz時鐘輸出。
    的頭像 發表于 12-09 16:19 ?1654次閱讀
    <b class='flag-5'>fireflyAIO-3399C</b><b class='flag-5'>主板</b>RTC介紹

    fireflyAIO-3399C主板PWM介紹

    AIO-3399C開發板上引出有 3 路 PWM 輸出,
    的頭像 發表于 12-09 16:20 ?1602次閱讀

    fireflyAIO-3399C主板LED介紹

    LED 使用 AIO-3399C 開發板上有 2 個 LED 燈
    的頭像 發表于 12-09 16:25 ?1936次閱讀
    <b class='flag-5'>fireflyAIO-3399C</b><b class='flag-5'>主板</b>LED介紹

    fireflyAIO-3399C主板LCD簡介

    AIO-3399C開發板默認外置支持了兩個LCD屏接口,一個是LVDS,一個是EDP,接口對應板子上的位置
    的頭像 發表于 12-13 10:09 ?3463次閱讀
    <b class='flag-5'>fireflyAIO-3399C</b><b class='flag-5'>主板</b>LCD<b class='flag-5'>簡介</b>

    fireflyAIO-3399C主板IR簡介

    AIO-3399C 開發板上使用紅外收發傳感器 IR (耳機接口和recovery之間)實現遙控功能,在IR接口處接上紅外接收器。本文主要描述在開發板上如何配置紅外遙控器。
    的頭像 發表于 12-13 10:12 ?1649次閱讀
    <b class='flag-5'>fireflyAIO-3399C</b><b class='flag-5'>主板</b>IR<b class='flag-5'>簡介</b>

    fireflyAIO-3399C主板ADC介紹

    AIO-3399C 開發板上的 AD 接口有兩種,分別為:溫度傳感器 (Temperature Sensor)、逐次逼近ADC (Successive Approximation Register)。
    的頭像 發表于 12-13 10:14 ?1539次閱讀

    fireflyAIO-3399C編譯Industry固件簡介

    Android7.1 的SDK分為 tvbox版本以及industry版本(主要維護),用戶可根據需求,自行下載所需的SDK來進行編譯和開發,兩版SDK均兼容AIO-3399C與AIO-3399C(AI)板型。
    的頭像 發表于 12-13 10:36 ?1750次閱讀

    fireflyAIO-3128C主板ADB使用簡介

    adb,全稱 Android Debug Bridge,是 Android 的命令行調試工具,可以完成多種功能,如跟蹤系統日志,上傳下載文件,安裝應用等。
    的頭像 發表于 12-24 09:41 ?1170次閱讀
    主站蜘蛛池模板: 果冻传媒在线观看完整版免费 | 99E久热只有精品8在线直播 | 欧美一区二区视频97色伦 | 无限资源在线观看播放 | 欧美多人群p刺激交换电影 欧美多毛的大隂道 | 亚洲一区二区女搞男 | 人妻体内射精一区二区 | 春水福利app导航 | 日本AAA片爽快视频 日本aaaa | 爱情岛论坛网亚洲品质 | 粗壮挺进邻居人妻无码 | 老司机无码精品A | 亚洲人视频在线 | 精品国产在天天线在线麻豆 | 国内精品乱码卡一卡2卡三卡新区 | 亚洲日韩欧美国产专区 | 不分昼夜H1V3 | 性白俄罗斯高清xxxxx | 小小水蜜桃免费影院 | 久久久高清国产999尤物 | 国产人妻久久久精品麻豆 | 亚洲精品成人无码A片在线 亚洲精品成人久久久影院 亚洲精品成人a在线观看 | 免费精品国产人妻国语麻豆 | 国产成人精品系列在线观看 | 国产呦精品一区二区三区网站 | 国产欧美国产综合第一区 | 邻居的阿2中文字版电影 | 亚洲精品成人久久久影院 | 漂亮的保姆3集电影免费观看中文 | 偷窥欧美wc经典tv | 亚洲中文无码永久免费 | 精品综合久久久久久8888 | 欧美成人亚洲高清在线观看 | 2021久久99国产熟女人妻 | 久久久久伊人 | 善良的女房东味道2在线观看 | 国产精品久久久精品a级小说 | 我的美女房东未删减版免费观看 | 忘忧草下载 | 99久久精品久久久 | 九九热精品在线 |