{"id":46,"date":"2015-06-18T10:09:38","date_gmt":"2015-06-18T10:09:38","guid":{"rendered":"https:\/\/boochlin.com\/?p=46"},"modified":"2016-07-13T14:35:13","modified_gmt":"2016-07-13T14:35:13","slug":"android-cts-fail-cant-remove-external-folder","status":"publish","type":"post","link":"https:\/\/boochlin.com\/?p=46","title":{"rendered":"Android CTS Fail &#8211; cant remove external folder"},"content":{"rendered":"<p><span style=\"color: #0000ff;\">Compatibility Test Suite<\/span><br \/>\n\u9019\u6771\u897f\u670917000\u689d\u6e2c\u8a66\uff0c\u4f46\u662f\u6211\u4e0d\u662f\u5c08\u9580\u8ca0\u8caccts \u6e2c\u8a66\u7684\u4ec1\u5144<br \/>\n\u8a73\u7d30\u5c31\u4e0d\u591a\u8ac7\u4e86\uff0c\u53cd\u6b63\u5c31\u662f\u51fa\u4e8b\u4e86\uff0c\u8981\u4f86\u89e3<\/p>\n<p><!--more-->\u7a81\u7136<br \/>\n\u67d0\u4e00\u5929<br \/>\n\u5c45\u7136\u88ab\u50b3\u63db\u4e86\uff0c\u8868\u793aexternal folder \u4e00\u76f4\u88ab\u4f54\u7528\uff0c\u5c0e\u81f4cts\u6e2c\u8a66\u5931\u6557<\/p>\n<p>\u7576\u7136\u7a81\u7136\u88ab\u50b3\u559a\u7684\u4eba\uff0c\u7b2c\u4e00\u53e5\u8a71\u901a\u5e38\u5c31\u662f\uff0c\u300e\u9019\u4e0d\u95dc\u6211\u7684\u4e8b\u60c5\u300f<br \/>\n\u4f46\u662f\u6848\u5b50\u9084\u662f\u8981\u7e7c\u7e8c\u7834\uff0c\u72af\u4eba\u9084\u662f\u8981\u627e<\/p>\n<p>\u4f46 cts team \u540c\u4ec1\uff0c\u4e5f\u7121\u6cd5\u5b9a\u6848\uff0c\u5230\u5e95\u662f\u8ab0\u5462\uff1f<\/p>\n<p>\u6b64\u6642\uff0cap team \u4e00\u540d\u5927\u5e2b\u8d70\u4e86\u904e\u4f86<\/p>\n<p><span style=\"color: #ff0000;\">\u300eadb shell lsof |grep Android\u300f<\/span><\/p>\n<p>trace the which data current access the file.<\/p>\n<p>\u5927\u5e2b\u8aaalsof \u53ef\u662fdebug \u4e4b\u795e\u6b66\uff0c\u5c45\u7136\u4e0d\u77e5\u9053<\/p>\n<p><del>\u6240\u4ee5\u8d95\u5feb\u5beb\u8d77\u4f86<\/del><\/p>\n<p>\u597d\u4e86\uff0c\u6848\u5b50\u7834\u4e86\uff0c\u72af\u4eba\u771f\u7684launcher\u7684disk cache<\/p>\n<p>\u4f46\u554f\u984c\u771f\u7684\u767d\u75f4\uff0cdisk cache \u7576\u7136\u4e00\u5b9a\u4e00\u76f4\u958b\u8005<br \/>\n\u800c\u4e14\u901a\u5e38\u60c5\u6cc1\u4e0b\uff0ccache\u653e\u5728\u5916\u90e8\u8cc7\u6599\u593e\u6839\u672c\u662f\u5e38\u7406<\/p>\n<p>\u7136\u5f8ccts\u8981\u6a94\u9019\u500b\uff0c\u55da\u547c\u54c0\u54c9<\/p>\n<p>\u6700\u5f8c\u53ea\u597d\u96a8\u4fbf\u627e\u500b\u5730\u65b9\u653e\u4e86\uff0c\u53ea\u8981\u4e0d\u662f\u5728 external folder<br \/>\n\u5c24\u5176\u662fpreload app , \u9019\u9b3c\u6771\u897f\u4e5f\u662f5.1\u624d\u6709\u7684\u6e2c\u9805<\/p>\n<p>\u8a8d\u771f\u8981\u7814\u7a76lsof \u7684\u8a71 \u9084\u662f\u770b\u5225\u4eba\u8cc7\u6599\u6bd4\u8f03\u597d\u5594<br \/>\n<a title=\"lsof \u5b8c\u6574\" href=\"http:\/\/jashliao.pixnet.net\/blog\/post\/163589216-%E6%AF%8F%E5%A4%A9%E4%B8%80%E5%80%8Blinux%E6%8C%87%E4%BB%A4--lsof%E6%8C%87%E4%BB%A4(%E5%88%97%E5%87%BA%E7%95%B6%E5%89%8D%E7%B3%BB%E7%B5%B1%E6%89%93%E9%96%8B\" target=\"_blank\">http:\/\/jashliao.pixnet.net\/blog\/post\/163589216-%E6%AF%8F%E5%A4%A9%E4%B8%80%E5%80%8Blinux%E6%8C%87%E4%BB%A4&#8211;lsof%E6%8C%87%E4%BB%A4(%E5%88%97%E5%87%BA%E7%95%B6%E5%89%8D%E7%B3%BB%E7%B5%B1%E6%89%93%E9%96%8B<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Compatibility Test Suite \u9019\u6771\u897f\u670917000\u689d\u6e2c\u8a66\uff0c\u4f46\u662f\u6211\u4e0d\u662f\u5c08\u9580\u8ca0\u8caccts \u6e2c\u8a66\u7684\u4ec1\u5144 \u8a73\u7d30\u5c31\u4e0d\u591a\u8ac7\u4e86\uff0c\u53cd\u6b63\u5c31\u662f\u51fa\u4e8b\u4e86\uff0c\u8981\u4f86\u89e3<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[6,8,9],"_links":{"self":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts\/46"}],"collection":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":1,"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":48,"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/48"}],"wp:attachment":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}