forked from Vaz15k/AnyKernel3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanykernel.sh
executable file
·38 lines (34 loc) · 1.1 KB
/
anykernel.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
### AnyKernel3 Ramdisk Mod Script
## osm0sis @ xda-developers
### AnyKernel setup
# global properties
properties() { '
kernel.string= Squeak Kernel || by Vaz15K
do.devicecheck=0
do.soccheck=1
do.modules=0
do.systemless=1
do.cleanup=1
do.cleanuponabort=0
device.soc=s5e8835
supported.versions=13, 14
supported.patchlevels=
supported.vendorpatchlevels=
'; } # end properties
### AnyKernel install
# boot shell variables
block=boot
is_slot_device=auto
ramdisk_compression=auto
patch_vbmeta_flag=auto
# import functions/variables and setup patching - see for reference (DO NOT REMOVE)
. tools/ak3-core.sh
# boot install
if [ -L "/dev/block/bootdevice/by-name/init_boot_a" -o -L "/dev/block/by-name/init_boot_a" ] || [ -L "/dev/block/bootdevice/by-name/init_boot" -o -L "/dev/block/by-name/init_boot" ]; then
split_boot # for devices with init_boot ramdisk
flash_boot # for devices with init_boot ramdisk
else
dump_boot # use split_boot to skip ramdisk unpack, e.g. for devices with init_boot ramdisk
write_boot # use flash_boot to skip ramdisk repack, e.g. for devices with init_boot ramdisk
fi
## end boot install