Skip to content
Permalink
Browse files

Fixed Nexus 6P 8.1 kernel (wifi) modules

  • Loading branch information...
kimocoder committed Mar 14, 2019
1 parent 57a956a commit 3f7630f98901b5de73b452397f2695e633be0eab
Showing with 134 additions and 2 deletions.
  1. +1 −1 devices.cfg
  2. BIN oreo/angler/Image.gz-dtb
  3. BIN ...ngler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/crypto/cmac.ko
  4. BIN ...nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/media/usb/gspca/gspca_main.ko
  5. BIN ...-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/at76c50x-usb.ko
  6. BIN oreo/angler/modules/3.10.73-angler-nethunter-3.0/kernel/drivers/net/wireless/ath/ath.ko
  7. BIN ...thunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko
  8. BIN ...-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko
  9. BIN ...ter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
  10. BIN ...nter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
  11. BIN ...r-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/ath/carl9170/carl9170.ko
  12. BIN ...hunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/rt2x00/rt2500usb.ko
  13. BIN ...hunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
  14. BIN ...hunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
  15. BIN ...hunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko
  16. BIN ...hunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/rt2x00/rt2x00usb.ko
  17. BIN ...ethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/rt2x00/rt73usb.ko
  18. BIN ...angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko
  19. BIN ...0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
  20. BIN ...er-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
  21. BIN ...thunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/rtlwifi/rtlwifi.ko
  22. BIN oreo/angler/modules/3.10.73-angler-nethunter-3.0/kernel/drivers/net/wireless/zd1201.ko
  23. BIN ...unter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/net/wireless/zd1211rw/zd1211rw.ko
  24. BIN ....10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/usb/serial/ftdi_sio.ko
  25. BIN ...3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/usb/serial/keyspan.ko
  26. BIN ....73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/usb/serial/keyspan_pda.ko
  27. BIN ...3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/usb/serial/mos7720.ko
  28. BIN ...3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/usb/serial/mos7840.ko
  29. BIN ...{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/usb/serial/pl2303.ko
  30. BIN ...10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/drivers/usb/serial/usbserial.ko
  31. BIN ...gler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/fs/cifs/cifs.ko
  32. BIN oreo/angler/modules/3.10.73-angler-nethunter-3.0/kernel/fs/lockd/lockd.ko
  33. BIN oreo/angler/modules/3.10.73-angler-nethunter-3.0/kernel/fs/nfs/blocklayout/blocklayoutdriver.ko
  34. BIN ...angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/fs/nfs/nfs.ko
  35. BIN ....73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/fs/nfs/nfs_layout_nfsv41_files.ko
  36. BIN ...gler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/fs/nfs/nfsv2.ko
  37. BIN ...gler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/fs/nfs/nfsv3.ko
  38. BIN ...gler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/fs/nfs/nfsv4.ko
  39. BIN oreo/angler/modules/3.10.73-angler-nethunter-3.0/kernel/fs/nfsd/nfsd.ko
  40. BIN oreo/angler/modules/3.10.73-angler-nethunter-3.0/kernel/fs/ntfs/ntfs.ko
  41. BIN ....10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/net/bluetooth/rfcomm/rfcomm.ko
  42. BIN oreo/angler/modules/3.10.73-angler-nethunter-3.0/kernel/net/dns_resolver/dns_resolver.ko
  43. BIN oreo/angler/modules/3.10.73-angler-nethunter-3.0/kernel/net/mac80211/mac80211.ko
  44. BIN ...73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/net/sunrpc/auth_gss/auth_rpcgss.ko
  45. BIN ...ethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/kernel/net/sunrpc/auth_gss/rpcsec_gss_krb5.ko
  46. BIN oreo/angler/modules/3.10.73-angler-nethunter-3.0/kernel/net/sunrpc/sunrpc.ko
  47. 0 oreo/angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.alias
  48. BIN oreo/angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.alias.bin
  49. +0 −1 oreo/angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.builtin
  50. BIN .../angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.builtin.bin
  51. 0 oreo/angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.dep
  52. BIN oreo/angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.dep.bin
  53. 0 oreo/angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.devname
  54. 0 oreo/angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.order
  55. 0 oreo/angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.softdep
  56. 0 oreo/angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.symbols
  57. BIN .../angler/modules/{3.10.73-nethunter-angler-3.0 → 3.10.73-angler-nethunter-3.0}/modules.symbols.bin
  58. BIN oreo/angler/modules/3.10.73-nethunter-angler-3.0/kernel/drivers/net/wireless/ath/ath.ko
  59. BIN oreo/angler/modules/3.10.73-nethunter-angler-3.0/kernel/drivers/net/wireless/zd1201.ko
  60. BIN oreo/angler/modules/3.10.73-nethunter-angler-3.0/kernel/fs/lockd/lockd.ko
  61. BIN oreo/angler/modules/3.10.73-nethunter-angler-3.0/kernel/fs/nfs/blocklayout/blocklayoutdriver.ko
  62. BIN oreo/angler/modules/3.10.73-nethunter-angler-3.0/kernel/fs/nfsd/nfsd.ko
  63. BIN oreo/angler/modules/3.10.73-nethunter-angler-3.0/kernel/fs/ntfs/ntfs.ko
  64. BIN oreo/angler/modules/3.10.73-nethunter-angler-3.0/kernel/net/dns_resolver/dns_resolver.ko
  65. BIN oreo/angler/modules/3.10.73-nethunter-angler-3.0/kernel/net/mac80211/mac80211.ko
  66. BIN oreo/angler/modules/3.10.73-nethunter-angler-3.0/kernel/net/sunrpc/sunrpc.ko
  67. +20 −0 oreo/angler/patch.d/010-no-force-encrypt
  68. +28 −0 oreo/angler/patch.d/015-no-dm-verity
  69. +23 −0 oreo/angler/patch.d/020-patch-ramdisk
  70. +62 −0 oreo/angler/patch.d/030-kernel-modules
  71. 0 oreo/angler/patch.d/{07-kernel-settings → 070-kernel-settings}
@@ -63,7 +63,7 @@ block = /dev/block/mmcblk0p2

# Nexus 6P
[angler]
author = "Binkybear & jcadduono & kimocoder (8.1+)"
author = "Binkybear & jcadduono & kimocoder"
version = "2.1 & 2.0 & 3.0 (8.1+)"
kernelstring = "NetHunter + ElementalX"
arch = arm64
BIN -1.15 KB (100%) oreo/angler/Image.gz-dtb
Binary file not shown.
@@ -234,7 +234,6 @@ kernel/drivers/input/touchscreen/cyttsp4_device_access.ko
kernel/drivers/input/touchscreen/cyttsp4_loader.ko
kernel/drivers/input/touchscreen/cyttsp4_debug.ko
kernel/drivers/input/touchscreen/synaptics_dsx25/synaptics_dsx_core.ko
kernel/drivers/input/touchscreen/synaptics_dsx25/synaptics_dsx_rmi_dev.ko
kernel/drivers/input/touchscreen/synaptics_dsx25/synaptics_dsx_fw_update.ko
kernel/drivers/leds/led-class.ko
kernel/drivers/leds/leds-qpnp.ko
@@ -0,0 +1,20 @@
#!/sbin/sh

. "$env"

print "Disabling forced encryption in the fstab..."

found_fstab=false

for fstab in fstab.*; do
[ -f "$fstab" ] || continue
print "Found fstab: $fstab"
sed -i "
s/\b\(forceencrypt\|forcefdeorfbe\)=/encryptable=/g
" "$fstab"
found_fstab=true
done

$found_fstab || print "Unable to find the fstab!"

exit 0
@@ -0,0 +1,28 @@
#!/sbin/sh

. "$env"

print "Disabling dm-verity in the fstab..."

found_fstab=false

for fstab in fstab.*; do
[ -f "$fstab" ] || continue
print "Found fstab: $fstab"
sed -i "
s/,verify\b//g
s/\bverify,//g
s/\bverify\b//g
s/,support_scfs\b//g
s/\bsupport_scfs,//g
s/\bsupport_scfs\b//g
" "$fstab"
found_fstab=true
done

$found_fstab || print "Unable to find the fstab!"

setprop ro.config.dmverity false
rm -f verity_key sbin/firmware_key.cer

exit 0
@@ -0,0 +1,23 @@
#!/sbin/sh

. "$env"

cd "$ramdisk_patch" && [ "$(ls)" ] || exit 0

# fix permissions of patch files
chmod -R 0755 .

find -type f \( \
-name "*.rc" ! -name "ueventd.*" \
\) -exec chmod 0750 {} \;

find -type f \( \
-name "*.xml" -o -name "*.do" -o -name "*.pem" -o -name "*.vtab" -o \
-name "fstab.*" -o -name "*.prop" -o -name "*_contexts" -o \
-name "ueventd.*" -o -name "sepolicy" -o -name "sepolicy_version" \
\) -exec chmod 0644 {} \;

print "Copying new files to the ramdisk..."
cp -rd ./. "$ramdisk/"

exit 0
@@ -0,0 +1,62 @@
#!/sbin/sh

. "$env"

[ "$(ls "$tmp/modules")" ] || {
print "No kernel modules found, skipping"
exit 0
}

print "Installing /lib/modules symlink"
rm -rf lib
mkdir -m 0755 lib
ln -s /system/lib/modules lib/modules

cd "$tmp"

print "Gathering original module layout..."
find /system/lib/modules -name "*.ko" -maxdepth 3 > modules.list
> modules.layout
while read -r kmod; do
kmod_name=$(basename "$(readlink "$kmod")")
echo "$kmod:$kmod_name" >> modules.layout
done < modules.list

print "Removing old kernel modules..."
rm -rf /system/lib/modules

print "Installing new kernel modules..."
cp -r modules /system/lib/

print "Creating module symlinks..."

# Create /system/lib/modules/*.ko symlinks for each module installed
find /system/lib/modules -type f -name "*.ko" > modules.installed
while read -r kmod_installed; do
kmod_name=$(basename "$kmod_installed")
kmod_link="/system/lib/modules/$kmod_name"
ln -s "$kmod_installed" "$kmod_link"
echo "Symlinked module (install): $kmod_link -> $kmod_installed"
done < modules.installed

# Create module symlinks at original module link locations
while read -r kmod; do
kmod_name=$(echo "$kmod" | cut -f2 -d:)
kmod_link=$(echo "$kmod" | cut -f1 -d:)
if [ ! "$kmod_link" ] || [ ! "$kmod_name" ] || [ -e "$kmod_link" ]; then
continue
fi
kmod_installed=$(grep -m1 "/$kmod_name$" modules.installed)
if [ ! -f "$kmod_installed" ]; then
echo "Warning: Module not installed: $kmod_link -> $kmod_installed"
continue
fi
mkdir -p "$(dirname "$kmod_link")"
ln -s "$kmod_installed" "$kmod_link"
echo "Symlinked module (layout): $kmod_link -> $kmod_installed"
done < modules.layout

setperm 0755 0644 /system/lib/modules
chcon -R -h "u:object_r:system_file:s0" /system/lib/modules

exit 0
File renamed without changes.

0 comments on commit 3f7630f

Please sign in to comment.
You can’t perform that action at this time.