How to save a logcat? - HTC Sensation

Because a problem with an app and supersu right after entering the Sim pin, I'd need to post a logcat dump, but honestly I never did it.
How can I do that?
Does logcat contains private information like imei, tel numbers contact and so on?

zooster said:
Because a problem with an app and supersu right after entering the Sim pin, I'd need to post a logcat dump, but honestly I never did it.
How can I do that?
Does logcat contains private information like imei, tel numbers contact and so on?
Click to expand...
Click to collapse
Logcat doesnt give any private information away and it is done via the adb command:
adb logcat > log.txt
This will save the logcat to log.txt file. Or there is a tool in the Sensation Themes and Apps section that gets logcats easyily - search for it

zooster said:
Because a problem with an app and supersu right after entering the Sim pin, I'd need to post a logcat dump, but honestly I never did it.
How can I do that?
Does logcat contains private information like imei, tel numbers contact and so on?
Click to expand...
Click to collapse
i found it for you man http://forum.xda-developers.com/showthread.php?t=1838323

But it's always needed a computer... Isn't there a way to save it directly on the phone?

zooster said:
But it's always needed a computer... Isn't there a way to save it directly on the phone?
Click to expand...
Click to collapse
Download alogcat from Play Store

zooster said:
But it's always needed a computer... Isn't there a way to save it directly on the phone?
Click to expand...
Click to collapse
You could run "logcat > log.txt" (ignoring the quotes) from a terminal on the phone.
Make sure you go to a sensible directory first so you know where it's been saved. I'd suggest "cd /sdcard".

Related

MobclickAgent and umeng.com

Have something on my tablet that appears to be collecting location and device data and uploading it to umeng.com.
How do I make it stop?
EDIT: Apparently File Expert is the culprit.
I see this in a log file. How did you determine the application which called it?
qu1nn said:
I see this in a log file. How did you determine the application which called it?
Click to expand...
Click to collapse
in logcat the number between ( ) is the pid of the process, you can check to which application belongs in ddms or a ps from console

[APP] [ROOT] [4.0+] Andy Log: Spare Yourself Logging Scenarios

Description:
Andy Log is a small tool that dumps necessary logs for bug reporting without hassle.
Just choose what you'd like to include in your log file and click on LOG.
Supported (so far):
1. Logcat
2. Buildprop
3. CPU info
4. Sysctl
5. Kmsg
6. Last kmsg
7. Dmesg
8. Uptime
Logs are saved to /{MAIN STORAGE}/Android/data/{PACKAGE NAME}/Logs folder.
Download:
Andy Log (ROOT)
Change log
Reserved for change log:
v2.0
Fixed crashes on Android 6+
v1.4
Android N support (please work)
Fixed log folder chooser on Android 6
v1.3
Added:
Last crash option, useful for extracting the minimum required data for crash reporting.
(PRO) Logcat:
radio & events buffers.
Formating.
Filtering ( tag:level ex: AndroidRuntime:E )
v1.2
Fixed:
1. Problem with Italian date format.
Added:
1. Confirm and show log files' names before clearing them.
2. Share log option.
3. An option to change default logs folder.
v1.1
Fixed:
1. CLEAR LOGS bug.
2. Force close when no option is checked.
3. Force close during dumping logs due to DOCUMENTS field being undeclared in some devices' framework.
v1.0
Initial release.
@deeplyyoung try out this app bro , its just awesome. @Bassel Bakr good handy app which saves time. It also helps a lot of noobs around here to provide proper logs
Great work. :good:
Great!!! This is the most awaited app for newbies.
Nice, I'll have to try this out. I currently have SysLog & Logcat Extreme installed for their various functions. This might be a replacement for SysLog.
EDIT: Trying it now, it's been sitting on "Dumping KMSG" for about 5 minutes. I checked them all, by the way. Shall I use one of the aforementioned apps I use to record a logcat while it happens? Seems a bit ironic, I know.
yochananmarqos said:
Nice, I'll have to try this out. I currently have SysLog & Logcat Extreme installed for their various functions. This might be a replacement for SysLog.
EDIT: Trying it now, it's been sitting on "Dumping KMSG" for about 5 minutes. I checked them all, by the way. Shall I use one of the aforementioned apps I use to record a logcat while it happens? Seems a bit ironic, I know.
Click to expand...
Click to collapse
I'd be grateful if you did. ?
I'll make sure next update less prone to this problem.
Bassel Bakr said:
I'd be grateful if you did. ?
I'll make sure next update less prone to this problem.
Click to expand...
Click to collapse
I let it sit for about 5 minutes, so it's almost 10 thousand lines.
https://dl.dropboxusercontent.com/u/67194527/Log_2014-10-19_23-46-59.txt
Great app. Command lines made handy. Now users can easily submit logs to respective developers and contribute in smoother development :good:
@Bassel Bakr Could you add Dmesg feature?
Great, thank you, logs have always baffled me - this has made them much easier for me to understand.
Problem I'm facing is that I can't find the logs in the file path /0/android/data/com.bassel.andylog/files/documents/.....
When I get to documents there is nothing in that file.
I can see them when I first take the log and open it though?
Great app, just one thing. After taking a Logcat the log says “
Unable to open log device '/dev/log/main': No such file or directory ”. All other logs seem to work fine.
Bassel Bakr said:
Description:
Andy Log is a small tool that dumps necessary logs for bug reporting without hassle.
Just choose what you'd like to include in your log file and click on LOG.
Supported (so far):
1. Logcat
2. Buildprop
3. CPU info
4. Sysctl
5. Kmsg
6. Last kmsg
7. Uptime
Logs are saved to /{MAIN STORAGE}/Android/data/{PACKAGE NAME}/Documents folder.
Download:
Andy Log (ROOT)
Click to expand...
Click to collapse
I couldn't find this app on F-Droid. Is there a github repo or other link to the source?
@Bassel Bakr very useful app thanks but i think you should change the Default directory or add an option let us to choose saving directory.
iko11 said:
@Bassel Bakr very useful app thanks but i think you should change the Default directory or add an option let us to choose saving directory.
Click to expand...
Click to collapse
+1
I was thinking the exact same thing
Nice!
Cool App. Could You please include radio log dump (adb logcat -b radio -v time -d)?
filters possible for specific app?
Thanks everyone for your feedback. ?
New update v1.1 check second post change log.
yochananmarqos said:
I let it sit for about 5 minutes, so it's almost 10 thousand lines.
https://dl.dropboxusercontent.com/u/67194527/Log_2014-10-19_23-46-59.txt
Click to expand...
Click to collapse
Check v1.1
Al Arsyadi said:
@Bassel Bakr Could you add Dmesg feature?
Click to expand...
Click to collapse
It's already there but i forgot to include it in the description, sorry. ?
Jimsilver73 said:
Great, thank you, logs have always baffled me - this has made them much easier for me to understand.
Problem I'm facing is that I can't find the logs in the file path /0/android/data/com.bassel.andylog/files/documents/.....
When I get to documents there is nothing in that file.
I can see them when I first take the log and open it though?
Click to expand...
Click to collapse
Strange! Log file can't be opened unless it is already there! ?
Anyway, I'll look into it. ?
p1eter said:
Great app, just one thing. After taking a Logcat the log says “
Unable to open log device '/dev/log/main': No such file or directory ”. All other logs seem to work fine.
Click to expand...
Click to collapse
Do you get the same thing if you executed logcat command in a terminal emulator?
MiyagiSan said:
I couldn't find this app on F-Droid. Is there a github repo or other link to the source?
Click to expand...
Click to collapse
No, it's closed source.
iko11 said:
@Bassel Bakr very useful app thanks but i think you should change the Default directory or add an option let us to choose saving directory.
Click to expand...
Click to collapse
Thanks for your suggestion, I'll work on it.
ArdnoS75 said:
Cool App. Could You please include radio log dump (adb logcat -b radio -v time -d)?
Click to expand...
Click to collapse
Thanks for your suggestion, I'll work on it.
starbase64 said:
filters possible for specific app?
Click to expand...
Click to collapse
Thanks for your suggestion, I'll work on it.
Bassel Bakr said:
Thanks everyone for your feedback. ?
New update v1.1 check second post change log.
Check v1.1
Click to expand...
Click to collapse
It successfully saves the logs now. However, I noticed it saves them all to one file when selecting multiple. Also, if different logs are chosen using the default filename choice, there's no way to tell which one is which without opening them. Would it be possible to automatically generate the first part of the filename based on the type of log? i.e., kmsg--(Date)--(Time).txt, etc? Thanks!
Bassel Bakr said:
Do you get the same thing if you executed logcat command in a terminal emulator?
Click to expand...
Click to collapse
Logcat command gives me “Unable to open log device '/dev/log/main': No such file or directory ”
When I tried to create the folders /log/main terminal returned “logcat read: Is a directory”

reboot problem G3 D850

hi guys
i have a weird problem, every time i turn on or restart my phone it keep rebooting
when i remove my sim card phone work great.
when i insert sim card phone keep rebooting again until i connect it to the charger
what is wrong with my g3 D850 ? :crying:
i live in iran so sry for my bad english :d
any tips?
I was having the same problem but only with one Rom that was stock based. Switched ROMs and have had no issues since
jasonpantuliano said:
I was having the same problem but only with one Rom that was stock based. Switched ROMs and have had no issues since
Click to expand...
Click to collapse
what rom you use?
king_siavash said:
hi guys
i have a weird problem, every time i turn on or restart my phone it keep rebooting
when i remove my sim card phone work great.
when i insert sim card phone keep rebooting again until i connect it to the charger
what is wrong with my g3 D850 ? :crying:
i live in iran so sry for my bad english :d
Click to expand...
Click to collapse
To get a decent answer, it may be best for you to run a logcat.
Folks the best way to help with device issues is to post a logcat.
The Android logging system provides a mechanism for collecting and viewing system debug output. Logs from various applications and portions of the system are collected in a series of circular buffers, which then can be viewed and filtered by the logcat command. You can use logcat from an ADB shell to view the log messages.
For complete information about logcat options and filtering specifications, see Reading and Writing Logs.
For more information on accessing logcat from DDMS, instead of the command line, see Using DDMS.
Syntax
[adb] logcat [<option>] ... [<filter-spec>] ...
You can run logcat as an adb command or directly in a shell prompt of your emulator or connected device. To view log output using adb, navigate to your SDK platform-tools/ directory and execute:
Click to expand...
Click to collapse
Here are 2 excellent XDA threads explaining Logcat "How to"
[Tutorial] How To Logcat <<< explains how.
[GUIDE] Installing ADB/SDK and How to make a logcat
Or, this app from the market can allow you to create one direct from your device>>> aLogcat ROOT
While we can say we have problems, we (the community) are by no means Android mind readers
So help others, help you... logcat, it may help save the life of another frantic flasher :good:
The Rom was 855 minus 5.

how to use logcat to get the SPC code

hello everybody !
currently i apply this thread on my nexus 5 http://forum.xda-developers.com/google-nexus-5/general/radio-enable-lte-band-3-nexus-5-d820-t2928561
but i stopped on this step, i'don't where should i put this logcat
adb shell
logcat -d | grep "commandId\ 200"
to get the SPC code, because on the Nexus 5 Field Test mode app, i cant type letters, only numbers. i think should i put the logcat on another place but i don't know .. please help
thanks to "maidenboston"
how
Chouiyekh said:
thanks to "maidenboston"
Click to expand...
Click to collapse
How did u solve this bro lemme know asap
ecftv said:
How did u solve this bro lemme know asap
Click to expand...
Click to collapse
ok, so by following this steps on topic :
- Install the app Nexus 5 Field Test mode
- Make sure you have the phone rooted
- Enable usb debugging
- Now you need to obtain your SPC code. For doing it open Nexus 5 Field Test Mode App, got to settings (view), then LTE, and click on edit. At the same time use logcat to get the SPC code
you should use it on "adb " and you will get the spc code

How to remove logcat files? (Not Samsung)

This problem has been bothering me all day. My phone is always out of memory and I've found out that it's the logcat files that are causing this. I've managed to root my phone and connect it to the adb shell on my PC but I have no idea how to remove the logcat files. I would appreciate if you could help me!
Zablas said:
This problem has been bothering me all day. My phone is always out of memory and I've found out that it's the logcat files that are causing this. I've managed to root my phone and connect it to the adb shell on my PC but I have no idea how to remove the logcat files. I would appreciate if you could help me!
Click to expand...
Click to collapse
Check out this article. There's an app linked in it as well.
http://www.androidpolice.com/2014/0...r-enhanced-privacy-and-performance-root-only/
Thank You for your time but I've managed to find an older version of the App since it's no longer on the Play store. It only blocked the Main logs. But how do I delete the old logs which take up gigabytes? Anyway to do it through the ADB shell?
Zablas said:
Thank You for your time but I've managed to find an older version of the App since it's no longer on the Play store. It only blocked the Main logs. But how do I delete the old logs which take up gigabytes? Anyway to do it through the ADB shell?
Click to expand...
Click to collapse
Logs taking up Gigabytes
Are those tree logs?
What device are you using? IIRC some MTK devices have an engineering mode. I've used it to disable logging before.
If you just want to clear them, download 3C System Tuner from the Playstore. It'll give you that option.
Freewander10 said:
Logs taking up Gigabytes
Are those tree logs?
What device are you using? IIRC some MTK devices have an engineering mode. I've used it to disable logging before.
If you just want to clear them, download 3C System Tuner from the Playstore. It'll give you that option.
Click to expand...
Click to collapse
Additionally, if you can locate the folder in which they're stored, you can just go ahead and delete them manually.
Not sure if this will work on android's shell, but it works on the linux's. You can do this via adb.
Adb shell
Then su to get root access
find / (make sure to add a space!) and then .log I guess
RAZERZDAHACKER said:
Not sure if this will work on android's shell, but it works on the linux's. You can do this via adb.
Adb shell
Then su to get root access
find / (make sure to add a space!) and then .log I guess
Click to expand...
Click to collapse
The commands didn't work sorry :/ it said "not found" for them
Freewander10 said:
Logs taking up Gigabytes
Are those tree logs?
What device are you using? IIRC some MTK devices have an engineering mode. I've used it to disable logging before.
If you just want to clear them, download 3C System Tuner from the Playstore. It'll give you that option.
Click to expand...
Click to collapse
I'm using LG G2 Mini running Android 5.0.2

Categories

Resources