diff --git a/common/service.sh b/common/service.sh index 7288d3b..284ba66 100644 --- a/common/service.sh +++ b/common/service.sh @@ -8,3 +8,6 @@ MODDIR=${0%/*} # support vtools cp -af $MODDIR/vtools-powercfg.sh /data/powercfg.sh +cp -af $MODDIR/vtools-powercfg-base.sh /data/powercfg-base.sh +chmod +x /data/powercfg.sh +chmod +x /data/powercfg-base.sh diff --git a/common/vtools-powercfg-base.sh b/common/vtools-powercfg-base.sh new file mode 100644 index 0000000..726b0c8 --- /dev/null +++ b/common/vtools-powercfg-base.sh @@ -0,0 +1,8 @@ +#! /vendor/bin/sh +# Perfd-opt https://github.com/yc9559/perfd-opt/ +# Author: Matt Yang + +# powercfg wrapper for com.omarea.vtools +# MAKE SURE THAT THE MAGISK MODULE "Perfd-opt" HAS BEEN INSTALLED + +exit 0 diff --git a/install.sh b/install.sh index 92264cf..6e8dbcd 100644 --- a/install.sh +++ b/install.sh @@ -133,6 +133,7 @@ print_modname() { on_install() { # cp custom files in ./common cp -af $TMPDIR/vtools-powercfg.sh $MODPATH/vtools-powercfg.sh + cp -af $TMPDIR/vtools-powercfg-base.sh $MODPATH/vtools-powercfg-base.sh target=`getprop ro.board.platform` ui_print "- The platform of this device is ${target}"