Android Device Monitor 檔案管理使用的常見問題

來源:互聯網
上載者:User

標籤:.com   輸入   com   over   mon   shell   rmi   變數   out   

 本文參照部落格:http://blog.csdn.net/aurorayqz/article/details/65705300。以下是我的實際操作。

 

1、使用Android Device Monitor 查看File Explorer目錄下的data檔案夾,結果裡面一片空白。這個問題是由於data檔案夾的Linux許可權不對導致的。

解決方式:運行-》 cmd-》 輸入:adb shell -》輸入:su -》輸入:chmod 777 /data ->輸入:chmod 777 /data/data      以此類推給相關檔案或檔案夾賦上許可權,如:

  

運行上述操作有個前提:在系統內容變數path裡,你已經配置上了如下環境變數:

 

更多關於Android許可權檔案標識請參閱:http://blog.csdn.net/u012719153/article/details/44776707

 

 

2、程式通過代碼openFileOutput在files檔案夾下產生了檔案,如下:

  

 

  使用Android Device Monitor的匯出功能匯出檔案時,報錯:Failed to pull selection: open failed: Permission denied。即使我給files檔案夾和data檔案賦上最大許可權,任然無法匯出。

 

  明明我通過命令已經把檔案賦值上最大的操作許可權,可是系統還是提示沒有許可權。網上有說使用adb pull命令可以,可是嘗試了任然不行,如下:

     

 

 

  解決方式:我是在不root的情況下,把需要匯出的檔案使用命令複製到sdcard目錄下,然後在模擬器中安裝“x-plore”檔案管理工具,用管理器查看sdcard目錄下剛才複製的檔案。

  

  本問題的解決方案參照了:http://stackoverflow.com/questions/31502252/android-device-manager-transfer-error-permission-denied

 

Android Device Monitor 檔案管理使用的常見問題

聯繫我們

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