id: b0c6fbdf4725482c9fed1fa5a63fd629
parent_id: 
item_type: 1
item_id: 9adad27426db44acbe7b67584056a4e6
item_updated_time: 1764345486482
title_diff: "[{\"diffs\":[[1,\"Installation  Magisk\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":20}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>Installation | Magisk</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"20274\\\"></a>\\\r\\\n<h1>Installation | Magisk</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:article\\\">\\\n<div><br/></div><div style=\\\"font-size: 16px; display:block; min-width: 100%; position: relative;\\\"> <div style=\\\"font-family:sans-serif;text-size-adjust:100%;box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;font-size:14px;line-height:1.5;color:rgb(36, 41, 46);background-color:rgb(255, 255, 255);\\\"><div style=\\\"box-sizing:border-box;font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;font-size:16px;line-height:1.5;overflow-wrap:break-word;\\\"><span style=\\\"font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;font-size:16px;line-height:1.5;display:table;\\\"></span>\\\n      \\\n      <h1 style=\\\"margin:0.67em 0px;box-sizing:border-box;line-height:1.25;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgb(234, 236, 239);font-size:2em;margin-top:0px;\\\"><a href=\\\"https://topjohnwu.github.io/Magisk/\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Magisk</a></h1>\\\n      \\\n\\\n      <h1 style=\\\"margin:0.67em 0px;box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgb(234, 236, 239);font-size:2em;\\\">Installation</h1>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">If you already have Magisk installed, it is <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">strongly recommended to upgrade directly via Magisk Manager</strong>. The following tutorial is for first time users.</p>\\\n\\\n<h2 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgb(234, 236, 239);font-size:1.5em;\\\">Getting Started<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#getting-started\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h2>\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">If you are using a Huawei device running <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">EMUI 8 and higher</strong>, please check <a href=\\\"https://topjohnwu.github.io/Magisk/install.html#huawei\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">its section</a>.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">If you are using a Samsung device that is <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">launched with Android 9.0</strong> (new devices in 2019), please check <a href=\\\"https://topjohnwu.github.io/Magisk/install.html#samsung-system-as-root\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">its section</a>.</li>\\\n</ul>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">Otherwise, follow the instructions in <a href=\\\"https://topjohnwu.github.io/Magisk/install.html#knowing-your-device\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Knowing Your Device</a>, and choose the right steps</p>\\\n\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">If your device is <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">NOT</strong> A/B, but <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">IS</strong> using system-as-root, then you will have to install Magisk to the recovery partition of your device. Follow the instructions in <a href=\\\"https://topjohnwu.github.io/Magisk/install.html#boot-image-patching\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Boot Image Patching</a>, but instead of using your boot image, use your recovery image. <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">Read through the <a href=\\\"https://topjohnwu.github.io/Magisk/install.html#magisk-in-recovery\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Magisk in Recovery</a> section!</strong></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Otherwise, you can either follow the instructions in <a href=\\\"https://topjohnwu.github.io/Magisk/install.html#custom-recovery\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Custom Recovery</a> (if your device has custom recovery available) or <a href=\\\"https://topjohnwu.github.io/Magisk/install.html#boot-image-patching\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Boot Image Patching</a>.</li>\\\n</ul>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">Other notes:</p>\\\n\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">If you plan to install custom kernels, flash the zip <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">AFTER</strong> installing Magisk</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Make sure to remove any ‘boot image mods’ such as other root solutions. The easiest way is to restore the boot image from factory images, or reflash a <em style=\\\"box-sizing:border-box;\\\">non-prerooted</em> custom ROM</li>\\\n</ul>\\\n\\\n<h3 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">Knowing Your Device<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#knowing-your-device\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h3>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">If your device is running anything older than Android 7.1, skip this section as your device will not be using A/B nor system-as-root.</p>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">First, you need to know whether your device is using <a href=\\\"https://source.android.com/devices/tech/ota/ab\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">A/B partitions</a>. If you don’t know, use a terminal (adb shell or any terminal emulator) to check with this command:</p>\\\n<div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;background-color:rgb(248, 248, 248);margin-bottom:16px;\\\"><pre style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top:0px;overflow-wrap:normal;word-break:normal;margin-bottom:0px;padding:16px;overflow:auto;line-height:1.45;border-radius:3px;font-size:85%;background-color:rgb(246, 248, 250);\\\"><code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;border-radius:3px;word-break:normal;white-space:pre;background:transparent;font-size:100%;display:inline;overflow:visible;line-height:inherit;overflow-wrap:normal;padding:0px;margin:0px;border:0px;background-color:transparent;\\\">getprop ro.build.ab_update\\\n</code></pre></div></div>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">If the result is <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">true</code>, then your device is using A/B partitions.</p>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">If your device is A/B, then your device is also certainly using <a href=\\\"https://source.android.com/devices/bootloader/system-as-root\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">system-as-root</a>. To find out whether you are using system-as-root on a non-A/B device, use a terminal to check with this command:</p>\\\n<div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;background-color:rgb(248, 248, 248);margin-bottom:16px;\\\"><pre style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;margin-top:0px;overflow-wrap:normal;word-break:normal;margin-bottom:0px;padding:16px;overflow:auto;line-height:1.45;border-radius:3px;font-size:85%;background-color:rgb(246, 248, 250);\\\"><code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;border-radius:3px;word-break:normal;white-space:pre;background:transparent;font-size:100%;display:inline;overflow:visible;line-height:inherit;overflow-wrap:normal;padding:0px;margin:0px;border:0px;background-color:transparent;\\\">getprop ro.build.system_root_image\\\n</code></pre></div></div>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">If the result is <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">true</code>, then your device is using system-as-root.</p>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">(P.S. If you are interested more regarding system-as-root, please check <a href=\\\"https://twitter.com/topjohnwu/status/1174392824625676288\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">this Twitter thread</a>)</p>\\\n\\\n<h2 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgb(234, 236, 239);font-size:1.5em;\\\">Custom Recovery<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#custom-recovery\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h2>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">If your device has custom recovery support, the easiest way is to install it through custom recoveries, such as TWRP.</p>\\\n\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">Download the Magisk installer zip</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Reboot to custom recovery</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Flash the zip and reboot</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Check whether Magisk Manager is installed. If for some reason it isn’t installed automatically, manually install the APK</li>\\\n</ul>\\\n\\\n<h2 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgb(234, 236, 239);font-size:1.5em;\\\">Boot Image Patching<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#boot-image-patching\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h2>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">You would want to choose this method if either your device does not have custom recoveries, your device is A/B and you don’t want to mix recovery and boot images, or your device is using system-as-root without A/B partitions.</p>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">To use this method, you are required to obtain a copy of the stock boot/recovery image, which can be found by extracting OEM provided factory images or extracting from OTA update zips. If you are unable to obtain one yourself, you might be able to find it somewhere on the internet. The following instructions will guide you through the process after you have the copy of boot/recovery image.</p>\\\n\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">Copy the boot/recovery image to your device</span></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">Download and install the latest Magisk Manager</span></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">If you are patching a recovery image, </span><strong style=\\\"box-sizing:border-box;font-weight:600;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">manually check “Recovery Mode” in Advanced Settings!</span></strong></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">Press </span><strong style=\\\"box-sizing:border-box;font-weight:600;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">Install → Install → Select and Patch a File</span></strong><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">, and select your stock boot/recovery image file</span></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">Magisk Manager will patch the image, and store it in </span><code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">[Internal Storage]/Download/magisk_patched.img</span></code></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">Copy the patched image from your device to your PC. If you can’t find it via MTP, you can pull the file with ADB: </span><br style=\\\"box-sizing:border-box;\\\"/>\\\n<code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">adb pull /sdcard/Download/magisk_patched.img</span></code></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">Flash the patched boot/recovery image to your device and reboot. For most devices, here is the fastboot command: </span><br style=\\\"box-sizing:border-box;\\\"/>\\\n<code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">fastboot flash boot /path/to/magisk_patched.img</span></code><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\"> or </span><br style=\\\"box-sizing:border-box;\\\"/>\\\n<code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">fastboot flash recovery /path/to/magisk_patched.img</span></code><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\"> if you are patching a recovery image</span></li>\\\n</ul>\\\n\\\n<h2 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgb(234, 236, 239);font-size:1.5em;\\\">Magisk in Recovery<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#magisk-in-recovery\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h2>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">Since some devices no longer use ramdisk in boot images, Magisk has no choice but to be installed in the recovery partition. For these devices, you will have to <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">boot to recovery every time</strong> if you want Magisk. Since both Magisk and recovery lives in the same partition, what you actually end up getting when you choose to boot to recovery will be determined by <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">how long you press volume up</strong>.</p>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">Each OEM and device has its own key combo to boot into recovery. For example on Samsung S10 it is <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">(Power + Bixby + Volume Up)</strong>, and for Huawei it is <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">(Power + Volume Up)</strong>. As soon as you press the combo and the device vibrates with a splash screen, the bootloader has already chosen which mode it is booting, either it be <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">boot</code>, <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">recovery</code>, or some OEM specific modes like <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">download</code>, <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">fastboot</code>, or <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">erecovery</code>. After the splash screen, release all buttons to boot into Magisk, since by default <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">recovery</code> mode will boot to the system with Magisk enabled. If you decide to boot to actual recovery, continue to press volume up until you see the recovery screen.</p>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\"><strong style=\\\"box-sizing:border-box;font-weight:600;\\\">After installing Magisk in recovery:</strong></p>\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\"><strong style=\\\"box-sizing:border-box;font-weight:600;\\\">(Powering up normally) → (System with NO Magisk)</strong></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><strong style=\\\"box-sizing:border-box;font-weight:600;\\\">(OEM Recovery Key Combo) → (Splash screen) → (Release all buttons) → (System with Magisk)</strong></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><strong style=\\\"box-sizing:border-box;font-weight:600;\\\">(OEM Recovery Key Combo) → (Splash screen) → (Keep pressing volume up) → (Actual recovery)</strong></li>\\\n</ul>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">Important Note: <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">You CANNOT use custom recoveries to install/upgrade Magisk!</strong></p>\\\n\\\n<h2 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgb(234, 236, 239);font-size:1.5em;\\\">Samsung (System-as-root)<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#samsung-system-as-root\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h2>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\"><strong style=\\\"box-sizing:border-box;font-weight:600;\\\">If your device is NOT launched with Android 9.0 or higher (released after 2019), you are reading the wrong section.</strong></p>\\\n\\\n<h3 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">Before Installing Magisk<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#before-installing-magisk\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h3>\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">Your device is non-A/B and uses system-as-root, so Magisk will be installed to the <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">recovery</strong> partition of your device. <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">Please read the <a href=\\\"https://topjohnwu.github.io/Magisk/install.html#magisk-in-recovery\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Magisk in Recovery</a> section!</strong></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Installing Magisk <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">WILL</strong> trip KNOX</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Installing Magisk for the first time <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">REQUIRES</strong> a full data wipe, backup before continue</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">You have to have your bootloader unlocked before following the instructions</li>\\\n</ul>\\\n\\\n<h3 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">Unlocking Bootloader<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#unlocking-bootloader\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h3>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">Normally I wouldn’t provide instructions for this, but since things had changed drastically from previous Samsung devices, and there are some caveats, I figure this would be helpful.</p>\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">Allow bootloader unlocking in Developer options → OEM unlocking</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Reboot your device to download mode. Either use <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">adb reboot download</code>, or use the key combo for your device.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Long press volume up to unlock the bootloader. <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">This will wipe your data and automatically reboot.</strong></li>\\\n</ul>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">Just when you think the bootloader is unlocked, it is <em style=\\\"box-sizing:border-box;\\\">actually</em> not! Samsung introduced <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">VaultKeeper</code>, meaning the bootloader will reject any unofficial partitions before <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">VaultKeeper</code> explicitly allows it.</p>\\\n\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">Go through the initial setup. Skip through all the steps since data will be wiped again later when we are installing Magisk. <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">Connect the device to internet in the setup!</strong></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Enable developer options, and <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">confirm that the OEM unlocking option exists and grayed out!</strong> The <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">VaultKeeper</code> service will unleash the bootloader after it confirms that the user has the OEM unlocking option enabled.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Your bootloader now accepts unofficial images in download mode.</li>\\\n</ul>\\\n\\\n<h3 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">Instructions<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#instructions\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h3>\\\n<ol style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">Download the firmware for your device.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Unzip the firmware and copy the <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">AP</strong> tar file to your device. It is normally named as <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">AP_[device_model_sw_ver].tar.md5</code></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Install the latest Magisk Manager</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">In Magisk Manager: <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">Install → Install → Select and Patch a File</strong> and select the AP tar file.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Magisk Manager will patch the whole firmware file and store the output to\\\n<code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">[Internal Storage]/Download/magisk_patched.tar</code></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Copy the patched file to your PC with <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">adb pull /sdcard/Download/magisk_patched.tar</code>. Do not use MTP as it is reported to corrupt files.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Reboot to download mode, and flash <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">magisk_patched.tar</code> as AP in Odin, together with the BL, CP and HOME_CSC files. Never flash only an AP file, as Odin can shrink your <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">/data</code> file-system if you do.<br style=\\\"box-sizing:border-box;\\\"/> <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">Important: Uncheck “Auto Reboot” in Options!</strong></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Magisk is now successfully flashed to your device! But there are still several steps before you can properly use the device.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">We now want to boot into the stock recovery to factory reset our device. <br style=\\\"box-sizing:border-box;\\\"/>\\\n<strong style=\\\"box-sizing:border-box;font-weight:600;\\\">Full data wipe is mandatory! Do not skip this step.</strong> <br style=\\\"box-sizing:border-box;\\\"/>\\\nPress <em style=\\\"box-sizing:border-box;\\\">Power + Volume Down</em> to exit download mode. As soon as the screen turns off, immediately press the combo key to boot to recovery (e.g. on the S10 it is <em style=\\\"box-sizing:border-box;\\\">Power + Bixby + Volume Up</em>). Since we want to boot into stock recovery, <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">continue pressing the volume up button until you see the stock recovery screen</strong>.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Use volume buttons to navigate through the stock recovery menu, and the power button to select an option. Choose <em style=\\\"box-sizing:border-box;\\\">Wipe data/factory reset</em> to wipe the data of the device.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">This time, we can finally boot to the system with Magisk. Select <em style=\\\"box-sizing:border-box;\\\">Reboot system now</em>, and immediately press the combo key to recovery. After seeing the bootloader warning screen, release all buttons so it can boot to the system.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">The device will automatically reboot for the first time it boots. This is completely normal and done by design.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">After the device is booted up, do the usual initial setup. <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">The following steps will need an internet connection.</strong></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">You shall see Magisk Manager in your app drawer; if not, manually install the APK you downloaded in step 3 and continue to the next step. The app would be a stub and it shall automatically upgrade to the full Magisk Manager when you open it.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Magisk Manager will ask to do additional setups. Let it do its job and the app will automatically reboot your device.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">Voila! Enjoy Magisk :)</li>\\\n</ol>\\\n\\\n<h3 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">Additional Info<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#additional-info\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h3>\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">Magisk actually patches 3 partitions on your device:\\\n    <ul style=\\\"box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:0px;\\\">\\\n      <li style=\\\"box-sizing:border-box;\\\"><code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">vbmeta</code>: replace with empty vbmeta image to disable partition verification</li>\\\n      <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">boot</code>: remove the signature of the image to prevent soft bricks</li>\\\n      <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">recovery</code>: this is where Magisk is actually installed</li>\\\n    </ul>\\\n  </li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><strong style=\\\"box-sizing:border-box;font-weight:600;\\\">Never, ever</strong> try to restore either of the 3 images mentioned back to stock! You can easily brick your device by doing so, and the only way out is to do full Odin restore following with factory reset. Just don’t do it.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">If you want to upgrade your device, <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">never</strong> flash the stock <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">AP</strong> tar file with the reasons mentioned above. <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">Always</strong> pre-patch the firmware before flashing in Odin.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">If you don’t need to patch the full firmware, you can manually create a tar file with <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">at least</strong> <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">vbmeta.img</code>, <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">boot.img</code>, and <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">recovery.img</code> to let Magisk Manager patch your images in the proper way.</li>\\\n</ul>\\\n\\\n<h2 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgb(234, 236, 239);font-size:1.5em;\\\">Huawei<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#huawei\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h2>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">Huawei devices using Kirin processors have a different partitioning method from most common devices. Magisk is usually installed to the <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">boot</code> partition of the device, however Huawei devices do not have this partition. Depending on what EMUI version your device is running, the instructions will be slightly different.</p>\\\n\\\n<h3 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">Obtain Stock Images<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#obtain-stock-images\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h3>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">Huawei does not release official factory images, however most firmware zips can be downloaded from the <a href=\\\"http://pro-teammt.ru/firmware-database/\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Huawei Firmware Database</a>. To extract images from <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">UPDATE.APP</code> in the zip, you have to use <a href=\\\"https://forum.xda-developers.com/showthread.php?t=2433454\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Huawei Update Extractor</a> (Windows only!)</p>\\\n\\\n<h3 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">EMUI 8<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#emui-8\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h3>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">For EMUI 8 devices, your device has a partition named <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">ramdisk</code>, which is where Magisk is going to be installed.</p>\\\n\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">If you plan to use custom recoveries, simply follow the instructions for custom recovery and you’re all set.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">If you plan not to use custom recoveries, you will have to extract <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">RAMDISK.img</code> from your firmware. Follow the instructions for boot image patching above, but use the <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">RAMDISK.img</code> file instead of a boot image.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">To flash the patched image to your device, here is the fastboot command: <br style=\\\"box-sizing:border-box;\\\"/>\\\n<code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">fastboot flash ramdisk /path/to/magisk_patched.img</code> <br style=\\\"box-sizing:border-box;\\\"/>\\\nBe aware you are flashing to <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">ramdisk</code>, not <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">boot</code>!</li>\\\n</ul>\\\n\\\n<h3 style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">EMUI 9 or Higher<a href=\\\"https://topjohnwu.github.io/Magisk/install.html#emui-9-or-higher\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);opacity:0;-webkit-font-smoothing:antialiased;text-decoration:none;font:1em / 1 anchorjs-icons;padding-left:0.375em;\\\"><span style=\\\"color:rgb(3, 102, 214);\\\"></span></a></h3>\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">For EMUI 9+ devices, the <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">ramdisk</code> partition no longer exists. As a workaround, Magisk will be installed to the <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">recovery_ramdisk</code> partition. <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">Please read the <a href=\\\"https://topjohnwu.github.io/Magisk/install.html#magisk-in-recovery\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Magisk in Recovery</a> section before following the instructions below!</strong></p>\\\n\\\n<p style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\"><em style=\\\"box-sizing:border-box;\\\">Note: As I tested on my Honor View 10, Huawei’s kernel does not seem to be able to capture key button press events in early boot, so long pressing Volume Up does <strong style=\\\"box-sizing:border-box;font-weight:600;\\\">NOT</strong> boot to recovery on my device. Your experience may vary.</em></p>\\\n\\\n<ul style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n  <li style=\\\"box-sizing:border-box;\\\">If you plan to use custom recoveries, simply follow the instructions for custom recovery and you’re all set. <br style=\\\"box-sizing:border-box;\\\"/>\\\n<strong style=\\\"box-sizing:border-box;font-weight:600;\\\">Warning: Magisk will overwrite the custom recovery.</strong></li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">If you plan not to use custom recoveries, you will have to extract <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">RECOVERY_RAMDIS.img</code> from your firmware. Follow the instructions for boot image patching above, but use the <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">RECOVERY_RAMDIS.img</code> file instead of a boot image.</li>\\\n  <li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">To flash the patched image to your device, here is the fastboot command: <br style=\\\"box-sizing:border-box;\\\"/>\\\n<code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">fastboot flash recovery_ramdisk /path/to/magisk_patched.img</code> <br style=\\\"box-sizing:border-box;\\\"/>\\\nBe aware you are flashing to <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">recovery_ramdisk</code>, not <code style=\\\"box-sizing:border-box;font-family:SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;padding:0.2em 0.4em;margin:0px;background-color:rgba(27, 31, 35, 0.05);border-radius:3px;font-size:85%;\\\">boot</code>!</li>\\\n</ul>\\\n\\\n\\\n      \\\n      <div style=\\\"box-sizing:border-box;border-color:rgb(234, 236, 239);border-top:1px solid rgb(225, 228, 232);color:rgb(88, 96, 105);margin-top:32px;padding-top:16px;text-align:right;margin-bottom:0px;\\\">\\\n        This site is open source. <a href=\\\"https://github.com/topjohnwu/Magisk/edit/master/docs/install.md\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(3, 102, 214);text-decoration:none;\\\">Improve this page</a>.\\\n      </div>\\\n      \\\n    <span style=\\\"font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;font-size:16px;line-height:1.5;display:table;clear:both;\\\"></span></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":48932}]"
metadata_diff: {"new":{"id":"9adad27426db44acbe7b67584056a4e6","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345730537,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:12:45.211Z
created_time: 2025-11-28T16:12:45.211Z
type_: 13