How to read the SD Card ID number?

后端 未结 12 2244
[愿得一人]
[愿得一人] 2020-12-05 08:15

How can I programatically read the SD Card\'s CID register, which contains a Serial Number and other information? Can I do it through Android Java, or Native code?

12条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 08:51

    The only code I've found thus far to provide the id is C++ or C# http://jo0ls-dotnet-stuff.blogspot.com/2008/12/read-secure-digital-sd-card-serial.html
    http://jo0ls-dotnet-stuff.blogspot.com/2008/12/read-cid-and-csd-c-implementation.html
    If you are a C++ developer you may be able to take this and make it work on Android.

提交回复
热议问题