Re: how to get SDCARD serial number

2009-07-30 Thread wang yitu

Thanks tamerlan311. You approach is right. I got it.

On 7月24日, 下午4时37分, tamerlan311 tamerlan...@gmail.com wrote:
 adb shell cat /sys/class/mmc_host/mmc1/mmc1:/cid

 Where  is some uniqnumber.

 On Jul 23, 4:53 pm, wang yitu lit...@gmail.com wrote:

  Can someone tell me how to get theSDCARDserailnumberin android?
  very appreciating for the answer.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: how to get SDCARD serial number

2009-07-24 Thread tamerlan311

adb shell cat /sys/class/mmc_host/mmc1/mmc1:/cid

Where  is some uniq number.

On Jul 23, 4:53 pm, wang yitu lit...@gmail.com wrote:
 Can someone tell me how to get the SDCARD serail number in android?
 very appreciating for the answer.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: how to get SDCARD serial number

2009-07-23 Thread Mike Lockwood

Actually we have support for that in android.  See getFatVolumeId() in
android.os.FileUtils.

This requires the following kernel patch in order to work:

http://android.git.kernel.org/?p=kernel/common.git;a=commitdiff;h=0cb89e58ee83afb87f57d054c787489602e4502a

Mike

On Thu, Jul 23, 2009 at 9:05 AM, Jean-Baptiste Queruj...@android.com wrote:

 I don't remember seeing an API for that, you'll need to contribute one.

 JBQ

 On Thu, Jul 23, 2009 at 5:53 AM, wang yitulit...@gmail.com wrote:

 Can someone tell me how to get the SDCARD serail number in android?
 very appreciating for the answer.

 




 --
 Jean-Baptiste M. JBQ Queru
 Software Engineer, Android Open-Source Project, Google.

 Questions sent directly to me that have no reason for being private
 will likely get ignored or forwarded to a public forum with no further
 warning.

 




-- 
Mike Lockwood
Google android team

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---