forked from osm0sis/AnyKernel3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanykernel.sh
More file actions
executable file
·74 lines (60 loc) · 1.45 KB
/
anykernel.sh
File metadata and controls
executable file
·74 lines (60 loc) · 1.45 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
### AnyKernel3 Ramdisk Mod Script
## osm0sis @ xda-developers
# Levion changes by Tony
### AnyKernel setup
# global properties
properties() { '
kernel.string=### Levion Kernel for OnePlus 9/Pro ###
do.devicecheck=1
do.modules=0
do.systemless=1
do.cleanup=1
do.cleanuponabort=0
device.name1=OnePlus9Pro
device.name2=lemonadep
device.name3=OnePlus9ProTMO
device.name4=lemonadept
device.name5=OnePlus9
device.name6=lemonade
device.name7=OnePlus9TMO
device.name8=lemonadet
device.name9=OnePlus9VZW
device.name10=lemonadev
supported.versions=15-16
'; } # end properties
## trim partitions
fstrim -v /data;
### AnyKernel install
## boot files attributes
boot_attributes() {
set_perm_recursive 0 0 755 644 $RAMDISK/overlay.d/*;
set_perm_recursive 0 0 750 750 $RAMDISK/overlay.d/sbin;
} # end attributes
# boot shell variables
BLOCK=boot;
IS_SLOT_DEVICE=1;
RAMDISK_COMPRESSION=auto;
PATCH_VBMETA_FLAG=auto;
NO_VBMETA_PARTITION_PATCH=1;
# import functions/variables and setup patching - see for reference (DO NOT REMOVE)
. tools/ak3-core.sh;
# boot install
dump_boot;
write_boot;
## end boot install
## vendor_boot files attributes
vendor_boot_attributes() {
set_perm_recursive 0 0 755 644 $RAMDISK/*;
} # end attributes
# vendor_boot shell variables
BLOCK=vendor_boot;
IS_SLOT_DEVICE=1;
RAMDISK_COMPRESSION=auto;
PATCH_VBMETA_FLAG=auto;
NO_VBMETA_PARTITION_PATCH=1;
# reset for vendor_boot patching
reset_ak;
# vendor_boot install
dump_boot;
write_boot;
## end vendor_boot install