How can i open .trace file format(traceview) without DDMS? - android

I want to save a log of method calls.
Traceview supports that function and I can get .trace file format.
but, I need to open .trace file format without DDMS.
If I can't open .trace file without DDMS, How can I get a log of method calls?
(The best is .txt file format.)
thanks.

It is an old thread.
because I found here, so other guys may need this, too.
Try this:
traceview -r yourtrace.trace > 1.txt
and look 1.txt has any useful thing to u.

"traceview" is a command-line utility. You don't need to launch it from DDMS.
If you just want a text file with times and message names, you can use "dmtracedump -o file.trace".

Well for one, you should just use DDMS it's very simple to work with. Even if you don't have eclipse you can use the one that shipped with the SDK. However, if you already have access to the tracefile.trace then you could simply use Traceview from the SDK. Simply open your command prompt and navigate to your android SDK/tools directory as such: cd C:\Program Files\Android\android-sdk\tools. Once there simply type traceview followed by the filename (can omit .trace) as such: traceview C:\Users\Sino\Desktop\Janky_trace_file. This should open your trace file in a GUI representation with functionality to delve into your method calls.

This is simple.
Eclipse: File --> Open file --> open traveview file (xxxx.trace)

If you have a ".trace" file, just use "traceview " from the command line and you should be able to view the content of the file.
You can generate various graphs with the existing .trace file using the command line tool "dmtracedump". http://developer.android.com/tools/help/dmtracedump.html.

Related

Cannot copying file from Android to Linuxmint 17.3 Desktop "libmtp error: Could not get file from device"

I am trying to copy image file to backup it on my desktop which is linux mint (17.3 or Rosa) installed. I am using Infinix X510 phone with the newest version of android 6. At the beginning it was OK. But, at the end i get the message
“libmtp error: Could not get file from device”
I tried the solution as found by Googling here https://askubuntu.com/questions/879029/libmtp-error-could-not-get-file-from-device-on-attempting-to-transfer-files
But, it wasn't working for me. Is there a way to solve this matter? I need file to support my company job which supplying cosmetics.
Try compressing the file to a compressed format(tar,zip).Copy the file and then decompress it.
Changing the filename was the solution for me e.g: file.mkv to file.zip
Try to rename file, make sure file name not contain (-) (:) etc. Just rename it to alphabet

How can I open a *.plist file from Cocos project?

If i open this file in notepad i see this
resource…-utПЭЩМч)ЁЖэ3:Ќм±њNтFЧА] Ё>¬ЖбP]э6ф—Ћ~љm
Maybe this mean - file encrypt?
I get this file from apk file.
All file in apk in folder Assets havee too.
Please help my!!!
All file in GoogleDrive
https://drive.google.com/open?id=0B_JZh2_rep71Q3VmeFlkdWhCYlk
If you have an IDE like XCode, that's probably best.
You could also convert the file (assuming JSON or XML) using from command line:
plutil -convert xml1 file.plist
And then use whatever editor you like. Convert it back with:
plutil -convert binary1 $file
You can search online for other free and commercial plist editors too.

How to compile an AOSP project with my own custom bootanimation?

I'm trying to compile AOSP with a custom bootanimation, but with no success. And I just have run out of approaches... To change bootanimation, I've already done:
created a .zip file with the following structure:
bootanimation.zip {
desc.txt
part0 {
000.png, 001.png, ... ..., 010.png
}
part1 {
011.png, 012.png, ... ..., 021.png
}
}
edited permissions on system/core/include/private/android_filesystem_config.h
placed the bootanimation.zip file in /system/media/
However, when Android boots up, it just shows the Google trademark, skipping the boot animation. Can someone point what I'm missing?
PS: I'm successfully compiling AOSP. It boots up with all features ok. My problem is only with bootanimation customization on the compiled project.
Ok. I've solved my problem.
The issue was that besides all the things I've done, the bootanimation.zip file MUST be compressed with store method.
#mthama writes:
Ok. I've solved my problem. The issue was that besides all the things I've done, the bootanimation.zip file MUST be compressed with store method.
The solution is to not use any compression when packing the archive. This can be achieved on Linux with the following command:
zip -0r bootanimation.zip desc.txt part0 part1
The -0 option says to not use any compression and the -r option says to include contents of part0 and part1 recursively.
There are also ways doing this with a graphical interface, e.g. with 7-Zip as shown in this answer: https://superuser.com/a/337087/295453

QPython - Reading a file

I have installed QPython in my Android mobile.
I written a statement in the QEdit to read a text file from the below path
/storage/emulated/0/com.hipipal.qpyplus/script3/File1.txt
I used the below statement
fob=open('/storage/emulated/0/com.hipipal.qpyplus/script3/File1.txt','r')
fob.read()
If I run the statement, it is throwing error as:
IOError:[Errno 2] No such file or directory: '/storage/emulated/0/com.hipipal.qpyplus/script3/File1.txt'
1|uo_a116#cancro:/ $
Is the above statement correct?
fob=open('File1.txt','r')
Is not working in version 1.0.4.
fout=open('File2.txt','w')
Was working on version 0.9.6, but is not working in 1.0.4.
The "error" is Read only file system.
It looks like restrictions in the (new 1.0.4) file system library. I post a mail to the editor, but no answer at this time.
For testing, try to write absolute path to your files pointing, for example, to sdcard (/sdcard/out.txt).
I had problems on this versions (>=1.0.4) because launch process of script changes and execution directory is not the same as script directory.
I had to change my scripts to point to absolute paths.
It was tested with qpython developer.
Check this link:
https://github.com/qpython-android/qpython.org/issues/48
You can also try as simple as:
fob=open('File1.txt','r')
fob.read()
Just if the script is in the same folder of the file.
You can change the current working directory to path with script before read file:
import os
os.chdir(os.path.dirname(os.path.abspath(__file__)))

How to get an image from Android YAFFS2 and be able to mount/read it?

For academic/forensic reasons I want to get an image from my SmartPhone and study it.
The File System is YAFFS2.
From adb shell and using 'cat proc/mtd' I can see that I have for partitions: system,appslog,cache,userdata.
I can get the four images using dd command, like 'dd if=/dev/mtd/mtd1 of=/mnt/sdcard/appslog.img bs=4096',
and then using pull command to get data.
-> Is it a good idea to have a format file like .img?
-> How to study (mount/ just read) these *.img files?
..I am using Ubuntu 13.10.
An .img file is less likely to be read as an image file by the Open Source forensic tool Autopsy 3.3.3 (+ Sleuth Kit) [Latest Release at the time being]. However, it can still be opened as a logical file set.Nonetheless, I suggest that you should save it in .dd format instead.

Categories

Resources