{"id":200802,"date":"2020-11-22T10:53:25","date_gmt":"2020-11-22T02:53:25","guid":{"rendered":"http:\/\/4563.org\/?p=200802"},"modified":"2020-11-22T10:53:25","modified_gmt":"2020-11-22T02:53:25","slug":"android-11-%e5%a6%82%e4%bd%95%e7%bb%99%e5%ba%94%e7%94%a8%e5%bc%80%e5%90%af-scoped-storage","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=200802","title":{"rendered":"Android 11 \u5982\u4f55\u7ed9\u5e94\u7528\u5f00\u542f Scoped storage"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Android 11 \u5982\u4f55\u7ed9\u5e94\u7528\u5f00\u542f Scoped storage               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fuxinya <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u53ef\u80fd\u662f\u5e94\u7528 target API \u4e0d\u9ad8\uff0c\u8001\u7684\u5e94\u7528\u7533\u8bf7\u5b58\u50a8\u6743\u9650\u540e\u4ecd\u7136\u53ef\u4ee5\u5728\u5b58\u50a8\u7a7a\u95f4\u6839\u76ee\u5f55\u4e71\u62c9\u5c4e\u3002\u6709\u6ca1\u6709\u5f3a\u5236\u5f00\u542f\u7684\u529e\u6cd5<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>18<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4300116\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : beginor <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0b\u8f7d\u4e2a\u201c\u5b58\u50a8\u91cd\u5b9a\u5411\u201d\u5427\uff0c \u8001\u5e94\u7528\u4e0d\u5347\u7ea7\u7684\u8bdd\u8c8c\u4f3c\u6ca1\u529e\u6cd5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300117\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : PlainTech <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63a8\u8350\u4f7f\u7528 \u201c\u5b58\u50a8\u7a7a\u95f4\u9694\u79bb\u201d \uff0chttps:\/\/sr.rikka.app                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300118\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : WebKit <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u624b\u673a\u81ea\u8eab\u6728\u6709\u529e\u6cd5\u3002\u8fd9\u4e5f\u662f\u4e3a\u4e86\u517c\u5bb9\u90a3\u4e9b\u8001\u7248\u672c\u5e94\u7528\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300119\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dingwen07 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5fc5\u987b\u8981\u76ee\u6807 API \u7248\u672c 30 \u624d\u4f1a\u5f3a\u5236\u542f\u7528\u5206\u533a\u5b58\u50a8\uff0c\u800c\u4e14\u5982\u679c app \u5728\u5b89\u5353 10 \u5b89\u88c5\u7684\u90a3\u4e5f\u53ef\u4ee5\u7533\u8bf7\u4fdd\u7559\u6743\u9650<br \/>\u597d\u50cf\u5373\u4f7f\u662f API \u7248\u672c 30 \u4e5f\u53ef\u4ee5\u53ef\u4ee5\u7533\u8bf7 MANAGE_EXTERNAL_STORAGE \u6765\u83b7\u53d6\u6587\u4ef6\u6743\u9650\uff0c\u4f46\u662f Google Play \u4e0d\u4f1a\u5141\u8bb8\u4e0d\u9700\u8981\u8fd9\u4e2a\u6743\u9650\u7684 app \u7533\u8bf7\u8fd9\u4e2a\u6743\u9650\uff0c\u4e5f\u5c31\u662f\u8bf4\u56fd\u4ea7 app \u8fd8\u662f\u53ef\u4ee5\u4f5c\u5996                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300120\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : beginor <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @PlainTech \u65b0\u7248\u672c\u53eb\u201c\u5b58\u50a8\u7a7a\u95f4\u9694\u79bb\u201d\uff0c\u65e7\u7248\u672c\u53eb\u201c\u5b58\u50a8\u91cd\u5b9a\u5411\u201d \u4e0d\u8fc7\u65b0\u7248\u672c\u4f9d\u8d56\u201cshizuku\u201d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300121\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fansangg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @beginor \u9700\u8981 root \u7684\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300122\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Cytion <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fansangg \u4f7f\u7528 Shizuku \u6a21\u5f0f\u7684\u8bdd\u9760 ADB \u5373\u53ef                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300123\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : beginor <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fansangg root \u6216\u8005 adb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300124\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : beginor <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53e6\u5916\u518d\u88c5\u4e00\u4e2a App Ops\uff0c \u4e5f\u662f\u5b58\u50a8\u7a7a\u95f4\u9694\u79bb\u7684\u4f5c\u8005\u5f00\u53d1\u7684\u5e94\u7528\uff0c \u53ef\u4ee5\u5e94\u5bf9\u56fd\u4ea7\u5e94\u7528\u4e71\u8981\u6743\u9650\u7684\u95ee\u9898\u3002 <\/p>\n<p>\u5f88\u591a\u56fd\u4ea7\u5e94\u7528\u4f7f\u7528 App Ops \u5ffd\u7565\u6743\u9650\u4e4b\u540e\u4f9d\u7136\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\uff0c \u7279\u522b\u662f\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300125\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : merpyzf <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b Google Play \u7684\u4e0a\u67b6\u653f\u7b56\uff0c\u76ee\u524d\u7684\u8981\u6c42\u7684 TargetApiVersion \u8fd8\u662f 29\uff0c\u7b49\u660e\u5e74\u5dee\u4e0d\u591a\u53ef\u4ee5\u5f3a\u5236\u8981\u6c42 30 \u3002\u4f46\u5373\u4fbf\u5230\u4e86 30 \u8c37\u6b4c\u8fd8\u662f\u4e3a\u90a3\u4e9b\u9700\u8981\u4f9d\u8d56\u6587\u4ef6\u5b58\u50a8\u7684\u4e00\u4e9b\u5e94\u7528\u7559\u4e86\u540e\u95e8\uff0c\u4f9d\u7136\u53ef\u4ee5\u7533\u8bf7\u8bbf\u95ee\u8bbf\u95ee\u6240\u6709\u672c\u5730\u5b58\u50a8\u7684\u6743\u9650\u3002\u4f46\u8c37\u6b4c\u4f1a\u53bb\u5ba1\u6838\u6240\u4e0a\u67b6\u7684\u5e94\u7528\u662f\u5426\u5fc5\u987b\u9700\u8981\u8be5\u6743\u9650\u3002\u6240\u4ee5\uff0c\u5c31\u7b49 Google \u4ec0\u4e48\u65f6\u5019\u5f3a\u5236\u5fc5\u987b 30 \u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300126\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gzxu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Android 10 \u4e0a\u5b9e\u6d4b\uff0c\u7528 appops \u5c06 READ_EXTERNAL_STORAGE \u548c WRITE_EXTERNAL_STORAGE \u8bbe\u4e3a deny\uff0c\u5e94\u7528\u5c31\u6ca1\u529e\u6cd5\u8bbf\u95ee \/sdcard \u4e86\u3002\u4e0d\u653e\u5fc3\u7684\u8bdd\u53ef\u4ee5\u7528 Termux \u6d4b\u8bd5\u4e00\u4e0b<\/p>\n<p>\u8fd9\u79cd\u60c5\u51b5\u4e0b\u5e94\u7528\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee \/sdcard \u4e0a\u7684\u79c1\u6709\u76ee\u5f55\uff0c\u6bd4\u8d77 Android 9 \u4e0b\u7684\u8868\u73b0\uff0c\u517c\u5bb9\u6027\u66f4\u597d                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300127\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : WebKit <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5373\u4f7f\u5f00\u542f\u4e86 scoped storage \u8fd8\u662f\u80fd\u901a\u8fc7 SAF \u8bf7\u6c42\u6574\u4e2a\u6587\u4ef6\u6743\u9650\u3002\u3002\u3002\u5bf9\u4e8e\u6bd2\u7624\u5e94\u7528\u6765\u8bf4\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300128\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : RikkaW <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u4ec0\u4e48\u8ba9\u4f60\u89c9\u5f97\uff0c\u4e00\u4e2a\u201c\u4e00\u952e\u5f0f\u7684\u80fd\u6539\u53d8\u4f7f\u7528\u5b58\u50a8\u7a7a\u95f4\u7684\u884c\u4e3a\uff0c\u53c8\u5b8c\u5168\u4e0d\u5f71\u6b63\u5e38\u529f\u80fd\u201d\u7684\u4e1c\u897f\u662f\u53ef\u80fd\u7684                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300129\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : heganyuliang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Cytion \u6ca1\u770b\u5230\u80fd\u7528 shizuku \u554a\uff1f\u6211\u5728 play store \u548c\u9177\u5b89\u4e0b\u7684\u8fd8\u662f\u5fc5\u987b\u8981 root                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300130\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : terrytw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @heganyuliang storage redirect \u5fc5\u987b root                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300131\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : skylancer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gzxu \u4f60\u63a8\u8350\u4e86 appops, \u5c31\u6ca1\u53d1\u73b0\u91cc\u9762 isolated_storage \u662f\u4e2a ops \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300132\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Osk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u9700\u8981\u8fd9\u529f\u80fd\uff0c\u8c22\u8c22\u3002<\/p>\n<p>\u56e0\u4e3a\u7cfb\u7edf\u81ea\u5e26\u7684\u5404\u8def\u7279\u6743 App \u9996\u5148\u5c31\u5e26\u5934\u5f80 \/sdcard \u6254\u5783\u573e\u3002<\/p>\n<p>\u5783\u573e\u7cfb\u7edf \/\u6ed1\u7a3d \/                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300133\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gzxu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @skylancer #16 \u90a3\u4e2a ops \u8bbe\u4e86\u6ca1\u7528\u3002\u4ee3\u7801\u91cc\u6709\u7279\u6b8a\u903b\u8f91                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Android 11 \u5982\u4f55\u7ed9\u5e94\u7528\u5f00&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/200802"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=200802"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/200802\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=200802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=200802"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=200802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}