GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — QuickSwitch/customize.sh at master · furopi/QuickSwitch Expand file tree/ Copy pathcustomize.shMore file actions 78 lines (68 loc) · 2.9 KB / Copy pathcustomize.shFile metadata and controls78 lines (68 loc) · 2.9 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 SKIPUNZIP=1 # @Skittles9823 made this ascii and is way to proud of it ui_print " " ui_print " _____ " ui_print " __ | | __ " ui_print " | || || | " ui_print " | || || | " ui_print " |__|| ||__| " ui_print " |_____| " ui_print " QuickSwitch " ui_print " " ui_print " The Lawnchair Team" ui_print " " [ $BOOTMODE == "false" ] && abort "Installation failed! QuickSwitch must be installed via Magisk Manager!" [ $API -lt "28" ] && abort "QuickSwitch is for Android Pie+ only" VEN=/system/vendor [ -L /system/vendor ] && VEN=/vendor if [ -f $VEN/build.prop ]; then BUILDS="/system/build.prop $VEN/build.prop"; else BUILDS="/system/build.prop"; fi # Thanks Narsil/Sauron for the huge props list for various android systems # Far easier to look there then ask users for their build.props MIUI=$(grep "ro.miui.ui.version.*" $BUILDS) if [ $MIUI ] && [ $API -lt "30" ]; then ui_print " MIUI 12 or lower is not supported" abort " Aborting..." fi ui_print "- Extracting module files" unzip -o "$ZIPFILE" 'overlays/*' 'system/*' 'common/*' 'module.prop' 'system.prop' 'sepolicy.rule' 'zipsigner*' 'uninstall.sh' 'quickswitch' 'service.sh' -d $MODPATH >&2 chmod +x $MODPATH/common/* if [ -z "$NOAPK" ]; then unzip -o "$ZIPFILE" 'QuickSwitch.apk' -d /data/local/tmp >&2 ui_print "- installing QuickSwitch.apk" pm install -r "/data/local/tmp/QuickSwitch.apk" rm -rf /data/local/tmp/QuickSwitch.apk fi [ "$($MODPATH/common/aaptx86 v)" ] && AAPT=aaptx86 [ "$($MODPATH/common/aapt v)" ] && AAPT=aapt [ "$($MODPATH/common/aapt64 v)" ] && AAPT=aapt64 cp -af $MODPATH/common/$AAPT $MODPATH/aapt rm -rf $MODPATH/common rm -rf /data/adb/service.d/quickswitch.sh rm -rf /data/adb/service.d/quickswitch-service.sh rm -rf /data/adb/post-fs-data.d/quickswitch-post.sh # Custom install stuffs rm -rf /data/resource-cache/overlays.list find /data/resource-cache/ -name "*QuickstepSwitcherOverlay*" -exec rm -rf {} \; find /data/resource-cache/ -name "*QuickSwitchOverlay*" -exec rm -rf {} \; MODULEDIR="/data/adb/modules/$MODID" MODVER=$(grep_prop versionCode $MODULEDIR/module.prop) rm -rf /data/adb/modules/quickstepswitcher # yeet old module dir if [ -d $MODULEDIR ]; then if [ $MODVER -ge 3300 ]; then # Been a minute since we've made people clean the install dir, prolly should do it now ui_print "- Module updating - retaining current provider" for i in $(find $MODULEDIR/system/* -type d -maxdepth 0); do cp -rf "$i" $MODPATH/system/ done else for i in $(find $MODULEDIR/* -maxdepth 0 | sed "/^module.prop/ d"); do rm -rf "$i" done ui_print "- Major upgrade! clearing out all old files and directories." fi fi # Nobody reads it anyway Sadge set_perm_recursive $MODPATH 0 0 0755 0644 set_perm $MODPATH/aapt 0 2000 0755 set_perm $MODPATH/quickswitch 2000 2000 0777 set_perm $MODPATH/zipsigner 0 0 0755 set_perm $MODPATH/zipsigner-3.0-dexed.jar 0 0 0644 |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |