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.
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?
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.