{"id":88,"date":"2026-12-06T10:53:44","date_gmt":"2026-12-06T02:53:44","guid":{"rendered":"https:\/\/wp.xybcm.cn\/?p=88"},"modified":"2026-12-06T11:37:57","modified_gmt":"2026-12-06T03:37:57","slug":"xiaomi-temporary-android-debugging","status":"publish","type":"post","link":"https:\/\/wp.xybcm.cn\/?p=88","title":{"rendered":"\u5c0f\u7c73\u624b\u673a\u4e34\u65f6\u8c03\u8bd5\u6743\u9650\u6307\u5357\uff5cADB\u3001Shizuku \u4e0e Root \u7684\u8fb9\u754c"},"content":{"rendered":"<p>\u76f8\u5173\u5b98\u65b9\u6587\u6863\uff1a<a href=\"https:\/\/developer.android.com\/tools\/adb\" rel=\"nofollow\">Android ADB<\/a>\u3001<a href=\"https:\/\/shizuku.rikka.app\/guide\/setup\/\" rel=\"nofollow\">Shizuku \u542f\u52a8\u6307\u5357<\/a>\u3002\u6392\u67e5\u5c0f\u7c73\u624b\u673a\u4e0a\u7684\u95ee\u9898\uff0c\u6700\u5bb9\u6613\u505a\u9519\u7684\u4e00\u6b65\u662f\u300c\u8eab\u4efd\u5224\u65ad\u9519\u4e86\u8fd8\u7ee7\u7eed\u5f80\u4e0b\u505a\u300d\u3002\u5e94\u7528\u65e5\u5fd7\u3001\u7cfb\u7edf\u670d\u52a1\u72b6\u6001\uff0cshell(2000) \u5c31\u591f\uff1b\u8bfb\u5199\u522b\u5bb6 App \u7684\u79c1\u6709\u76ee\u5f55\u3001\u6539\u7cfb\u7edf\u5206\u533a\u3001\u52a8 USB gadget\uff0c\u624d\u5fc5\u987b UID 0\u3002\u8fd9\u4e09\u6761\u4e0d\u662f\u9012\u8fdb\u5173\u7cfb\uff0c\u800c\u662f\u4e92\u4e0d\u8986\u76d6\u7684\u4e09\u6761\u8def\uff0c\u80fd\u529b\u8fb9\u754c\u5168\u7531 SELinux \u4e0e\u5206\u533a\u6302\u8f7d\u65b9\u5f0f\u5199\u6b7b\uff0c\u4e0d\u662f\u300c\u8bbe\u7f6e\u91cc\u67d0\u4e2a\u5f00\u5173\u300d\u80fd\u6539\u7684\u3002<\/p>\n<p>\u9002\u7528\u57fa\u7ebf\uff1a\u5c0f\u7c73 15\uff08<code>24129PN74C<\/code>\uff0c\u4ea7\u54c1\u4ee3\u53f7 <code>dada<\/code>\uff09\u3002\u5176\u4ed6\u6784\u5efa\u8bf7\u5148\u6838\u5bf9\u7cfb\u7edf\u7248\u672c\u3001\u5185\u6838\u3001\u5b89\u5168\u8865\u4e01\u4e0e\u542f\u52a8\u94fe\u72b6\u6001\uff0c\u518d\u5957\u7528\u672c\u6587\u7ed3\u8bba\u3002<\/p>\n<h2>\u4e00\u3001\u5148\u5b58\u57fa\u7ebf\uff0c\u5426\u5219\u540e\u9762\u6bcf\u4e00\u6b65\u5224\u65ad\u90fd\u4f1a\u9519<\/h2>\n<p>\u7cfb\u7edf\u5347\u7ea7\u4f1a\u9759\u9ed8\u6539\u6389\u8c03\u8bd5\u76f8\u5173\u7684\u4e00\u5207\uff1a\u5b89\u5168\u8865\u4e01\u3001\u5185\u6838\u3001\u6784\u5efa\u7c7b\u578b\uff0c\u751a\u81f3\u300c\u4e34\u65f6 root \u8fd8\u5728\u4e0d\u5728\u300d\u3002\u52a8\u624b\u524d\u5148\u5b58\u4e00\u4efd\uff0c\u4e4b\u540e\u6240\u6709\u300c\u548c\u4e0a\u6b21\u4e0d\u4e00\u6837\u300d\u90fd\u9760\u5b83\u5bf9\u7167\u3002<\/p>\n<pre><code>adb devices -l\nadb shell getprop ro.product.model\nadb shell getprop ro.build.display.id\nadb shell getprop ro.build.version.release\nadb shell getprop ro.build.version.security_patch\nadb shell getprop ro.build.type\nadb shell uname -a<\/code><\/pre>\n<p>\u5b9e\u6d4b\u503c\uff08HyperOS <code>4.0.4.0.XOCCNXM<\/code>\uff09\u3001\u7f16\u8bd1\u53f7 <code>CP2A.260605.016<\/code>\u3001Android 17\uff08SDK 37\uff09\u3001<strong>user \u6784\u5efa<\/strong>\u3001\u5b89\u5168\u8865\u4e01 <code>2026-10-01<\/code>\u3001\u5185\u6838 <code>6.6.118-android15-8-gf72a02f47f4b-abogki551678766-4k<\/code>\uff08KMI <code>6.6-android15-8<\/code>\uff09\u3002<strong>\u8fd9\u4e9b\u503c\u4f1a\u968f OTA \u53d8\u5316\uff0c\u6bcf\u6b21\u6392\u67e5\u90fd\u91cd\u65b0\u53d6\u4e00\u904d\uff0c\u4e0d\u8981\u6cbf\u7528\u4ee5\u524d\u7684\u8f93\u51fa<\/strong>\u2014\u2014\u5185\u6838\u7248\u672c\u3001\u5b89\u5168\u8865\u4e01\u7ea7\u522b\u3001\u6784\u5efa\u53f7\u7684\u4efb\u610f\u4e00\u9879\u4e0d\u540c\uff0c\u90fd\u53ef\u80fd\u8ba9\u300c\u80fd\u4e0d\u80fd\u63d0\u6743\u300d\u7684\u7ed3\u8bba\u5b8c\u5168\u53cd\u8fc7\u6765\u3002<\/p>\n<p>\u5b8c\u6574\u6027\u59ff\u6001\u4e5f\u4e00\u5e76\u8bb0\u4e0b\uff1a<code>ro.boot.flash.locked=1<\/code>\u3001<code>ro.boot.verifiedbootstate=green<\/code>\u3001<code>ro.secureboot.lockstate=locked<\/code> \u21d2 <strong>bootloader \u59cb\u7ec8\u9501\u5b9a<\/strong>\uff0cOS4 \u5347\u7ea7\u5e76\u6ca1\u6709\u6539\u52a8\u8fd9\u4e09\u9879\u3002<\/p>\n<h3>\u4e3a\u4ec0\u4e48\u300cuser \u6784\u5efa\u300d\u8fd9\u4e00\u884c\u7279\u522b\u91cd\u8981<\/h3>\n<p><code>ro.adb.secure=1<\/code> \u53ea\u5728 <strong>user \u53d8\u4f53<\/strong>\u91cc\u8bbe\u7f6e\uff0c<code>userdebug<\/code>\/<code>eng<\/code> \u4e0d\u8bbe\u3002\u540c\u4e00\u4e2a\u300c\u6253\u5f00 USB \u8c03\u8bd5\u300d\u7684\u64cd\u4f5c\uff0c\u5728\u91cf\u4ea7\u673a\u4e0a adbd \u4f1a\u5f3a\u5236 RSA 2048 \u6311\u6218\u5e94\u7b54\uff0c\u800c\u5728\u5237\u8fc7 userdebug ROM \u7684\u673a\u5668\u4e0a adbd \u6839\u672c\u4e0d\u505a\u8ba4\u8bc1\u3002\u540e\u8005\u4e00\u65e6\u5f00 5555 \u7aef\u53e3\u63a5\u5230\u5c40\u57df\u7f51\uff0c\u7b49\u4e8e\u628a root shell \u6302\u5230\u7f51\u4e0a\u3002<strong>\u62ff\u5230\u4efb\u4f55\u4e00\u53f0\u673a\u5668\uff0c\u7b2c\u4e00\u4ef6\u4e8b\u90fd\u8be5\u662f <code>adb shell getprop ro.adb.secure<\/code><\/strong>\u3002<\/p>\n<h3>\u5206\u533a\u5f62\u6001\uff1a\u53ea\u8bfb\u662f\u5206\u4e24\u5c42\u9501\u7684<\/h3>\n<p>\u7cfb\u7edf\u5206\u533a\u5168\u90e8\u662f <strong>erofs + dm-verity\uff0c\u53ea\u8bfb<\/strong>\uff1a<code>\/<\/code>\u3001<code>\/system_ext<\/code>\u3001<code>\/product<\/code>\u3001<code>\/vendor<\/code>\u3001<code>\/odm<\/code>\u3001<code>\/vendor_dlkm<\/code>\u3001<code>\/system_dlkm<\/code>\u3001<code>\/mi_ext<\/code>\u3002<code>\/system\/media<\/code> \u662f\u7b26\u53f7\u94fe\u63a5\u6307\u5411 <code>\/product\/media<\/code>\uff08\u540c\u4e00\u4e2a erofs \u6302\u8f7d\uff09\uff0c\u4e0d\u662f\u72ec\u7acb\u5206\u533a\u3002\u53ef\u5199\u7684\u53ea\u6709 <code>\/data<\/code>\uff08f2fs rw\uff09\u3001<code>\/metadata<\/code>\uff08rw\uff09\u3001<code>\/mnt\/vendor\/persist<\/code>\uff08ext4 rw\uff09\u3002<\/p>\n<p>\u5728 <code>dada<\/code> \u6784\u5efa\u7684 <code>\/dev\/block\/by-name<\/code> \u4e2d\u6ca1\u6709\u72ec\u7acb\u7684 <code>logo<\/code> \/ <code>splash<\/code> \u5206\u533a\u3002\u26a0\ufe0f \u4f46<strong>\u4ec5\u51ed\u7f3a\u5c11\u5206\u533a\u540d\u4e0d\u80fd\u65ad\u5b9a\u7b2c\u4e00\u5c4f\u7531\u8c01\u63d0\u4f9b<\/strong>\uff0c<code>xbl<\/code> \/ <code>uefi<\/code> \/ <code>abl<\/code> \u4e09\u8005\u4e2d\u5177\u4f53\u662f\u54ea\u4e00\u4e2a\uff0c\u9700\u8981\u770b\u5382\u5546\u56fa\u4ef6\uff0c\u4e0d\u80fd\u4ece\u5206\u533a\u8868\u63a8\u51fa\u6765\u3002<\/p>\n<p>\u26a0\ufe0f \u8fd9\u91cc\u6709\u4e2a\u975e\u5e38\u5bb9\u6613\u8e29\u7684\u5224\u8bfb\u9677\u9631\uff1a<code>blockdev --getro<\/code> \u5bf9 super\u3001boot_a\u3001init_boot_a\u3001vendor_boot_a\u3001uefi_a\u3001imagefv_a\u3001misc <strong>\u5168\u90fd\u8fd4\u56de 0<\/strong>\uff08\u5757\u8bbe\u5907\u672c\u8eab\u53ef\u5199\uff09\u3002\u5982\u679c\u636e\u6b64\u8ba4\u4e3a\u300c\u7cfb\u7edf\u53ef\u5199\u300d\uff0c\u63a5\u7740\u53bb\u786c\u5199 super\uff0c\u5c31\u4f1a\u7834 verity \u21d2 \u76f4\u63a5\u4e0d\u5f00\u673a\u3002\u771f\u6b63\u7684\u9501\u5728\u4e0a\u5c42\uff1a<\/p>\n<pre><code># \u5b9e\u6d4b\u7684\u53ea\u8bfb\u8bc1\u636e\nmount -o remount,rw \/          # '\/dev\/block\/dm-10' is read-only\ntouch \/system\/media\/_probe     # rc=1\ncat \/sys\/block\/dm-10\/dm\/name   # system-verity\ncat \/sys\/block\/dm-11\/dm\/name   # system_ext-verity\ncat \/sys\/block\/dm-14\/dm\/name   # vendor-verity<\/code><\/pre>\n<h2>\u4e8c\u3001USB ADB\uff1ashell(2000) \u7684\u5b9e\u9645\u80fd\u529b\u9762<\/h2>\n<p>\u88c5 Android SDK Platform-Tools\uff0c\u5728\u300c\u5173\u4e8e\u624b\u673a\u300d\u8fde\u70b9\u7248\u672c\u53f7\u5f00\u5f00\u53d1\u8005\u9009\u9879\uff0c\u518d\u6253\u5f00 USB \u8c03\u8bd5\u3002\u63d2\u7ebf\u540e\u89e3\u9501\u5c4f\u5e55\uff0c\u6838\u5bf9\u6388\u6743\u5f39\u7a97\u3002<\/p>\n<pre><code>adb devices -l        # \u671f\u671b device\uff1bunauthorized \u5c31\u56de\u624b\u673a\u70b9\u5141\u8bb8\nadb shell id          # \u91cf\u4ea7\u673a\u901a\u5e38\u662f uid=2000(shell)\nadb shell dumpsys battery\nadb shell dumpsys notification<\/code><\/pre>\n<p>shell \u7684\u989d\u5916\u7ec4\u503c\u5f97\u5355\u72ec\u8bb0\u4e00\u4e0b\uff082026-11-27 \u5e72\u51c0\u6001\u5b9e\u6d4b\uff09\uff1a<code>3009(readproc)<\/code>\u3001<code>3011(uhid)<\/code>\u3001<code>3012(readtracefs)<\/code>\u3002\u4e5f\u5c31\u662f\u8bf4\u8bfb\u522b\u7684\u8fdb\u7a0b <code>\/proc\/&lt;pid&gt;<\/code> \u548c\u8fdb tracefs \u7684\u5927\u95e8\u662f\u5f00\u7740\u7684\uff0c<code>\/sys\/kernel\/tracing\/kprobe_events<\/code> \u6743\u9650\u662f <code>rwxrwxrwx<\/code> \u4e14\u5c5e\u7ec4 <code>readtracefs<\/code>\u3002<\/p>\n<p>\u4f46\u786c\u8fb9\u754c\u540c\u6837\u660e\u786e\uff0c\u8fd9\u4e9b\u4e0d\u662f\u914d\u7f6e\u95ee\u9898\uff1a<\/p>\n<ul>\n<li><code>\/proc\/kallsyms<\/code>\u3001<code>\/proc\/sys\/kernel\/kptr_restrict<\/code>\u3001<code>\/data\/adb<\/code> \u4e00\u5f8b EACCES\uff1b<\/li>\n<li><code>dmesg<\/code> \/ klogctl \u8fd4\u56de EPERM\uff1b<code>\/data\/misc\/audit<\/code> \u5e72\u8106\u4e0d\u5b58\u5728\uff1b<\/li>\n<li><code>\/proc\/slabinfo<\/code> Permission denied\uff1b<code>\/proc\/iomem<\/code> \u662f 0400\u3002<\/li>\n<\/ul>\n<p>\u21d2 <strong>\u63d0\u6743\u75d5\u8ff9\u6ca1\u6cd5\u81ea\u8bc1<\/strong>\u3002\u60f3\u9760\u65e5\u5fd7\u8bc1\u660e\u300c\u6211\u521a\u624d\u771f\u62ff\u5230 root \u4e86\u300d\u662f\u505a\u4e0d\u5230\u7684\uff0c\u53ea\u80fd\u9760 kprobe \u8fd9\u7c7b\u95f4\u63a5\u5224\u636e\u3002<\/p>\n<p>\u8981\u770b\u81ea\u5df1 App \u7684\u6570\u636e\uff0c\u8d70 <code>adb shell run-as com.example.demo id<\/code>\uff08\u5305\u540d\u6362\u6210\u81ea\u5df1\u7684\uff09\uff0c\u5b83\u4f1a\u5207\u5230\u8be5\u5e94\u7528 uid\uff0c\u6bd4\u60f3\u529e\u6cd5\u63d0\u6743\u5e72\u51c0\u5f97\u591a\u3002<\/p>\n<p>\u5de5\u5177\u94fe\u4e0a\u8e29\u8fc7\u4e00\u6b21\uff1a<code>apt install adb<\/code> \u88c5\u7684\u662f <strong>29.0.6<\/strong>\uff0c<strong>\u4e0d\u652f\u6301 <code>adb pair<\/code><\/strong>\uff08\u65e0\u7ebf\u8c03\u8bd5\u914d\u5bf9\u9700 platform-tools \u2265 30\uff09\uff0c\u800c\u4e14\u8981\u5199 <code>\/usr\/bin<\/code> \u5f97\u89e3\u9501 dpkg\u3002\u6b63\u89e3\u662f\u76f4\u63a5\u89e3\u538b\u5b98\u65b9 platform-tools\uff08\u672c\u6587\u7528\u7684\u662f <strong>37.0.1<\/strong>\uff09\uff0c\u5e76\u7531\u5305\u88c5\u811a\u672c\u56fa\u5b9a <code>HOME<\/code> \u4e0e <code>ANDROID_USER_HOME<\/code>\u2014\u2014\u5426\u5219\u5728\u67d0\u4e9b\u53d7\u9650\u73af\u5883\u91cc <code>~\/.android<\/code> \u4e0d\u53ef\u5199\u4f1a\u8ba9 adb \u76f4\u63a5 SIGABRT\u3002<\/p>\n<h2>\u4e09\u3001Shizuku\uff1a\u4e0d\u7528\u8fde\u7ebf\u62ff\u5230\u5e38\u4f4f shell\uff0c\u4f46\u5929\u82b1\u677f\u5f88\u660e\u786e<\/h2>\n<p>Android 11 \u8d77\u652f\u6301\u65e0\u7ebf\u8c03\u8bd5\u914d\u5bf9\uff0cShizuku \u5c31\u80fd\u81ea\u5df1\u6491\u8d77\u4e00\u4e2a shell \u6743\u9650\u7684\u670d\u52a1\u3002\u5305\u540d <code>moe.shizuku.privileged.api<\/code>\uff0c\u8fd0\u884c\u8eab\u4efd <strong>shell uid 2000<\/strong>\u3002<\/p>\n<p>\u6d41\u7a0b\uff1a\u624b\u673a\u4e0e\u7535\u8111\u5728\u540c\u4e00\u53ef\u4fe1 Wi-Fi \u2192 \u5f00\u53d1\u8005\u9009\u9879\u6253\u5f00\u300c\u65e0\u7ebf\u8c03\u8bd5\u300d\u2192 Shizuku \u91cc\u9009\u300c\u901a\u8fc7\u65e0\u7ebf\u8c03\u8bd5\u542f\u52a8\u300d\u2192 \u6309\u63d0\u793a\u8fdb\u7cfb\u7edf\u300c\u4f7f\u7528\u914d\u5bf9\u7801\u914d\u5bf9\u8bbe\u5907\u300d\u62ff\u914d\u5bf9\u7801 \u2192 \u56de Shizuku \u7c98\u8d34\u542f\u52a8\u3002<\/p>\n<h3>\u5b83\u4e0d\u80fd\u91cd\u542f adbd\uff0c\u800c\u4e14\u8fd9\u662f\u6e90\u7801\u7ea7\u5835\u6b7b\u7684<\/h3>\n<p>\u5b9e\u6d4b\u5728 Shizuku \u91cc\u6267\u884c <code>stop adbd; start adbd<\/code> \u6216 <code>setprop ctl.restart adbd<\/code> \u5fc5\u88ab\u62d2\u3002\u6839\u56e0\u4e0d\u5728\u5c0f\u7c73\uff0c\u5728 AOSP\uff1a<code>system\/core\/init\/property_service.cpp<\/code> \u7684 <code>CheckControlPropertyPerms<\/code> \u2192 <code>CheckMacPerms<\/code> \u662f<strong>\u7eaf SELinux MAC \u5224\u5b9a\uff0c\u6ca1\u6709 uid \u767d\u540d\u5355<\/strong>\uff1b\u800c <code>system_sepolicy\/private\/shell.te<\/code> \u91cc shell \u53ea\u88ab\u6388\u4e88 <code>set_prop<\/code> \u5230 <code>ctl_bugreport<\/code> \/ <code>ctl_dumpstate<\/code> \/ <code>ctl_gsid<\/code> \/ <code>ctl_snapuserd<\/code> \/ <code>ctl_prefetch<\/code>\uff0c\u65e2\u6ca1\u6709 <code>ctl_default_prop<\/code> \u4e5f\u6ca1\u6709 <code>adbd<\/code>\u3002<\/p>\n<p>\u987a\u4fbf\u7ea0\u6b63\u4e00\u4e2a\u6d41\u4f20\u7684\u8bf4\u6cd5\uff1a\u300c\u67d0\u4e2a MIUI \u7248\u672c\u628a ctl.* \u653e\u7ed9 shell \u4e86\u300d\u3002\u5c0f\u7c73\u6539\u5bbd\u677e\u7684\u53ef\u80fd\u6027\u6781\u4f4e\uff0c\u800c\u4e14\u8fd9\u4e0d\u5f71\u54cd\u4e0a\u9762\u7684\u7ed3\u8bba\u2014\u2014\u5224\u5b9a\u903b\u8f91\u6839\u672c\u6ca1\u6709\u300c\u6309 uid \u653e\u884c\u300d\u8fd9\u6761\u8def\u5f84\u3002<\/p>\n<p>\u517c\u5bb9\u6027\u4e0a\u8bb0\u4e24\u70b9\uff1a\u517c\u5bb9\u5e94\u7528\u5fc5\u987b<strong>\u4e3b\u52a8\u63a5\u5165 Shizuku<\/strong>\uff08\u4e0d\u662f\u88c5\u4e0a\u5c31\u80fd\u7528\uff09\uff1b\u6bcf\u6b21\u91cd\u542f\u540e\u670d\u52a1\u901a\u5e38\u8981\u91cd\u65b0\u542f\u52a8\u3002<\/p>\n<h2>\u56db\u3001\u65e0\u7ebf\u8c03\u8bd5\u7684\u4ee3\u4ef7\uff1a\u5b83\u7ed1\u6240\u6709\u7f51\u5361<\/h2>\n<ul>\n<li><strong>adbd \u6ca1\u6709\u63a5\u53e3\u9009\u62e9\u80fd\u529b\uff0c\u7ed1\u6240\u6709\u7f51\u5361<\/strong>\u3002\u5b83\u7ed1\u7269\u7406 <code>wlan0<\/code> \u800c\u4e0d\u662f <code>tun0<\/code> \u21d2 \u7ed5\u8fc7 Always-On VPN \u548c kill switch\uff0c\u5f00\u53d1\u8005\u9009\u9879\u91cc\u663e\u793a\u7684\u4e5f\u662f\u771f\u5b9e Wi-Fi \u5730\u5740\u3002\u300c\u53ea\u7ed1\u96a7\u9053\u300d\u9650\u5236\u66b4\u9732\u9762\u505a\u4e0d\u5230\uff08AOSP issue 526109803\uff09\u3002<\/li>\n<li><strong>CVE-2026-0073<\/strong>\uff08NVD 2026-05-04\uff0cCVSS 8.8\uff09\uff1a<code>adbd_tls_verify_cert<\/code> \u903b\u8f91\u9519\u5bfc\u81f4\u65e0\u7ebf\u8c03\u8bd5\u7684 mTLS \u8ba4\u8bc1\u53ef\u88ab\u90bb\u8fd1\u7f51\u7edc\u96f6\u4ea4\u4e92\u7ed5\u8fc7\uff0c\u540e\u679c\u662f shell \u7528\u6237 RCE\u3002\u5f71\u54cd Android 14\/15\/16\uff1b\u5c0f\u7c73 15 \u9700\u8981\u5b89\u5168\u8865\u4e01 \u2265 <code>2026-05-01<\/code>\uff08\u4e0a\u6587\u793a\u4f8b\u6784\u5efa\u4e3a Android 17\u3001\u8865\u4e01\u65e5\u671f <code>2026-10-01<\/code>\uff09\u3002<\/li>\n<li>\u914d\u5bf9\u7801\u4e00\u6b21\u6027\uff0c\u4f46<strong>\u5df2\u914d\u5bf9\u4e3b\u673a\u957f\u671f\u6709\u6548<\/strong>\u3002\u5728\u516c\u5171 Wi-Fi \u7528\u8fc7\u5c31\u8981\u56de\u53bb\u6e05\u7406\u914d\u5bf9\u5217\u8868\u3002<\/li>\n<\/ul>\n<h2>\u4e94\u3001Root\uff1a\u5148\u5206\u6e05\u62ff\u5230\u7684\u662f\u54ea\u79cd\u5f62\u6001<\/h2>\n<p>\u5c0f\u7c73 15 \u7684 BL \u4e00\u76f4\u9501\u7740\u3002<strong>\u522b\u628a <code>flash.locked=1<\/code> \u8bfb\u6210\u300c\u5df2\u89e3\u9501\u300d<\/strong>\u2014\u2014\u8fd9\u4e2a\u65b9\u5411\u8bfb\u53cd\u8fc7\u4e00\u6b21\uff0c\u76f4\u63a5\u5bfc\u81f4\u540e\u7eed\u5224\u65ad\u5168\u5d29\u3002<\/p>\n<p>\u4f46 BL \u9501\u7740\u4e0d\u7b49\u4e8e\u6ca1\u6709 root\u3002<strong>BL \u9501\u5b9a\u72b6\u6001\u4e0e\u8fd0\u884c\u65f6 UID \u662f\u4e24\u4ef6\u72ec\u7acb\u7684\u4e8b<\/strong>\uff1a\u5185\u6838\u672c\u5730\u63d0\u6743\u53ef\u4ee5\u4ea7\u751f\u300c\u91cd\u542f\u5373\u5931\u6548\u300d\u7684\u4e34\u65f6 root\u3002\u4e0b\u9762\u662f\u8fd9\u7c7b\u4e34\u65f6 root \u7684\u9a8c\u6536\u503c\uff0c\u5f62\u6001\u662f <strong>late-load \u7684 KernelSU<\/strong>\uff0c\u4e0d\u80fd\u7528\u6765\u5224\u5b9a\u6240\u6709 root \u5b9e\u73b0\uff1a<\/p>\n<pre><code>su -c id\n# uid=0(root) ... context=u:r:ksu:s0\ngrep \"^kernelsu \" \/proc\/modules\n# kernelsu 180224 Live<\/code><\/pre>\n<p><code>CapEff<\/code> \u5b9e\u6d4b <code>000001ffffffffff<\/code>\uff08\u5168\u80fd\u529b\uff09\u3002<code>su<\/code> \u843d\u5728 <code>\/system\/bin\/su<\/code>\uff0c\u5927\u5c0f <strong>4,990,848 \u5b57\u8282<\/strong>\uff0c\u4f46\u7531 <strong>Magic Mount \u8986\u76d6\u6302\u51fa<\/strong>\u2014\u2014<code>st_dev<\/code> \u4e0e shell \u81ea\u5e26\u6587\u4ef6\u4e0d\u540c\u3001<code>ls -Z<\/code> \u663e\u793a <code>?<\/code> \u4e14\u65e0 SELinux context \u21d2 <strong>\u5e76\u6ca1\u6709\u771f\u5199\u7cfb\u7edf\u5206\u533a<\/strong>\uff0c\u4e0e BL \u4ecd\u9501\u3001verity \u5728\u7ebf\u5b8c\u5168\u81ea\u6d3d\u3002<\/p>\n<p>KSU \u7248\u672c <strong>v3.3.1\uff08uapi:5\uff09<\/strong>\uff0c\u7ba1\u7406\u5668\u5305 <code>me.weishu.kernelsu<\/code> \u540c\u4e3a v3.3.1\uff08\u5e26 <code>libksud.so<\/code>\uff0c\u4e5f\u662f 4,990,848 \u5b57\u8282\uff09\u3002<\/p>\n<h3>\u56db\u4e2a\u5fc5\u987b\u77e5\u9053\u7684\u9650\u5236<\/h3>\n<ul>\n<li><strong>\u91cd\u542f\u5373\u5931\u6548<\/strong>\u3002\u4fdd root \u8981\u7528\u300c\u8f6f\u91cd\u542f\u300d\uff08soft restart\uff09\uff0c\u771f\u91cd\u542f\u5c31\u6ca1\u4e86\u3002\u5931\u6548\u540e\u56de\u5230\u53ea\u6709 Shizuku = shell(2000) \u7684\u72b6\u6001\u3002\u63d0\u6743\u671f\u95f4 SELinux \u4f1a\u88ab\u4e34\u65f6\u8bbe\u4e3a permissive\uff0c\u5b8c\u6210\u540e\u4f1a<strong>\u81ea\u52a8\u56de\u5230 Enforcing<\/strong>\u2014\u2014\u8fd9\u4e00\u9879\u672c\u8eab\u5c31\u53ef\u4ee5\u4f5c\u4e3a\u9a8c\u6536\u5224\u636e\u3002<\/li>\n<li><strong><code>\/data\/adb\/modules<\/code> \u4e0d\u5b58\u5728<\/strong>\u3002<code>\/data\/adb\/<\/code> \u4e0b\u53ea\u6709 <code>ksud<\/code> \u4e0e <code>ksu\/<\/code> \u21d2 \u4e00\u5177\u300c\u5355\u4e00 su\u300d\u5f62\u6001\u7684 root\uff0c\u4e00\u4e2a\u6a21\u5757\u90fd\u6ca1\u88c5 \u21d2 Zygisk\u3001LSPosed\u3001\u6539\u673a\u6a21\u5757\u8fd9\u7c7b\u4f9d\u8d56\u6a21\u5757\u7684\u65b9\u6848\u5168\u90fd\u7528\u4e0d\u4e86\u3002<\/li>\n<li><strong>\u7981\u6b62\u6539\u7cfb\u7edf\u5206\u533a<\/strong>\u3002BL \u9501\u7740\u7684\u60c5\u51b5\u4e0b\u6539\u52a8\u5206\u533a\uff0c\u4e0b\u6b21\u542f\u52a8\u4f1a\u88ab\u62d2\uff0c\u4e3b\u529b\u673a\u76f4\u63a5\u53d8\u7816\u3002<\/li>\n<li><strong>KSU \u7684 umount \/ \u9690\u85cf\u53ea\u5bf9 uid 2000 \/ 10000 \u751f\u6548<\/strong>\uff0capp uid \u4e0d\u8986\u76d6 \u21d2 \u60f3\u5bf9\u7b2c\u4e09\u65b9 App \u9690\u85cf root \u901a\u5e38\u8981\u8d70 Zygisk \u6a21\u5757\u8def\u7ebf\u3002\u4f46\u6ca1\u6709\u6a21\u5757\u65f6\u4e5f<strong>\u4e0d\u80fd\u65ad\u8a00 App \u4e00\u5b9a\u770b\u5f97\u89c1 <code>su<\/code><\/strong>\u2014\u2014\u8981\u4ee5\u8be5\u8fdb\u7a0b\u7684\u6302\u8f7d\u547d\u540d\u7a7a\u95f4\u4e3a\u51c6\uff08\u89c1\u4e0b\uff09\u3002<\/li>\n<\/ul>\n<h3>\u9690\u85cf\u8fb9\u754c\uff1asu \u85cf\u5f97\u4f4f\uff0c<code>\/proc\/modules<\/code> \u85cf\u4e0d\u4f4f<\/h3>\n<ul>\n<li><code>\/system\/bin\/su<\/code> \u5bf9\u666e\u901a App <strong>\u662f\u9690\u85cf\u7684<\/strong>\uff08KernelSU \u6302\u8f7d\u547d\u540d\u7a7a\u95f4\u4fdd\u62a4\uff09\u3002\u5728 root \u89c6\u89d2 <code>ls<\/code> \u770b\u5f97\u5230\uff0c\u4e0d\u4ee3\u8868 App \u770b\u5f97\u5230\u3002<\/li>\n<li>\u4f46 <code>\/proc\/modules<\/code> \u91cc\u7684 <code>kernelsu<\/code> \u6761\u76ee<strong>\u666e\u901a UID \u80fd\u76f4\u63a5\u8bfb<\/strong>\uff08\u5b9e\u6d4b\u5207\u5230 uid <code>10352<\/code> \u8bfb\u5230\u4e86\uff09\u3002\u8981\u85cf\u5fc5\u987b\u4e0a SUSFS \u5185\u6838\u8865\u4e01\uff0c\u4e34\u65f6 root \u88c5\u4e0d\u4e86 \u21d2 \u8fd9\u662f<strong>\u7ed3\u6784\u6027\u7f3a\u9677<\/strong>\uff0c\u4e0d\u662f\u914d\u7f6e\u6ca1\u505a\u597d\u3002<\/li>\n<li>\u7b2c\u4e8c\u4e2a\u7834\u7efd\uff1a<strong>KSU \u7ba1\u7406\u5668\u5305\u540d\u6ca1\u85cf<\/strong>\uff0c<code>me.weishu.kernelsu<\/code> \u660e\u6587\u53ef\u89c1\uff0c\u800c QQ \u6301 <code>QUERY_ALL_PACKAGES<\/code> \u4e14 granted=true \u21d2 \u679a\u4e3e\u5305\u540d\u5c31\u80fd\u5224\u5b9a root\uff0c\u4e0e su \u662f\u5426\u53ef\u89c1\u65e0\u5173\u3002<\/li>\n<li>\u5728 KernelSU \u7ba1\u7406\u5668\u91cc\u9010\u9879\u6838\u5bf9\u6388\u6743\u540d\u5355\uff0c\u64a4\u9500\u4e0d\u518d\u9700\u8981\u7684\u6388\u6743\u2014\u2014\u6388\u6743\u9762\u8d8a\u5927\uff0c\u8d8a\u5bb9\u6613\u88ab\u5e94\u7528\u4fa7\u63a2\u6d4b\u5230\u3002<\/li>\n<\/ul>\n<p>\u5224\u65ad\u300c\u67d0\u4e2a App \u5230\u5e95\u770b\u4e0d\u770b\u5f97\u89c1 su\u300d\uff0c\u6b63\u786e\u505a\u6cd5\u4e0d\u662f\u7ad9\u5728 root \u89c6\u89d2\u5217\u76ee\u5f55\uff0c\u800c\u662f\u8bfb<strong>\u8be5 App \u8fdb\u7a0b\u89c6\u89d2<\/strong>\uff1a<\/p>\n<pre><code># \u5728 root \u4e0b\u6267\u884c\nfor p in $(pidof com.tencent.mobileqq); do\n  ls -l \/proc\/$p\/root\/system\/bin\/su\ndone\n# \u8f93\u51fa No such file \u21d2 \u8be5\u8fdb\u7a0b\u770b\u4e0d\u5230 su\uff0c\u9690\u85cf\u6709\u6548<\/code><\/pre>\n<p>\u5b9e\u6d4b\u62bd\u67e5 3 \u4e2a <code>u0_aXXX<\/code> \u8fdb\u7a0b\uff08\u542b QQ\uff09\u5168\u90e8 <code>No such file<\/code>\u3002<\/p>\n<h2>\u516d\u3001\u54ea\u4e9b\u4e8b\u5fc5\u987b root\uff0c\u5b9e\u6d4b\u5361\u5728\u54ea<\/h2>\n<p>\u6700\u5178\u578b\u7684\u662f <strong>USB HID gadget<\/strong>\uff08\u624b\u673a\u5f53 USB \u9f20\u6807\/\u952e\u76d8\uff09\uff1a\u5185\u6838\u5c42\u9762\u662f<strong>\u652f\u6301<\/strong>\u7684\uff08<code>CONFIG_USB_CONFIGFS=y<\/code> \/ <code>F_HID=y<\/code> \/ <code>USB_GADGET=y<\/code>\uff0cudc=<code>a600000.dwc3<\/code>\uff09\uff0c\u4f46\uff1a<\/p>\n<ul>\n<li><code>\/config\/usb_gadget<\/code> \u662f <code>drwxr-xr-x root root<\/code>\uff0cshell \u8fdb\u4e0d\u53bb\uff1b<\/li>\n<li><code>setprop sys.usb.config adb,hid<\/code> <strong>\u5b9e\u6d4b rc=1 \u5931\u8d25<\/strong>\uff1b<\/li>\n<li><code>\/dev\/uhid<\/code> \u4e16\u754c\u53ef\u5199\uff0c\u4f46\u53ea\u591f\u505a HID <strong>\u4ece\u8bbe\u5907<\/strong>\uff0c\u4e0d\u80fd\u5f53\u4e3b\u673a\u53bb\u679a\u4e3e\u3002<\/li>\n<\/ul>\n<p>\u21d2 <strong>\u4e0d root \u6a21\u62df\u4e0d\u4e86\u9f20\u6807\u952e\u76d8<\/strong>\uff0c\u53ea\u80fd\u7528 OTG \u63a5\u771f\u6709\u7ebf\u952e\u9f20\u3002\u73b0\u6210\u65b9\u6848\uff08<code>pelya\/android-keyboard-gadget<\/code>\u3001<code>tejado\/USB Gadget Tool<\/code>\u3001<code>Sucareto\/Android_HID_Keyboard<\/code>\uff09\u5168\u90e8\u9700\u8981 root\u3002<\/p>\n<p>\u7b2c\u4e8c\u4e2a\u662f\u7b2c\u4e09\u65b9\u8f93\u5165\u6cd5\uff1a\u88c5 ADBKeyboard \u62a5 <code>INSTALL_FAILED_USER_RESTRICTED<\/code>\uff0c\u9700\u8981\u7528\u6237\u624b\u52a8\u70b9\u5141\u8bb8\uff0c\u6ca1\u6cd5\u811a\u672c\u5316\u3002<\/p>\n<h2>\u4e03\u3001\u9501\u5c4f\u65f6\u7684\u80fd\u529b\u4e0a\u9650\uff1a\u53ea\u8bfb<\/h2>\n<p>\u8fd9\u6761\u6700\u5bb9\u6613\u88ab\u5f53\u6210 bug \u53cd\u590d\u67e5\u3002\u793a\u4f8b\u6784\u5efa\u6709\u771f\u5b9e PIN \u9501\uff08<code>CredentialType: PIN<\/code>\uff0c<code>get-disabled=false<\/code>\uff0c\u65e0 trusted agent\uff09\uff0c\u9501\u5c4f\u4e0b <code>input tap<\/code> \u843d\u4e0d\u5230\u754c\u9762\u2014\u2014\u5b9e\u6d4b\u524d\u540e\u622a\u56fe\u9010\u50cf\u7d20 diff \u4e3a 0\uff0cPIN \u5706\u70b9\u4e00\u4e2a\u90fd\u4e0d\u51fa\u73b0\u3002\u6392\u67e5\u7126\u70b9\u7a97\u53e3\u65f6\u91cd\u70b9\u770b\u300c\u9632\u8bef\u89e6\u6a21\u5f0f\u300d<code>ScreenOnProximitySensorGuide<\/code> \u662f\u5426\u5168\u5c4f\u62e6\u622a\u4e86\u89e6\u6478\u4e8b\u4ef6\u3002<\/p>\n<p>\u56e0\u6b64\u9501\u5c4f\u72b6\u6001\u4e0b<strong>\u89e6\u6478\u6ce8\u5165\u7c7b\u64cd\u4f5c\u4e0d\u53ef\u7528<\/strong>\u3002<code>dumpsys notification<\/code> \u4e0e\u77ed\u4fe1\u67e5\u8be2\u662f\u5426\u53ef\u7528\uff0c\u53d6\u51b3\u4e8e ROM \u4e0e\u8c03\u7528\u8eab\u4efd\uff0c\u9700\u8981\u5404\u81ea\u5b9e\u6d4b\u2014\u2014\u4e0d\u80fd\u4ece\u89e6\u6478\u5931\u6548\u76f4\u63a5\u63a8\u51fa\u6240\u6709\u5199\u64cd\u4f5c\u90fd\u4e0d\u53ef\u7528\u3002<\/p>\n<pre><code>adb shell content query --uri content:\/\/sms \\\n  --projection address:date:body --sort \"date DESC\"<\/code><\/pre>\n<p>\u4e24\u4e2a\u77ed\u4fe1\u5751\uff1a<code>content query<\/code> <strong>\u4e0d\u652f\u6301 <code>--limit<\/code><\/strong>\uff1b\u67e5 <code>content:\/\/sms\/inbox<\/code> \u6392\u5e8f\u4e0d\u7a33\u3001<strong>\u4f1a\u6f0f\u6700\u65b0\u4e00\u6761<\/strong> \u21d2 \u5fc5\u987b\u67e5\u5168\u8868\u3002<\/p>\n<h2>\u516b\u3001\u4e00\u4e2a\u53ef\u9006\u7684\u7cfb\u7edf\u7ea7\u5b9a\u5236\u8303\u4f8b<\/h2>\n<p>\u5982\u679c\u53ea\u662f\u60f3\u6539\u5f00\u673a\u52a8\u753b\uff0c\u4e0d\u5fc5\u52a8\u53ea\u8bfb\u5206\u533a\uff0c\u8d70 <code>\/data<\/code> \u4e0b\u7684\u4e3b\u9898\u8def\u5f84\u5373\u53ef\uff0c\u800c\u4e14\u5b8c\u5168\u53ef\u56de\u9000\uff1a<\/p>\n<pre><code># \u653e\u5165\ncp bootanimation.zip \/data\/system\/theme\/boots\/bootanimation.zip\nchown system_theme:system_theme \/data\/system\/theme\/boots\/bootanimation.zip\nrestorecon \/data\/system\/theme\/boots\/bootanimation.zip   # \u6807\u7b7e\u987b\u4e3a theme_data_file\nsetprop persist.sys.customanim.boot 1\n\n# \u56de\u9000\u4e09\u4ef6\u5957\nrm -f \/data\/system\/theme\/boots\/bootanimation.zip\nrmdir \/data\/system\/theme\/boots\nsetprop persist.sys.customanim.boot \"\"     # \u26a0\ufe0f \u5c5e\u6027\u7f6e\u7a7a\uff0c\u4e0d\u662f\u7f6e 0<\/code><\/pre>\n<p>\u6700\u540e\u4e00\u6b65\u6700\u5bb9\u6613\u9519\uff1a\u5199\u6210 <code>0<\/code> \u4e0d\u4f1a\u6062\u590d\u9ed8\u8ba4\u884c\u4e3a\uff0c\u5fc5\u987b\u7f6e\u7a7a\u3002<\/p>\n<h2>\u4e5d\u3001\u63d0\u6743\u5931\u8d25\u957f\u4ec0\u4e48\u6837<\/h2>\n<p>\u8fd9\u6761\u503c\u5f97\u5355\u72ec\u5199\uff0c\u56e0\u4e3a\u5b83\u7684\u5f62\u6001\u5f88\u53cd\u76f4\u89c9\uff1a\u5931\u8d25\u65f6<strong>\u4e0d\u662f\u70b8\u673a\uff0c\u800c\u662f\u9759\u9ed8\u5361\u4f4f<\/strong>\u3002<code>boot_id<\/code> \u5168\u7a0b\u6ca1\u53d8\u3001uptime \u8fde\u7eed\u3001<code>boot_completed=1<\/code>\uff0c\u770b\u8d77\u6765\u4e00\u5207\u6b63\u5e38\u3002<\/p>\n<p>\u771f\u6b63\u7684\u98ce\u9669\u662f\u300cholder\/\u50f5\u5c38\u6b8b\u7559 + SELinux \u505c\u5728 Permissive\u300d\u3002\u50f5\u5c38\u8fdb\u7a0b <code>[khl-task-b]<\/code> <strong>\u7edd\u5bf9\u4e0d\u80fd kill<\/strong>\uff0c\u552f\u4e00\u51fa\u8def\u662f\u786c\u91cd\u542f\u6e05\u573a\u3002<\/p>\n<p>\u91cd\u8bd5\u7eaa\u5f8b\u4e5f\u56e0\u6b64\u6709\u8bb2\u7a76\uff1a<code>--attempts 1<\/code> \u4e00\u8f6e\u4e00\u8dd1\uff0c\u6bcf\u8f6e\u4e4b\u95f4\u91cd\u542f\uff1b<strong>\u522b\u7ed9\u957f\u4efb\u52a1\u52a0 <code>| tail<\/code><\/strong>\u2014\u2014\u7ba1\u9053\u7f13\u51b2\u4f1a\u541e\u8f93\u51fa\uff0c\u8c03\u8bd5\u4fa7\u8fd8\u4f1a <code>device-gone<\/code>\u3002<\/p>\n<p>\u53e6\u4e00\u4e2a\u5df2\u6b7b\u7684\u63d0\u6743\u5165\u53e3\u662f <code>mqsas<\/code>\uff1a<code>service list<\/code> \u91cc <code>miui.mqsas.IMQSNative<\/code>(264) \/ <code>miui.mqsas.MQSService<\/code>(265) \u90fd\u5728\uff0c\u4f46\u6240\u6709 tx \u8c03\u7528\u7edf\u4e00\u8fd4\u56de <code>Result: Parcel(Error: 0xffffffffffffffb6 \"Not a data message\")<\/code>\u3002\u5bf9\u7167 tx1\/2\/4\/6\/7\/8 \u8fd4\u56de\u6b63\u5e38 parcel \u21d2 <strong>binder \u901a\u3001\u662f mqsas \u81ea\u5df1\u62d2\u6536<\/strong>\uff08\u7b7e\u540d\/\u6743\u9650\u6821\u9a8c\u6216\u4e91\u63a7\u5173\u95ed\uff09\uff0c\u4e0d\u662f SELinux \u62d2\uff08logcat \u65e0 <code>avc denied<\/code>\uff09\u3002\u8bd5\u8fc7\u5b98\u65b9 payload\u3001\u7edd\u5bf9\u8def\u5f84\u3001<code>dd<\/code>\/\u547d\u4ee4\u66ff\u6362\u3001\u53bb\u6389 <code>i32 count<\/code> \u4f4d\u3001\u524d\u7f6e\u7248\u672c\u4f4d\u3001tx 20\/22 \u540c\u5e03\u5c40\uff0c\u9519\u8bef\u7801\u4e00\u4e2a\u6ca1\u53d8\uff0c\u76ee\u6807\u8def\u5f84\u4e5f\u6ca1\u4ea7\u751f\u4efb\u4f55\u6587\u4ef6\u3002<\/p>\n<h2>\u5341\u3001\u6536\u5c3e\u4e0e\u9a8c\u6536<\/h2>\n<p>\u7edf\u4e00\u9a8c\u6536\u53e3\u5f84\uff08\u62ff\u5230 root \u5c31\u8be5\u9010\u6761\u5bf9\uff09\uff1a<\/p>\n<ul>\n<li><code>su -c id<\/code> \u2192 <code>u:r:ksu:s0<\/code>\uff1b<\/li>\n<li><code>CapEff=000001ffffffffff<\/code>\uff1b<\/li>\n<li><code>\/system\/bin\/su<\/code> \u4e3a 4,990,848 \u5b57\u8282\uff1b<\/li>\n<li><code>\/proc\/modules<\/code> \u6709 <code>kernelsu 180224 Live<\/code>\uff1b<\/li>\n<li>SELinux \u81ea\u52a8\u56de Enforcing\uff1b<\/li>\n<li>BL \u4ecd <code>verifiedbootstate=green<\/code> \/ <code>flash.locked=1<\/code>\u3002<\/li>\n<\/ul>\n<p>\u6536\u5c3e\u987a\u5e8f\uff1aShizuku \u91cc\u79fb\u9664\u6388\u6743\u5e76\u505c\u670d\u52a1 \u2192 \u5173\u65e0\u7ebf\u8c03\u8bd5\u4e0e USB \u8c03\u8bd5 \u2192 \u64a4\u9500 USB \u6388\u6743\u3001\u79fb\u9664\u914d\u5bf9\u8bbe\u5907 \u2192 \u6e05\u7406 <code>\/data\/local\/tmp<\/code> \u91cc\u7559\u4e0b\u7684\u5de5\u5177\uff08\u91cd\u542f\u4e0d\u4f1a\u6e05\u5b83\uff09\u3002\u5206\u4eab\u65e5\u5fd7\u524d\u906e\u76d6\u5e8f\u5217\u53f7\u3001\u5e94\u7528\u8d26\u6237\u548c\u51ed\u636e\uff1b\u4e09\u4efd <code>getprop<\/code> \u8f93\u51fa\u672c\u8eab\u542b\u673a\u578b\u548c\u6784\u5efa\u53f7\uff0c\u516c\u5f00\u524d\u60f3\u4e00\u4e0b\u8981\u4e0d\u8981\u6253\u7801\u3002<\/p>\n<h2>\u5341\u4e00\u3001\u672c\u6587\u7684\u8fb9\u754c<\/h2>\n<ul>\n<li>\u53ea\u5728\u8fd9\u4e00\u53f0 <code>dada<\/code> \u4e0a\u5b9e\u6d4b\u3002\u5176\u5b83\u533a\u57df\/\u8fd0\u8425\u5546\u7684\u540c\u578b\u53f7\u673a SELinux \u7b56\u7565\u662f\u5426\u5b8c\u5168\u4e00\u81f4\uff0c<strong>\u672a\u9a8c\u8bc1<\/strong>\u3002<\/li>\n<li><code>ScreenOnProximitySensorGuide<\/code> \u7684\u884c\u4e3a\u968f MIUI \u7248\u672c\u53ef\u80fd\u53d8\uff0c\u522b\u7684\u7248\u672c\u4e0a\u53ef\u80fd\u4e0d\u4e00\u6837\u3002<\/li>\n<li>SUSFS \u80fd\u5426\u76d6\u4f4f <code>\/proc\/modules<\/code> \u5c5e\u4e8e\u5185\u6838\u8865\u4e01\u5c42\u9762\u7684\u80fd\u529b\uff1b\u4e34\u65f6 root \u5f62\u6001\u88c5\u4e0d\u4e86\u6a21\u5757\uff0c<strong>\u672c\u6587\u672a\u5b9e\u6d4b<\/strong>\u3002<\/li>\n<li><code>4.0.4.0<\/code> \u4e4b\u540e\u7684\u5c0f\u7248\u672c\u80fd\u5426\u590d\u7528\u540c\u4e00 payload\uff0c\u672c\u6587\u53ea\u9a8c\u8bc1\u5230\u300c\u5148\u6bd4\u5bf9 <code>uname -r<\/code> \u5b8c\u6574\u5b57\u7b26\u4e32\u662f\u5426\u4e00\u81f4\u300d\u8fd9\u4e00\u6b65\uff0c\u6ca1\u6709\u505a\u66f4\u591a\u7248\u672c\u5b9e\u6d4b\u3002<\/li>\n<\/ul>\n<p>\u8981\u6c38\u4e45 root\u3001\u8981\u88c5\u6a21\u5757\u3001\u8981\u968f\u4fbf\u6298\u817e\uff0c\u522b\u7528\u4e3b\u529b\u673a\u2014\u2014\u4e00\u53f0 BL \u80fd\u89e3\u9501\u7684\u65e7\u673a\u624d\u884c\uff0c\u90a3\u6761\u8def\u5728<a href=\"\/?p=90\">\u7ea2\u7c73 6A \u5237\u673a\u4e0e\u6062\u590d<\/a>\u91cc\u5199\u8fc7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6309\u4efb\u52a1\u9009\u62e9\u5c0f\u7c73\u624b\u673a\u7684\u8c03\u8bd5\u6743\u9650\uff0c\u7528 ADB \u548c Shizuku \u505a\u9a8c\u8bc1\u3001\u67e5\u770b\u6388\u6743\u548c\u64a4\u9500\u8bbf\u95ee\uff0c\u5e76\u4e86\u89e3\u54ea\u4e9b\u6d4b\u8bd5\u9700\u8981\u53ef\u63a7\u7684 Root \u73af\u5883\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[34,48],"class_list":["post-88","post","type-post","status-publish","format-standard","hentry","category-android-flashing","tag-android","tag-xiaomi"],"_links":{"self":[{"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88"}],"version-history":[{"count":6,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":154,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions\/154"}],"wp:attachment":[{"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}