Get sdcard directory by adb
?
解決方案:?adb shell echo $EXTERNAL_STORAGE?
?
| I am making an application, which pulls files(Saved by android app) from the device sdcard by adb. The problem is that different devices, have various sdcard directories i.e:
Firstly I invented following solution: But the problem is that I have two samsung devices?GT-I9100?and?GT-I9000?and both have a directory?sdcard/external_sd. When I am checking?System.getenv("EXTERNAL_STORAGE")?one returns?sdcard?and another?sdcard/external_sd. I need to pull file which was previously saved toSystem.getenv("EXTERNAL_STORAGE"). ? ? ? EDIT: Found the solution: adb shell echo $EXTERNAL_STORAGE |
?
原文連接:http://stackoverflow.com/questions/9374628/get-sdcard-directory-by-adb?
轉載于:https://www.cnblogs.com/08shiyan/p/3468019.html
總結
以上是生活随笔為你收集整理的Get sdcard directory by adb的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【OSChina-MoPaaS应用开发大
- 下一篇: 如何进行防SQL注入?