Skip to content

Commit

Permalink
Flashable: Refactor script
Browse files Browse the repository at this point in the history
Signed-off-by: ananjaser1211 <[email protected]>
  • Loading branch information
ananjaser1211 committed Jun 9, 2020
1 parent 1e16e5c commit a329b58
Show file tree
Hide file tree
Showing 50 changed files with 6 additions and 9 deletions.
Empty file.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 6 additions & 9 deletions Cronos/Flashable/META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
ui_print("***********************");
ui_print("* HeliosKernel V2.5");
ui_print("* CronosKernel V4.0");
ui_print("* For Galaxy G930X/G935X");
ui_print("* Android 9.0");
ui_print("* Android 9.0 - OneUI Pie");
ui_print("* By AnanJaser1211 @Xda");
ui_print("***********************");
ui_print("");
run_program("/sbin/mount", "-t", "auto", "/system");
run_program("/sbin/mount", "-t", "auto", "/data");
delete_recursive("/system/priv-app/EliteTuner");
delete_recursive("/system/priv-app/HK*");
ui_print("-- Removing GameOptimizer");
delete_recursive("/system/app/GameOptimizer");
delete_recursive("/system/app/GameOptimizingService");
ui_print("-- Installing HKTweaks");
#####################################################################
# Phone Variant Detection
#####################################################################
ui_print("-- Detecting phone variant...");
if is_substring("G930", getprop("ro.boot.bootloader")) then
ui_print("-- Galaxy S7 Flat detected, extracting files...");
package_extract_file("Helios/device/herolte/boot.img", "/dev/block/platform/155a0000.ufs/by-name/BOOT");
package_extract_file("Cronos/device/herolte/boot.img", "/dev/block/platform/155a0000.ufs/by-name/BOOT");
endif;
if is_substring("G935", getprop("ro.boot.bootloader")) then
ui_print("-- Galaxy S7 Edge detected, extracting files...");
package_extract_file("Helios/device/hero2lte/boot.img", "/dev/block/platform/155a0000.ufs/by-name/BOOT");
package_extract_file("Cronos/device/hero2lte/boot.img", "/dev/block/platform/155a0000.ufs/by-name/BOOT");
endif;
ui_print("-- Extracting System Files...");
package_extract_dir("Helios/system", "/system");
package_extract_dir("Cronos/system", "/system");
unmount("/system");
ui_print(" Enjoy Helios ");
ui_print(" Enjoy Cronos ");
ui_print("***********************");

0 comments on commit a329b58

Please sign in to comment.