int getAndroidDeviceID_SDID(char *deviceID,int size)//sd card id{ FILE *fp = fopen("/sys/block/mmcblk1/device/cid", "rb");//地址是可选项 if ( fp ) { fread(deviceID,1,size, fp); fclose( fp ); if (strlen(deviceID) != 0) { return 1; } } return 0;}
本文共 334 字,大约阅读时间需要 1 分钟。
int getAndroidDeviceID_SDID(char *deviceID,int size)//sd card id{ FILE *fp = fopen("/sys/block/mmcblk1/device/cid", "rb");//地址是可选项 if ( fp ) { fread(deviceID,1,size, fp); fclose( fp ); if (strlen(deviceID) != 0) { return 1; } } return 0;}
转载于:https://www.cnblogs.com/273809717/archive/2013/04/02/2995022.html