开发者

Find the location of android device's Environment.getExternalStorageDirectory using ADB?

开发者 https://www.devze.com 2023-03-16 16:05 出处:网络
Is there a way using ADB to know the location of what a specific plugged in device will return for Environment.getExternalStorageDirectory ?

Is there a way using ADB to know the location of what a specific plugged in device will return for Environment.getExternalStorageDirectory ?

I would like to push a file there and then read this file from the activity running on the device. I think this path can vary based o开发者_如何转开发n device, and I will have to run this on numerous different android devices.

Thanks!


For now you could probably get away with just using "/sdcard" in case you don't find a better solution. It's defined pretty static in the Android source.


is 'adb shell "echo $EXTERNAL_STORAGE"' what you have been looking for?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号