Installing Magisk 17.1


Recommended Posts

Can anyone tell me how I install this?

 

I usually click "direct install" or something but now it gives me an option to "patch boot img file" (which then asks me to find a file?) or "download zip", of which I don't then know how to install it from there.

 

Cheers

Link to comment
https://www.neowin.net/forum/topic/1371990-installing-magisk-171/
Share on other sites

sounds like the phone is still locked down.

 

I'd double check the bootloader is unlocked and that a custom recovery (preferably TWRP) is installed.

 

if the direct install is still failing then you can install Magisk through your custom recovery; the zip file can be downloaded from the XDA thread :)

 

https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

 

They even have a nice guide if you'd like to check it out:

https://www.xda-developers.com/how-to-install-magisk/

 

 

 

been just been getting back to rooting myself recently on a couple devices and I gotta say I like Magisk a lot better than SuperSU. seems a lot more stable overall and some nice extra features built in.

Hmm.

I appear to have lost root access at some point.

*sigh* - now time to relearn how to gain it again!

 

It's what annoys me because the guides online don't correspond to my phone.

 

For example, when booting into TWRP (which is out of date anyway!), I don't have the option to view the files on the device, and so can't select the downloaded magisk zip file.

 

Can't update the TWRP because when I type whatever I need to into Powershell, it says "waiting for device", which is great.  But when booting into Fastboot then it says "error: cannot lad twrp..."

 

I remember why I try not to bother with this stuff...

Edited by Sir Topham Hatt

what device you have? updating TWRP is super easy and then you can go from there

 

you can either update TWRP through fastboot and cmd prompt or it can be updated directly inside TWRP by switching the flash option from .zip to .img

if using fastboot there are specific drivers needed for windows. especially if using windows 10 as the official adk drivers don't work on 10

 

once i know your device i can usually find you the right version pretty easily

 

 

 

edit: though if your TWRP install isn't too old you should be able to just flash the Magisk.zip file and it will restore root. only if the flash fails would you really need to update TWRP :)

 

I'm using a one plus 3t.

 

I can use powershell and it recognises the device (using adb devices), so I guess my adb is working okay?

But I have no idea what to type to update twrp or flash magisk.

 

Tried updating twrp in the official twrp app but it just fails, I guess because I'm not rooted.

 

Tried to enter twrp recovery but it then can't find the magisk zip to install. 

 

I guess downloading the latest twrp recovery.img then patching the latest magisk to that wouldn't work? 

But then I still need to somehow install it on the phone but recovery didn't recognise the internal memory (photos, apps, videos), only the system memory, so not sure how to install new twrp. 

Edited by Sir Topham Hatt

You'll need to download the magisk.zip file onto your phone. I usually just put it in the usual downloads folder

 

Then in twrp in the flash menu you should be able to browes to the folder you saved the zip to.

 

The same thing goes for updating TWRP; once in the flash menu you should see a button to switch to img and then you can select your saved TWRP.img to flash

 

If you need help this guide has great step by step for both installing through TWRP or through fastboot.

 

This is the same guide I posted above

https://www.xda-developers.com/how-to-install-magisk/

 

P.s. I hate messing with fastboot sometime because even if it detects your phone you may not have the right version of the driver installed if using the official adk drivers ...

This is where we have the problem.

 

When in the twrp recovery, it doesn't recognise any folders, apart from those that the system uses (sdcard folder is empty!).

 

So I can't browse to the /downloads/ folder to flash the magisk zip. 

 

But I can't use a root explorer to put the file in the system section somewhere because I'm not rooted.

Edited by Sir Topham Hatt

there should be a switch drive button to select your SD card but if that for whatever reason is not working TWRP also allows mounting a USB drive if you have an OTG cable.

 

if that doesn't work we can look into fixing your fastboot drivers; you may just need to update the drivers if you haven't in a long time to support the confirm connection dialog on the phone.

could also try fastboot from within TWRP (in the advanced menu); may cooperate better then when booted into Android

Well when in recovery, I swipe to say I'm happy for changes, go to "install" which shows the folder "sdcard" but it's empty.

Going up a level shows lots of folders - all empty.

Clicking on "select storage" shows "internal storage 0Mb" and "USB-OTG 0Mb", the latter of which doesn't do anything.

 

I can connect it to my PC and use ADB to control it (IE, it recognises there's a phone attached and I used it to reboot into fastboot).

now that is odd indeed.

 

looking over at XDA I found a thread that is exactly your situation | if you didn't post this then it may be a known issue.

 

it sounds like a factory reset is required to correct the issues; worth looking over the thread at least, some users seem to have some ideas on it over there :)

 

https://forum.xda-developers.com/oneplus-3t/help/root-update-twrp-fishy-happening-t3839585

 

edit: someone had a great idea on the thread that may work for you; you can boot directly into the new TWRP img file without installing it; try this to see if it's still unable to read your directories.

 

Quote

 

Oh, ok, I thought that the system is broken too. That's ok then, your memory chip is fine.
Can you boot an up-to-date TWRP from fastboot and try to access data?
Try with

Code:


fastboot boot twrp-3.2.3-0-oneplus3.img

 

 

if you can actually see your files after booting into the newer version then you can perform your flashes and continue as normal.

 

 

it sounds like this is a common issue on the device if using encryption

On 9/12/2018 at 3:29 PM, Brandon H said:

looking over at XDA I found a thread that is exactly your situation 

It's me also ?
I did that thing of panicking and posting everywhere (well, two places!).  But a combination of you explaining more simply has helped.
Managed to boot to the latest TWRP, then use that to install magisk, which then enabled root again, so I could update to the latest TWRP!
Now doing a Titanium Backup for good measure!

 

Although the experience did make me think seriously about the OnePlus 6T... however I'll see how things like the battery go as I dropped it a few months ago and have noticed the battery is a fair bit not as great.
Although it's still under warranty so could always send it back I suppose.

If you are in TWRP and it's not listing folders (Does it just list them all as random characters?) then your phone is encrypted, that's why it's not rooted also most likely. You'll need to install a version of TWRP that allows you to enter your encryption pin.

 

Reboot into fastboot mode and then connect the phone to your computer.

 

If you already have adb like you said then you should also have fastboot.

 

The command for flashing the TWRP zip is "fastboot flash recovery <filename>" where <filename> is the name of the particular TWRP version zip you downloaded. The zip has to be in the same folder as fastboot obviously. 

 

To be honest, if you're having encryption problems you might just have to back up the contents of the phone and do a full wipe and reinstall your rom, make sure you get a decrypt compatible TWRP version this time though.


When I do a full wipe I usually :

 

  1. Back up all contents using Filezilla Client on my computer and an app on the phone called FTPServer Pro
  2. Perform this command in fastboot : "fastboot -w" - That performs a full data wipe
  3. Go into TWRP which should now allow access because the fastboot wipe removes encryption too, wipe all the other partitions
  4. Reboot back into TWRP or go into fastboot and flash the TWRP version I want using the method I gave you above
  5. Flash the rom again

If you want to keep the contents of the phone decrypted when you're in TWRP there's a zip you should look up called noverity but just be aware anyone who has the phone could do so also and have full access to the contents.

Edited by PsYcHoKiLLa
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Python programmers in a nutshell. Now, guess what lang most AI programmers use... :-)
    • There was nothing whatsoever wrong with Vista as an OS after the SP1 update. People who claim it wasn't were using ancient machines for some silly reason. Not kidding, no hyperbole/exaggeration. Vista was good.
    • Windows ME was worse.
    • Dude, im talking about simply disable it from settings app. Because of the eu regulation, you could disable it here for years.
    • One big question about Mars was answered thanks to Einstein's 100 year old theory by Sayan Sen Image via DepositPhotos Scientists at the U.S. National Institute of Standards and Technology (NIST) have calculated how time passes on Mars compared with Earth, adding detail to how timekeeping would need to work beyond Earth’s orbit. The study, published in The Astronomical Journal, found that clocks on Mars run an average of 477 microseconds, or millionths of a second, faster per day than clocks on Earth. A microsecond is one millionth of a second, a very small unit used in precise scientific timing systems such as atomic clocks, which measure time using consistent atomic behavior. This difference is not constant. Because Mars moves around the Sun in a non-circular path (an eccentric orbit, meaning its distance from the Sun changes over time instead of staying fixed) and is affected by gravity from other bodies, the daily difference can vary by as much as 226 microseconds over a Martian year. The study also identifies smaller repeating changes of about 40 microseconds per day linked to synodic cycles (repeating periods that describe how planets line up with each other as they orbit the Sun from different positions). These longer patterns affect how time differences slowly rise and fall. To make these estimates, researchers compared Mars with Earth and the Moon. The work looks at relativistic proper time (the time actually measured by a clock depending on its speed and the strength of gravity where it is located, as described in Einstein’s relativity). This shows that each world has its own slightly different “rate” of time. This becomes more important as space missions expand into cislunar space (the region between Earth and the Moon) and toward Mars. On Earth, time systems rely on atomic clocks and satellites, which stay closely synchronized for navigation and communication. The study is based on Albert Einstein’s theory of relativity, which shows that time is affected by gravity and motion. Stronger gravity makes clocks run slower, while weaker gravity makes them run faster. “The time is just right for the Moon and Mars,” said NIST physicist Bijunath Patla. “This is the closest we have been to realizing the science fiction vision of expanding across the solar system.” A day on Mars is about 40 minutes longer than on Earth, and a Martian year lasts 687 Earth days. But the main question is not just about days and years, but how fast time itself passes. An atomic clock placed on Mars would function normally, but compared with one on Earth, the two would slowly drift apart due to differences in gravity and motion. This requires careful calculation of what is similar to a time-zone difference across planets. Researchers modeled Mars using a reference surface and included gravitational effects from the Sun, Earth, the Moon, and other planets. This includes a multi-body gravitational system (often described as a three-body or four-body problem, where predicting motion becomes difficult because multiple large objects all pull on each other at the same time through gravity). Mars also follows a Keplerian orbit (an idealized elliptical orbit based on simple gravitational laws that assume smooth motion, before adding real-world disturbances from other bodies). In addition, the researchers accounted for solar tides (small changes in gravitational force caused by the Sun that slightly distort planetary motion and timing, especially in systems involving Earth and the Moon). These combined effects are described as relativistic proper-time offsets (small but measurable differences in elapsed time between locations caused by gravity and motion), which must be included when comparing clocks across planets. “But for Mars, that’s not the case. Its distance from the Sun and its eccentric orbit make the variations in time larger. A three-body problem is extremely complicated. Now we’re dealing with four: the Sun, Earth, the Moon and Mars,” Patla explained. “The heavy lifting was more challenging than I initially thought.” Although the differences are extremely small, they matter for navigation and communication systems that depend on precise timing. Even modern networks on Earth, such as mobile systems, rely on timing accuracy at very small fractions of a second. Communication between Earth and Mars currently takes about four to 24 minutes or more depending on planetary positions, meaning signals are not real-time. A shared and accurate time system could help future missions reduce confusion in navigation and data exchange. “If you get synchronization, it will be almost like real-time communication without any loss of information. You don’t have to wait to see what happens,” Patla said. Researchers note that fully developed interplanetary communication networks are still far in the future. However, understanding how time behaves across planets helps prepare for those systems. “It may be decades before the surface of Mars is covered by the tracks of wandering rovers, but it is useful now to study the issues involved in establishing navigation systems on other planets and moons,” said Neil Ashby. “Like current global navigation systems like GPS, these systems will depend on accurate clocks, and the effects on clock rates can be analyzed with the help of Einstein’s general theory of relativity.” Patla added that the results also help improve understanding of time itself under relativity. “It's good to know for the first time what is happening on Mars timewise. Nobody knew that before. It improves our knowledge of the theory itself, the theory of how clocks tick and relativity,” he said. Source: NIST, IOPscience This article was generated with some help from AI and reviewed by an editor. Under Section 107 of the Copyright Act 1976, this material is used for the purpose of news reporting. Fair use is a use permitted by copyright statute that might otherwise be infringing.
  • Recent Achievements

    • Grand Master
      Jaybonaut went up a rank
      Grand Master
    • One Year In
      Philsl earned a badge
      One Year In
    • Dedicated
      Scoobystu earned a badge
      Dedicated
    • First Post
      Tom Schmidt earned a badge
      First Post
    • One Month Later
      D0nn13 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      443
    2. 2
      +Edouard
      177
    3. 3
      PsYcHoKiLLa
      124
    4. 4
      Michael Scrip
      78
    5. 5
      Xenon
      76
  • Tell a friend

    Love Neowin? Tell a friend!