├── system └── .gitkeep ├── META-INF └── com │ └── google │ └── android │ ├── updater-script │ └── update-binary ├── customize.sh ├── data_restore_v2.14-MAGISK-TWRP.zip ├── module.json ├── module.prop ├── changelog.md ├── .github └── FUNDING.yml ├── LICENSE └── README.md /system/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | #MAGISK 2 | -------------------------------------------------------------------------------- /customize.sh: -------------------------------------------------------------------------------- 1 | 2 | find $MODPATH/ -type f -name 'data_restore*' -exec cp {} /sdcard/ \; 3 | -------------------------------------------------------------------------------- /data_restore_v2.14-MAGISK-TWRP.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ziandzivan/data_restore_Courier/HEAD/data_restore_v2.14-MAGISK-TWRP.zip -------------------------------------------------------------------------------- /module.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "v2.14", 3 | "versionCode": 8, 4 | "zipUrl": "https://github.com/ziandzivan/data_restore_Courier/releases/download/v2.14/data_restore_Courier_v2.14-MAGISK.zip", 5 | "changelog": "https://raw.githubusercontent.com/ziandzivan/data_restore_Courier/main/changelog.md" 6 | } 7 | -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=data_restore_Courier 2 | name=Courier of data_restore script for MAGISK-TWRP 3 | version=v2.14 4 | versionCode=8 5 | author=ziand 6 | description=Courier of latest version data_restore script to folder /sdcard. 7 | updateJson=https://raw.githubusercontent.com/ziandzivan/data_restore_Courier/main/module.json 8 | -------------------------------------------------------------------------------- /changelog.md: -------------------------------------------------------------------------------- 1 | 2.14 2 | • Some fixes for TWRP restoring 3 | 4 | 2.13 5 | • Added support of some Xiaomi 6 | • Fixes 7 | 8 | 2.12 9 | • Fixes 10 | • Added support of 11 | ~ Poco M5, Android 12 miui w/o TWRP 12 | ~ Realme 6pro, Android 12 w/o TWRP / with Orangefox 13 | ~ Tecno Camon 19 Neo, Android 12 w/o TWRP 14 | 15 | 2.11 16 | • Initial release 17 | -------------------------------------------------------------------------------- /META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | ################# 4 | # Initialization 5 | ################# 6 | 7 | umask 022 8 | 9 | # echo before loading util_functions 10 | ui_print() { echo "$1"; } 11 | 12 | require_new_magisk() { 13 | ui_print "*******************************" 14 | ui_print " Please install Magisk v20.4+! " 15 | ui_print "*******************************" 16 | exit 1 17 | } 18 | 19 | ######################### 20 | # Load util_functions.sh 21 | ######################### 22 | 23 | OUTFD=$2 24 | ZIPFILE=$3 25 | 26 | mount /data 2>/dev/null 27 | 28 | [ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk 29 | . /data/adb/magisk/util_functions.sh 30 | [ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk 31 | 32 | install_module 33 | exit 0 34 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: ziandzivan 4 | # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 5 | patreon: # Replace with a single Patreon username 6 | open_collective: # Replace with a single Open Collective username 7 | ko_fi: # Replace with a single Ko-fi username 8 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 9 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 10 | liberapay: # Replace with a single Liberapay username 11 | issuehunt: # Replace with a single IssueHunt username 12 | otechie: # Replace with a single Otechie username 13 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 14 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 15 | 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 ziand 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # data_restore_Courier 2 | 3 | ## Introduction 4 | Courier-module for delivering to user and updating a Script ![data_restore](https://github.com/ziandzivan/data_restore). 5 | 6 | 7 | 8 | ## Requirement 9 | 10 | - Magisk 20.4+ 11 | 12 | ## Features 13 | 14 | - The latest script `data_restore_v2.xx-MAGISK-TWRP.zip` will be copied to the root of Internal storage at installing this Magisk Courier-module `data_restore_Courier_v2.xx-MAGISK.zip`. 15 | - The data_restore_Courier module ONLY delivers the latest version of the Script to intSD because actually the Script data_restore is not Magisk module. 16 | - A current module version always fits to the same version of the Script inside. 17 | 18 | ## Installing 19 | 20 | - Download the module and copy it to internal storage. 21 | - In the Magisk App: Modules - Install from storage - select the downloaded `data_restore_Courier module` - Reboot. 22 | - Find the `data_restore_v2.xx-MAGISK-TWRP.zip` script in the root of intSD. Done, now you can use new updated script. 23 | - Follow ![Instruction](https://github.com/ziandzivan/data_restore/blob/main/README.md) for using the main script. 24 | --------------------------------------------------------------------------------