Friday, April 10, 2015

linux - How to extract `magiskpolicy` from `magiskinit64`?


I have cloned the Magisk code at my Ubuntu machine. I have successfully run build.py and get the Magisk.zip file in Out directory. This zip contains arm, chromeos, common, META-INF and x86 folders.


As documented here. I should be able to get magiskpolicy using ./magiskinit64 -x magiskpolicy /system/ but this command is not working and neither giving any error. Similary ./magiskinit64 --help is also not working.


1|flashlm:/system/magisk # ls
META-INF Magisk.tar arm chromeos common x86

flashlm:/system/magisk # getprop ro.product.cpu.abi
arm64-v8a
flashlm:/system/magisk # ./arm/magiskinit64 --help
1|flashlm:/system/magisk # ./arm/magiskinit64 -x magisk /system/magisk
1|flashlm:/system/magisk # ls
META-INF Magisk.tar arm chromeos common x86
flashlm:/system/magisk # ./arm/magiskinit64 -x magiskpolicy /system/magisk
1|flashlm:/system/magisk # ls
META-INF Magisk.tar arm chromeos common x86
flashlm:/system/magisk # ./arm/magiskinit -x magiskpolicy /system/magisk

1|flashlm:/system/magisk # ls
META-INF Magisk.tar arm chromeos common x86
flashlm:/system/magisk # ./arm/magiskinit --help
1|flashlm:/system/magisk # ls
META-INF Magisk.tar arm chromeos common x86
flashlm:/system/magisk # ls -l -Z ./arm/*
-rwxr-xr-x 1 root root u:object_r:system_file:s0 533856 2019-11-26 17:42 ./arm/magiskboot
-rwxr-xr-x 1 root root u:object_r:system_file:s0 617216 2019-11-26 17:42 ./arm/magiskinit
-rwxr-xr-x 1 root root u:object_r:system_file:s0 596736 2019-11-26 17:42 ./arm/magiskinit64



Any suggestions about what I have missed?




No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...