Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 728
unpix Avatar asked Aug 31 '11 00:08

unpix


People also ask

How do I view files in adb shell?

Open cmd type adb shell then press enter. Type ls to view files list. At the DOS prompt, adb shell ls -R > junk lists all files and puts results into file junk which you can then edit via Notepad or whatever and see more than you'd want to, but your files, too!

How do I access adb shell on Android?

To use ADB with your Android device, you must enable a feature called “USB Debugging.” Open your phone's app drawer, tap the Settings icon, and select “About Phone”. Scroll all the way down and tap the “Build Number” item seven times. You should get a message saying you are now a developer.

How do I open adb files?

Platform List is part of Android SDK and the best way to find the location is to open SDK manager and get the path. Appearance & Behaviour --> System Settings --> Android SDK You can get the path where SDK is installed and can edit the location as well. Show activity on this post. Type adb shell.


2 Answers

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

cat dados.txt 
like image 56
harbinja Avatar answered Sep 20 '22 18:09

harbinja


The following command will work too:-

adb pull {absolute path to directory/file}  cat filename 
like image 31
Navendra Avatar answered Sep 19 '22 18:09

Navendra