Android4.2 存储出错

来源:互联网 发布:linux 两台机器传文件 编辑:程序博客网 时间:2024/05/01 16:43
diff --git a/system/vold/G3Dev.cpp b/system/vold/G3Dev.cpp
 2 index 6a7fb87..568a93b 100755
 3 --- a/system/vold/G3Dev.cpp
 4 +++ b/system/vold/G3Dev.cpp
 5 @@ -58,6 +58,8 @@ G3Dev::~G3Dev() {
 6
 7  int G3Dev::handleUsbEvent(NetlinkEvent *evt) {
 8   const char *devtype = evt->findParam("DEVTYPE");
 9 +   if(devtype==NULL)
10 +       return 0;
11      if( strcmp(devtype, "usb_device") )
12          return 0;
13     pid_t status ;