Giter Club home page Giter Club logo

android_backup_project's People

Contributors

anddisa avatar roneoorg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

android_backup_project's Issues

Magisk Canary does not provide all permissions needed to execute remote shell commands

There is an issue (at least) with Magisk Canary, as there are some permissions missig to execute the scripts on the device connected, but there is a workaround for this issue:

  • call interactively adb shell
  • change to rooted shell
  • issue the following command:
    /sbin/magiskpolicy --live 'allow magisk_client adbd unix_stream_socket {read write ioctl}' 'allow magisk magisk_file sock_file {ioctl}' 'allow magisk_client adbd process {sigchld}' 'allow magisk_file sockfs filesystem {associate}' 'allow magisk_client vendor_file dir {read}' 'allow magisk_client shell_data_file dir {getattr read}' 'allow magisk_client system_data_file dir {getattr}' 'allow magisk_client postinstall_mnt_dir dir {getattr}' 'allow system_server magisk_file sock_file { read write }' 'allow system_server shell unix_stream_socket { getopt }' 'allow adbd oemfs dir { search }' 'allow adbd shell unix_stream_socket shutdown'

Now the scripts should run through as expected

script ends without doing anything

full-restoring script could end without producing any effect

$` ./full-restore.sh --data-backup /mnt/hgfs/H/abb/qcom_2020-05-05_QKQ1.190828.002

parm: /mnt/hgfs/H/abb/qcom_2020-05-05_QKQ1.190828.002
/mnt/hgfs/H/abb/busybox-ndk /mnt/hgfs/H/abb
Already up to date.
/mnt/hgfs/H/abb
Waiting for device...
Devices detected:
List of devices attached
cc00e850 device

Checking for root access...

  1. Requesting adbd as root...
    adbd cannot run as root in production builds
    Waiting for device...
    shell
    root
    Determining architecture...
    Pushing busybox to device...
    busybox-ndk/busybox-arm64: 1 file pushed. 14.5 MB/s (1478208 bytes in 0.097s)
    restoring from /mnt/hgfs/H/abb/qcom_2020-05-05_QKQ1.190828.002

Stop Runtime

/mnt/hgfs/H/abb/qcom_2020-05-05_QKQ1.190828.002 /mnt/hgfs/H/abb
Restoring full tar backup of /data excluding /data/media ...
3,31MiB 0:00:00 [50,0MiB/s] [50,0MiB/s]

Backup is not working

Do you know why connection getting lost ?

Laptop:~/Downloads/platform-tools/android_backup_project-master$ ./backup_apps.sh
Cloning into 'busybox-ndk'...
remote: Enumerating objects: 475, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 475 (delta 21), reused 22 (delta 17), pack-reused 443
Receiving objects: 100% (475/475), 50.30 MiB | 20.61 MiB/s, done.
Resolving deltas: 100% (272/272), done.
Waiting for device...
Devices detected:
List of devices attached
99841d41 device

Checking for root access...

  1. Requesting adbd as root...
    restarting adbd as root
    Waiting for device...
    root
    Determining architecture...
    Pushing busybox to device...
    busybox-ndk/busybox-arm64: 1 file pushed. 26.2 MB/s (1498688 bytes in 0.055s)

Creating dir qcom_2023-05-12_TQ2A.230505.002

then all the files

Stop Runtime

Pull apps

package:/data/app/6pU64UU5YEBnDm2dxL1BYw==/com.whatsapp-prT9_wZzOkPEcJ4ZEvbvOw==/base.apk=com.whatsapp
/data/app/6pU64UU5YEBnDm2dxL1BYw==/com.whatsapp-prT9_wZzOkPEcJ4ZEvbvOw==/base.apk
/data/app/6pU64UU5YEBnDm2dxL1BYw==/com.whatsapp-prT9_wZzOkPEcJ4ZEvbvOw==
com.whatsapp
96,2MiB 0:00:05 [8,56MiB/s] [19,2MiB/s]
gzip: stdin: unexpected end of file
97,0MiB 0:00:05 [18,8MiB/s] [18,8MiB/s]
error: no devices/emulators found

gzip: stdin: unexpected end of file
0,00 B 0:00:00 [0,00 B/s] [0,00 B/s]
package:/data/app/TvOkI3A-k55eIF-VMLraeA==/com.weawow-ezKRNHcn6g8jNFMclojZuA==/base.apk=com.weawow
/data/app/TvOkI3A-k55eIF-VMLraeA==/com.weawow-ezKRNHcn6g8jNFMclojZuA==/base.apk
/data/app/TvOkI3A-k55eIF-VMLraeA==/com.weawow-ezKRNHcn6g8jNFMclojZuA==
com.weawow
error: no devices/emulators found

gzip: stdin: unexpected end of file
0,00 B 0:00:00 [0,00 B/s] [0,00 B/s]
error: no devices/emulators found

gzip: stdin: unexpected end of file
0,00 B 0:00:00 [0,00 B/s] [0,00 B/s]
package:/data/app/NsiOLGB6o_RbaqpcXkvatQ==/com.google.android.deskclock-rWtvlVIDdzAJ10ZoRh_wig==/base.apk=com.google.android.deskclock
/data/app/NsiOLGB6o_RbaqpcXkvatQ==/com.google.android.deskclock-rWtvlVIDdzAJ10ZoRh_wig==/base.apk
/data/app/~~NsiOLGB6o_RbaqpcXkvatQ==/com.google.android.deskclock-rWtvlVIDdzAJ10ZoRh_wig==
com.google.android.deskclock
error: no devices/emulators found

"Unrecognized architecture armv8l"

On a Samsung S5 Neo (SM-903F):

$. /android_backup_project

Waiting for device...
Devices detected:
List of devices attached
XXXXXXXXXXXXX	device

Checking for root access...
1) Requesting adbd as root...
adbd is already running as root
Waiting for device...
root
Determining architecture...
Unrecognized architecture armv8l

I've found a workaround, will submit a PR asap

script error

the system has installed pv 1.6.20, but script is still stopping and showing the error:
"pv is lower than required version: 1.6.6"

seems that thi part isn't working well:

  else
    v=`echo $pv | head -n 1 | cut -d " " -f2`
    if [ "$v" \< "1.6.6" ]; then
      echo "$v of pv is lower than required version: 1.6.6"
      exit 1
    fi

Add pv to the requirements

On Debian 10 Buster:

$ ./backup_apps.sh --system-apps

./functions.sh: ligne 84: pv : command not found

Fix:

$ sudo apt install pv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.