Skip to content

Commit

Permalink
3.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirulAndalib committed Jan 10, 2025
1 parent 6388cfa commit dd1cfc4
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 76 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
# Step 3: Zip the root directory (exclude the .git and .vscode folders)
- name: Zip files
run: |
cp module.prop extreme_gt/module.prop
zip -r scene7_extremeGT.zip . system -x "./.git/*" "./.vscode/*" "./.github/*"
# Step 4: Create a Release
Expand Down
46 changes: 9 additions & 37 deletions customize.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
#!/bin/sh
# Revert from 3.0.5 (3.0.7 installs the module from the Scene7 app directly, so it is not needed when flashing this module manually)
# Scene 7 v3.7.0 modified by andalib

# Scene 8 v3.10.1 modified by andalib
set_perm_recursive $MODPATH 0 0 0755 0644

PAGE_WORK_DIR=$MODPATH
module=$MODPATH

setprop persist.sys.oplus.wifi.sla.game_high_temperature 50 # Set Wi-Fi modem high temperature limit to 50°C
setprop persist.sys.environment.temp 16
setprop ro.oplus.radio.hide_nr_switch 0
setprop debug.hwui.renderer skiavk
# setprop persist.sys.horae.enable 0
setprop persist.sys.oplus.wifi.sla.game_high_temperature 50
# setprop persist.oplus.display.vrr 0
setprop persist.sys.environment.temp 14
# setprop persist.sys.horae.enable 0
setprop ro.oplus.radio.hide_nr_switch 0

# module='extreme_gt'
# module='/data/adb/modules/extreme_gt' # Revert from 3.0.5 (3.0.7 installs the module from the Scene7 app directly, so it is not needed when flashing this module manually)
PAGE_WORK_DIR=$MODPATH
module=$MODPATH

# module='/data/adb/modules/extreme_gt'
mkdir -p $module
cat $PAGE_WORK_DIR/extreme_gt/module.prop > $module/module.prop
cat $PAGE_WORK_DIR/extreme_gt/post-fs-data.sh > $module/post-fs-data.sh
Expand Down Expand Up @@ -326,36 +321,13 @@ else
cat $PAGE_WORK_DIR/extreme_gt/service.sh > $module/service.sh
fi

# manufacturer=$(getprop ro.product.odm.manufacturer)
manufacturer=$(getprop ro.product.odm.manufacturer)
soc=$(getprop ro.soc.model | tr 'a-z' 'A-Z')


echo 'persist.sys.horae.enable=0' > $module/system.prop
if [[ -f $START_DIR/orms_core_config.xml ]]; then
mkdir -p $module/odm/etc/orms
cp -f $START_DIR/orms_core_config.xml $module/odm/etc/orms/orms_core_config.xml
fi

handle_partition() {
# if /system/vendor is a symlink, we need to move it out of $MODPATH/system, otherwise it will be overlayed
# if /system/vendor is a normal directory, it is ok to overlay it and we don't need to overlay it separately.
if [ ! -e $module/system/$1 ]; then
# no partition found
return;
fi

if [ -L "/system/$1" ] && [ "$(readlink -f /system/$1)" = "/$1" ]; then
# we create a symlink if module want to access $module/system/$1
# but it doesn't always work(ie. write it in post-fs-data.sh would fail because it is readonly)
mv -f $module/system/$1 $module/$1 && ln -sf ../$1 $module/system/$1
fi
}

if [[ "$KSU" == "true" ]] || [[ $(which ksud) != "" ]]; then
handle_partition 'vendor'
handle_partition 'system_ext'
handle_partition 'product'
fi

echo 'OK ^_*' 1>&2
# Revert from 3.0.5 (3.0.7 installs the module from the Scene7 app directly, so it is not needed when flashing this module manually)
7 changes: 0 additions & 7 deletions extreme_gt/module.prop

This file was deleted.

42 changes: 14 additions & 28 deletions extreme_gt/post-fs-data.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/bin/sh
if [[ "$KSU" == "true" ]]; then
exit 0
fi

# 模块务必要处理文件权限,如:
# set_perm_recursive $MODPATH 0 0 0755 0644

Expand Down Expand Up @@ -38,29 +34,19 @@ map_files() {
done
}

if [[ "$KSU" == "true" ]] || [[ $(which ksud) != "" ]]; then
for module in $modules/$target_module
do
# 遍历需要处理的特殊目录
for dir in 'my_product' 'my_heytap'
do
if [[ -d $module/$dir ]]; then
echo ">> $module/$dir"
map_files "$module" "$dir"
fi
done
done
else
for module in $modules/$target_module
do
# 遍历需要处理的特殊目录
for dir in 'my_product' 'my_heytap' 'odm'
do
if [[ -d $module/$dir ]]; then
echo ">> $module/$dir"
map_files "$module" "$dir"
fi
done
done
manual_mount='my_product my_heytap odm'
if [[ "$KSU" == "true" ]] || [[ $(which ksud) != "" ]] || [[ $(which apd) != "" ]]; then
manual_mount='my_product my_heytap'
fi

for module in $modules/$target_module
do
# 遍历需要处理的特殊目录
for dir in $manual_mount
do
if [[ -d $module/$dir ]]; then
echo ">> $module/$dir"
map_files "$module" "$dir"
fi
done
done
8 changes: 7 additions & 1 deletion extreme_gt/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ do
# ;;
# rear-tof-therm
rear-tof-therm|cam-flash-therm)
# echo $(cat $tz/type) $(cat $tz/temp)
echo $t > $tz/emul_temp
;;
batt-therm|usb-therm)
Expand All @@ -28,7 +27,14 @@ do
esac
fi
done

stop horae
for i in `seq 0 9`; do
echo $i $t > /proc/shell-temp
done

# stop oplus_charger_hal_service
# stop thermal-engine

gu=/proc/oplus-votable/GAUGE_UPDATE
if [[ -d $gu ]]; then
Expand Down
4 changes: 4 additions & 0 deletions extreme_gt/uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
echo '' > /data/adb/modules/extreme_gt/remove
setprop sys.extreme_gt.uninstall 1
echo '@string:dialog_addin_by_magisk' 1>&2
6 changes: 3 additions & 3 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=extreme_gt
name=Extreme GT
version=3.0.7 (fixed camera fps, base 3.0.5)
versionCode=3007
author=嘟嘟ski & SCENE (camera fps fix by amirulandalib)
version=3.1.1
versionCode=3101
author=嘟嘟ski & SCENE (mod by andalib)
description=本模块由SCENE生成,用于去除OPPO、Realme、OnePlus机型的锁帧和部分温控限制
minMagisk=17000

0 comments on commit dd1cfc4

Please sign in to comment.