22
submitted 3 months ago* (last edited 3 months ago) by user_naa@lemmy.world to c/android@lemmy.world

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.

all 24 comments
sorted by: hot top controversial new old
[-] Fisch@discuss.tchncs.de 4 points 3 months ago

Is /sdcard really the correct path? Maybe try /storage/emulated/0? That's the internal storage

[-] user_naa@lemmy.world 1 points 3 months ago

Same error. Plus /sdcard is just symlink to /storage/emulated/0/

[-] Fisch@discuss.tchncs.de 1 points 3 months 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.world 1 points 3 months ago

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

[-] Sabin10@lemmy.world 3 points 3 months ago

A little old skool maybe but why not try ftp?

[-] lemmeBe@sh.itjust.works 2 points 3 months ago
[-] user_naa@lemmy.world 1 points 3 months ago* (last edited 3 months ago)

It works, but my Wi-Fi is very slow

[-] Onomatopoeia@lemmy.cafe 1 points 3 months ago* (last edited 3 months ago)

It'll be quicker than MTP because it's actually reliably consistent, unlike MTP.

Since MTP is an unreliable hack, I've found using a "slow" wireless connection to work better.

[-] lka1988@sh.itjust.works 1 points 3 months ago

Does your PC actually see your phone via adb? What's the output of adb devices?

[-] user_naa@lemmy.world 1 points 3 months ago* (last edited 3 months ago)

Yes, I can even shell into it or pull/push small files

[-] onlinepersona@programming.dev 1 points 3 months 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.world 1 points 3 months ago

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

[-] lka1988@sh.itjust.works 1 points 3 months ago* (last edited 3 months ago)

Shooting from the hip here, but it sounds like the storage chip may be dying. I have a 128GB Pixel 1XL that crashes if I use more than ~20GB of space.

[-] burgersc12@mander.xyz 1 points 3 months ago

I'd check the cable. Might be a POS that only works for the bare minimum of tasks.

[-] TheBat@lemmy.world 1 points 3 months ago
[-] user_naa@lemmy.world 2 points 3 months ago
[-] TheBat@lemmy.world 2 points 3 months ago

That's not much.

Can you try copying that file via KDE Connect?

[-] user_naa@lemmy.world 2 points 3 months ago

I edited post to explain why I need ADB

this post was submitted on 28 Jan 2025
22 points (100.0% liked)

Android

30214 readers
94 users here now

DROID DOES

Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


We are Android girls*,

In our Lemmy.world.

The back is plastic,

It's fantastic.

*Well, not just girls: people of all gender identities are welcomed here.


Our Partner Communities:

!android@lemmy.ml


founded 2 years ago
MODERATORS