{"id":5101,"date":"2024-01-26T16:58:56","date_gmt":"2024-01-26T08:58:56","guid":{"rendered":"https:\/\/blog.coderfan.org\/?p=5101"},"modified":"2024-02-02T23:16:50","modified_gmt":"2024-02-02T15:16:50","slug":"aosp14-porting-issues","status":"publish","type":"post","link":"https:\/\/blog.coderfan.org\/en\/aosp14-porting-issues.html","title":{"rendered":"AOSP14\u79fb\u690d\u8bb0\u5f55"},"content":{"rendered":"<div class='booster-block booster-read-block'>\n                <div class=\"twp-read-time\">\n                \t<i class=\"booster-icon twp-clock\"><\/i> <span>Read Time:<\/span>6 Minute, 36 Second                <\/div>\n\n            <\/div>\n<p class=\"has-text-align-justify\">Android14\u5df2\u7ecf\u51fa\u6765\u4e00\u6bb5\u65f6\u95f4\u4e86\uff0c\u867d\u7136\u4e00\u76f4\u90fd\u662fBeta Version\uff0c\u4f46\u884c\u4e1a\u5185\u5df2\u7ecf\u6709\u5382\u5546\u5f00\u59cb\u4e86\u9002\u914d\u3002\u8fd1\u671f\u6211\u4e5f\u5f00\u59cb\u4e86\u8fd9\u65b9\u9762\u7684\u76f8\u5173\u5de5\u4f5c\uff0c\u8be5\u6587\u7ae0\u7528\u4e8e\u8bb0\u5f55\u6211\u5728AOSP14\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u4e00\u4e9b\u5178\u578b\u95ee\u9898\u3002\u7531\u4e8e\u79fb\u690d\u8fc7\u7a0b\u4e2d\u7684\u6d89\u53ca\u5230\u7684\u6a21\u5757\u6bd4\u8f83\u591a\uff0c\u9047\u5230\u7684\u95ee\u9898\u4e5f\u6bd4\u8f83\u7e41\u6742\uff0c\u6b64\u5904\u4ec5\u8bb0\u5f55\u95ee\u9898\u7684\u89e3\u51b3\u601d\u8def\u4e0e\u65b9\u6cd5\uff0c\u6d89\u53ca\u5230\u4e00\u4e9b\u66f4\u6df1\u5c42\u6b21\u7684\u77e5\u8bc6\u4e0d\u505a\u6df1\u7a76\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Preliminary preparation<\/h3>\n\n\n\n<p class=\"has-text-align-justify\"><strong>\u57fa\u7ebf\u9009\u62e9<\/strong>\uff1a\u5728\u6211\u5f00\u59cb\u79fb\u690d\u65f6\uff0cAOSP14\u5df2\u7ecf\u53d1\u5e03\u4e86\u6700\u65b0\u7684r18\u7248\u672c\uff0c\u62b1\u7740\u8981\u7528\u5c31\u7528\u6700\u65b0\u7684\u60f3\u6cd5\uff0c\u6211\u4eec\u4e5f\u9009\u7528\u4e86r18\u4f5c\u4e3a\u6211\u4eec\u79fb\u690d\u7684\u6e90\u7801Base\u3002\u5176\u7248\u672c\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Security revision:2023-12-05<\/li>\n\n\n\n<li>Build:UQ1A.231205.015.A1<\/li>\n\n\n\n<li>Branch:android-14.0.0_r18<\/li>\n<\/ul>\n\n\n\n<p>Manifest\u94fe\u63a5\u53c2\u8003<a href=\"https:\/\/android.googlesource.com\/platform\/manifest\/+\/refs\/heads\/android-14.0.0_r18\" class=\"ek-link\">here<\/a>\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\"><strong>Kernel\u9009\u62e9<\/strong>\uff1aAOSP14\u9ed8\u8ba4\u4f7f\u7528Kernel 6.1.23\uff0c\u7248\u672c\u4fe1\u606f\uff1a6.1.23-android14-4-00257-g7e35917775b8-ab9964412\uff1b\u4f46\u4e5f\u652f\u63015.10\uff0c5.15\u7b49\u65e9\u671f\u7248\u672c\u3002\u7531\u4e8e\u6211\u662f\u4eceAOSP12\u5347\u7ea7\u81f3AOSP14\uff0cKernel\u90e8\u5206\u4ecd\u9009\u62e95.10\u7248\u672c\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u786c\u4ef6\u4e0a\u4f7f\u7528\u7684\u662f\u6211\u53f8\u81ea\u5df1\u8bbe\u8ba1\u751f\u4ea7\u7684\u5f00\u53d1\u677f\uff0c\u5177\u4f53\u4fe1\u606f\u7565\u8fc7\u4e0d\u8868\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u79fb\u690d\u6b65\u9aa4<\/h3>\n\n\n\n<p class=\"has-text-align-justify\">\u79fb\u690d\u65f6\u5c06\u76f8\u5173\u7684\u914d\u7f6e\u90e8\u5206\u8fc1\u79fb\u81f3AOSP14\u6e90\u7801\u76ee\u5f55\u4e0b\u7684device\/${VENDOR_NAME}\u5185\uff1b\u5c06HAL\u5b9e\u73b0\u76f8\u5173\u8fc1\u79fb\u81f3AOSP14\u6e90\u7801\u76ee\u5f55\u4e0b\u7684hardware\/${VENDOR_NAME}\u5185\uff0c\u5176\u4f59\u6211\u4eec\u81ea\u5b9a\u4e49\u7684\u90e8\u5206\u5982App\u7b49\u8fc1\u79fb\u81f3AOSP14\u6e90\u7801\u76ee\u5f55\u4e0b\uff0c\u65b0\u5efavendor\u76ee\u5f55\u3002\u5176\u76ee\u5f55\u89c4\u5212\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u6a21\u5757<\/td><td>\u76ee\u5f55<\/td><td>\u5907\u6ce8<\/td><\/tr><tr><td>APP<\/td><td>packages\/apps\/*:\u539f\u751fAPP vendor\/${OEM_NAME}\/apps\/*:\u7279\u6027APP,\u4e0d\u533a\u5206board<\/td><td><\/td><\/tr><tr><td>FrameWork<\/td><td>\/<\/td><td><\/td><\/tr><tr><td>Native<\/td><td>\/<\/td><td><\/td><\/tr><tr><td>HAL<\/td><td>hardware\/interfaces\/* vendor\/${{VENDOR_NAME }\/hardware\/interfaces\/* hardware\/${VENDOR_NAME}\/interfaces\/*<\/td><td>HAL\u5206\u4e3a\u539f\u751fHAL\u548c\u6211\u4eec\u81ea\u5b9a\u4e49\/\u5b9e\u73b0\u7684HAL \u81ea\u5b9a\u4e49\u5b9e\u73b0\u7684HAL\u7edf\u4e00\u653e\u7f6e\u4e8e hardware\/${VENDOR_NAME}\/interfaces\/* vendor\/bst\/hardware\/interfaces\/*<\/td><\/tr><tr><td>device\/${OEM_NAME}<\/td><td>${CHIP}\/${BOARD} &#8230;&#8230;<\/td><td><\/td><\/tr><tr><td>hardware\/${OEM_NAME}<\/td><td>${CHIP}\/${BOARD} <br>&#8230;&#8230; <br>Audio <br>Camera <br>Bluetooth <br>${MODULE} &#8230;..<\/td><td>\u6587\u4ef6\u5939\u76ee\u5f55\u4e3b\u8981\u5206\u4e3aChip\u76f8\u5173\u548cModule\u76f8\u5173;Module\u76f8\u5173\u5982audio,camera,bt\u7b49\uff0c\u7528\u4e8e\u5b58\u653e\u4ee3\u7801\u5b9e\u73b0\uff0c\u5982\u679c\u6709\u90e8\u5206\u4ee3\u7801\u5b9e\u73b0\u8ddf\u5e73\u53f0\u76f8\u5173\uff0c\u5219\u5efa\u5e73\u53f0\u5b50\u76ee\u5f55\u533a\u5206\uff1bChip\u76f8\u5173\u5219\u5b58\u653e\u914d\u7f6e\u6587\u4ef6\u3001makefile\u7b49\uff1b\u540c\u4e00\u6a21\u5757\u4e0d\u540cChip\u4e4b\u95f4\u7684\u5dee\u5f02\u5e94\u901a\u8fc7Chip\u76ee\u5f55\u5185\u7684\u914d\u7f6e\u6216\u8005makefile\u5b9e\u73b0\u533a\u5206<\/td><\/tr><tr><td>vendor\/${OEM_NAME}<\/td><td>${CHIP}\/${BOARD}<br> &#8230;&#8230; <br>Audio <br>Camera <br>Bluetooth<br>${MODULE}<br>&#8230;..<\/td><td>\u6587\u4ef6\u5939\u76ee\u5f55\u4e3b\u8981\u5206\u4e3aChip\u76f8\u5173\u548cModule\u76f8\u5173;Module\u76f8\u5173\u5982audio,camera,bt\u7b49\uff0c\u7528\u4e8e\u5b58\u653e\u4ee3\u7801\u5b9e\u73b0\uff0c\u5982\u679c\u6709\u90e8\u5206\u4ee3\u7801\u5b9e\u73b0\u8ddf\u5e73\u53f0\u76f8\u5173\uff0c\u5219\u5efa\u5e73\u53f0\u5b50\u76ee\u5f55\u533a\u5206\uff1bChip\u76f8\u5173\u5219\u5b58\u653e\u914d\u7f6e\u6587\u4ef6\u3001makefile\u7b49\uff1b\u540c\u4e00\u6a21\u5757\u4e0d\u540cChip\u4e4b\u95f4\u7684\u5dee\u5f02\u5e94\u901a\u8fc7Chip\u76ee\u5f55\u5185\u7684\u914d\u7f6e\u6216\u8005makefile\u5b9e\u73b0\u533a\u5206<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u95ee\u9898\u8bb0\u5f55<\/h3>\n\n\n\n<p>1.BOARD_BUILD_SYSTEM_ROOT_IMAGE is obsolete<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u8fd9\u662f\u7531\u4e8e\u5728AOSP14\u4e2d\uff0cBOARD_BUILD_SYSTEM_ROOT_IMAGE \u5df2\u7ecf\u88ab\u5e9f\u5f03\uff1b\u540c\u65f6\u4f7f\u7528BOARD_BUILD_GKI_BOOT_IMAGE_WITHOUT_RAMDISK\u8fdb\u884c\u66ff\u6362\u3002<\/p>\n\n\n\n<p>\u5177\u4f53\u4fee\u590d\u793a\u4f8b\u53ef\u53c2\u8003\u8be5<a href=\"https:\/\/android.googlesource.com\/device\/generic\/common\/+\/3456f2d62af277bf1623744955c860eaa0d0ec3b\" class=\"ek-link\">Link<\/a>\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">2.ndk\u76f8\u5173\u4f9d\u8d56\u62a5\u9519\uff1aundefined module \u201candroid.hardware.xxxxx-V1-ndk_platform\u201d<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u7531\u4e8eAOSP14\u4e2dndk_platform\u540e\u7aef\u5df2\u7ecf\u88ab\u5e9f\u5f03\uff0c\u91c7\u7528ndk\u540e\u7aef\u53ef\u4ee5\u540c\u6837\u6ee1\u8db3\u5f00\u53d1\u8005\u7684\u9700\u6c42\uff0c\u56e0\u6b64\u5728\u76f8\u5173\u5e93\u7684\u652f\u6301\u4e2d\u6211\u4eec\u4e0d\u518d\u9700\u8981ndk_platform\u7684\u540e\u7aef\uff0c\u7f16\u8bd1\u65f6\u51fa\u73b0\u8fd9\u4e9b\u62a5\u9519\uff0c\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u5bf9\u5e94\u7684Android.bp\uff0c\u66ff\u6362\u76f8\u5e94\u7684\u4f9d\u8d56\u5e93\u5373\u53ef\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">         \"android.hardware.audio@6.0\",\n         \"android.hardware.audio.common@6.0\",\n         \"android.hardware.audio.effect@6.0\",\n-        \"android.hardware.automotive.audiocontrol-V1-ndk_platform\",\n-        \"android.frameworks.automotive.powerpolicy-V1-ndk_platform\",\n+        \"android.hardware.automotive.audiocontrol-V1-ndk\",\n+        \"android.frameworks.automotive.powerpolicy-V1-ndk\",\n         \"audiocontrol-caremu\",\n         \"libbase\",\n         \"libbinder\",<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">3.out\/host\/linux-x86\/mkdtboimg.py\u4e0d\u5b58\u5728<\/p>\n\n\n\n<p class=\"has-text-align-justify\">AOSP14\u4e2d\u5bf9mkdtboimg\u505a\u4e86\u4e00\u4e9b\u53d8\u66f4\uff0c\u4fee\u6539\u4e86\u5176\u540d\u79f0\uff0c\u56e0\u6b64\u6211\u4eec\u4e5f\u9700\u8981\u540c\u6b65\u8fd9\u90e8\u5206\u6539\u52a8\uff1b<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">MKDTBOIMG\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 := system\/libufdt\/utils\/src\/mkdtboimg.py\n\u6216\u8005\nMKDTBOIMG\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 := $(HOST_OUT_EXECUTABLES)\/mkdtboimg<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">\u81f3\u4e8emkdtboimg\u5177\u4f53\u662f\u5e72\u561b\u7684\u5462\uff0c\u770b\u540d\u5b57\u5c31\u80fd\u731c\u4e2a\u5927\u6982\uff1a\u7528\u4e8e\u521b\u5efa\u8bbe\u5907\u6811\u4e8c\u8fdb\u5236\u5bf9\u8c61\uff0c\u6211\u4eec\u70e7\u5f55\u955c\u50cf\u7684dtbo.img\uff0c\u5c31\u9700\u8981\u901a\u8fc7\u6b64\u5de5\u5177\u8fdb\u884c\u6253\u5305\u3002<\/p>\n\n\n\n<p>4.\u63d0\u793aframework compatibility matrix are incompatible<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u8fd9\u662f\u7531\u4e8e\u6211\u4eec\u96c6\u6210\u7684HAL\u4e0eframework_compatibility_matrix.xml\u4e0d\u5339\u914d\u5bfc\u81f4\uff0c\u89e3\u51b3\u529e\u6cd5\u8981\u4e48\u662f\u91cd\u65b0\u68c0\u67e5\u96c6\u6210\u6253\u5305\u7684HAL\uff0c\u786e\u4fddframework_compatibility_matrix.xml\u4e2d\u8bb0\u5f55\u7684HAL\u90fd\u88ab\u96c6\u6210\uff0c\u4e14\u7248\u672c\u4fe1\u606f\u4fdd\u6301\u4e00\u81f4\uff1b\u8981\u4e48\u5c06\u672a\u88ab\u96c6\u6210\u7684HAL\u7ec4\u4ef6\u4eceframework_compatibility_matrix.xml\u4e2d\u5220\u9664\u3002<\/p>\n\n\n\n<p>5.SEPolicy\u914d\u7f6efile.te sysfs_gpu \u91cd\u5b9a\u4e49\u9519\u8bef<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u89e3\u51b3\u8be5\u95ee\u9898\u7684\u529e\u6cd5\u5f88\u7b80\u5355\uff0c\u76f4\u63a5\u5c4f\u853d\u53d1\u751f\u91cd\u5b9a\u4e49\u7684\u5730\u65b9\uff1b\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u5728SEPolicy\u4e2d\uff0ctype\u5b9a\u4e49\u7684\u7c7b\u578b\u662f\u4e0d\u5141\u8bb8\u91cd\u590d\u7684\u3002<\/p>\n\n\n\n<p>6.\u5185\u6838\u901f\u7387\u9650\u5236\u5bfc\u81f4init\u8fdb\u7a0b\u65e5\u5fd7\u65e0\u6cd5\u6253\u5370<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u5728\u79fb\u690d\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u5c3d\u53ef\u80fd\u8be6\u7ec6\u7684\u65e5\u5fd7\uff0c\u4ee5\u786e\u4fdd\u542f\u52a8\u8fc7\u7a0b\u4e2d\u7684\u4efb\u4f55\u5f02\u5e38\u90fd\u80fd\u88ab\u53ca\u65f6\u89c2\u5bdf\u5230\u3002\u4f46\u662f\u6211\u5728\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9891\u7e41\u89c1\u5230\u8fd9\u6837\u7684\u4fe1\u606f;<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"generic\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">printk: init: 141 output lines suppressed due to ratelimiting<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">\u8fd9\u8868\u660e\u67d0\u4e9b\u65f6\u5019init\u8fdb\u7a0b\u6253\u5370\u5230Kernel\u5185\u7684\u65e5\u5fd7\u53ef\u80fd\u4f1a\u56e0\u4e3a\u901f\u7387\u9650\u5236\u800c\u5bfc\u81f4\u65e0\u6cd5\u6253\u5370\uff0c\u8fd9\u4f1a\u4e25\u91cd\u5f71\u54cd\u6211\u4eec\u5bf9\u95ee\u9898\u7684\u8bca\u65ad\u3002\u6b64\u65f6\u6211\u4eec\u9700\u8981\u4fee\u6539\u5185\u6838\u4ee3\u7801\uff0c\u653e\u5bbd\u8fd9\u4e9b\u9650\u5236\u3002\u5185\u6838\u7684\u65e5\u5fd7\u901f\u7387\u9650\u5236\u4f9d\u9760\u5b8f\u5b9a\u4e49\uff0c\u9ed8\u8ba4\u7684\u5185\u6838\u65e5\u5fd7\u901f\u7387\u9650\u5236\u4e3a5s\u518510\u6761\uff0c\u8fd9\u91cc\u66f4\u6539\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"generic\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">iff --git a\/include\/linux\/ratelimit_types.h b\/include\/linux\/ratelimit_types.h\nindex b676aa419..db7eb5be2 100644\n--- a\/include\/linux\/ratelimit_types.h\n+++ b\/include\/linux\/ratelimit_types.h\n@@ -7,7 +7,7 @@\n #include &lt;linux\/spinlock_types.h>\n\n #define DEFAULT_RATELIMIT_INTERVAL     (5 * HZ)\n-#define DEFAULT_RATELIMIT_BURST                10\n+#define DEFAULT_RATELIMIT_BURST                1000<\/code><\/pre>\n\n\n\n<p>\u5c06\u5176\u901f\u7387\u9650\u5236\u653e\u5bbd\u4e3a5s\u51851000\u6761\uff0c\u9700\u8981\u8bf4\u660e\u7684\u662f\u8fc7\u591a\u7684\u65e5\u5fd7\u6253\u5370\u4f1a\u5f71\u54cd\u7cfb\u7edf\u7684\u542f\u52a8\u3002<\/p>\n\n\n\n<p>7.init\u8fdb\u7a0b\u65e5\u5fd7\u8c03\u6574<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u9664\u4e86\u4e0a\u8ff0Kernel\u7684\u65e5\u5fd7\u6253\u5370\u9650\u5236\uff0cinit\u81ea\u8eab\u4e5f\u5b58\u5728\u4e00\u4e9b\u65e5\u5fd7\u7684\u9650\u5236\u3002\u5728\u79fb\u690d\u8c03\u8bd5\u9636\u6bb5\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u5bf9init\u8fdb\u7a0b\u7684\u65e5\u5fd7\u505a\u4e00\u4e9b\u8c03\u6574\uff0c\u4e3b\u8981\u5305\u542b\u4e24\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n<p class=\"has-text-align-justify\">1\uff09\u8c03\u6574\u76f8\u5173\u5b8f\u5b9a\u4e49\uff1ainit\u7684\u6e90\u7801\u4e2d\u4f1a\u6839\u636e\u7f16\u8bd1\u5b8f\u6765\u9009\u62e9\u6027\u5730\u6253\u5370\u67d0\u4e9b\u65e5\u5fd7\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\"> if (LOG_UEVENTS) {\n        LOG(INFO) &lt;&lt; \"event { '\" &lt;&lt; uevent->action &lt;&lt; \"', '\" &lt;&lt; uevent->path &lt;&lt; \"', '\"\n                  &lt;&lt; uevent->subsystem &lt;&lt; \"', '\" &lt;&lt; uevent->firmware &lt;&lt; \"', \" &lt;&lt; uevent- \n                  >major&lt;&lt; \", \" &lt;&lt; uevent->minor &lt;&lt; \" }\";\n    }\n<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">\u8fd9\u91cc\u6211\u4eec\u4f1a\u770b\u5230\uff0cinit\u4f1a\u6839\u636eLOG_EVENTS\u7684\u5b8f\u5b9a\u4e49\u6253\u5370\u989d\u5916\u7684\u65e5\u5fd7\uff0c\u8be5\u5b8f\u5b9a\u4e49\u901a\u8fc7Android.bp\u4e2d\u7684cflags\u8fdb\u884c\u63a7\u5236\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">cflags: [\n        \"-DALLOW_FIRST_STAGE_CONSOLE=0\",\n        \"-DALLOW_LOCAL_PROP_OVERRIDE=0\",\n        \"-DALLOW_PERMISSIVE_SELINUX=0\",\n        \"-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION\",\n        \"-DDUMP_ON_UMOUNT_FAILURE=0\",\n        \"-DINIT_FULL_SOURCES\",\n        \"-DINSTALL_DEBUG_POLICY_TO_SYSTEM_EXT=0\",\n        \"-DLOG_UEVENTS=0\",\n        \"-DREBOOT_BOOTLOADER_ON_PANIC=0\",\n        \"-DSHUTDOWN_ZERO_TIMEOUT=0\",\n        \"-DWORLD_WRITABLE_KMSG=0\",\n        \"-Wall\",\n        \"-Werror\",\n        \"-Wextra\",\n        \"-Wno-unused-parameter\",\n        \"-Wthread-safety\",\n    ],<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">\u5728\u5fc5\u8981\u65f6\u6211\u4eec\u9700\u8981\u624b\u52a8\u8c03\u6574\u8fd9\u4e9b\u5b8f\u5b9a\u4e49\uff0c\u4ee5\u5c3d\u53ef\u80fd\u5730\u83b7\u53d6\u65e5\u5fd7\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">2\uff09\u8c03\u6574\u65e5\u5fd7\u7b49\u7ea7\uff1ainit\u81ea\u8eab\u4e5f\u6709\u4e00\u5957\u81ea\u5df1\u7684\u65e5\u5fd7\u7b49\u7ea7\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5728init.rc\u4e2d\u52a0\u5165loglevel\u5b57\u6bb5\u6765\u63a7\u5236\u5176\u65e5\u5fd7\u7b49\u7ea7\uff0c\u5176\u65e5\u5fd7\u7b49\u7ea7\u5206\u4e3a7-0\uff0c\u5176\u4e2d\u65e5\u5fd77\u5c5e\u4e8e\u6700\u4f4e\u7b49\u7ea7\uff0c\u6240\u6709\u65e5\u5fd7\u90fd\u4f1a\u6253\u5370\uff0c0\u5219\u5c5e\u4e8e\u6700\u9ad8\u7b49\u7ea7\uff0c\u4ec5\u6253\u5370ERROR\u7c7b\u578b\u7684\u65e5\u5fd7\u3002<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">#Sets init's log level to the integer level, from 7 (all logging) to 0 (fatal logging #only). The numeric values correspond to the kernel log levels, but this command does #not affect the kernel log level. Use the write command to write to #\/proc\/sys\/kernel\/printk to change that.Properties are expanded within level.\n\non early-init\n   loglevel 7\n<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8bbe\u5b9aloglevel\u7684\u65f6\u673a\u4e00\u822c\u5728early-init\u9636\u6bb5\u3002<\/p>\n\n\n\n<p>8.logd\u672a\u542f\u52a8\u65f6\u8f93\u51fa\u65e5\u5fd7\u5230\u5185\u6838\u65e5\u5fd7<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u5728\u79fb\u690d\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u4e00\u4e2a\u60c5\u51b5\u662f\uff0clogd\u672a\u542f\u52a8\u6216\u8005\u542f\u52a8\u5931\u8d25\uff0c\u4f7f\u7528Android\u65e5\u5fd7\u7cfb\u7edf\u6253\u5370\u7684\u65e5\u5fd7\u65e0\u6cd5\u8bb0\u5f55\u4e0b\u6765\uff0c\u8fd9\u5bf9\u8bca\u65ad\u670d\u52a1\u542f\u52a8\u5931\u8d25\u8fd9\u7c7b\u95ee\u9898\u662f\u6bd4\u8f83\u9ebb\u70e6\u7684\uff0c\u4e0d\u8fc7\u6211\u4eec\u53ef\u4ee5\u5728\u670d\u52a1\u7684rc\u914d\u7f6e\u4e2d\u52a0\u5165stdio_to_kmsg\u5b57\u6bb5\u6765\u4f7f\u8fd9\u90e8\u5206\u65e5\u5fd7\u6253\u5370\u5230Kmsg\u4e2d\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">service prng_seeder \/system\/bin\/prng_seeder\n    user prng_seeder\n    group prng_seeder\n    stdio_to_kmsg\n    socket prng_seeder stream+listen 0666 prng_seeder prng_seeder<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">9.\u51fa\u73b0\u201dVold-failed\u201c,\u201dboringssl-self-check-failed\u201c\u7b49\u9519\u8bef<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u51fa\u73b0\u8fd9\u4e9b\u9519\u8bef\u65f6\uff0c\u8bb8\u591a\u5b88\u62a4\u8fdb\u7a0b\u5982vold\uff0clogd\uff0clmkd\u7b49\u672a\u80fd\u6b63\u5e38\u542f\u52a8\uff0c\u4e00\u4e9b\u62a5\u9519\u65e5\u5fd7\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">1352: [    8.769387] init: cannot execv('\/system\/bin\/prng_seeder'). See the 'Debugging init' section of init's README.md for tips: No such file or directory\n1769: [   13.781216] init: cannot execv('\/system\/bin\/prng_seeder'). See the 'Debugging init' section of init's README.md for tips: No such file or directory\n1916: [   15.625308] init: cannot execv('\/system\/bin\/logd'). See the 'Debugging init' section of init's README.md for tips: No such file or directory\n1930: [   15.783286] init: cannot execv('\/system\/bin\/lmkd'). See the 'Debugging init' section of init's README.md for tips: No such file or directory\n1950: [   15.938412] init: cannot execv('\/system\/bin\/sh'). See the 'Debugging init' section of init's README.md for tips: No such file or directory\n1970: [   16.152591] init: cannot execv('\/system\/bin\/carwatchdogd'). See the 'Debugging init' section of init's README.md for tips: No such file or directory\n2147: [   18.800270] init: cannot execv('\/system\/bin\/prng_seeder'). See the 'Debugging init' section of init's README.md for tips: No such file or directory\n2270: [   20.660487] init: cannot execv('\/system\/bin\/logd'). See the 'Debugging init' section of init's README.md for tips: No such file or directory\n2282: [   20.805788] init: cannot execv('\/system\/bin\/lmkd'). See the 'Debugging init' section of init's README.md for tips: No such file or directory\n2294: [   20.960923] init: cannot execv('\/system\/bin\/sh'). See the 'Debugging init' section of init's README.md for tips: No such file or directory\n2300: [   21.012662] init: cannot execv('\/system\/bin\/vold'). See the 'Debugging init' section of init's README.md for tips: No such file or directory<\/code><\/pre>\n\n\n\n<p>\u66f4\u65e9\u4e00\u4e9b\u7684\u65e5\u5fd7\u63d0\u793a\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">[    6.107744] e2fsck: linker: Warning: failed to find generated linker configuration from \"\/linkerconfig\/ld.config.txt\"\n[    6.118354] e2fsck: WARNING: linker: Warning: failed to find generated linker configuration from \"\/linkerconfig\/ld.config.txt\"<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">\u901a\u8fc7\u5bf9\u6bd4AOSP14 Cuttlefish\u7684\u542f\u52a8\u65e5\u5fd7\uff0c\u6ca1\u6709\u53d1\u73b0\u4e0a\u8ff0\u9519\u8bef\uff1b\u4ece\u62a5\u9519\u4fe1\u606f\u6765\u770b\uff0c\u50cf\u662f\u7cfb\u7edf\u627e\u4e0d\u5230\u5bf9\u5e94\u6267\u884c\u7684binary\uff0c\u76f4\u89c9\u544a\u8bc9\u6211\u53ef\u80fd\u4e0e\/linkerconfig\/ld.config.txt\u6587\u4ef6\u6709\u5173\uff1b\u6211\u5728\u6b63\u5e38\u8fd0\u884c\u7684\u7cfb\u7edf\u4e2d\u67e5\u770b\u8be5\u6587\u4ef6\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">dir.system = \/system\/bin\/\ndir.system = \/system\/xbin\/\ndir.system = \/system_ext\/bin\/\ndir.product = \/product\/bin\/\ndir.vendor = \/odm\/bin\/\ndir.vendor = \/vendor\/bin\/\n...<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">\u63a8\u6d4bld.config.txt\u7528\u4e8e\u6307\u5bfc\u5b89\u5353\u7cfb\u7edf\u53bb\u6267\u884c\u3001\u94fe\u63a5\u7cfb\u7edf\u4e2d\u7684\u5404\u79cdbinary\u6216\u8005so\u5e93\uff0c\u6211\u4eec\u5728init.rc\u4e2d\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u8bf4\u660e\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\"># Run apexd-bootstrap so that APEXes that provide critical libraries\n# become available. Note that this is executed as exec_start to ensure that\n# the libraries are available to the processes started after this statement.\nexec_start apexd-bootstrap<\/code><\/pre>\n\n\n\n<p>\u8fdb\u800c\u8ffd\u8e2a\u5230init\u8fdb\u7a0b\u6e90\u7801\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">int main(int \/*argc*\/, char** argv) {\n  android::base::InitLogging(argv, &amp;android::base::KernelLogger);\n  \/\/ TODO(b\/158468454): add a -v flag or an external setting to change severity.\n  android::base::SetMinimumLogSeverity(android::base::INFO);\n\n  \/\/ set umask to 022 so that files\/dirs created are accessible to other\n  \/\/ processes e.g.) \/apex\/apex-info-list.xml is supposed to be read by other\n  \/\/ processes\n  umask(022);\n\n  InstallSigtermSignalHandler();\n\n  android::apex::SetConfig(android::apex::kDefaultConfig);\n\n  android::apex::ApexdLifecycle&amp; lifecycle =\n      android::apex::ApexdLifecycle::GetInstance();\n  bool booting = lifecycle.IsBooting();\n\n  const bool has_subcommand = argv[1] != nullptr;\n  if (!android::sysprop::ApexProperties::updatable().value_or(false)) {\n    if (!has_subcommand) {\n  }\n\n  if (has_subcommand) {\n    return HandleSubcommand(argv);\n   }\n   ....\n  }<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">\u5728\u5176main\u51fd\u6570\u5185\u5904\u7406\u65f6\uff0c\u6211\u4eec\u770b\u5230apexd\u9996\u5148\u5224\u65ad\u662f\u5426\u5b58\u5728\u542f\u52a8\u53c2\u6570\uff0c\u518d\u901a\u8fc7android::sysprop::ApexProperties::updatable().value_or(false)\u533a\u5206\u8fdb\u5165\u4e0d\u540c\u7684\u5206\u652f\uff1b\u901a\u8fc7\u89c2\u5bdf\u51fa\u73b0\u95ee\u9898\u65f6\u7684\u65e5\u5fd7\u548cTrout\u4e2d\u6b63\u5e38\u542f\u52a8\u7684\u65e5\u5fd7\uff0c\u53d1\u73b0\u4e24\u8005\u8fdb\u5165\u4e0d\u540c\u7684\u5206\u652f,\u6700\u7ec8\u627e\u5230\/build\/make\/target\/product\/updatable_apex.mk\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">ifneq ($(OVERRIDE_TARGET_FLATTEN_APEX),true)\n  #\u00a0com.android.apex.cts.shim.v1_prebuilt overrides CtsShimPrebuilt\n  # and CtsShimPrivPrebuilt since they are packaged inside the APEX.\n  PRODUCT_PACKAGES += com.android.apex.cts.shim.v1_prebuilt\n  PRODUCT_VENDOR_PROPERTIES := ro.apex.updatable=true\n  TARGET_FLATTEN_APEX := false\n  # Use compressed apexes in pre-installed partitions.\n  # Note: this doesn't mean that all pre-installed apexes will be compressed.\n  #  Whether an apex is compressed or not is controlled at apex Soong module\n  #  via compresible property.\n  PRODUCT_COMPRESSED_APEX := true\nendif<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">\u6211\u4eec\u53ef\u4ee5\u770b\u5230android::sysprop::ApexProperties::updatable()\u83b7\u53d6\u7684\u503c\u5c31\u662fro.apex.updatable\u7684\u503c\uff0c\u8fdb\u800c\u751f\u6210ld.config.txt,\u56e0\u6b64\u6211\u4eec\u5c06\u8be5makefile\u5728\u6211\u4eec\u81ea\u5df1\u7684device.mk\u4e2d\u8fdb\u884c\u5f15\u7528\uff0c\u5373\u89e3\u51b3\u8be5\u95ee\u9898\u3002<\/p>\n\n\n\n<p>10.adb remount\uff0c\u63d0\u793aDevice must be bootloader unlocked<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u8be5\u65e5\u5fd7\u5bf9\u5e94\u7684\u6e90\u7801\u4f4d\u4e8efs_mgr_remount.cpp\u5185\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"cpp\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">\/\/system\/core\/fs_mgr\/fs_mgr_remount.cpp\nif (android::base::GetProperty(\"ro.boot.verifiedbootstate\", \"\") != \"orange\") {\n      LOG(ERROR) &lt;&lt; \"Device must be bootloader unlocked\";\n      return EXIT_FAILURE;\n}<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-justify\">\u901a\u8fc7\u641c\u7d22Makefile\uff0c\u5e76\u6ca1\u6709\u53d1\u73b0\u76f4\u63a5\u8bbe\u7f6ero.boot.verifiedbootstate\u7684\u5730\u65b9\uff0c\u4f46\u53d1\u73b0\u901a\u8fc7BOARD_KERNEL_CMDLINE \u8bbe\u5b9averifiedbootstate\uff0c\u540c\u65f6\u5bf9\u6bd4Trout\u7684makefile\uff0c\u6700\u7ec8\u786e\u8ba4\u4fee\u6539BoardConfig.mk<\/p>\n\n\n\n<pre class=\"io-enlighter-pre\"><code class=\"gl\" data-enlighter-language=\"php\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"\" data-enlighter-highlight=\"\">BOARD_KERNEL_CMDLINE += androidboot.verifiedbootstate=orange<\/code><\/pre>\n\n\n\n<p>Bingo\uff0c\u6700\u7ec8\u7f16\u8bd1\u4e4b\u540e\u70e7\u5f55\u7cfb\u7edf\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"384\" src=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/AOSP14-1024x384.jpg\" alt=\"\" class=\"wp-image-5115\" srcset=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/AOSP14-1024x384.jpg 1024w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/AOSP14-300x113.jpg 300w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/AOSP14-768x288.jpg 768w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/AOSP14-1536x576.jpg 1536w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/AOSP14-18x7.jpg 18w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/AOSP14.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n        <div class=\"booster-block booster-reactions-block\">\n            <div class=\"twp-reactions-icons\">\n                \n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-1\" post-id=\"5101\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/happy.svg\" alt=\"Happy\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">\n                        Happy                    <\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">1<\/span>\n                        \n                                                <span class=\"twp-react-percent\"><span>100<\/span> %<\/span>\n                                            <\/div>\n                <\/div>\n\n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-2\" post-id=\"5101\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/sad.svg\" alt=\"Sad\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">\n                        Sad                    <\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">0<\/span>\n                                                                        <span class=\"twp-react-percent\"><span>0<\/span> %<\/span>\n                                            <\/div>\n                <\/div>\n\n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-3\" post-id=\"5101\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/excited.svg\" alt=\"Excited\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">\n                        Excited                    <\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">0<\/span>\n                                                                        <span class=\"twp-react-percent\"><span>0<\/span> %<\/span>\n                                            <\/div>\n                <\/div>\n\n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-6\" post-id=\"5101\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/sleepy.svg\" alt=\"Sleepy\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">\n                        Sleepy                    <\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">0<\/span>\n                        \n                                                <span class=\"twp-react-percent\"><span>0<\/span> %<\/span>\n                                            <\/div>\n                <\/div>\n\n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-4\" post-id=\"5101\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/angry.svg\" alt=\"Angry\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">Angry<\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">0<\/span>\n                                                                        <span class=\"twp-react-percent\"><span>0<\/span> %<\/span>\n                        \n                    <\/div>\n                <\/div>\n\n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-5\" post-id=\"5101\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/surprise.svg\" alt=\"Surprise\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">Surprise<\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">0<\/span>\n                                                                        <span class=\"twp-react-percent\"><span>0<\/span> %<\/span>\n                                            <\/div>\n                <\/div>\n\n            <\/div>\n        <\/div>","protected":false},"excerpt":{"rendered":"<p>AOSP14\u79fb\u690d\u76f8\u5173\u95ee\u9898\u8bb0\u5f55\u3002<\/p>","protected":false},"author":1,"featured_media":4483,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[18],"tags":[46],"class_list":["post-5101","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-operating-system","tag-android"],"blocksy_meta":[],"aioseo_notices":[],"featured_image_urls":{"full":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android.jpg",512,269,false],"thumbnail":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android-150x150.jpg",150,150,true],"medium":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android-300x158.jpg",300,158,true],"medium_large":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android.jpg",512,269,false],"large":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android.jpg",512,269,false],"1536x1536":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android.jpg",512,269,false],"2048x2048":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android.jpg",512,269,false],"trp-custom-language-flag":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android-18x9.jpg",18,9,true]},"post_excerpt_stackable":"<p>AOSP14\u79fb\u690d\u76f8\u5173\u95ee\u9898\u8bb0\u5f55\u3002<\/p>\n","category_list":"<a href=\"https:\/\/blog.coderfan.org\/en\/category\/operating-system\" rel=\"category tag\">\u64cd\u4f5c\u7cfb\u7edf<\/a>","author_info":{"name":"FranzKafka95","url":"https:\/\/blog.coderfan.org\/en\/author\/yushenglonely95"},"comments_num":"0 comments","featured_image_urls_v2":{"full":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android.jpg",512,269,false],"thumbnail":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android-150x150.jpg",150,150,true],"medium":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android-300x158.jpg",300,158,true],"medium_large":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android.jpg",512,269,false],"large":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android.jpg",512,269,false],"1536x1536":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android.jpg",512,269,false],"2048x2048":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android.jpg",512,269,false],"trp-custom-language-flag":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2023\/04\/android-18x9.jpg",18,9,true]},"post_excerpt_stackable_v2":"<p>AOSP14\u79fb\u690d\u76f8\u5173\u95ee\u9898\u8bb0\u5f55\u3002<\/p>\n","category_list_v2":"<a href=\"https:\/\/blog.coderfan.org\/en\/category\/operating-system\" rel=\"category tag\">\u64cd\u4f5c\u7cfb\u7edf<\/a>","author_info_v2":{"name":"FranzKafka95","url":"https:\/\/blog.coderfan.org\/en\/author\/yushenglonely95"},"comments_num_v2":"0 comments","_links":{"self":[{"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/posts\/5101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/comments?post=5101"}],"version-history":[{"count":20,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/posts\/5101\/revisions"}],"predecessor-version":[{"id":5129,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/posts\/5101\/revisions\/5129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/media\/4483"}],"wp:attachment":[{"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/media?parent=5101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/categories?post=5101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/tags?post=5101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}