{"id":290,"date":"2022-10-27T20:23:57","date_gmt":"2022-10-27T12:23:57","guid":{"rendered":"https:\/\/h4ckm310n.com\/?p=290"},"modified":"2024-07-05T15:51:35","modified_gmt":"2024-07-05T07:51:35","slug":"%e3%80%90%e6%8c%96%e5%9d%91%e3%80%91%e4%bf%ae%e6%94%b9vivo-y31s%e7%9a%84recovery%ef%bc%8c%e4%bd%bf%e4%b9%8b%e6%94%af%e6%8c%81adb","status":"publish","type":"post","link":"https:\/\/h4ckm310n.com\/?p=290","title":{"rendered":"\u4fee\u6539Vivo Y31S\u7684recovery\uff0c\u4f7f\u4e4b\u652f\u6301adb"},"content":{"rendered":"<p>\u6700\u8fd1root\u4e86Y31S\uff0c\u60f3\u987a\u4fbf\u8ba9recovery\u4e5f\u652f\u6301root\u6743\u9650\u7684adb\uff0c\u9042\u5c1d\u8bd5\u8fdb\u884c\u4e00\u6ce2\u4fee\u6539\u3002<br \/>\n\u8fd9\u4e2a\u5751\u662f22\u5e7410\u6708\u5f00\u59cb\u7684\uff0c\u4f46\u662f\u88ab\u8fde\u4e0d\u4e0ausb\u8fd9\u4e2a\u95ee\u9898\u56f0\u6270\u4e86\u5f88\u4e45\uff0c\u6700\u540e\u7ec8\u4e8e\u572824\u5e747\u6708\u89e3\u51b3\u4e86\uff0c\u5c5e\u5b9e\u4e0d\u5bb9\u6613\u3002<br \/>\n<!--more--><\/p>\n<p>\u9996\u5148\u4e0b\u8f7d\u5b98\u65b9\u5347\u7ea7\u5305\uff0c\u5728firmware-update\u76ee\u5f55\u4e0b\u627e\u5230recovery.img\u3002\u63a5\u4e0b\u6765\u7684\u89e3\u5305\u3001\u4fee\u6539\u3001\u6253\u5305\u7684\u5de5\u4f5c\u5747\u5728Linux\u865a\u62df\u673a\u4e0b\u8fdb\u884c\u3002<\/p>\n<p>\u89e3\u5305recovery.img\uff1a<\/p>\n<pre>\r\nmkdir recovery; cd recovery; mkdir unpack\r\ncd unpack; magiskboot unpack ..\/..\/recovery.img\r\n<\/pre>\n<p>\u6b64\u65f6\u4f1a\u5728unpack\u76ee\u5f55\u4e0b\u751f\u6210\u4e00\u4e2akernel\u6587\u4ef6\u548c\u4e00\u4e2aramdisk.cpio\u6587\u4ef6\u3002<\/p>\n<p>\u63d0\u53d6prop.default\u548cinit.recovery.platform.rc\u4e24\u4e2a\u6587\u4ef6\uff1a<\/p>\n<pre>\r\ncd ..\/\r\n\/data\/adb\/magisk\/magiskboot cpio unpack\/ramdisk.cpio \"extract prop.default prop.default\" \"extract init.recovery.platform.rc init.recovery.platform.rc\"\r\n<\/pre>\n<p>\u7f16\u8f91\u5176\u4e2d\u7684prop.default\u6587\u4ef6\uff0c\u5c06ro.secure\u548cro.adb.secure\u7684\u503c\u6539\u4e3a0\uff0c\u5c06ro.debuggable\u7684\u503c\u6539\u4e3a1\uff0cpersist.sys.usb.config\u7684\u503c\u6539\u4e3aadb\u3002<br \/>\n\u5230\u8fd9\u4e00\u6b65\uff0c\u867d\u7136\u80fd\u591f\u5f00\u542fadb\u4e86\uff0c\u4f46\u662frecovery\u4e0b\u8fde\u4e0d\u4e0ausb\uff0c\u6240\u4ee5\u8fd8\u9700\u8981\u5f00\u542fusb\u3002\u4ece\u624b\u673a\u91cc\u9762\u63d0\u53d6\/vendor\/lib\/modules\/vivo-fuel_summary.ko\uff0c\u5e76\u4fee\u6539init.recovery.platform.rc\u6587\u4ef6\uff0c\u5728\u201cinsmod \/vendor\/lib\/modules\/vivo-chg-cms.ko\u201d\u8fd9\u4e00\u884c\u7684\u4e0a\u9762\u6dfb\u52a0\u4e00\u884c\u201cinsmod \/vendor\/lib\/modules\/vivo-fuel_summary.ko\u201d\u3002<\/p>\n<p>\u7136\u540e\u91cd\u65b0\u6253\u5305\u3002<\/p>\n<pre>\r\nmagiskboot cpio unpack\/ramdisk.cpio \"add 0600 prop.default prop.default\" \"add 0644 init.recovery.platform.rc init.recovery.platform.rc\" \"add 0644 vendor\/lib\/modules\/vivo-fuel_summary.ko vivo-fuel_summary.ko\"\r\ncd unpack\r\nmagiskboot repack ..\/..\/recovery.img ..\/new_recovery.img\r\n<\/pre>\n<p>\u6700\u540e\u91cd\u65b0\u5237\u5165\uff1a<\/p>\n<pre>\r\nfastboot flash recovery new_recovery.img\r\nfastboot reboot recovery\r\n<\/pre>\n<p>\u73b0\u5728\u5e94\u8be5\u80fd\u5728recovery\u4e0b\u901a\u8fc7usb\u8fde\u63a5adb\u4e86\u3002<\/p>\n<p>Ref:<br \/>\n[1] <a href=\"https:\/\/forum.xda-developers.com\/t\/how-to-change-files-in-the-boot-image-using-magisk.4495645\/\">https:\/\/forum.xda-developers.com\/t\/how-to-change-files-in-the-boot-image-using-magisk.4495645\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1root\u4e86Y31S\uff0c\u60f3\u987a\u4fbf\u8ba9recovery\u4e5f\u652f\u6301root\u6743\u9650\u7684adb\uff0c\u9042\u5c1d\u8bd5\u8fdb\u884c\u4e00\u6ce2\u4fee\u6539\u3002 \u8fd9\u4e2a\u5751\u662f22 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[22,6],"tags":[],"class_list":["post-290","post","type-post","status-publish","format-standard","hentry","category-android","category-6"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"h4ckm310n","author_link":"https:\/\/h4ckm310n.com\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":"\u6700\u8fd1root\u4e86Y31S\uff0c\u60f3\u987a\u4fbf\u8ba9recovery\u4e5f\u652f\u6301root\u6743\u9650\u7684adb\uff0c\u9042\u5c1d\u8bd5\u8fdb\u884c\u4e00\u6ce2\u4fee\u6539\u3002 \u8fd9\u4e2a\u5751\u662f22&hellip;","_links":{"self":[{"href":"https:\/\/h4ckm310n.com\/index.php?rest_route=\/wp\/v2\/posts\/290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/h4ckm310n.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/h4ckm310n.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/h4ckm310n.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/h4ckm310n.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=290"}],"version-history":[{"count":5,"href":"https:\/\/h4ckm310n.com\/index.php?rest_route=\/wp\/v2\/posts\/290\/revisions"}],"predecessor-version":[{"id":998,"href":"https:\/\/h4ckm310n.com\/index.php?rest_route=\/wp\/v2\/posts\/290\/revisions\/998"}],"wp:attachment":[{"href":"https:\/\/h4ckm310n.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/h4ckm310n.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/h4ckm310n.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}