2022-11-11 23:42:31 -04:00
|
|
|
### AnyKernel3 Ramdisk Mod Script
|
|
|
|
|
## osm0sis @ xda-developers
|
2014-02-28 21:50:22 -04:00
|
|
|
|
2022-11-11 22:21:34 -04:00
|
|
|
### AnyKernel setup
|
2023-08-10 20:04:53 -03:00
|
|
|
# global properties
|
2018-05-30 00:01:57 -03:00
|
|
|
properties() { '
|
2026-09-29 02:46:29 +02:00
|
|
|
kernel.string=NetHunter Kernel for Motorola Moto G52 (rhode)
|
2014-02-28 21:50:22 -04:00
|
|
|
do.devicecheck=1
|
2026-09-29 02:46:29 +02:00
|
|
|
do.modules=1
|
2020-01-18 07:22:09 -04:00
|
|
|
do.systemless=1
|
2014-02-28 21:50:22 -04:00
|
|
|
do.cleanup=1
|
2017-02-17 22:26:44 +01:00
|
|
|
do.cleanuponabort=0
|
2026-09-29 02:46:29 +02:00
|
|
|
device.name1=rhode
|
|
|
|
|
device.name2=rhode_g
|
|
|
|
|
device.name3=XT2221-1
|
|
|
|
|
device.name4=XT2221-2
|
2014-10-14 16:37:48 -03:00
|
|
|
device.name5=
|
2026-09-29 02:46:29 +02:00
|
|
|
supported.versions=16
|
2019-07-20 18:23:48 -03:00
|
|
|
supported.patchlevels=
|
2023-08-22 01:53:06 -03:00
|
|
|
supported.vendorpatchlevels=
|
2018-05-30 00:01:57 -03:00
|
|
|
'; } # end properties
|
2014-02-28 21:50:22 -04:00
|
|
|
|
2023-08-10 20:04:53 -03:00
|
|
|
|
2022-11-11 23:42:31 -04:00
|
|
|
### AnyKernel install
|
2023-08-10 13:22:03 -03:00
|
|
|
## boot files attributes
|
2023-08-22 12:35:28 -03:00
|
|
|
boot_attributes() {
|
2024-05-09 15:29:06 -03:00
|
|
|
set_perm_recursive 0 0 755 644 $RAMDISK/*;
|
|
|
|
|
set_perm_recursive 0 0 750 750 $RAMDISK/init* $RAMDISK/sbin;
|
2022-11-11 23:42:31 -04:00
|
|
|
} # end attributes
|
|
|
|
|
|
2023-08-10 13:22:03 -03:00
|
|
|
# boot shell variables
|
2026-09-29 02:46:29 +02:00
|
|
|
BLOCK=/dev/block/bootdevice/by-name/boot;
|
|
|
|
|
IS_SLOT_DEVICE=1;
|
2024-05-09 15:29:06 -03:00
|
|
|
RAMDISK_COMPRESSION=auto;
|
|
|
|
|
PATCH_VBMETA_FLAG=auto;
|
2014-02-28 21:50:22 -04:00
|
|
|
|
2022-11-11 23:42:31 -04:00
|
|
|
# import functions/variables and setup patching - see for reference (DO NOT REMOVE)
|
2023-08-10 13:14:20 -03:00
|
|
|
. tools/ak3-core.sh;
|
2014-03-01 16:01:59 -04:00
|
|
|
|
2022-11-11 22:21:34 -04:00
|
|
|
# boot install
|
2026-09-29 02:46:29 +02:00
|
|
|
dump_boot;
|
2014-02-28 21:50:22 -04:00
|
|
|
|
2026-09-29 02:46:29 +02:00
|
|
|
write_boot;
|
2021-06-08 01:17:17 -03:00
|
|
|
## end boot install
|