{"id":1100,"date":"2024-02-11T17:35:27","date_gmt":"2024-02-11T17:35:27","guid":{"rendered":"http:\/\/robinluo.top\/?p=1100"},"modified":"2024-02-11T17:35:27","modified_gmt":"2024-02-11T17:35:27","slug":"aosp-%e7%ad%be%e5%90%8d%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"https:\/\/robinluo.top\/?p=1100","title":{"rendered":"AOSP \u7b7e\u540d\u4fe1\u606f"},"content":{"rendered":"\n<p>\u8bc1\u4e66\u79d8\u94a5\u4fdd\u5b58\u5728build\/target\/product\/security\/\u6587\u4ef6\u5939\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-rw-rw-r-- 1 robin robin  977 7\u6708  13  2022 Android.bp\n-rw-rw-r-- 1 robin robin 3179 7\u6708  13  2022 Android.mk\n-rw-rw-r-- 1 robin robin 1217 7\u6708  13  2022 cts_uicc_2021.pk8\n-rw-rw-r-- 1 robin robin 1464 7\u6708  13  2022 cts_uicc_2021.x509.pem\n-rw-rw-r-- 1 robin robin 1484 7\u6708  13  2022 fsverity-release.x509.der\n-rw-rw-r-- 1 robin robin 1675 7\u6708  13  2022 media.pem\n-rw-rw-r-- 1 robin robin 1217 7\u6708  13  2022 media.pk8\n-rw-rw-r-- 1 robin robin 1440 7\u6708  13  2022 media.x509.pem\n-rw-rw-r-- 1 robin robin 2375 7\u6708  13  2022 networkstack.pk8\n-rw-rw-r-- 1 robin robin 2094 7\u6708  13  2022 networkstack.x509.pem\n-rw-rw-r-- 1 robin robin 1675 7\u6708  13  2022 platform.pem\n-rw-rw-r-- 1 robin robin 1216 7\u6708  13  2022 platform.pk8\n-rw-rw-r-- 1 robin robin 1440 7\u6708  13  2022 platform.x509.pem\n-rw-rw-r-- 1 robin robin 3299 7\u6708  13  2022 README\n-rw-rw-r-- 1 robin robin 1679 7\u6708  13  2022 shared.pem\n-rw-rw-r-- 1 robin robin 1218 7\u6708  13  2022 shared.pk8\n-rw-rw-r-- 1 robin robin 1440 7\u6708  13  2022 shared.x509.pem\n-rw-rw-r-- 1 robin robin 1675 7\u6708  13  2022 testkey.pem\n-rw-rw-r-- 1 robin robin 1216 7\u6708  13  2022 testkey.pk8\n-rw-rw-r-- 1 robin robin 1440 7\u6708  13  2022 testkey.x509.pem\n-rw-rw-r-- 1 robin robin  524 7\u6708  13  2022 verity_key\n-rw-rw-r-- 1 robin robin 1219 7\u6708  13  2022 verity.pk8\n-rw-rw-r-- 1 robin robin 1444 7\u6708  13  2022 verity.x509.pem\n<\/code><\/pre>\n\n\n\n<p>.pk8 \u4ee3\u8868\u79c1\u94a5 private key<\/p>\n\n\n\n<p>.x509.pem \u4ee3\u8868\u516c\u94a5 public key (CERTIFICATE)<\/p>\n\n\n\n<p>.pem \u4ee3\u8868rsa \u79c1\u94a5  RSA PRIVATE KEY  \uff08pk8 \u7684\u53e6\u4e00\u79cd\u683c\u5f0f\uff09<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e3b\u8981\u6709\u56db\u4e2a\u7b7e\u540d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>testKey platform shared media<\/code><\/pre>\n\n\n\n<p>\u6700\u91cd\u8981\u7684\u662fplatform \u7cfb\u7edf\u7b7e\u540d\u5e94\u7528 \u8be5\u7b7e\u540d\u7684app\u80fd \u83b7\u53d6\u7cfb\u7edf\u6743\u9650<\/p>\n\n\n\n<p>\u8be5\u6587\u4ef6\u5939\u4e0b\u7684readme\u4ecb\u7ecd\u5982\u4f55\u751f\u6210\u65b0\u7684\u79d8\u94a5<\/p>\n\n\n\n<p>\u5220\u9664\u5907\u4efd\u65e7\u7684platform\u79d8\u94a5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm platform.pem\nrm platform.pk8\nrm platform.x509.pem<\/code><\/pre>\n\n\n\n<p>\u751f\u6210\u65b0\u7684\u79d8\u94a5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  development\/tools\/make_key platform      '\/C=CN\/ST=Guangdong\/L=Guangzhou\/O=Android\/OU=Robin\/CN=blog.robinluo.top\/emailAddress=1569964920@qq.com'\n\n\u4e0d\u8f93\u5165\u5bc6\u7801\n\u751f\u6210platform \u79d8\u94a5\u6587\u4ef6\nplatform.pk8\nplatform.x509.pem\n\n\u751f\u6210p12\u6587\u4ef6\n   openssl pkcs12 -export -out platform.p12 -inkey platform.pem -in platform.x509.pem\n\n\n\u751f\u6210jks\u7b7e\u540d\u6587\u4ef6\n      keytool -importkeystore -deststorepass RobinLuo -destkeystore .\/platform.jks -srckeystore .\/platform.p12 -srcstoretype PKCS12\n\n\u67e5\u770bjks\u6587\u4ef6\nkeytool -list -keystore platform.jks \n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8bc1\u4e66\u79d8\u94a5\u4fdd\u5b58\u5728build\/target\/product\/security\/\u6587\u4ef6\u5939\u4e0b .pk8 \u4ee3\u8868\u79c1\u94a5 private key .x509.pem \u4ee3\u8868\u516c\u94a5 public key (CERTIFICATE) .pem \u4ee3\u8868rsa \u79c1\u94a5 RSA PRIVATE KEY \uff08pk8 \u7684\u53e6\u4e00\u79cd\u683c\u5f0f\uff09 \u4e3b\u8981\u6709\u56db\u4e2a\u7b7e\u540d \u6700\u91cd\u8981\u7684\u662fplatform \u7cfb\u7edf\u7b7e\u540d\u5e94\u7528 \u8be5\u7b7e\u540d\u7684app\u80fd \u83b7\u53d6\u7cfb\u7edf\u6743\u9650 \u8be5\u6587\u4ef6\u5939\u4e0b\u7684readme\u4ecb\u7ecd\u5982\u4f55\u751f\u6210\u65b0\u7684\u79d8\u94a5 \u5220\u9664\u5907\u4efd\u65e7\u7684platform\u79d8\u94a5 \u751f\u6210\u65b0\u7684\u79d8\u94a5<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[137],"tags":[164,163],"_links":{"self":[{"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/posts\/1100"}],"collection":[{"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/robinluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1100"}],"version-history":[{"count":16,"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/posts\/1100\/revisions"}],"predecessor-version":[{"id":1116,"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/posts\/1100\/revisions\/1116"}],"wp:attachment":[{"href":"https:\/\/robinluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robinluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robinluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}