Open or see the content of a .txt with adb shell android-ThrowExceptions

Exception or error:

Well, I execute ls -l and got this,

-rw-rw--w- app_34   app_34         75 2011-08-30 23:38 dados.txt

Now how do I view the content of the .txt file? Is possible?

How to solve:

A few different options, but if you just want to dump to the console try:

cat dados.txt

###

The following command will work too:-

adb pull {absolute path to directory/file}

cat filename

###

To show it on the phone screen the command is this:

am start --user 0 -a android.intent.action.VIEW -d file:///data/local/tmp/file.txt -t text/plain

Leave a Reply

Your email address will not be published. Required fields are marked *