Skip to content

Commit

Permalink
improve support for vtools
Browse files Browse the repository at this point in the history
  • Loading branch information
yc9559 committed Jul 27, 2019
1 parent 6d230de commit 432b3c6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions common/vtools-powercfg-base.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 432b3c6

Please sign in to comment.