Hello! I recently faced an issue trying to upload big file to Android tablet. It doesn’t detect with MTP so I tried to push it via ADB. But I get this error:

$ adb push myfile /sdcard
adb: error: 65544-byte write failed: Success

How can I fix it? Why is this happening? Storage space is enough:

EDIT: I want to use it for app devlopment, so I need ADB or quick MTP for app installing.

      • onlinepersona@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        How old is this phone? My guess is corruption at hardware level.

        If you can shell into it and have dd or something, try to write a simple file to e.g dd if=/dev/zero of=/sdcard/testfile bs=1MB count=200 If that fails when directly on the device, you can rule out network issues.

        You can also try downloading a file from the web that’s about the size of your file or serving your file on the local WLAN with python3 -m http.server and accessing it on your phone. Just to see what happens.

        Anti Commercial-AI license

        • user_naa@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          I can’t do it until I formatted data. After it file can be downloaded from net, but adb still fails.

      • blue_potato@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        Would you mind sharing some details? computer OS name and version, your adb version and if you installed systemwide or if you compiled/downloaded out of your repos

          • blue_potato@lemm.ee
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 years ago

            You didn’t mention it so I asume that you can open a shell, did you tried creating a file in the destiny? Also SELinux may be the problem, try temporary disable it, if works, enable it and create an exception. Other thing; since adb daemon runs on 127.0.0.1:5073/TCP check if you have any localhost firewall rules, but this doesn’t make sense if you can open a shell. Last things, download the lastest SDK, you don’t need to install it, just call adb with the full path.

      • Fisch@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        Yeah but sometimes stuff like this works even if it seems to make no sense. If both of your devices are on the same wifi, maybe you can just use something to transfer it using that like KDE Connect. If you don’t want to install anything, you could even try using SSH.

        • user_naa@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          It will be very inconvenient to transfer app via KDE Connect on every Android Studio build

          • Cris16228@lemmy.today
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 years ago

            Android studio has it’s own way to install, just enable wireless debug in devs settings (tap 7 times the build number in software info) and connect it to android studio. That’s how I do it and just click the “play” button and studio does everything automatically

    • viking@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      Would be my go-to as well. I’m using x-plore file manager on my phone to start an ftp server, and then push files via filezilla from my computer. Easy, and compatible with every OS out there.