Magisk-Modules-Repo / KaliNethunter

KaliNethunter
322 stars 60 forks source link

[Request] Xiaomi Redmi Note 7 [lavender] Support #10

Open MrX0r opened 5 years ago

MrX0r commented 5 years ago

Hello, on Xiaomi Redmi Note 7 lavender is the Magisk-Modules is not compatible there are several problems.

Device: Xiaomi Redmi Note 7 [lavender] || ROM: LineageOS / crDroid || Android Version: 10.0 || Magisk: 20.1

Nethunter doesnt really have any support for system-as-root-partition

There are surely still various mistakes how could one fix that?

data/data/com.offsec.nethunter/files/script bootkali_init > I edited this line

#enable depmod/modprobe support in rootfs if [ ! "$(mountpoint $mnt/lib/modules 2> /dev/null | grep 'is a')" ]; then $busybox mount -r -o bind /vendor/lib/modules $mnt/lib/modules && bklog "[+] mounted /lib/modules" fi But unfortunately without success he can not integrate the modules.

The modules are in "/vendor/lib/modules"

2

nethunter_Terminal_shell

https://github.com/Magisk-Modules-Repo/KaliNethunter/issues/8

I also tried to install "kalifs-arm64-full.tar.xz" (Of course I edited the filename) but every time after unpacking, Nethunter deletes everything! There is a bug in the Nethunter script he checks if it is kali-armhf.

- Copying zip to temp directory
- Installing KaliNethunter-v8.2(22).zip
- Device is system-as-root

Archive:  /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
  inflating: install.sh
  inflating: module.prop
##################################################
##                                              ##
##  88      a8P         db        88        88  ##
##  88    .88'         d88b       88        88  ##
##  88   88'          d8''8b      88        88  ##
##  88 d88           d8'  '8b     88        88  ##
##  8888'88.        d8YaaaaY8b    88        88  ##
##  88P   Y8b      d8''''''''8b   88        88  ##
##  88     '88.   d8'        '8b  88        88  ##
##  88       Y8b d8'          '8b 888888888 88  ##
##                                              ##
################### NetHunter ####################
         ******************************
         Powered by Magisk (@topjohnwu)
         ******************************

mount: can't read '/etc/fstab': No such file or directory
mount: can't read '/etc/fstab': No such file or directory
mount: can't read '/etc/fstab': No such file or directory

Extracting files...
Archive:  /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
   creating: META-INF/
   creating: META-INF/com/
   creating: META-INF/com/google/
   creating: META-INF/com/google/android/
  inflating: META-INF/com/google/android/update-binary
  inflating: META-INF/com/google/android/updater-script
  inflating: .gitattributes
  inflating: README.md
   creating: apps/
  inflating: apps/Term-nh.apk
  inflating: apps/VNC-nh.apk
  inflating: apps/nethunter.apk
  inflating: busybox-amd64
  inflating: busybox-arm
  inflating: busybox-arm64
  inflating: busybox-i386
  inflating: install.sh
  inflating: module.prop
   creating: system/
   creating: system/etc/
   creating: system/etc/firmware/
  inflating: system/etc/firmware/ar7010.fw
  inflating: system/etc/firmware/ar7010_1_1.fw
   creating: system/etc/firmware/ath9k_htc/
  inflating: system/etc/firmware/ath9k_htc/htc_7010-1.4.0.fw
  inflating: system/etc/firmware/ath9k_htc/htc_9271-1.4.0.fw
   creating: system/etc/firmware/brcm/
  inflating: system/etc/firmware/brcm/bcm43xx-0.fw
  inflating: system/etc/firmware/brcm/bcm43xx_hdr-0.fw
  inflating: system/etc/firmware/carl9170-1.fw
  inflating: system/etc/firmware/htc_9271.fw
  inflating: system/etc/firmware/mt7601u.bin
  inflating: system/etc/firmware/rt2561.bin
  inflating: system/etc/firmware/rt2561s.bin
  inflating: system/etc/firmware/rt2661.bin
  inflating: system/etc/firmware/rt2860.bin
  inflating: system/etc/firmware/rt2870.bin
  inflating: system/etc/firmware/rt3070.bin
  inflating: system/etc/firmware/rt3071.bin
  inflating: system/etc/firmware/rt3290.bin
  inflating: system/etc/firmware/rt73.bin
   creating: system/etc/firmware/rtlwifi/
  inflating: system/etc/firmware/rtlwifi/rtl8188eufw.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192cfw.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192cfwU.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192cfwU_B.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192cufw.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192cufw_A.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192cufw_B.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192cufw_TMSC.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192defw.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192eefw.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192eu_nic.bin
  inflating: system/etc/firmware/rtlwifi/rtl8192sefw.bin
  inflating: system/etc/firmware/rtlwifi/rtl8821aefw.bin
  inflating: system/etc/firmware/rtlwifi/rtl8821aefw_wowlan.bin

Installing...
Using architecture: arm64
Using path: /data/adb/modules_update/KaliNethunter/system/xbin
avc:  denied  { read } for  scontext=u:r:system_server:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
Success
avc:  denied  { read } for  scontext=u:r:system_server:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
Success
avc:  denied  { read } for  scontext=u:r:system_server:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
Success
cp: can't create directory '/system/etc/firmware': Read-only file system

Cleaning...

Creating symlinks...

Unmounting...
umount: can't unmount /system: Invalid argument
umount: can't unmount /data: Device or resource busy
umount: can't unmount /cache: Device or resource busy

Symlinking...
ln: /system/xbin/busybox_nh: Read-only file system
Cleaning Up...

Done!
MrX0r commented 5 years ago

bootkali_init

#enable depmod/modprobe support in rootfs
    if [ ! "$(mountpoint $mnt/lib/modules 2> /dev/null | grep 'is a')" ]; then
       $busybox mount -r -o bind /vendor/lib/modules /system/lib/modules
       $busybox mount -r -o bind /system/lib/modules $mnt/lib/modules && bklog "[+] mounted /lib/modules"
    fi 

no works