diff --git a/FlashBack.deb b/FlashBack.deb new file mode 100644 index 0000000..9be31c0 Binary files /dev/null and b/FlashBack.deb differ diff --git a/FlashBack/Applications/FlashBack.app/Assets.car b/FlashBack/Applications/FlashBack.app/Assets.car new file mode 100644 index 0000000..ff16599 Binary files /dev/null and b/FlashBack/Applications/FlashBack.app/Assets.car differ diff --git a/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib b/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib new file mode 100644 index 0000000..1fa525c Binary files /dev/null and b/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib differ diff --git a/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/Info.plist b/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/Info.plist new file mode 100644 index 0000000..32288e8 Binary files /dev/null and b/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/Info.plist differ diff --git a/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib b/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib new file mode 100644 index 0000000..c10b5fb Binary files /dev/null and b/FlashBack/Applications/FlashBack.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib differ diff --git a/FlashBack/Applications/FlashBack.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC.nib b/FlashBack/Applications/FlashBack.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC.nib new file mode 100644 index 0000000..3d9277f Binary files /dev/null and b/FlashBack/Applications/FlashBack.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC.nib differ diff --git a/FlashBack/Applications/FlashBack.app/Base.lproj/Main.storyboardc/Info.plist b/FlashBack/Applications/FlashBack.app/Base.lproj/Main.storyboardc/Info.plist new file mode 100644 index 0000000..9a41f2c Binary files /dev/null and b/FlashBack/Applications/FlashBack.app/Base.lproj/Main.storyboardc/Info.plist differ diff --git a/FlashBack/Applications/FlashBack.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r.nib b/FlashBack/Applications/FlashBack.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r.nib new file mode 100644 index 0000000..3ea4847 Binary files /dev/null and b/FlashBack/Applications/FlashBack.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r.nib differ diff --git a/FlashBack/Applications/FlashBack.app/FlashBack b/FlashBack/Applications/FlashBack.app/FlashBack new file mode 100644 index 0000000..2c33027 Binary files /dev/null and b/FlashBack/Applications/FlashBack.app/FlashBack differ diff --git a/FlashBack/Applications/FlashBack.app/Info.plist b/FlashBack/Applications/FlashBack.app/Info.plist new file mode 100644 index 0000000..b965b71 Binary files /dev/null and b/FlashBack/Applications/FlashBack.app/Info.plist differ diff --git a/FlashBack/Applications/FlashBack.app/PkgInfo b/FlashBack/Applications/FlashBack.app/PkgInfo new file mode 100644 index 0000000..bd04210 --- /dev/null +++ b/FlashBack/Applications/FlashBack.app/PkgInfo @@ -0,0 +1 @@ +APPL???? \ No newline at end of file diff --git a/FlashBack/Applications/FlashBack.app/_CodeSignature/CodeResources b/FlashBack/Applications/FlashBack.app/_CodeSignature/CodeResources new file mode 100644 index 0000000..b83c368 --- /dev/null +++ b/FlashBack/Applications/FlashBack.app/_CodeSignature/CodeResources @@ -0,0 +1,194 @@ + + + + + files + + Assets.car + + dzesSxIcBrJoz8ywwcYwmqt4h30= + + Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib + + 9WN8syjMQGLzhgaK9KgLuGC2SP0= + + Base.lproj/LaunchScreen.storyboardc/Info.plist + + n2t8gsDpfE6XkhG31p7IQJRxTxU= + + Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib + + SPS4zJA2wXrftixv5mSRteYPPaM= + + Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC.nib + + x5v5c0EZQUJ1UtQMA0+f2iHtybI= + + Base.lproj/Main.storyboardc/Info.plist + + MDrKFvFWroTb0+KEbQShBcoBvo4= + + Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r.nib + + Z0QxD7+W/scHEAgkYqoovb272Yw= + + Info.plist + + xZ7J2QopyHYpKHBL7LnFE4PEUPU= + + PkgInfo + + n57qDP4tZfLD1rCS43W0B4LQjzE= + + embedded.mobileprovision + + CbaHaklc7R5Bghf8trbU954ViYY= + + + files2 + + Assets.car + + hash2 + + BhcIbKideV3TDy9PQ/M0hxTxjVfuXsJ/IpFY/X4Fj98= + + + Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib + + hash2 + + tqgd4KYZyk+DvqN6TtfUGcM01EL9lK6TGwwrbkANSaU= + + + Base.lproj/LaunchScreen.storyboardc/Info.plist + + hash2 + + HyVdXMU7Ux4/KalAao30mpWOK/lEPT4gvYN09wf31cg= + + + Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib + + hash2 + + QlpQFV6Mb1TJsj1DTmr2Yf1zIE0s9uNYBYj/LwQRJgE= + + + Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC.nib + + hash2 + + XcNFgsgD3GjNyLzIFhx3hcLY0zBQLDCpWQXy4Vj0v64= + + + Base.lproj/Main.storyboardc/Info.plist + + hash2 + + PpvapAjR62rl6Ym4E6hkTgpKmBICxTaQXeUqcpHmmqQ= + + + Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r.nib + + hash2 + + KS8oh16/clPtC8PWRQ2dUa+SIDIuEJltCz5MfPiPddY= + + + embedded.mobileprovision + + hash2 + + myUkwSl/hVm6sAtmp1stDlHk+pVuPGLc/Ell7P4aP9E= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/FlashBack/Applications/FlashBack.app/embedded.mobileprovision b/FlashBack/Applications/FlashBack.app/embedded.mobileprovision new file mode 100644 index 0000000..a3899f0 Binary files /dev/null and b/FlashBack/Applications/FlashBack.app/embedded.mobileprovision differ diff --git a/FlashBack/Applications/FlashBack.app/enti.xml b/FlashBack/Applications/FlashBack.app/enti.xml new file mode 100644 index 0000000..c8cdf1d --- /dev/null +++ b/FlashBack/Applications/FlashBack.app/enti.xml @@ -0,0 +1,25 @@ + + + + + platform-application + + com.apple.private.security.no-container + + com.apple.private.security.container-required + + dynamic-codesigning + + application-identifier + PRBH2T6668.com.mpg13.FlashBack + com.apple.developer.team-identifier + PRBH2T6668 + get-task-allow + + keychain-access-groups + + PRBH2T6668.com.mpg13.FlashBack + + + + diff --git a/FlashBack/DEBIAN/control b/FlashBack/DEBIAN/control new file mode 100644 index 0000000..96cedca --- /dev/null +++ b/FlashBack/DEBIAN/control @@ -0,0 +1,9 @@ +Package: com.mpg13.FlashBack +Name: FlashBack +Depends: mobilesubstrate, com.chpwn.iconsupport, com.creaturecoding.crux +Version: 3.0-beta1 +Architecture: iphoneos-arm +Description: Changing the way we do setups. +Maintainer: MPG13 +Author: MPG13 +Section: Tweaks diff --git a/FlashBack/usr/bin/FBCreate b/FlashBack/usr/bin/FBCreate new file mode 100644 index 0000000..f187889 --- /dev/null +++ b/FlashBack/usr/bin/FBCreate @@ -0,0 +1,5 @@ +#!/bin/bash + +crux _FlashBackCreate $1 + +exit 0 diff --git a/FlashBack/usr/bin/FBDelete b/FlashBack/usr/bin/FBDelete new file mode 100644 index 0000000..8161df1 --- /dev/null +++ b/FlashBack/usr/bin/FBDelete @@ -0,0 +1,5 @@ +#!/bin/bash + +crux _FlashBackDelete $1 + +exit 0 diff --git a/FlashBack/usr/bin/FBPackage b/FlashBack/usr/bin/FBPackage new file mode 100644 index 0000000..16c927b --- /dev/null +++ b/FlashBack/usr/bin/FBPackage @@ -0,0 +1,5 @@ +#!/bin/bash + +crux _FlashBackPackage $1 + +exit 0 diff --git a/FlashBack/usr/bin/FBRestore b/FlashBack/usr/bin/FBRestore new file mode 100644 index 0000000..6631e65 --- /dev/null +++ b/FlashBack/usr/bin/FBRestore @@ -0,0 +1,5 @@ +#!/bin/bash + +crux _FlashBackRestore $1 + +exit 0 diff --git a/FlashBack/usr/bin/FBUnpackage b/FlashBack/usr/bin/FBUnpackage new file mode 100644 index 0000000..318dbae --- /dev/null +++ b/FlashBack/usr/bin/FBUnpackage @@ -0,0 +1,5 @@ +#!/bin/bash + +crux _FlashBackUnpackage + +exit 0 diff --git a/FlashBack/usr/bin/_FlashBackCreate b/FlashBack/usr/bin/_FlashBackCreate new file mode 100644 index 0000000..0e0e80c --- /dev/null +++ b/FlashBack/usr/bin/_FlashBackCreate @@ -0,0 +1,29 @@ +#!/bin/bash + + +shopt -s extglob # "Shell option set extglob" https://www.linuxjournal.com/content/bash-extended-globbing + +set -f # "Disable file name generation (globbing)." + +BACKUPNAME=$1 + +set +f +FLASHBACKDIR="/Library/FlashBack" +BKPVERSION="v3" +BACKUPLOCATION=$FLASHBACKDIR/Backups/$BACKUPNAME +mkdir -p $BACKUPLOCATION +mkdir -p $BACKUPLOCATION/{Preferences,SBFolder,AutoWall} || STATUS="mkdir failed" +echo -e "\n\e[0;100m[!]\e[0m \e[104mCopying to $BACKUPLOCATION\e[0m" + +cp -rf "/var/mobile/Library/Preferences/"!(com.apple*|com.saurik*|ckkeyrolld|nfcd|UITextInputContextIdentifiers|.GlobalPreferences).plist $BACKUPLOCATION/Preferences/ || STATUS="cp failed" #copy all non-apple Plists to Preference folder within backup haha +cp -rf "/var/mobile/Library/Preferences/"*(*.jpg|*.png|*.gif) $BACKUPLOCATION/Preferences/ &>/dev/null #copy all images to Preference folder within backup +cp -rf /var/mobile/Library/SpringBoard/@(*Icon*|*Background*|SB*) $BACKUPLOCATION/SBFolder/ || STATUS="cp failed" #copy IconState Plist to SBFolder folder within backup +if [[ -d /var/mobile/Media/AutoWall/ ]] +then +cp -rf "/var/mobile/Media/AutoWall/"* "$BACKUPLOCATION/AutoWall/" +fi +touch $BACKUPLOCATION/$BKPVERSION + +echo -e "\n\e[104m Success! \e[0m \n" + +exit 0 diff --git a/FlashBack/usr/bin/_FlashBackDelete b/FlashBack/usr/bin/_FlashBackDelete new file mode 100644 index 0000000..d7df812 --- /dev/null +++ b/FlashBack/usr/bin/_FlashBackDelete @@ -0,0 +1,18 @@ +#!/bin/bash + + +shopt -s extglob # "Shell option set extglob" https://www.linuxjournal.com/content/bash-extended-globbing + +set -f # "Disable file name generation (globbing)." + +DELETEBACKUP=$1 + +set +f +FLASHBACKDIR="/Library/FlashBack" +DELETELOCATION=$FLASHBACKDIR/Backups/$DELETEBACKUP + +# COPY BACKUP TO SYSTEM + +rm -r $DELETELOCATION + +exit 0 diff --git a/FlashBack/usr/bin/_FlashBackPackage b/FlashBack/usr/bin/_FlashBackPackage new file mode 100644 index 0000000..6ceab96 --- /dev/null +++ b/FlashBack/usr/bin/_FlashBackPackage @@ -0,0 +1,12 @@ +#!/bin/bash + + +shopt -s extglob # "Shell option set extglob" https://www.linuxjournal.com/content/bash-extended-globbing + +set -f # "Disable file name generation (globbing)." + +PACKAGEBACKUP=$1 +cd /Library/FlashBack/Backups +zip -r /User/Documents/FlashBack/GeneratedPackages/$PACKAGEBACKUP.zip ./$PACKAGEBACKUP + +exit 0 diff --git a/FlashBack/usr/bin/_FlashBackRestore b/FlashBack/usr/bin/_FlashBackRestore new file mode 100644 index 0000000..f9acdca --- /dev/null +++ b/FlashBack/usr/bin/_FlashBackRestore @@ -0,0 +1,29 @@ +#!/bin/bash + + +shopt -s extglob # "Shell option set extglob" https://www.linuxjournal.com/content/bash-extended-globbing + +set -f # "Disable file name generation (globbing)." + +SELECTBACKUP=$1 + +set +f +FLASHBACKDIR="/Library/FlashBack" +SELECTLOCATION=$FLASHBACKDIR/Backups/$SELECTBACKUP + +# COPY BACKUP TO SYSTEM + +cp -r $SELECTLOCATION/Preferences/* /var/mobile/Library/Preferences/ || STATUS="cp failed" +cp -r $SELECTLOCATION/SBFolder/* /var/mobile/Library/SpringBoard/ || STATUS="cp failed" +if [[ -d $SELECTLOCATION/AutoWall/ ]] +then +cp -rf "$SELECTLOCATION/AutoWall/"* "/var/mobile/Media/AutoWall/" &>/dev/null +fi + +# clear caches and respring +uicache +recache --no respring &>/dev/null +killall cfprefsd #Clear settings caches - thanks to Grant/NewD +killall -9 SpringBoard && exit 0 # Kill the script. + +exit 0 diff --git a/FlashBack/usr/bin/_FlashBackUnpackage b/FlashBack/usr/bin/_FlashBackUnpackage new file mode 100644 index 0000000..23bdcb7 --- /dev/null +++ b/FlashBack/usr/bin/_FlashBackUnpackage @@ -0,0 +1,9 @@ +#!/bin/bash + +cd /User/Documents/FlashBack/Unpackage/ +unzip "*.zip" +rm *.zip +cp -r /User/Documents/FlashBack/Unpackage/* /Library/FlashBack/Backups/ +rm -r * + +exit 0