You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do.devicecheck=1 specified requires at least device.name1 to be present. This should match ro.product.device or ro.build.product for your device. There is support for up to 5 device.name# properties.
25
+
__do.devicecheck=1__ specified requires at least device.name1 to be present. This should match ro.product.device or ro.build.product for your device. There is support for up to 5 device.name# properties.
25
26
26
-
do.initd=1 will create the init.d directory in /system/etc/init.d/ and apply 755 permissions.
27
+
__do.initd=1__ will create the init.d directory in /system/etc/init.d/ and apply 755 permissions.
27
28
28
-
do.modules=1 will push the contents of the module directory to /system/lib/modules/ and apply 644 permissions.
29
+
__do.modules=1__ will push the contents of the module directory to /system/lib/modules/ and apply 644 permissions.
29
30
30
-
do.cleanup=0 will keep the zip from removing it's working directory in /tmp/anykernel - this can be useful if trying to debug in adb shell whether the patches worked correctly.
31
-
```
31
+
__do.cleanup=0__ will keep the zip from removing it's working directory in /tmp/anykernel - this can be useful if trying to debug in adb shell whether the patches worked correctly.
@@ -49,27 +49,27 @@ patch_fstab <fstab file> <mount match name> <fs match type> <block|mount|fstype|
49
49
write_boot
50
50
```
51
51
52
-
"if search string" is the string it looks for to decide whether it needs to add the tweak or not, so generally something to indicate the tweak already exists.
52
+
__"if search string"__ is the string it looks for to decide whether it needs to add the tweak or not, so generally something to indicate the tweak already exists.
53
53
54
-
Similarly, "line match string" and "line replace string" are the search strings that locate where the modification needs to be made for those commands, "begin search string" and "end search string" are both required to select the first and last lines of the script block to be replaced for replace_section, and "mount match name" and "fs match type" are both required to narrow the patch_fstab command down to the correct entry.
54
+
Similarly, __"line match string"__ and __"line replace string"__ are the search strings that locate where the modification needs to be made for those commands, __"begin search string"__ and __"end search string"__ are both required to select the first and last lines of the script block to be replaced for replace_section, and __"mount match name"__ and __"fs match type"__ are both required to narrow the _patch_fstab_ command down to the correct entry.
55
55
56
-
"before|after" requires you simply specify "before" or "after" for the placement of the inserted line, in relation to "line match string".
56
+
__"before|after"__ requires you simply specify __"before"__ or __"after"__ for the placement of the inserted line, in relation to __"line match string"__.
57
57
58
-
"block|mount|fstype|options|flags" requires you specify which part (listed in order) of the fstab entry you want to check and alter.
58
+
__"block|mount|fstype|options|flags"__ requires you specify which part (listed in order) of the fstab entry you want to check and alter.
59
59
60
-
You may also use ui_print "<text>" to write messages back to the recovery during the modification process, and contains "<string>" "<substring>" to simplify string testing logic you might want in your script.
60
+
You may also use _ui_print "\<text\>"_ to write messages back to the recovery during the modification process, and _contains "\<string\>" "\<substring\>"_ to simplify string testing logic you might want in your script.
61
61
62
62
## // Instructions ##
63
63
64
-
1- Place zImage in the root (dtb should also go here for devices that require a custom one, both will fallback to the original if not included)
64
+
1. Place zImage in the root (dtb should also go here for devices that require a custom one, both will fallback to the original if not included)
65
65
66
-
2- Place any required ramdisk files in /ramdisk
66
+
2. Place any required ramdisk files in /ramdisk
67
67
68
-
3- Place any required patch files (generally partial files which go with commands) in /patch
68
+
3. Place any required patch files (generally partial files which go with commands) in /patch
69
69
70
-
4- Modify the anykernel.sh to add your kernel's name, boot partition location, permissions for included ramdisk files, and use methods for any required ramdisk modifications
70
+
4. Modify the anykernel.sh to add your kernel's name, boot partition location, permissions for included ramdisk files, and use methods for any required ramdisk modifications
71
71
72
-
5- zip -r9 UPDATE-AnyKernel2.zip * -x README UPDATE-AnyKernel2.zip
72
+
5. zip -r9 UPDATE-AnyKernel2.zip * -x README UPDATE-AnyKernel2.zip
73
73
74
74
If supporting a recovery that forces zip signature verification (like Cyanogen Recovery) then you will need to also sign your zip using the method I describe here:
0 commit comments