topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
47.59k stars 12.08k forks source link

Installation on Lineage OS 16 on Raspberry pi #2066

Closed normaluser321 closed 4 years ago

normaluser321 commented 4 years ago

Hello, I'm trying to install magisk on lineage os 16 on a raspberry pi (Image from here). The installation of the zip via TWRP fails (see log [1]). I also tried to extract the boot image and patch it with the magisk manager app. For this I used the backup option of TWRP and renamed the resulting backup of the boot partition to image.img. But the patch operation fails with "No boot image found". The third option I tried was the direct installation from the app while granting root access. This resulted in "Unsupported/Unknown image format". What is wrong? Can I help with the solution?

Thank you very much. [1]:

Starting TWRP 3.3.1-0-KonstaKANG-710e246e on Thu Jan  1 00:00:05 1970
 (pid 114)
I:=> hardware id from cpuinfo: 'BCM2835'
I:=> serial from cpuinfo: '000000007feb1620'
TW_NO_REBOOT_RECOVERY := true
TW_NO_REBOOT_BOOTLOADER := true
TW_NO_BATT_PERCENT := true
I:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabled
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/class/backlight/rpi_backlight/brightness
I:Found brightness file at '/sys/class/backlight/rpi_backlight/brightness'
I:Got max brightness 255 from '/sys/class/backlight/rpi_backlight/max_brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:TW_EXCLUDE_MTP := true
I:LANG: en
Starting the UI...
setting DRM_FORMAT_RGB565 and GGL_PIXEL_FORMAT_RGB_565
cannot find/open a drm device: No such file or directory
Forcing pixel format: RGB_565
fb0 reports (possibly inaccurate):
  vi.bits_per_pixel = 16
  vi.red.offset   =  11   .length =   5
  vi.green.offset =   5   .length =   6
  vi.blue.offset  =   0   .length =   5
setting GGL_PIXEL_FORMAT_RGB_565
single buffered
framebuffer: 0 (1280 x 720)
Using fbdev graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
I:Checking resolution...
I:Scaling theme width 0.666667x and height 0.600000x, offsets x: 0 y: 0 w: 0 h: 0
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page splash
I:Switching packages (splash)
I:Found mouse 'PIXART USB OPTICAL MOUSE'
=> Linking mtab
=> Processing /etc/recovery.fstab
I:Reading /etc/recovery.fstab
I:Processing '/boot'
I:Created '/boot' folder.
I:Processing '/system'
I:Processing '/vendor'
I:Created '/vendor' folder.
I:Processing '/data'
I:Processing '/usb_otg'
I:Created '/usb_otg' folder.
I:Done processing fstab files
I:Using automatic handling for /data/media emulated storage device.
I:Setting up '/data' as data/media emulated storage.
I:Backup folder set to '/data/media/0/TWRP/BACKUPS/000000007feb1620'
I:Settings storage is '/data/media/0'
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:Decrypt adopted storage starting
I:PageManager::LoadFileToBuffer loading filename: '/data/system/storage.xml' directly
I:successfully loaded storage.xml
Updating partition details...
I:Data backup size is 140MB, free: 2118MB.
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'auto'
...done
I:Unmounting main partitions...

Partition Logs:
/boot | /dev/block/mmcblk0p1 | Size: 126MB Used: 38MB Free: 87MB Backup Size: 38MB
   Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up IsPresent 
   Primary_Block_Device: /dev/block/mmcblk0p1
   Display_Name: Boot
   Storage_Name: boot
   Backup_Path: /boot
   Backup_Name: boot
   Backup_Display_Name: Boot
   Storage_Path: /boot
   Current_File_System: vfat
   Fstab_File_System: vfat
   Backup_Method: files

/system | /dev/block/mmcblk0p2 | Size: 1007MB Used: 738MB Free: 269MB Backup Size: 738MB
   Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent Mount_Read_Only 
   Primary_Block_Device: /dev/block/mmcblk0p2
   Display_Name: System
   Storage_Name: System
   Backup_Path: /system
   Backup_Name: system
   Backup_Display_Name: System
   Storage_Path: /system
   Current_File_System: ext4
   Fstab_File_System: ext4
   Backup_Method: files

/vendor | /dev/block/mmcblk0p3 | Size: 247MB Used: 16MB Free: 231MB Backup Size: 16MB
   Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up IsPresent Mount_Read_Only 
   Primary_Block_Device: /dev/block/mmcblk0p3
   Display_Name: Vendor
   Storage_Name: Vendor
   Backup_Path: /vendor
   Backup_Name: vendor
   Backup_Display_Name: Vendor
   Storage_Path: /vendor
   Current_File_System: ext4
   Fstab_File_System: ext4
   Backup_Method: files

/data | /dev/block/mmcblk0p4 | Size: 2580MB Used: 140MB Free: 2118MB Backup Size: 140MB
   Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage 
   Symlink_Path: /data/media/0
   Symlink_Mount_Point: /sdcard
   Primary_Block_Device: /dev/block/mmcblk0p4
   Length: -16384
   Display_Name: Data
   Storage_Name: Internal Storage
   Backup_Path: /data
   Backup_Name: data
   Backup_Display_Name: Data
   Storage_Path: /data/media/0
   Current_File_System: ext4
   Fstab_File_System: ext4
   Backup_Method: files
   MTP_Storage_ID: 65538

/usb_otg |  | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
   Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage 
   Primary_Block_Device: /dev/block/sda1
   Alternate_Block_Device: /dev/block/sda
   Display_Name: USB-OTG
   Storage_Name: USB-OTG
   Backup_Path: /usb_otg
   Backup_Name: usb_otg
   Backup_Display_Name: USB-OTG
   Storage_Path: /usb_otg
   Current_File_System: auto
   Fstab_File_System: auto
   Backup_Method: files
   MTP_Storage_ID: 65537

I:Loading package: TWRP (/data/media/0/TWRP/theme/ui.zip)
I:Loading zip theme
I:Loading package: TWRP (/twres/ui.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/uk.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/tr.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sv.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sk.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ru.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_PT.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_BR.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/nl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/it.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/hu.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/fr.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/es.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/el.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/de.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/cz.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
I:PageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly
I:Checking resolution...
I:Scaling theme width 0.666667x and height 0.600000x, offsets x: 0 y: 0 w: 0 h: 0
I:Loading resources...
I:Failed to load image from indeterminate013, error -1
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Including file: /twres/landscape.xml...
I:PageManager::LoadFileToBuffer loading filename: '/twres/landscape.xml' directly
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page main
I:Loading page main2
I:Loading page install
I:Loading page flash_confirm
I:Loading page flash_zip
I:Loading page flash_done
I:Loading page flash_sleep_and_reboot
I:Loading page flashimage_confirm
I:Loading page clear_vars
I:Loading page reboot_system_routine
I:Loading page confirm_action
I:Loading page action_page
I:Loading page singleaction_page
I:Loading page action_complete
I:Loading page filecheck
I:Loading page rebootcheck
I:Loading page appcheck
I:Loading page wipe
I:Loading page advancedwipe
I:Loading page formatdata
I:Loading page formatdata_confirm
I:Loading page checkpartitionlist
I:Loading page partitionoptions
I:Loading page refreshfilesystem
I:Loading page selectfilesystem
I:Loading page backup
I:Loading page backupname1
I:Loading page backupname2
I:Loading page backupencryption
I:Loading page backupencryption2
I:Loading page checkbackuppassword
I:Loading page backup_run
I:Loading page restore
I:Loading page restore_read
I:Loading page restore_decrypt
I:Loading page try_restore_decrypt
I:Loading page restore_select
I:Loading page renamebackup
I:Loading page restore_run
I:Loading page mount
I:Loading page usb_mount
I:Loading page usb_umount
I:Loading page system_readonly_check
I:Loading page reboot
I:Loading page rebootapp
I:Loading page system_readonly
I:Loading page settings
I:Loading page settings_timezone
I:Loading page settings_screen
I:Loading page settings_vibration
I:Loading page settings_language
I:Loading page copylog
I:Loading page advanced
I:Loading page partsdcardsel
I:Loading page partsdcardcheck
I:Loading page partsdcard
I:Loading page htcdumlock
I:Loading page repackselect
I:Loading page repackconfirm
I:Loading page lock
I:Loading page filemanagerlist
I:Loading page filemanageroptions
I:Loading page choosedestinationfolder
I:Loading page filemanagerrenamefile
I:Loading page filemanagerrenamefolder
I:Loading page filemanagerchmod
I:Loading page filemanagerconfirm
I:Loading page filemanageraction
I:Loading page decrypt
I:Loading page decrypt_pattern
I:Loading page trydecrypt
I:Loading page terminalcommand
I:Loading page sideload
I:Loading page fixcontexts
I:Loading page slideout
I:Loading page select_storage
I:Loading page select_language
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)

Startup Commands: 
ro.boottime.adbd=4996411352
ro.boottime.init=4176
ro.boottime.init.selinux=324
ro.boottime.init.cold_boot_wait=254
ro.boottime.ueventd=4713734946
ro.boottime.recovery=4994436404
ro.boottime.set_permissive=4993169998
ro.config.low_ram=true
ro.config.alarm_alert=Hassium.ogg
ro.config.notification_sound=Argon.ogg
ro.dalvik.vm.native.bridge=0
dalvik.vm.isa.arm.variant=cortex-a53
dalvik.vm.isa.arm.features=default
dalvik.vm.dexopt.secondary=true
dalvik.vm.usejit=true
dalvik.vm.heapsize=256m
dalvik.vm.lockprof.threshold=500
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
dalvik.vm.heapmaxfree=8m
dalvik.vm.heapminfree=512k
dalvik.vm.heapstartsize=8m
dalvik.vm.appimageformat=lz4
dalvik.vm.madvise-random=true
dalvik.vm.usejitprofiles=true
dalvik.vm.heapgrowthlimit=128m
dalvik.vm.stack-trace-dir=/data/anr
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
dalvik.vm.dex2oat-minidebuginfo=true
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.systemservercompilerfilter=speed-profile
debug.drm.mode.force=1280x720
debug.hwui.use_partial_updates=0
debug.atrace.tags.enableflags=0
ro.sf.lcd_density=160
ro.adb.secure=0
ro.com.google.clientidbase=android-google
ro.lmk.medium=700
ro.lmk.critical_upgrade=true
ro.lmk.upgrade_pressure=40
ro.lmk.downgrade_pressure=60
ro.lmk.kill_heaviest_task=false
ro.sys.sdcardfs=true
ro.boot.selinux=permissive
ro.boot.hardware=rpi3
ro.twrp.boot=1
ro.twrp.version=3.3.1-0-KonstaKANG
ro.vndk.lite=true
ro.vndk.version=28
ro.wifi.channels=
ro.allow.mock.location=0
ro.build.id=PQ3A.190605.003
ro.build.date=Wed Jun 26 12:14:56 EEST 2019
ro.build.date.utc=1561540496
ro.build.host=idea
ro.build.tags=dev-keys
ro.build.type=userdebug
ro.build.user=tuomas
ro.build.flavor=lineage_rpi3-userdebug
ro.build.display.id=lineage_rpi3-userdebug 9 PQ3A.190605.003 eng.tuomas.20190626.121646 dev-keys
ro.build.product=rpi3
ro.build.selinux=1
ro.build.version.sdk=28
ro.build.version.base_os=
ro.build.version.release=9
ro.build.version.codename=REL
ro.build.version.incremental=eng.tuomas.20190626.121646
ro.build.version.preview_sdk=0
ro.build.version.all_codenames=REL
ro.build.version.security_patch=2019-06-05
ro.build.version.min_supported_target_sdk=17
ro.build.description=lineage_rpi3-userdebug 9 PQ3A.190605.003 eng.tuomas.20190626.121646 dev-keys
ro.build.characteristics=tablet
ro.kernel.android.gps=ttyACM0
ro.secure=1
ro.statsd.enable=false
ro.treble.enabled=false
ro.zygote=zygote32
ro.carrier=unknown
ro.lineage.build.version=16.0
ro.lineage.build.version.plat.rev=0
ro.lineage.build.version.plat.sdk=9
ro.lineage.device=rpi3
ro.lineage.display.version=16.0-20190626-UNOFFICIAL-KonstaKANG-rpi3
ro.lineage.version=16.0-20190626-UNOFFICIAL-KonstaKANG-rpi3
ro.lineage.releasetype=UNOFFICIAL
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.cpu.abilist=armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=
ro.product.name=lineage_rpi3
ro.product.brand=Raspberry
ro.product.model=Raspberry Pi 3
ro.product.device=rpi3
ro.product.locale=en-US
ro.product.manufacturer=Raspberry
ro.baseband=unknown
ro.bootmode=unknown
ro.hardware=rpi3
ro.opengles.version=131072
ro.bootimage.build.date=Wed Jun 26 12:14:56 EEST 2019
ro.bootimage.build.date.utc=1561540496
ro.bootimage.build.fingerprint=Raspberry/lineage_rpi3/rpi3:9/PQ3A.190605.003/tuomas06261214:userdebug/dev-keys
ro.bootloader=unknown
ro.debuggable=1
ro.modversion=16.0-20190626-UNOFFICIAL-KonstaKANG-rpi3
ro.lineagelegal.url=https://lineageos.org/legal
ro.storage_manager.enabled=true
ro.property_service.version=2
ro.actionable_compatible_property.enabled=false
init.svc.adbd=running
init.svc.ueventd=running
init.svc.recovery=running
init.svc.set_permissive=stopped
twrp.crash_counter=0
twrp.action_complete=0
wifi.interface=wlan0
media.recorder.show_manufacturer_and_model=true
camera.disable_zsl_mode=1
persist.media.treble_omx=false
tombstoned.max_tombstone_count=50
ro.build.fingerprint=Raspberry/lineage_rpi3/rpi3:9/PQ3A.190605.003/tuomas06261214:userdebug/dev-keys
log.tag.stats_log=I
ro.logd.size.stats=64K
ro.persistent_properties.ready=true
pm.dexopt.boot=verify
pm.dexopt.ab-ota=speed-profile
pm.dexopt.shared=quicken
pm.dexopt.install=speed-profile
pm.dexopt.inactive=verify
pm.dexopt.bg-dexopt=speed-profile
pm.dexopt.first-boot=quicken
pm.dexopt.downgrade_after_inactive_days=10
service.adb.root=1
security.perf_harden=1
net.bt.name=Android
persist.sys.dun.override=0
persist.sys.usb.config=adb
persist.sys.dalvik.vm.lib.2=libart.so
ro.hardware.camera=v4l2
ro.hardware.gralloc=minigbm
ro.hardware.hwcomposer=drm_minigbm

SELinux contexts loaded from /file_contexts
I:Unable to find a directory to store TWRP logs.Full SELinux support is present.
tw_get_context got selinux context: u:object_r:media_rw_data_file:s0
I:Got default contexts and file mode for storage files.
I:Unable to find a directory to store TWRP logs.I:Unable to find a directory to store TWRP logs.I:Recreating recovery/ folder.
I:Copying file recovery/log to recovery/last_log
I:Mount: Unable to find partition for path '/recovery'
I:Unable to find a directory to store TWRP logs.I:Attempt to load settings from settings file...
I:InfoManager file '/data/media/0/TWRP/.twrps' not found.
I:Backup folder set to '/data/media/0/TWRP/BACKUPS/000000007feb1620'
I:Unable to find a directory to store TWRP logs.I:Unable to find cache directory
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'auto'
__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
I:Translating partition display names
I:Backup folder set to '/data/media/0/TWRP/BACKUPS/000000007feb1620'
I:Unable to find a directory to store TWRP logs.I:Switching packages (TWRP)
I:Skipping screen timeout: TW_NO_SCREEN_TIMEOUT is set
I:Set page: 'system_readonly'
I:Reloading input devices
I:Found mouse 'PIXART USB OPTICAL MOUSE'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:operation_start: 'Toggle System Mount'
I:Unable to find a directory to store TWRP logs.I:operation_end - status=0
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)
I:Starting Adb Backup FIFO
I:Skipping screen timeout: TW_NO_SCREEN_TIMEOUT is set
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Set page: 'install'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Set page: 'flash_confirm'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
I:Unable to find a directory to store TWRP logs.Installing zip file '/sdcard/Download/Magisk-v20.1(20100).zip'
Checking for Digest file...
I:Update binary zip
Verifying package compatibility...
Package doesn't contain compatibility.zip entry
I:Extracting updater binary 'META-INF/com/google/android/update-binary'
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment not used in updater.
1566+0 records in
1566+0 records out
1603584 bytes transferred in 0.020 secs (80179200 bytes/sec)
1045+1 records in
1045+1 records out
1070668 bytes transferred in 0.014 secs (76476285 bytes/sec)
Archive:  /sdcard/Download/Magisk-v20.1(20100).zip
  inflating: META-INF/com/google/android/update-binary
  inflating: META-INF/com/google/android/updater-script
  inflating: arm/magiskboot
  inflating: arm/magiskinit
  inflating: arm/magiskinit64
  inflating: chromeos/futility
  inflating: chromeos/kernel.keyblock
  inflating: chromeos/kernel_data_key.vbprivk
  inflating: common/addon.d.sh
  inflating: common/boot_patch.sh
  inflating: common/magisk.apk
  inflating: common/util_functions.sh
  inflating: x86/magiskboot
  inflating: x86/magiskinit
  inflating: x86/magiskinit64
  inflating: META-INF/MANIFEST.MF
  inflating: META-INF/CERT.SF
  inflating: META-INF/CERT.RSA
************************
* Magisk v20.1 Installer
************************
- Mounting system
- Mounting vendor
- Target image: /dev/block/mmcblk0p1
- Device platform: arm
- Removing system installed root
- Constructing environment
- Adding addon.d survival script
java.lang.IllegalArgumentException: Invalid image header: missing magic
    at a.a4.b(Unknown Source:176)
    at a.a4.a(Unknown Source:13)
    at a.a.main(:1)
Parsing boot image: [/dev/block/mmcblk0p1]
- Unpacking boot image
! Unsupported/Unknown image format
- Unmounting partitions
Updater process ended with ERROR: 1
I:Install took 33 second(s).
Error installing zip file '/sdcard/Download/Magisk-v20.1(20100).zip'
Updating partition details...
I:Data backup size is 145MB, free: 2114MB.
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'auto'
...done
I:Set page: 'flash_done'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:operation_end - status=1
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Set page: 'clear_vars'
I:Set page: 'install'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Set page: 'backup'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Set page: 'advanced'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Set page: 'copylog'
I:Cannot find file /sys/class/timed_output/vibrator/enable
I:Set page: 'action_page'
I:operation_start: 'Copy Log'
I:Unable to find a directory to store TWRP logs.I:Copying file /tmp/recovery.log to /data/media/0/recovery.log
osm0sis commented 4 years ago

The boot.img isn't in Android format at all, so of course will not work.

Upload your backup of your boot partition so @topjohnwu can take a look to see if it's sensible to add support.

normaluser321 commented 4 years ago

Thank you for your fast response. To be honest, I don't know how to extract the boot image in the right way. I think it is supposed to contain a kernel and the ramdisk, but the one from TWRP does not include a kernel. I would like to help here, could you point me in the right direction on how to extract the full boot image? Does the boot image contain any private information like the mac address or wifi names/passwords I should remove if I export it from the device? I think the original image from the original author contains the boot image in the 0.fat partition.

I got Magisk working after reading the source code and patching the ramdisk manually. I simply extracted the ramdisk in the cpio format and used magiskboot to add the magisk init file. After that the Magisk Manager showed that it is working and the root option in the developer settings disappeared. My only problem left is that I cannot pass SafetyNet. Basic integrity and cts fail. I would really like to get it working, so I used the Module SafetyPatcher and MagiskHide Props Config. Sadly, the basic integrity and ctr are still failing. I would be very glad about any idea to fix the safety net issue. Do you need more information here to help?

osm0sis commented 4 years ago

I don't have a Pi so I can't tell you the proper way.

xerta555 commented 4 years ago

@normaluser321 Hi, you say that you have install the SafetyPatcher and MagiskHide Props Config modules, but have you tried to just install the MagiskHide Props Config module only and reboot your Pie to check if it works?

topjohnwu commented 4 years ago

There is currently no plans to support devices using non standard Android boot image

threeeye commented 4 years ago

Thank you for your fast response. To be honest, I don't know how to extract the boot image in the right way. I think it is supposed to contain a kernel and the ramdisk, but the one from TWRP does not include a kernel. I would like to help here, could you point me in the right direction on how to extract the full boot image? Does the boot image contain any private information like the mac address or wifi names/passwords I should remove if I export it from the device? I think the original image from the original author contains the boot image in the 0.fat partition.

I got Magisk working after reading the source code and patching the ramdisk manually. I simply extracted the ramdisk in the cpio format and used magiskboot to add the magisk init file. After that the Magisk Manager showed that it is working and the root option in the developer settings disappeared. My only problem left is that I cannot pass SafetyNet. Basic integrity and cts fail. I would really like to get it working, so I used the Module SafetyPatcher and MagiskHide Props Config. Sadly, the basic integrity and ctr are still failing. I would be very glad about any idea to fix the safety net issue. Do you need more information here to help?

How did you get it to work? Can you upload the working version?

omegawea commented 4 years ago

will the firmware of raspberry pi be any useful?

osm0sis commented 4 years ago

will the firmware of raspberry pi be any useful?

No. topjohnwu and I already clearly explained it's not an Android boot.img so won't be officially supported.

If you can dump and upload the boot.img properly I'd like to take a closer look still, but that's about it.

compilebunny commented 3 years ago

It would be awesome if @normaluser321 could post a complete description of how he patched Konstakang's Android on Raspberry Pi with Magisk. Then, others could follow it.