Skip to content

Commit

Permalink
Ramdisk: Move InfoAlarm.apk to /data/app/ when installing CF-root to …
Browse files Browse the repository at this point in the history
…assure >10 MB free space in /system/
  • Loading branch information
XDA Bam committed May 7, 2012
1 parent 14bbe12 commit a2556f5
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions ramdisk_CF-root_universal/sbin/boot/install.sh
Expand Up @@ -9,8 +9,9 @@ then

# Free some space from /system as it fully packed in stock odexed roms
if $TOOLBOX [ -f /system/app/InfoAlarm.apk ]; then
$TOOLBOX cp /system/app/InfoAlarm.* /tmp/
$TOOLBOX rm /system/app/InfoAlarm.*
$TOOLBOX mv /system/app/InfoAlarm.* /data/app/
$TOOLBOX chown 0.0 /system/app/InfoAlarm.*
$TOOLBOX chmod 644 /system/app/InfoAlarm.*
fi;

# ensure /system/xbin exists
Expand Down Expand Up @@ -43,12 +44,6 @@ then
$TOOLBOX chown 0.0 /system/app/CWMManager.apk
$TOOLBOX chmod 644 /system/app/CWMManager.apk

# Restore Apps if possible
$TOOLBOX cp /tmp/InfoAlarm.* /system/app/
$TOOLBOX chown 0.0 /system/app/InfoAlarm.*
$TOOLBOX chmod 644 /system/app/InfoAlarm.*
$TOOLBOX rm /tmp/InfoAlarm.*

# Once be enough
$TOOLBOX mkdir /system/cfroot
$TOOLBOX chmod 755 /system/cfroot
Expand Down

0 comments on commit a2556f5

Please sign in to comment.