Coder Social home page Coder Social logo

Comments (8)

mrrfv avatar mrrfv commented on August 18, 2024 1

I built 2 debug APKs - one with no changes, and one with android:maxSdkVersion set to 29. Let me know if the second debug APK resolves the issue.

Download link (compressed with 7-Zip)

from open-android-backup.

mrrfv avatar mrrfv commented on August 18, 2024

What Android version are you on? Also, have you pressed the "Export Data" button in the companion app before letting the script continue?

from open-android-backup.

Poomex avatar Poomex commented on August 18, 2024

from open-android-backup.

mrrfv avatar mrrfv commented on August 18, 2024

Do you have any experience with Android app development? I can't reproduce this on my side, so you'd have to install Flutter and Android Studio, build a debug .apk and use the built-in debugger to get error logs. A video or screenshots could be also helpful.

P.S. Możemy porozumiewać się po polsku :)

from open-android-backup.

Poomex avatar Poomex commented on August 18, 2024

from open-android-backup.

L34T avatar L34T commented on August 18, 2024

android:maxSdkVersion="28" from https://github.com/mrrfv/linux-android-backup/blob/673728da1d991e7fea2696810d9a1cab1603487b/companion_app/android/app/src/main/AndroidManifest.xml#L6
is wrong for me and returns errno 13 on create directory.

ps api29 phone
ps2 not sure, but seems this line required for api29 and above...
I was wrong.
MANAGE_EXTERNAL_STORAGE required from api30 and above.
But WRITE_EXTERNAL_STORAGE was required(according to manifest) for api28 and earlier.
So for api29 no write permission was requested in manifest.

from open-android-backup.

Poomex avatar Poomex commented on August 18, 2024

The debug version worked for me. But I had to replace the .apk built by the script with the debug one, otherwise it kept overwriting it with the original.

Thank you for your work! Pozdro

from open-android-backup.

xipmix avatar xipmix commented on August 18, 2024

I saw this too on Android 12 and master at 1d395af. To get past it I had to make this hack.

@@ -82,6 +82,8 @@ for permission in "${permissions[@]}"; do
   adb shell pm grant com.example.companion_app $permission
 done
 
+adb shell mkdir -p /storage/emulated/0/linux-android-backup-temp
+
 if [ -d backup-tmp ]; then
   cecho "Cleaning up after previous backup/restore..."
   rm -rfv backup-tmp

What is supposed to create this directory, if you don't do it with an adb shell command? You use one to remove it again.

from open-android-backup.

Related Issues (20)

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.