{"id":411,"date":"2024-04-22T06:12:03","date_gmt":"2024-04-22T13:12:03","guid":{"rendered":"https:\/\/junsun.net\/wordpress\/?p=411"},"modified":"2024-04-22T06:13:03","modified_gmt":"2024-04-22T13:13:03","slug":"how-i-rooted-oneplus-12-with-magisk","status":"publish","type":"post","link":"http:\/\/junsun.net\/wordpress\/2024\/04\/how-i-rooted-oneplus-12-with-magisk\/","title":{"rendered":"How I Rooted OnePlus 12 with Magisk"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There are many conflicting sources on the Internet.  Specifically I tried <a href=\"https:\/\/bbs.oneplus.com\/thread\/1485761086979309574\">this one<\/a> and did not work.  Below is a short recap what has worked for me.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Short Recap<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Follow <a href=\"https:\/\/topjohnwu.github.io\/Magisk\/install.html\">Magisk official installation guide<\/a><ul><li>OnePlus 12 has ramdisk and uses init_boot.img<\/li><li>get oneplus 12 image zip file from <a href=\"https:\/\/bbs.oneplus.com\/thread\/1482297608171945990\">this site<\/a><\/li><li>use payload dumper to extract init_boot.img from <a href=\"https:\/\/github.com\/vm03\/payload_dumper\">here<\/a> <\/li><li>patch init_boot.img and flash the patched version according to the guide<\/li><\/ul><\/li><li>By now, Magisk should be installed and you should have root access<\/li><li>Install Magisk Module Manager to install modules<ul><li>for unknown reasons, I could install modules with Magisk app itself, nor through the manual method<\/li><\/ul><\/li><li>(Bonus) I like to create your own Magisk module.  I used <a href=\"https:\/\/github.com\/oasisfeng\/magisk-module-template\/blob\/master\/README.md\">the template<\/a> <ul><li>Specifically if you like to modify a file under \/system_ext, please use the path \/system\/system_ext.<\/li><li>For example, if you like to add a file \/system_ext\/foo, use \/system\/system_ext\/foo instead.<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">That is it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many conflicting sources on the Internet. Specifically I tried this one and did not work. Below is a short recap what has worked for me. Short Recap Follow Magisk official installation guide OnePlus 12 has ramdisk and uses init_boot.img get oneplus 12 image zip file from this site use payload dumper to extract &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/junsun.net\/wordpress\/2024\/04\/how-i-rooted-oneplus-12-with-magisk\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How I Rooted OnePlus 12 with Magisk&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9,92,94,95],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","category-bits-bytes","tag-android","tag-magisk","tag-oneplus","tag-rooting"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":2,"href":"http:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":413,"href":"http:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/411\/revisions\/413"}],"wp:attachment":[{"href":"http:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}