Magisk with custom kernel - Google Pixel 4a Questions & Answers

It's been a long time since I've used a custom kernel on any of my devices.
What is the correct installation order:
Custom kernel
Magisk
Or
Magisk
Custom kernel

I am new to this too, but the steps in this guide to add a custom kernel worked for me:
[GUIDE] UNLOCKING, DOWNGRADING TO A10, TWRP, ROOT
Hello, I'm posting this guide for those (like me) who can't do without TWRP on their device. I'm providing only a step-by-step explanation. Credits to @nikamura for his kernel and TWRP...
forum.xda-developers.com

I've been using blu_spark kernel but I've been installing magisk 1st, and then the kernel on FKM. The script is well made so this doesn't affect now!

Related

Multirom and SafetyNet

I got a OnePlus 3 with a modified TWRP recovery for Multirom. My primary rom is rooted Kali Nethunter and I patched a custom kernel for it. My secondary rom is a Stock OxygenOs 4.0.2, it is not rooted and I flashed the elemental X Kernel for it.
If i am right, this kernel has the verified boot Flag disabled for using Android Pay, PGO etc..
But I can't pass the SafetyNet check...
So my question is how do I bypass SafetyNet? I want to keep Nethunter as a rom either primary or secondary. I can't install Magisk on it because when I flash the NH rom it automatically flashs the normal SuperSu with it. I thought this setup I made would work. So what does SafetyNet detect?
Would be nice if someone could help me.

Flashing order?

Just curious as to what is the best order for flashing a Custom ROM, Kernel, Gapps and finally Magisk? Would I flash Magisk last to patch the custom kernel?
1. Custom ROM
2. GApps
3. Magisk
4. Kernel (that's the recommended order for blu_spark)

How to root my maxwest branded phone

I have a nitro 5p, I'm looking for a way to root so I can get some type of custom rom. The stock one is lost unuseable
shatheone said:
I have a nitro 5p, I'm looking for a way to root so I can get some type of custom rom. The stock one is lost unuseable
Click to expand...
Click to collapse
I can help! Please Pm me, I just rooted and installed twrp. However I still haven't learned how to build custom rom yet.
timba123 said:
Did you figure it out
Click to expand...
Click to collapse
yea
wait that wasn't a question for me...lol
TWRP is not required in order to root the MaxWest Nitro 5P. In fact, you could not root it using TWRP even if you wanted to. This device ships with Android 9 Pie Go Edition and is fully Project Treble supported. Also, like many devices of its kind with a System-as-Root (SAR) configuration, this phone has no boot-ramdisk. The only workaround to attain root is to patch the ramdisk in the recovery image and flash the patched image to /recovery versus the typical /boot partition. This effectively enables Magisk to hijack the recovery partition. Thus, the tricky part. In order for root to be properly installed, the phone must manually be booted to recovery mode during each and every reboot. However, it won't actually boot into recovery mode due to Magisk hijacking the /recovery partition. It will boot into the Android OS with Magisk systemless root installed. If you choose to boot the phone normal, it will still boot into Android, but without Magisk installed. This is rather unorthodox and inconvenient but it remains the only solution for these devices with no boot-ramdisk. For more info on Magisk running in recovery, see the official GitHub documentation here: https://topjohnwu.github.io/Magisk/install.html
TWRP is not compatible with this type of install and will cause a bricked device. Simply unlock the bootloader, patch the stock recovery image with Magisk, and flash the patched image to the recovery partition via fastboot. Boot to recovery mode during the next and every subsequent reboot. I am presently drafting a rooting guide on this device and I will post my link here when finished, for anybody needing instructions.
The OP of this thread originally requested info on root for purposes of possibly installing a custom ROM. Indeed, there are a few Treble GSI ROMs compatible with the Nitro 5P (ARM, A-Only). However, you do not need to have a rooted OS in order to install GSI custom ROMs, but only an unlocked bootloader. I will compile some resources for compatible GSI Treble ROMs and list this info in my rooting guide coming soon. TWRP isn't needed for GSI installation. Everything can be done in AP Fastboot Mode. I am not certain if MaxWest Telecom has released the kernel source code for the Nitro 5P. I will research this. This code will be required for the compiling of custom ROMs such as LineageOS & Pixel Experience. It is likewise needed for TWRP to be built from source.
No problem. I'm certainly not saying that TWRP cannot be booted or even installed on the Nitro 5P. I'm only stating that under no circumstances can the Nitro 5P (in its stock configuration, at least) be rooted using TWRP. The only root solution -- due to the boot image being devoid of a ramdisk -- is the method I outlined above. Now, if someone compiled a custom boot image with integrated ramdisk, this would certainly change matters. Out of curiosity, have you tried flashing TWRP to the /recovery partition using fastboot flash recovery twrp.img? Or, in the alternative, you can replace the stock recovery image with TWRP by decompiling the .pac firmware package, repack the .pac archive, and flash TWRP using the Spreadtrum Flash Tool. I'm just curious as to whether anybody has tried that.
timba123 said:
I finally got a decent laptop. Windows 10. I'd love to root this nitro 5p. IDC if it's superuser or magisk root. I could take or leave twrp.
Click to expand...
Click to collapse
Magisk is the only supported root solution for this devices
Installation
The Magic Mask for Android
topjohnwu.github.io
Scroll down until you reach the installation heading titled "Magisk in Recovery." Follow those steps and you will attain root on your Nitro 5p. In a nutshell, you will be patching a stock recovery image versus a stock boot image. Magisk will be able to hijack the /recovery partition and enable systemless root on the Android OS.
hellofriendlymanveriosns said:
I can help! Please Pm me, I just rooted and installed twrp. However I still haven't learned how to build custom rom yet.
Click to expand...
Click to collapse
Why would you want somebody to PM you in order to get help? This is a custom Android development community. Provide your input openly on the thread so it can benefit all others who need help as well.
hellofriendlymanveriosns said:
I can help! Please Pm me, I just rooted and installed twrp. However I still haven't learned how to build custom rom yet.
Click to expand...
Click to collapse
Keep in mind that you rarely ever need to be rooted in order to install a custom ROM. However, you will need a custom recovery and the custom ROM itself. To the best of my knowledge, no custom ROMs have been ported to, or compiled for, the Maxwest Nitro 5p. However, the Nitro 5p is Project Treble supported, meaning you can boot and install a Generic System Image (GSI). There are a nunber of custom GSI ROMs available here on XDA, which have been build by various developers. This is a link to several GSI ROMs built from some of the more popular custom ROMs, i.e. HavocOS, LineageOS, ArrowOS, PixelExperience and others. These are available both with and without GApps, in both 32-bit and 64-bit architectures.
[SUMMARY][PIE GSI] BEST PIE-GSI ROMS to TRY (to this moment)
As we(in the TG group) have tested a bunch of Pie9.0 (s)GSI Roms on the XDA forum (https://forum.xda-developers.com/project-treble/trebleenabled-device-development) I was asked to make a guide/summary of what there was already been tested and in...
forum.xda-developers.com
Also, this is the official Project Treble forum here on XDA. This includes numerous GSI ROMs in various versions, instructional guides, device-specific resources and a ton of general info on Project Treble.
Project Treble
The Android 8.0 release includes Project Treble, a major re-architect of the Android OS framework designed to make it easier, faster, and less costly for manufacturers to update devices to a new version of Android. Treble is for all new devices launching with Android 8.0 and beyond.
forum.xda-developers.com
shatheone said:
I have a nitro 5p, I'm looking for a way to root so I can get some type of custom rom. The stock one is lost unuseable
Click to expand...
Click to collapse
I've tried unlocking the bootloader with no success.
For members having difficulties unlocking the Nitro 5P bootloader, you need to use the Token Identifier method typical to Unisoc (Spreadtrum) devices. There is a comprehensive YouTube guide on the process.
You will need a modified fastboot tools build, A Linux PC (or Windows PC running Ubuntu Live), and ADB Debugging/OEM Unlocking enabled in Developer Options. Links for the files you will need can be found here https://forum.hovatek.com/thread-32287.html
To the best of my knowledge, this is the only viable method for unlocking the bootloader on the Nitro 5p.
timba123 said:
I had trouble originally but a fellow xda member ma
I had trouble but someone here made a token for me. I'm bl unlocked for sure. I'm going to try to magisk root this weekend. The specs are poor on this device (nitro 5p) but is gsi/treble compatible . So I plan on trying that but in the end I'll prob just debloat stock to be as vanilla as I can and also add custom audio.
Click to expand...
Click to collapse
Viper4Android FX with the NEON audio drivers works quite nice on the 5p. A good debloating and some build.prop tweaks to optimize RAM efficiency and responsiveness made a big difference for me. You can also add a line to build.prop to disable the boot animation during boot up, which speeds up boot time considerably. Use Kernel Adiutor-Mod (APK available here on XDA) to enable Touch Boost under CPU settings and change the CPU Governor to Performance. Set I/O scheduler parameters to a 512 KB read-ahead on internal storage, using the noop scheduler preset. Set SELinux to permissive mode as well and use the Low Memory Killer (LMK) preset of Very Aggressive. In the ZRAM options, ensure Swappiness is set to 100.
Keep in mind that when rooting, you will need to install Magisk to run in recovery versus the typical boot.img patching.

How do you install TWRP forever even after flashing OTA and magiks? On Andorid 10?

I already know how to install the unofficail TWRP firmware for my Pixel 4a but it goes back to the custom roms recovery or stock recovery almost every time even after installing ramdisk. What's going on?
Since you are on Android 10, I don't think there will be anymore OTA updates because I think they are only for android 11 at the moment.
To get TWRP to "stick", you probably need to install a custom kernel that has ramdisk built into it as shown in this guide:
[GUIDE] UNLOCKING, DOWNGRADING TO A10, TWRP, ROOT
Hello, I'm posting this guide for those (like me) who can't do without TWRP on their device. I'm providing only a step-by-step explanation. Credits to @nikamura for his kernel and TWRP...
forum.xda-developers.com

[ROOT][LINEAGE OS 16] Openkirin rooting guide

Hi,
I've an FRD-L09 with Lineage OS 16 build 6, it all works correctly but I'm missing NFC.
I've found this reddit post
https://www.reddit.com/r/Honor8/comments/afmgp8
Quote:
The only bug I encountered is NFC not working, but I fixed it by installing NFC4PRA Magisk module. Mind you, flashing Magisk on Oreo and higher requires you to modify the ramdisk.img partition instead of the boot.img, as suggested by the Magisk app.
With wayback machine i saw that there were a guide for installing magisk with this rom, unfortunately that guide is the only missing page on wayback machine http://web.archive.org/web/20210612222959/https://openkirin.net/support/.
Can some one guide me to install magisk and then the module without bricking my phone?
Thanks.
Hi,
where did you get this rom?
I'm not an expert but I think you should have an unlocked bootloader and a working TWRP. From TWRP you can flash Magisk .. Try to search how to flash Magisk, as I said i'm not an expert so pay attention to what you are going to do.
Bye

Categories

Resources