{"id":120,"date":"2025-08-11T00:35:37","date_gmt":"2025-08-10T16:35:37","guid":{"rendered":"https:\/\/www.ani-nya.com\/wordpress\/?p=120"},"modified":"2025-08-11T00:35:37","modified_gmt":"2025-08-10T16:35:37","slug":"android%e9%89%b4%e5%ae%9a%e4%b8%ba-%e6%90%9e%e7%a7%bb%e6%a4%8d%e7%9a%84","status":"publish","type":"post","link":"https:\/\/www.ani-nya.com\/wordpress\/archives\/120","title":{"rendered":"[Android]\u9274\u5b9a\u4e3a: \u641e\u79fb\u690d\u7684"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><br><\/h1>\n\n\n\n<p>\u6709\u65f6\u5019\u51fa\u4e8e\u5404\u79cd\u9700\u8981\uff0c\u9700\u8981\u79fb\u503c\u4e00\u4e9bblobs<\/p>\n\n\n\n<p>\u6211\u4eec\u8981\u786e\u4fdd<\/p>\n\n\n\n<p>a. \u5e95\u5c42\u7f16\u8bd1\u5e93\u7248\u672c\u7b26\u5408 \u6bd4\u5982gcc\u7f16\u8bd1\u4e00\u4e2ac\u7a0b\u5e8f \u5c31\u8981\u770blibc\u5e93\u7684\u7248\u672c java\u7a0b\u5e8f\u53ef\u80fd\u8fd8\u5206java 8 java11 \u7b49\u7b49<\/p>\n\n\n\n<p>\u5982\u679c\u662f\u5b89\u5353 \u4e00\u822c\u5b89\u5353\u5927\u7248\u672c\u7b26\u5408\u5373\u53ef<\/p>\n\n\n\n<p>1\u3001\u6ce8\u610fselinux<\/p>\n\n\n\n<p>selinux\u662f\u4e2a\u8ba8\u4eba\u538c\u7684\u4e1c\u897f<\/p>\n\n\n\n<p>\u8981\u914d\u7f6ete\u89c4\u5219\u5141\u8bb8 \u4e5f\u8981\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650 \u4ee5\u514d\u7981\u6b62\u6267\u884c\u6587\u4ef6 \u7981\u6b62\u8fdb\u7a0b\u8bfb\u53d6\u5176\u4ed6\u6587\u4ef6 \u6216\u8005\u7981\u6b62init\u7684\u72b6\u6001\u8f6c\u6362\u4e4b\u7c7b\u7684\uff0c\u975e\u5e38\u9ebb\u70e6\uff0c\u53ef\u4ee5\u4ece\u539f\u5382\u7684etc\/selinux \u4e0b\u9762\u67e5\u8be2selinux\u76f8\u5173\u4fe1\u606f<\/p>\n\n\n\n<p>\u6587\u4ef6\u6743\u9650\u4e00\u822c\u5728 file_contexts \u4e4b\u7c7b\u7684\u4e0b\u9762<\/p>\n\n\n\n<p>\u6743\u9650\u914d\u7f6e\u6709\u53ef\u80fd\u662fcil\u6587\u4ef6\uff0c \u5177\u4f53\u8f6c\u6362\u53ef\u4ee5\u4f7f\u7528\u6211\u7684github\u9879\u76ee<\/p>\n\n\n\n<p>\u5f53\u7136\u9700\u8981\u5c0f\u4fee\u6539\uff0cgithub\u4e0a\u53ea\u662f\u7701\u4e8b99% \u6700\u540e1% \u8fd8\u662f\u8981\u81ea\u5df1\u4fee\u6539<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/u0-ani-nya\/setools\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/github.com\/u0-ani-nya\/setools<\/a><\/p>\n\n\n\n<p>2\u3001 \u6ce8\u610f\u94fe\u63a5\u5e93<\/p>\n\n\n\n<p>\u4f7f\u7528readelf -d \u53ef\u6267\u884c\u6587\u4ef6 \u6765\u8bfb\u53d6\u4f9d\u8d56\u7684\u8fd0\u884c\u5e93so\u6587\u4ef6<\/p>\n\n\n\n<p>\u4f7f\u7528readelf -l \u8bfb\u53d6linker\u8def\u5f84\uff0c\u5982\u679clinker\u627e\u4e0d\u5230 \u90a3\u4e48\u5e93\u5c31\u4f1a\u767d\u590d\u5236<\/p>\n\n\n\n<p>3\u3001 \u5982\u679c\u79fb\u503c\u5931\u8d25<\/p>\n\n\n\n<p>etc\/init \u4e0b\u9762 \u6709\u4e00\u5806rc\u6587\u4ef6<\/p>\n\n\n\n<p>\u5982\u679c\u8981\u7528\u7684\u79fb\u503c\u7684\u4ec0\u4e48\u529f\u80fd\uff0c \u79fb\u503c\u4e4b\u540e\u8fd0\u884c\u5f02\u5e38\uff0c \u6709\u53ef\u80fd\u662f\u5c11\u4e86\u4ec0\u4e48<\/p>\n\n\n\n<p>\u53ef\u4ee5\u4eceinit.rc \u6216\u8005xxx.rc \u7b49 \u627e\u5230\u5177\u4f53\u90fd\u6709\u4ec0\u4e48<\/p>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u5728\u6709root\u7684\u8bbe\u5907 \u8fd0\u884cgetprop | grep init.svc<\/p>\n\n\n\n<p>\u4f5c\u7528\u662f\u67e5\u770b\u8fd9\u4e2a\u8bbe\u5907\u4e0a\u8fd0\u884c\u4e86\u4ec0\u4e48\uff0c\u4ece[running]\u91cc\u9762\u5927\u6982\u7387\u6709\u8fd9\u4e2a\u670d\u52a1\u8fd0\u884c\u9700\u8981\u4ec0\u4e48\u7684\u4fe1\u606f<\/p>\n\n\n\n<p>4\u3001etc\/vintf<\/p>\n\n\n\n<p>vintf\u5dee\u4e0d\u591a\u662f\u4e2a\u58f0\u660e\uff0c\u91cc\u9762\u5b58\u653eaidl\u548chidl\u7c7b\u578b\u7684\u58f0\u660e<\/p>\n\n\n\n<p>\u5efa\u8bae\u53c2\u8003 https:\/\/blog.xzr.moe\/archives\/99\/ \u5199\u7684\u975e\u5e38\u597d<\/p>\n\n\n\n<p>\u4e4b\u540e\u60f3\u8d77\u6765\u4ec0\u4e48\u7ee7\u7eed\u66f4\u65b0<\/p>\n\n\n\n<p>\u6ce8: etc \u6307\u7684\u662f system\/etc system_ext\/etc vendor\/etc persist\/etc \u7b49\u76ee\u5f55<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u65f6\u5019\u51fa\u4e8e\u5404\u79cd\u9700\u8981\uff0c\u9700\u8981\u79fb\u503c\u4e00\u4e9bblobs \u6211\u4eec\u8981\u786e\u4fdd a. \u5e95\u5c42\u7f16\u8bd1\u5e93\u7248\u672c\u7b26\u5408 \u6bd4\u5982gcc\u7f16\u8bd1\u4e00\u4e2ac\u7a0b\u5e8f \u5c31\u8981\u770blibc\u5e93\u7684\u7248\u672c &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.ani-nya.com\/wordpress\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ani-nya.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ani-nya.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ani-nya.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ani-nya.com\/wordpress\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":1,"href":"https:\/\/www.ani-nya.com\/wordpress\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/www.ani-nya.com\/wordpress\/wp-json\/wp\/v2\/posts\/120\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/www.ani-nya.com\/wordpress\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ani-nya.com\/wordpress\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ani-nya.com\/wordpress\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}