I want to take out the csv file that I made with Android app to my PC.

Asked 2 years ago, Updated 2 years ago, 133 views

I made a csv file using the Android app, but I don't know how to take it out.
I was able to confirm that the test.csv file was created by logging in to the terminal at the command prompt and changing the user of the app.

 C:\android-sdk-windows\platform-tools>adb shell
  shell@hammerhead://$run-as eyegraphic.nikkeibp.wings.jp.eyeglance
  shell@hammerhead: /data/data/eyegraphic.nikkeibp.wings.jp.eyeglance$ls
  cache
  files
  lib
  out
  shell@hammerhead: /data/data/eyegraphic.nikkeibp.wings.jp.eyeglance$ls files
  t1.csv
  test.csv

I tried to retrieve this test.csv by referring to the site below, but it didn't work.

How to retrieve files saved to data/data in real-world debugs
Tentative workaround when real-world SQLite is inaccessible
When you look into the app's internal memory, permissions block it

I get an error trying to copy test.csv to a place where I can pull.

shell@hammerhead:/data/eyegraphic.nikkeibp.wings.jp.eyeglance$
cat files/test.csv>/storage/sdcard0/test.csv
sh:can't create/storage/:Is a directory
sh:cat: /data/data/ —Permission denied

cshell@hammerhead: /data/data/eyegraphic.nikkeibp.wings.jp.eyeglance$
cat/data/data/eyegraphic.nikkeibp.wings.jp.eyeglance/files/test.csv>/storage/sdcard0/test.csv 
sh:can't create/storage/:Is a directory
sh:cat: /data/data/ —Permission denied

Also, I tried using pull from outside the shell because pull cannot be used inside the shell, but the extracted file was 0.

C:\android-sdk-windows\platform-tools>
adb pull data/data/eyegraphic.nikkeibp.wings.jp.eyeglance/files/test.csv C:\csv
pull —Building file list...
0 files pulled.0 files skipped.

android csv adb

2022-09-30 18:22

1 Answers

Can't you do this?

adb shell run-as my.package.name cat/file-path/filename | perl-ne's/\r$//'>out

reference:
How do I retrieve data from my smartphone that I cannot adb pull on Android?


2022-09-30 18:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.