{"id":9195,"date":"2023-04-12T09:09:12","date_gmt":"2023-04-12T01:09:12","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=9195"},"modified":"2024-04-17T16:34:34","modified_gmt":"2024-04-17T08:34:34","slug":"rk3588_android12%e7%bc%96%e8%af%91","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=9195","title":{"rendered":"rk3588_android12\u7f16\u8bd1"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_16 counter-hierarchy counter-decimal ez-toc-grey\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9195\/#%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA\" title=\"\u73af\u5883\u642d\u5efa\">\u73af\u5883\u642d\u5efa<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9195\/#%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93\" title=\"\u95ee\u9898\u603b\u7ed3\">\u95ee\u9898\u603b\u7ed3<\/a><ul class=\"ez-toc-list-level-4\"><li class=\"ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9195\/#%E5%85%A8%E7%BC%96%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93\" title=\"\u5168\u7f16\u95ee\u9898\u603b\u7ed3\">\u5168\u7f16\u95ee\u9898\u603b\u7ed3<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9195\/#%E4%BF%AE%E6%94%B9%E6%BA%90%E7%A0%81%E8%BF%87%E7%A8%8B%E4%B8%AD%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93\" title=\"\u4fee\u6539\u6e90\u7801\u8fc7\u7a0b\u4e2d\u95ee\u9898\u603b\u7ed3\">\u4fee\u6539\u6e90\u7801\u8fc7\u7a0b\u4e2d\u95ee\u9898\u603b\u7ed3<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9195\/#%E4%BF%AE%E6%94%B9\" title=\"\u4fee\u6539\">\u4fee\u6539<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9195\/#%E6%A8%A1%E5%9D%97%E5%8C%96%E7%BC%96%E8%AF%91\" title=\"\u6a21\u5757\u5316\u7f16\u8bd1\">\u6a21\u5757\u5316\u7f16\u8bd1<\/a><ul class=\"ez-toc-list-level-4\"><li class=\"ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-7\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9195\/#frameworks%E6%A8%A1%E5%9D%97%E5%8C%96%E7%BC%96%E8%AF%91\" title=\"frameworks\u6a21\u5757\u5316\u7f16\u8bd1\">frameworks\u6a21\u5757\u5316\u7f16\u8bd1<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA\"><\/span>\u73af\u5883\u642d\u5efa<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><a href=\"https:\/\/blog.csdn.net\/hool_wei\/article\/details\/125628718\">https:\/\/blog.csdn.net\/hool_wei\/article\/details\/125628718<\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93\"><\/span>\u95ee\u9898\u603b\u7ed3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"%E5%85%A8%E7%BC%96%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93\"><\/span>\u5168\u7f16\u95ee\u9898\u603b\u7ed3<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>\n<p>\/bin\/sh: 1: flex: not found<br \/>\n<code>sudo apt-get install flex<\/code><\/p>\n<\/li>\n<li>\n<p>\/u-boot\/scripts\/fit.sh: line 603: fdtget: command not found<br \/>\n\u9700\u8981\u5b89\u88c5fdtget<br \/>\n<code>sudo apt-get install device-tree-compiler<\/code><\/p>\n<\/li>\n<li>\n<p>scripts\/extract-cert.c:21:10: fatal error: 'openssl\/bio.h' file not found<\/p>\n<pre><code class=\"language-bash\">sudo apt install openssl\nsudo apt install libssl-dev<\/code><\/pre>\n<\/li>\n<li>\n<p>\/usr\/bin\/env: \u2018python\u2019: No such file or directory<br \/>\n<code>sudo apt install python<\/code><\/p>\n<\/li>\n<li>\n<p>prebuilts\/clang\/host\/linux-x86\/clang-3289846\/bin\/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory<br \/>\n<code>sudo apt install libncurses5<\/code><\/p>\n<\/li>\n<li>\n<p>module adbd missing dependencies: libbrotli<br \/>\n\u901a\u8fc7apt install brotli\u662f\u4e0d\u8d77\u4f5c\u7528\u7684\uff0cgithub\u4e0a\u4e0b\u8f7d\u7f16\u8bd1\u5b89\u88c5\u8fd8\u662f\u62a5\u9519\u3002<br \/>\n<img src=\"http:\/\/xinyiworld.top\/wordpress_it\/wp-content\/uploads\/2023\/04\/D1B4CAEB-B1FE-49c1-83EF-3E92CBF3AF83.png\" alt=\"\" \/><\/p>\n<\/li>\n<\/ul>\n<p>\u6ce8\u610f\u8fd9\u91cc\u662f\u8981\u53bb\u66ff\u6362\u4e00\u4e0bandroid\u6e90\u7801\u91cc\u7684<code>\/external\/brotli<\/code>\u8fd9\u4e2a\u5e93\uff0c\u800c\u975e\u865a\u62df\u673a\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"%E4%BF%AE%E6%94%B9%E6%BA%90%E7%A0%81%E8%BF%87%E7%A8%8B%E4%B8%AD%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93\"><\/span>\u4fee\u6539\u6e90\u7801\u8fc7\u7a0b\u4e2d\u95ee\u9898\u603b\u7ed3<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>\n<p>error: Missing nullability on method xxxxxx return [MissingNullability] lint\u68c0\u67e5 \u63d0\u793a\u201cMissingNullability\u201d<br \/>\n\u95ee\u9898\u539f\u56e0\uff1aAndroid 11 \u4ee5\u540e\u8c37\u6b4c\u5f3a\u5236\u5f00\u542flint\u68c0\u67e5\uff0clint\u68c0\u67e5\u4e0d\u8fc7\u7f16\u8bd1\u4f1a\u62a5\u9519<br \/>\n\u89e3\u51b3\u65b9\u6848\uff1a\u52a0\u4e0a@Nullable \u6ce8\u89e3 \u8868\u660e\u8be5\u65b9\u6cd5\u53ef\u4ee5\u8fd4\u56de\u7a7a<\/p>\n<\/li>\n<li>\n<p>\u65b0\u589eapi\u7f16\u8bd1\u62a5\u9519<br \/>\n<a href=\"https:\/\/blog.csdn.net\/downloadname\/article\/details\/125006111\">https:\/\/blog.csdn.net\/downloadname\/article\/details\/125006111<\/a><br \/>\n<code>2. You can update current.txt and\/or removed.txt by executing the following command:<\/code><br \/>\n\u6309\u7167\u63d0\u793a\u6267\u884c\u547d\u4ee4\u5373\u53ef\uff0c\u5982\u679cm\u6307\u4ee4\u4e0d\u884c\uff0c\u5c31\u4f7f\u7528make\u6307\u4ee4\u3002<\/p>\n<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"%E4%BF%AE%E6%94%B9\"><\/span>\u4fee\u6539<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>\u5f00\u542froot\u6743\u9650<br \/>\n<a href=\"https:\/\/blog.csdn.net\/weixin_43245753\/article\/details\/125448467\">https:\/\/blog.csdn.net\/weixin_43245753\/article\/details\/125448467<\/a><br \/>\n\u7ea0\u6b63\u4e00\u4e0b\u6587\u7ae0\u4e2d\u7684\u51e0\u5904\u63cf\u8ff0\u4e0d\u6b63\u786e\u7684\u5730\u65b9\uff1a<br \/>\n1\uff09rk3588 andriod12\u7684\u76ee\u5f55\u4e0d\u4e00\u5b9a\u662fkernel-5.10\uff0c\u4e5f\u6709\u53ef\u80fd\u662fkernel-5.11\uff0c\u5177\u4f53\u53ef\u4ee5\u770bbuild.sh\u7684\u811a\u672c\u6253\u5370\u3002<br \/>\n2\uff09base_system.mk\u4f4d\u4e8ebuild\/make\u76ee\u5f55\uff0c\u800c\u975ebuild\/core\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<p>\u4fee\u6539\u6ce8\u610f\u70b9\uff1a\u4fee\u6539selinux.cpp\u65f6\u4e0d\u8981\u5c06StatusFromCmdline\u65b9\u6cd5\u6ce8\u91ca\u4e86\uff0c\u5426\u5219\u7f16\u8bd1\u62a5\u9519\uff0c\u8bf4\u65b9\u6cd5\u672a\u5f15\u7528\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%A8%A1%E5%9D%97%E5%8C%96%E7%BC%96%E8%AF%91\"><\/span>\u6a21\u5757\u5316\u7f16\u8bd1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"frameworks%E6%A8%A1%E5%9D%97%E5%8C%96%E7%BC%96%E8%AF%91\"><\/span>frameworks\u6a21\u5757\u5316\u7f16\u8bd1<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><a href=\"https:\/\/blog.csdn.net\/lvyaer_1122\/article\/details\/130760135\">https:\/\/blog.csdn.net\/lvyaer_1122\/article\/details\/130760135<\/a><\/p>\n<p>1.<code>frameworks\/base\/core\/java<\/code>\u4e0b\u7684java\u6e90\u6587\u4ef6\u4fee\u6539<br \/>\n<code>frameworks\/base\/core\/java<\/code>\u76f8\u5173java\u6587\u4ef6\u4fee\u6539\uff0c\u9700\u8981\u7f16\u8bd1framework-minus-apex\u4e0eframework-minus-apex-intdefs\u6a21\u5757\uff0c\u800c\u8fd9\u4e24\u4e2a\u6a21\u5757\u5c5e\u4e8eframeworks\/base\/Android.bp\u4e2d\u5b9a\u4e49\u7684\uff0c\u7f16\u8bd1\u6307\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-bash\">mmm  frameworks\/base\/:framework-minus-apex,framework-minus-apex-intdefs<\/code><\/pre>\n<p>\u8f93\u51fa\u8def\u5f84\u4e3a<code>out\/target\/product\/xx\/system\/framework\/<\/code><\/p>\n<p><strong>\u5982\u4f55\u5b9a\u4f4d\u5b50\u6a21\u5757<\/strong>\uff1f<br \/>\n\u627e\u5230\u4fee\u6539\u7684\u6e90\u6587\u4ef6\u7684\u6700\u8fd1\u7684Android.bp\uff0c\u68c0\u7d22\u5f15\u7528\u6e90\u6587\u4ef6\u7684module\u6216\u8005file_group\uff0c\u53ea\u6709\u975edefault\u7684module\u624d\u8981\u7f16\u8bd1\uff0c\u5426\u5219\u8981\u67e5\u627e\u7ee7\u7eed\u67e5\u627e\u7ee7\u627f\u4e86\u975edefault\u7684module;file_group\u5219\u8981\u627e\u5230\u6700\u90bb\u8fd1\u7684\u5f15\u7528\u7684\u53ea\u6709\u975edefault\u7684module\u3002<\/p>\n<button class=\"simplefavorite-button\" data-postid=\"9195\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 \u73af\u5883\u642d\u5efa\u95ee\u9898\u603b\u7ed3\u5168\u7f16\u95ee\u9898\u603b\u7ed3\u4fee\u6539\u6e90\u7801\u8fc7\u7a0b\u4e2d\u95ee\u9898\u603b\u7ed3\u4fee\u6539\u6a21\u5757\u5316\u7f16\u8bd1frameworks\u6a21\u5757\u5316\u7f16\u8bd1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[721],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/9195"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9195"}],"version-history":[{"count":18,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/9195\/revisions"}],"predecessor-version":[{"id":13043,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/9195\/revisions\/13043"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9195"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}