-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
surya: Add Optimus scripts & defconfig
- Loading branch information
Showing
11 changed files
with
7,235 additions
and
56 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#FLASHAFTERUPDATEV2 | ||
# | ||
# Dummy file; update-binary is a shell script (DO NOT CHANGE) | ||
# | ||
# | ||
# AK_BASE_VERSION=20220403 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# AnyKernel3 Ramdisk Mod Script | ||
# osm0sis @ xda-developers | ||
|
||
## AnyKernel setup | ||
# begin properties | ||
properties() { ' | ||
kernel.string=Optimus Drunk Kernel by GtrCraft | ||
do.devicecheck=1 | ||
do.modules=0 | ||
do.cleanup=1 | ||
do.cleanuponabort=0 | ||
device.name1=surya | ||
device.name2=karna | ||
device.name3= | ||
device.name4= | ||
device.name5= | ||
supported.versions= | ||
'; } # end properties | ||
|
||
# shell variables | ||
block=/dev/block/bootdevice/by-name/boot; | ||
is_slot_device=auto; | ||
ramdisk_compression=auto; | ||
|
||
|
||
## AnyKernel methods (DO NOT CHANGE) | ||
# import patching functions/variables - see for reference | ||
. tools/ak3-core.sh; | ||
|
||
|
||
## AnyKernel file attributes | ||
# set permissions/ownership for included ramdisk files | ||
set_perm_recursive 0 0 750 750 $ramdisk/*; | ||
|
||
|
||
## AnyKernel install | ||
dump_boot; | ||
|
||
# Begin Ramdisk Changes | ||
|
||
# migrate from /overlay to /overlay.d to enable SAR Magisk | ||
if [ -d $ramdisk/overlay ]; then | ||
rm -rf $ramdisk/overlay; | ||
fi; | ||
|
||
write_boot; | ||
## end install | ||
|
Oops, something went wrong.