Created
September 26, 2017 11:44
-
-
Save alepez/1b22543a4a4dbc643dd93dc1e04fd66f to your computer and use it in GitHub Desktop.
android sdcard cid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
BufferedReader input = new BufferedReader(new FileReader("/sys/block/mmcblk1/device/cid")); | |
String sd_cid = input.readLine(); | |
Log.i(TAG, "cid:"); | |
Log.i(TAG, sd_cid); | |
} catch (Exception e) { | |
Log.e(TAG, "Can not read SD-card cid"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment