forked from SaleOff/AnyKernel3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanykernel.sh
More file actions
executable file
·43 lines (38 loc) · 1.12 KB
/
anykernel.sh
File metadata and controls
executable file
·43 lines (38 loc) · 1.12 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
# AnyKernel3 Ramdisk Mod Script
## AnyKernel setup
# begin properties
properties() { '
do.devicecheck=0
do.modules=0
do.systemless=1
do.cleanup=1
do.cleanuponabort=0
supported.versions=
supported.patchlevels=
'; } # end properties
# shell variables
block=boot;
is_slot_device=auto;
ramdisk_compression=auto;
patch_vbmeta_flag=auto;
no_block_display=1
## AnyKernel methods (DO NOT CHANGE)
# import patching functions/variables - see for reference
. tools/ak3-core.sh;
## Select the correct image to flash
userflavor="$(file_getprop /system/build.prop "ro.build.flavor")";
case "$userflavor" in
missi-user) os="miui"; os_string="MIUI ROM";;
missi_phoneext4_global-user) os="miui"; os_string="MIUI ROM";;
missi_phoneext4_cn-user) os="miui"; os_string="MIUI ROM";;
missi_phone_global-user) os="miui"; os_string="MIUI ROM";;
missi_phone_cn-user) os="miui"; os_string="MIUI ROM";;
qssi-user) os="miui"; os_string="MIUI ROM";;
*) os="aosp"; os_string="AOSP ROM";;
esac;
ui_print " -> $os_string is detected!";
mv $home/kernels/Image $home/Image;
## AnyKernel boot install
split_boot;
flash_boot;
## end boot install