""" ===================================================================== PHONE setup code => EDIT ME. Change the assigned values following "# SETTINGS" below. The settings you make here are shared by initial copies and syncs. You need to edit this file on the phone copy of this package only. This is Python code: spaces work around '=', quote all strings, and use r'...', '..\\..', or '../..' for Windows-path backslashes. Home-folder (~) and env-var ($var) syntax is expanded in paths. For LOGS, give the path to a folder on your phone for logfile saves. For MALL, give the path to the folder where you've unzipped the Mergeall source-code package on your phone (any folder will do). For FROM, give the path to which zips are copied on your phone. For TO, give the path to the content copy on your phone. For STUFF, give the name of your content's top-level folder. In combination ($ means value of): - $FROM/$STUFF.zip is the content zip for initial copy - $FROM/DELTAS.zip is the changes zip for content syncs - $TO/$STUFF is your content copy's folder on your phone - $FROM/PHONE.zip is the $TO/$STUFF zip made by verifications For FROM and TO, use any mix of: - Shared storage: /sdcard - App-specific storage: /sdcard/Android/data/com.termux - App-private storage: /data/data/com.termux See this package's _README.html for more on Android storage; app storage has limited access, but shared storage is slower. All ops will run faster if FROM is faster app-specific storage. FROM cannot be app-private: file explorers can't access this. See _README.html for license, attribution, version, and docs. ===================================================================== """ # SETTINGS # # PC is TO 'phone', not FROM # # This requires a manual deltas-zip copy, but updates skip full comparisons. # If you already have a deltas zip for Android 11, this may be quicker. # # Folders: quoted paths LOGS = r'~\Downloads\deltas-logs' # logfiles folder (tail -f to watch) MALL = r'~\Downloads\Mergeall-source' # Mergeall source-code folder FROM = '~\\Desktop\\temp' # path to $STUFF and DELTAS zips copied TO = '~\\Desktop' # path to $STUFF archive root on phone STUFF = 'MY-STUFF' # name of archive's root folder # Options: True or False PauseSteps = True # stop for enter or ctrl-c between steps? ShowRuntimes = True # display each step's runtime in the console? UnixPermissions = False # copy Unix permissions to phone app storage (see readme)? ForceKeyToClose = False # require enter/return to close script (Termux:Widget)? BackupChanges = True # save phone items changed so sync can be rolled back?