Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
android sdcard cid
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