android adb 讀寫入模式 掛載檔案系統

來源:互聯網
上載者:User

標籤:

如下讀寫方式掛載/system/app/目錄: >adb shell shell @android :/ $   su su shell @android :/ #   mount -o rw,remount yassf2 /system/  shell @android :/ #   chmod 777 /system/app/
通常push到手機記憶體裡的檔案還需要設定讀r寫w執行x屬性: chmod 644 xxxxxx
常用adb命令: adb 預設不支援中文字元,需要重新源碼編譯,見另一日誌: http://www.qylk.blog.163.com/blog/static/134687356201307177822/ 卸載:uninstall [-k] [package] k表示保留設定檔 安裝:install -r [package] 上傳:adb  push  text.txt   /sdcard/txt.txt 下載:adb  pull   /data/app/com.qylk.express-2.apk 顯示執行中的進程及CPU使用方式 top   顯示記憶體使用量情況 free 更改一個或多個檔案或目錄的屬主和屬組chown  啟動Activity:  am start -n 包名/類名 如am start -n cn.qylk/.Logo 相機   am start -n com.android.camera/com.android.camera.Camera 瀏覽器 am start -n com.android.browser/com.android.browser.BrowserActivity 定位   am start -a android.intent.action.VIEW geo:0,0?q=beijing 啟動網頁 am start -a android.intent.action.VIEW -d http://www.aizheke.com 打電話 am start -a android.intent.action.CALL -d tel:88888888 啟動Service am startservice -n cn.qylk/.service.LocalService 查看LOG資訊  logcat -s [標籤名]【記錄到檔案:-f [filename]】 查看裝置 adb devices 進入shell adb -s emulator-5554 shell 裝置序號 adb get-serialno 捷徑 ln -s <target> <name> 重啟 reboot [-n] [-p] [rebootcommand]  -n: 在重開機前不做將記憶體資料寫回硬碟的動作。 adb reboot 重新啟動 adb reboot recovery 重新啟動到recovery adb reboot bootloader 重新啟動到bootloader  掛載system adb remount 負載檔案系統 mount -a [-r] [-t type] [-o options] [-rw] device dir。  -t type:顯示被負載檔案系統的類型。  -n:一般而言,mount掛上後會在/etc/mtab中寫入一筆資料,在系統中沒有可寫入檔案系統的情況下,可以用這個選項取消這個動作。    如:mount -o remount,rw /dev/block/mtdblock3 /system 熱門檔案命令: rm、cp、mkdir、mv、chmod、grep(文本搜尋)、find、 殺進程: kill 比較檔案 diff(顯示詳細不同點)、cmp(顯示結論) 檢查檔案系統的磁碟佔用 df 顯示檔案內容  cat [name]

android adb 讀寫入模式 掛載檔案系統

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.