Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Black screen after rooting magisk canary #25

Closed
Andromeda606 opened this issue Feb 25, 2022 · 1 comment
Closed

Black screen after rooting magisk canary #25

Andromeda606 opened this issue Feb 25, 2022 · 1 comment

Comments

@Andromeda606
Copy link

Andromeda606 commented Feb 25, 2022

Ekran Resmi 2022-02-25 21 57 40

[!] and we are NOT in an emulator shell
[] Set Directorys
[-] Test if ADB SHELL is working
[-] In any AVD via ADB, you can execute code without root in /data/data/com.android.shell
[-] Magisk installer Zip exists already
[
] Cleaning up the ADB working space
[] Creating the ADB working space
[
] Push Magisk.zip into /data/data/com.android.shell/Magisk
[-] ./Magisk.zip: 1 file pushed, 0 skipped. 285.9 MB/s (10641074 bytes in 0.035s)
[] create Backup File of ramdisk.img
[
] Push ramdisk.img into /data/data/com.android.shell/Magisk
[-] /Users/onderaydin/Library/Android/sdk/system-images/android-32/google_apis/arm64-v8a/ramdisk.img: 1 file pushed, 0 skipped. 269.8 MB/s (4257802 bytes in 0.015s)
[] Push rootAVD.sh into /data/data/com.android.shell/Magisk
[-] rootAVD.sh: 1 file pushed, 0 skipped. 172.4 MB/s (7826127 bytes in 0.043s)
[-] run the actually Boot/Ramdisk/Kernel Image Patch Script
[
] from Magisk by topjohnwu and modded by NewBit XDA
[!] We are in an emulator shell
[-] Api Level Arch Detect
[-] Device Platform is arm64 only
[-] Device SDK API: 31
[-] First API Level: 31
[-] Switch to the location of the script file
[] Extracting busybox and Magisk.zip ...
[-] Checking AVDs Internet connection...
[!] AVD is online
[!] Checking available Magisk Versions
[?] Choose a Magisk Version to install and make it local
[1] Local '24.1' (ENTER)
[2] Canary 1a1b346c(24102)
[3] Stable 24.1
[4] Alpha e7c82f20-alpha(24102)
2
[2] You choose Magisk Canary Version 1a1b346c(24102)
[
] Deleting local Magisk '24.1'
[] Downloading Magisk 1a1b346c(24102)
[!] Downloading Magisk 1a1b346c(24102) complete!
[-] Switch to the location of the script file
[
] Extracting busybox and Magisk.zip ...
[] Re-Run rootAVD in Magisk Busybox STANDALONE (D)ASH
[!] We are in an emulator shell
[-] We are now in Magisk Busybox STANDALONE (D)ASH
[
] rootAVD with Magisk 1a1b346c(24102) Installer
[-] Get Flags
[] System-as-root, keep dm/avb-verity
[-] Encrypted data, keep forceencrypt
[
] RECOVERYMODE=false
[-] KEEPVERITY=true
[] KEEPFORCEENCRYPT=true
[-] copy all arm64-v8a files from /data/data/com.android.shell/Magisk/lib/arm64-v8a to /data/data/com.android.shell/Magisk
[
] Detecting ramdisk.img compression
[!] Ramdisk.img uses lz4_legacy compression
[-] taken from shakalaca's MagiskOnEmulator/process.sh
[] executing ramdisk splitting / extraction / repacking
[-] API level greater then 30
[
] Check if we need to repack ramdisk before patching ..
[-] Multiple cpio archives detected
[] Unpacking ramdisk ..
[
] Searching for the real End of the 1st Archive
[-] Dumping from 0 to 1568512 ..
Detected format: [lz4_legacy]
[-] Dumping from 1568512 to 4257783 ..
Detected format: [lz4_legacy]
[] Repacking ramdisk ..
[-] Deleting system ramdisk build.prop
[-] Test patch status and do restore
[-] Checking ramdisk status
[-] STATUS=0
[-] Stock boot image detected
[-] Patching ramdisk
[
] adding overlay.d/sbin folders to ramdisk
Loading cpio: [ramdisk.cpio]
Create directory [overlay.d] (0750)
Create directory [overlay.d/sbin] (0750)
Dump cpio: [ramdisk.cpio]
[!] PATCHFSTAB=false
[!] Skipping fstab.ranchu patch with /dev/block/sda
[?] If you want fstab.ranchu patched, Call rootAVD with PATCHFSTAB
[!] AddRCscripts=false
[!] Skip adding .rc scripts into ramdisk.img/sbin/.rc
[?] If you want .rc scripts added into ramdisk.img/sbin/.rc, Call rootAVD with AddRCscripts
[!] patching the ramdisk with Magisk Init
Loading cpio: [ramdisk.cpio]
Add entry [init] (0750)
Add entry [overlay.d/sbin/magisk64.xz] (0644)
Patch with flag KEEPVERITY=[true] KEEPFORCEENCRYPT=[true]
Loading cpio: [ramdisk.cpio.orig]
Backup mismatch entry: [init] -> [.backup/init]
Record new entry: [overlay.d] -> [.backup/.rmlist]
Record new entry: [overlay.d/sbin] -> [.backup/.rmlist]
Record new entry: [overlay.d/sbin/magisk64.xz] -> [.backup/.rmlist]
Create directory [.backup] (0000)
Add entry [.backup/.magisk] (0000)
Dump cpio: [ramdisk.cpio]
[] repacking back to ramdisk.img format
[!] Copy Magisk.zip to Magisk.apk
[
] Pull ramdiskpatched4AVD.img into ramdisk.img
[-] /data/data/com.android.shell/Magisk/ramdiskpatched4AVD.img: 1 file pulled, 0 skipped. 222.8 MB/s (4760088 bytes in 0.020s)
[] Pull Magisk.apk into
[-] /data/data/com.android.shell/Magisk/Magisk.apk: 1 file pulled, 0 skipped. 236.7 MB/s (17697878 bytes in 0.071s)
[
] Pull Magisk.zip into .
[-] /data/data/com.android.shell/Magisk/Magisk.zip: 1 file pulled, 0 skipped. 247.6 MB/s (17697878 bytes in 0.068s)
[-] Clean up the ADB working space
[-] Install all APKs placed in the Apps folder
[] Trying to install Apps/Magisk.apk
[
] Performing Streamed Install
[*] Success
[-] Shut-Down & Reboot (Cold Boot Now) the AVD and see if it worked
[-] Root and Su with Magisk for Android Studio AVDs
[-] Modded by NewBit XDA - Jan. 2021
[!] Huge Credits and big Thanks to topjohnwu, shakalaca and vvb2060
[-] Trying to shut down the AVD
[!] If the AVD doesn't shut down, try it manually!

mac m1
android 12
google play not installed
arm64-v8a

@Andromeda606
Copy link
Author

I tried google play installed, not working
intel/haxm#403 x86 doesn't work for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant