android adb shell中使用到的命令

來源:互聯網
上載者:User

標籤:

1,Shell 模式下掛載根目錄下的目錄為可讀可寫狀態,e.g /system/:

 mount -o remount rw /system/

這樣即可push檔案到相應目錄中。

2,Shell 模式下查看相應進程的PID,e.g packageName = com.android.phone

 [email protected]:/# ps|grep com.android.phone

可見com.android.phone進程的PID = 2466,其中命令中的grep為從結果中過濾指定字串

 3,Shell 模式下查看被某進程PID所訪問的檔案,其實就是查看/proc/<PID>/fd/下的檔案:e.g PID = 2466

[email protected]:/ # ls /proc/2466/fd -l|grep /dev/

可見被進程的PID = 2466 訪問的檔案位於/dev/目錄下有以上,實際不只這些,方便示範只截了小圖。

android adb shell中使用到的命令

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.