Losing USB connection after having copied files to Android\data\app folder

nissepistol

Member
Nov 28, 2024
10
2
3
Visit site
I'm using a field surveillance app called QField, and every time after having copied a folder into the app's subfolder at Android\data\ch.opengis.qfield\files, the USB data transfer connection seems to enter some kind of sleep or paralysis mode.

I can still access all folders on the tablet, but I can't copy anything from the tablet or put more files into the app folder. If I start to use QField, it will produce photos into a subfolder but I can't see the newly creates photos from Windows. The only solution I've found is to remove/reconnect the cable, and set the connection to allow data transfers + click "Allow data transfers" in the popup window.

The error is the same with an Active4 Tab Pro, but it works flawlessly on a Sony and Asus device.
Before I tried on the Sony, I reinstalled MTP drivers, tried other cables (USB C-C and C-A) and a host of other things.

Does Samsung protect the data inside the Android\data\ file structure in some way other than Sony/Asus other producers do?

Greatful for all input!
 

B. Diddy

Senior Ambassador
Moderator
Mar 9, 2012
167,345
7,563
113
Visit site
Welcome to Android Central! I thought subdirectories of /Android/data are typically not accessible to the user, since they're supposed to be protected by the system. Are these tablets rooted? How are you copying the folders to that directory, and what file manager app are you using to look for them?
 

nissepistol

Member
Nov 28, 2024
10
2
3
Visit site
Thank you for the welcome, B.Diddy!

No neither of the devices are rooted, we're using a powershell script on the PC to copy the files and folders into the app in /Android/data/.

The USB-connection stops working practically immediately after I have copied the files to the android device, and then I'm using Windows Explorer (on the PC) to troubleshoot when I look for the files. That's when I stop getting data via the cable. Pull/replug the cable makes the connection to come back alive again.

And what we've found so weird is that the USB connection only drops on Samsung devices, not Sony/Asus.
 

B. Diddy

Senior Ambassador
Moderator
Mar 9, 2012
167,345
7,563
113
Visit site
I'm not really familiar with the process that you're trying, but in case the issue has to do with accessing the /Android/data folder, try testing it instead by transferring files to a folder that is intended for the user to access, like /Downloads or /Pictures.
 
  • Like
Reactions: nissepistol

nissepistol

Member
Nov 28, 2024
10
2
3
Visit site
Thanks for the reply B.D!
Hey, unfortunately I need to access the /Android/data folder by a powershell script as I need to copy files into the app's folder structure.

I know it's not best practice but it's the only solution I have due to limititations of the android app.
 

B. Diddy

Senior Ambassador
Moderator
Mar 9, 2012
167,345
7,563
113
Visit site
It's surprising that you can do this on the other phones. Which Sony and ASUS phones are they? Are they rooted? I'm guessing this kind of thing would usually require root access..
 
  • Like
Reactions: Laura Knotek

mustang7757

Super Moderator
Moderator
Feb 6, 2017
94,786
9,939
113
Visit site
What Android version is your Tab S9 on ?
On the Android 14 Samsung has a feature called Auto blocker in the phones settings menu under Security & Privacy like my screenshot below , make sure not on .



1e92257f090f8761cfb6c4452105a70f.jpg
 

nissepistol

Member
Nov 28, 2024
10
2
3
Visit site
Hey Mustang,
Thanks for your idea!
I'm om Android 14 on all devices I've tried.
I tried your suggestion, but the conx still goes silent. I've also enabled Developer options and tried with USB-debugging.
 
  • Like
Reactions: mustang7757

mustang7757

Super Moderator
Moderator
Feb 6, 2017
94,786
9,939
113
Visit site
Hey Mustang,
Thanks for your idea!
I'm om Android 14 on all devices I've tried.
I tried your suggestion, but the conx still goes silent. I've also enabled Developer options and tried with USB-debugging.
I haven't read through the whole thread completely but have you tried using a another known Good Cable? Sometimes you may have a have a few laying around but they don't allow Data transfer but do charge the device
 
  • Like
Reactions: Laura Knotek

nissepistol

Member
Nov 28, 2024
10
2
3
Visit site
I haven't read through the whole thread completely but have you tried using a another known Good Cable? Sometimes you may have a have a few laying around but they don't allow Data transfer but do charge the device
No I've ruled out it being a cable or PC issue as it works with the same cable with a Sony and Asus device. Basically the only parameter I've changed is from a non Samsung device into a Samsung device.
 

Trending Posts

Forum statistics

Threads
949,940
Messages
6,945,006
Members
3,161,713
Latest member
Rosahitt