yashsingh1/xdaforums huggingface dataset:
[Android General] razrielsch:
I try to analyze the reason for not starting phone encryption. Therefore I started logcat but the output is nearly empty...

What do I have to do to get a log for phone encryption process ?

--------- beginning of /dev/log/main

I/dalvikvm( 1316): Turning on JNI app bug workarounds for target SDK version 11...

E/Term ( 1316): onCreate

D/Term ( 1316): TermService started

I/TermService( 1316): Activity called onBind()

I/Term ( 1316): Bound to TermService

I/TermService( 1316): Activity binding to service

I/libjackpal-androidterm( 1316): JNI_OnLoad

I/Term ( 1316): waiting for: 1333

D/su ( 1348): su invoked.

D/su ( 1349): starting daemon client 10035 10035

D/su ( 1351): connecting client 1347

W/IInputConnectionWrapper( 1316): showStatusIcon on inactive InputConnection

I/Choreographer( 1316): Skipped 35 frames! The application may be doing too much work on its main thread.

W/IInputConnectionWrapper( 1316): showStatusIcon on inactive InputConnection

W/IInputConnectionWrapper( 1316): showStatusIcon on inactive InputConnection

W/IInputConnectionWrapper( 1316): showStatusIcon on inactive InputConnection
[Android General] Snake-Plissken:
I have problems with this tool. It runs but if i want to change the location of the path for adb.exe it just crashes after i drag&droped the folder or tpyed it manually.

I decided to move my adb.exe according to the path in this app, so finaly the tool found adb but now its complaining that it cant find the output file? well how should it find the output file before it even startet working...?

can you fix this...
[Android General] Att.Fan1982:
In the following link I have a short video of my note 3(right) and note 2(left) with the app catlog open playing the current main log. As you see the note 3 is flying through non stop and the note 2 isn't. My nexus 10 plays the current main log the same way as the note 2. I was just wondering if this was normal?

https://dl.dropboxusercontent.com/u/83055311/VID_20140407_003708.mp4 :confused:
[Android General] FuzzyMeep Two:
Yes, I absolutely can fix this. The issue was probably with quotation marks. If you used quotes in the path name, it would cause an error and close. This has been fixed, you are free to use as many quotation marks as you want, they will be removed before the command is run anyway.

Unfortunately Google Code wont allow anyone to upload any files so i cant update on there. So here is a link to a zip i uploaded to XDA.

It couldn't find the output FOLDER, i have added a feature that will ask if you want to create the new folder when selecting a file name.

Added a feature that will automatically create the selected folder if no output folder exists and the user attempts to run a log.

EDIT V 3.2 Finished

Change Log

Fixed ADB Location settings, some users were having trouble if they input the ADB folder with any quotation marks in the path name, it will now automatically remove quotation marks to ensure correct syntax.

Fixed issue with ADB Location setting not exiting to previous menu.

Fixed issue with Log Level setting not exiting to previous menu.

Capitalized some stuff

Added a feature that will automatically create the selected folder if no output folder exists and the user attempts to run a log.

Added a check when selecting an output folder that will ask if you want the folder created if it does not exist

Thank you for pointing out these issues so i could get them fixed.
[Android General] Wesley_NL:
guys does this logcat also record when an app crashes, bcuz i cant find any new isuies and the app i try to use keep crashing
[Android General] Pkt_Lnt:
Yes
[Android General] Wesley_NL:
how do i log apps the, i cant find it
[Android General] Pkt_Lnt:
Start the logcat with a redirect to save it to disc with the verbose switch, do what makes the app crash, when it crashes, stop the logcat. Your crash will be there.

adb logcat -v long > name of problem.txt
[Android General] Wesley_NL:
uhm, so i starup log cat, then i press the menu btn and then save? or record ? bcuz it save when you press record to

also i dont understand codes yet, that line you posted
[Android General] trjlive:
I'm going to recommend you do some more reading and learn what logcat is and how it works. Just blindly trying to use it is only going to frustrate you, and also those trying to help you because you won't understand the basic logcat functions. The code the previous poster gave you is pretty basic logcat stuff, so if you're not understanding it, that means you're not quite ready to proceed.

I'm going to give you a couple links that walk through what logcat is and how it works, that I think will be valuable to you.

Please read through these guides in their entirety

, don't just skim because you will miss important parts. After reading these, you should be able to master logcat! :good:

How to get and read a logcat: http://xdaforums.com/showthread.php?t=2274119

Learn to logcat like a Pro: http://rootzwiki.com/topic/11930-learn-to-logcat-like-a-pro/
[Android General] Wesley_NL:
meh, custom roms always gives problems,, think i go back to offical and use custom kernel like i used to be, im not fan of linux ad xterminal stuff, to coplicated, same as being an apple mod edit...removed,, i rather stay simple windows, but its fine,
[Android General] Pkt_Lnt:
This is for windows.
[Android General] Wesley_NL:
i never seen such commands for windows, im used to use lines like c:\windows and stuff

i want to make a log for the app that crash so i can paste it on the rom page so they can probaly fix it , but i just dont understand how to use codes
[Android General] trjlive:
Well, commands involving "c:\windows" are for built-in Windows utlities. Logcat, along with ADB and Fastboot, are the three main Android command-line utilities. These are not part of Windows, they are third-party tools produced by the Android development team. Therefore, they are installed into their own directory, not the Windows directory.

If you had read the pages that I linked to, they simply describe all the various ways and scenarios that you can use the Logcat function. Really, all you'd have to do is copy and paste the command that corresponds to what you want into your Windows Command Prompt. The most basic way of using Logcat is just to execute the app and pipe the results to a text file on your desktop.

adb logcat > ~/Desktop/logcat.txt

But to do this, you also need to download and install the Android Developer Bridge (ADB) tools, which can be found on the Android Developer website. Without downloading and installing ADB, there's no way you can even use Logcat. Instructions on how to do this are in this thread's OP, as long as in each of those two links I gave you.

One thing you should know about XDA, this is not a site where developers will spoon-feed you information. It is expected that you will read and learn things on your own. You can ask for advice and direction, and you will get responses like the links I gave you. But you will not get help from others if you are not at least willing to help yourself first. We'll help you figure out the ingredients for the meal, but it's up to you to actually make the meal.

So now with all the information you've been provided, you should be able to make useful logcats for your app's problems. Good luck!
[Android General] Wesley_NL:
i see, well my usb port is broken, it connects bad atleast, it works sometimes so is there a way to find the log into root exploere or something ? i have a logcat app installed on phone though but i dont understand how the app works
[Android General] trjlive:
Well, the log isn't something that's just automatically generated and sitting on your device waiting to be looked at. That's what the logcat command does, it creates the log from watching all the system events that are happening. But without running the logcat command, you can't get the log.

I'm not familiar with the logcat apps available on the Play Store, but I suspect they probably do the same thing as running logcat command from computer, they just do it locally on the device. I don't know, however, if doing it that way will be as accurate as running from adb, but I supposed it's better than no log. I recommend you read the documentation or directions for the logcat app you installed which will probably explain how to use the app and generate a logcat.

My guess, you start the logcat app, tap a button somewhere to begin capturing log data, go back to your home screen and launch whatever app is giving you problems, and then reproduce the error or problems (usually helpful to reproduce the error several times in a row), then go back into the logcat app and tap to end log data capture. The app should then indicate where the log file that you just created is stored, probably on your internal sdcard storage.

I just looked at the app "CatLog" on the Play Store, and it looks like it runs as root so it should be able to capture all the same log data as running logcat from adb command line. And CatLog is pretty much what I just described above, so give it a try.
[Android General] Wesley_NL:
well eitherway these apps dont work probaly, when i startup the app that crash i dont see any new events in the log
[Android General] Muhammed Zakhir:
How can I install userscript in tampermonkey using logcat?

Kindly,

MZ
[Android General] trjlive:
Logcat is not used to install things, its sole purpose is to capture event data and record it to a log file.
[Android General] chelopapo:
very good

nice tuto, tnx for share
[Android General] sameer.n.soni:
Sir how can I logcat a specific system app?
[Android General] AlphaBeta:
can anyone help me with this logcat ?

i am trying to port miui to my device

--------- beginning of /dev/log/system

--------- beginning of /dev/log/main

E/MP-Decision( 341): MPDecision server starting

E/MP-Decision( 341): OPTION ENABLED: Control sleep modes

E/MP-Decision( 341): OPTION ENABLED: Adjusting average

E/MP-Decision( 341): Decision parameters CPU 0: Nw=0.000000, Tw=0, Ns=0.000000, Ts=0

E/MP-Decision( 341): util_h_and=0, util_h_or=0, util_low=0

E/MP-Decision( 341): Decision parameters CPU 1: Nw=1.900000, Tw=140, Ns=1.100000, Ts=190

E/MP-Decision( 341): util_h_and=35, util_h_or=75, util_low=20

E/MP-Decision( 341): Decision parameters: poll_ms: 9 decision_ms: 50

E/wcnss_service( 345): Failed to stat cal file : No such file or directory

E/wcnss_service( 345): No cal data is written to WCNSS -1

E/MP-Decision( 341): persistent file is not present could be first time boot

E/mm-camera( 332): qcamsvr_start: old_mode = 3f

E/mm-camera( 332): qcamsvr_load_gesture_lib Error opening gesture library

E/mm-camera( 332): Cannot init Gesture library

E/MediaPlayerFactory(25130): calling dlopen on FACTORY_LIB

E/MediaPlayerFactory(26308): calling dlopen on FACTORY_LIB

E/tadif ( 190): Failed to connect to tad.

E/taimport( 192): Failed to read unit 60203: Unit not found

E/taimport( 192): Failed to read unit 60220: Unit not found

E/taimport( 192): Failed to read unit 60221: Unit not found

E/taimport( 192): Failed to read unit 60240: Unit not found

E/taimport( 192): Failed to read unit 2560: Unit not found

E/taimport( 192): Failed to put unit to /data/etc/wlan_macaddr0

E/taimport( 192): Failed to read unit 2561: Unit not found

E/taimport( 192): Failed to put unit to /data/etc/wlan_macaddr1

E/taimport( 192): Failed to read unit 2562: Unit not found

E/taimport( 192): Failed to put unit to /data/etc/wlan_macaddr2

E/taimport( 192): Failed to read unit 2563: Unit not found

E/taimport( 192): Failed to put unit to /data/etc/wlan_macaddr3

E/taimport( 192): Failed to read unit 2564: Unit not found

E/taimport( 192): Failed to put unit to /data/etc/wlan_txpower_2_4g

E/taimport( 192): Failed to read unit 2565: Unit not found

E/taimport( 192): Failed to put unit to /data/etc/wlan_txpower_5g_low

E/taimport( 192): Failed to read unit 2566: Unit not found

E/taimport( 192): Failed to put unit to /data/etc/wlan_txpower_5g_mid

E/taimport( 192): Failed to read unit 2567: Unit not found

E/taimport( 192): Failed to put unit to /data/etc/wlan_txpower_5g_high
[Android General] Pkt_Lnt:
You need to try MIUI developer or device forums. The is just HOW to Logcat, not how to read and understand logcat. Hope that helps.
[Android General] @lbert:
Post removed, wrong section, sorry.
[Android General] Pkt_Lnt:
This is a tutorial on How To Obtain a Logcat. It is [Bt.]NOT[/B] support for what is IN that logcat. Take it to your ROM forum if you want help with it. If you leave it here, this is the best you can hope to ge
[Android General] DirkStorck:
Hi. I have got a litle problem.

If I enter "adb devices" my tablet is shown but if I enter "adb logcat" it keeps standing that way and no logcat is shown.....

Any advice please!
[Android General] tdunham:
Are you rooted with developer options enabled?

Within developer options, usb debugging must be enabled as well.
[Android General] DirkStorck:
Yes it is! :)
[Android General] tdunham:
Hard to say. Something is blocking it. It could be your api level, the kernel you're running and I know that running adb in recovery has always been hit or miss for me depending on the kernel as well.
[Android General] bombadier:
logcat was disabled by the kernel now enabled and working
[Android General] cyberspaceguy:
Any guidelines for Linux Ubuntu desktop users please?
[Android General] Rycon33:
Same adb commands for Windows and Linux.
[Android General] :
Can you help me with my logcat trying to port rom but stuck on bootloop. Here is link. https://www.androidfilehost.com/?fid=95916177934519853
[Android General] Pkt_Lnt:
This teaches you HOW to obtain a logcat. You should try in your device forums for help.
[Android General] Ricardo89:
still no acces on sdcardi

EDIT: Sorry opened the wrong thread
[Android General] Aditya Verma:
Anybody can help me plzzz...i need to do ot but i dont know how to ...plz anybody can help
[Android General] nvo2411:
Just install catlog app from play store and read the app instruction.
[Android General] Pkt_Lnt:
You cannot get boot logcats with it, it is a substitute that is worthless for real development work. This tutorial is what is needed.
[Android General] nvo2411:
Enable usb debugging in your phone. Install adb or usb drivers in your pc. Connect your phone to pc.

Run command prompt and type 'adb devices'. If your device is successfully connected an alphanumeric device id will get displayed.

Then whenever you want the logcat, simply type adb logcat and disconnect your phone whenever you feel enough data is collected.

The above May not be correct because I myself is a rookie.

Others please correct if anything mentioned incorrectly here
[Android General] Pkt_Lnt:
Why are you quoting me? I've known how to get a real adb logcat for years. :rolleyes:
[Android General] nvo2411:
Sorry bro, i was actually trying to quote the above post and didn't realize your quote was there.

Apologize for 'mis'quoting you.
[Android General] Pkt_Lnt:
I'm not a "bro". :(
[Android General] nvo2411:
Sorry, I fail to realize that.

This is tearing me apart.
[Android General] clonfsp:
Hello

I have installed cm12.1 on my LG G3. I have a problem with some application, theme or other thinks that 2 of 3 boot startup force a bootanimation loop and it does not load. I must pull the battery and try again. When done, it optimize again all apps and load system.

As I want to know what is happening a thought on using the logcat, but I have a problem. adb works fine when the system is up, but when the system is starting before loop, adb does not detect device, so I cannt get the logcat to analyze it. So my questions are?

- Is there any way I can get the logcat file from previous startup cycle from TWRP? where is the file stored?

- I have seen logcat that not show date and time. is there anyway for show them?

- any other idea how can I get the logcat?

thanks
[Android General] Dvalin21:
Need help deciphering this Logcat

I've ran through many of the tuts for logcat. And yes I know how to pull one and get it. However I am having a hard time reading it. This is pulled from my Cube T7, attempting to make a running .zip version of the rom. It boots, but then the screen goes blank, however Im still able to pull this much info. Most of this (mainly the starting part) is the same even when I pulled it while the phone would fully boot. So I'm confused. Any assistance would be awesome. thanks.
[Android General] Yashodhan Wagle:
I hav tried a few versions of xposed installer bt everytime I install the framework it gets stuck in a boot loop(the xposed installer threadhttp://xdaforums.com/showthread.php?t=3034811 says that Sony devices will confront some fatal signal 6 error)....I wanna check Wat the error is.Plz tell the commands to be given n Wat output should I be looking for.Am stuck here for quite few days.....?
[Android General] Oum:
Hi, could you add the possibility to set a default config in an external text file like a config.ini ? That would be great.
[Android General] FuzzyMeep Two:
It creates a file named LOGHELP.cfg in the directory you run the exe from.

The list is configured as follows;

output location

log level

log level in text

log format

log format in teext

adb location

xda code and hide tags

xda code and hide tags text
[Android General] amitroutray:
my wifi Hotspot is always turn off. what should be the command for it and how to use it??

thanks in advance :)
[Android General] y0000:
Hi guys thnx a lot xdabbeb for this great app. I have one question because today i have little problem with xcam and i dont know why. But i fix it for a time. And i need to know the reason why maybe to the freature exist the same problem. I use the xcam 1 weak all works great. But today i open the settings and all the time drop me Force close. I reboot the phone but same problem. I remove it and i install it again for playstore but same problem FC again. I remove it with titanium backup i try to install it from playstore but say me need to buy it again, i already have buy it. I restore a backup from titanium backup and now works ok. Anybody know why drop me FC and why say need to buy it again? I know need logcat but if stil exist i give one i dont have keep it now. Because its ok. But i ask that. thnx a lot.
[Android General] ROBERT CM:
Great work

Thanks for this guide :D
[Android General] kridster:
On my Nexus 7 (2013) running CM13 I have wifi issues.

I wanted to pull a logcat from the boot process. In the terminal it just says "wait for device" and nothing gets logged.

Using "adb devices" it shows just lots of questionmarks and "no permission".

Now, when I connect the already booted Nexus with my computer it just charges. I have to change the type of usage for the USB connection to data. During boot, this is obviously not possible. But how does it work?
[Android General] Rls4ever12:
Is there anyway to accept the cpu (fingerprint) through adb for debugging
[Android General] The Analog Kid:
Great tutorial. But how I post a log on a thread? Or convert it to a text? A developer is asking me for one, but I can't figure out how to do it!
[Android General] Pkt_Lnt:
http://xdaforums.com/faq.php?faq=vb3_reading_posting

Scroll down to Attachments and Images
[Android General] The Analog Kid:
Well... Yeah, that's a good solution. Point is, XDA "Premium" mobile app have no such an option for attaching other than pictures and URL's... So I already posted a URL. Thanks anyway!
[Android General] Piyush Rawal:
My two cents

You guys greatly underestimate the power of my computer. You know, I was contacted by IBM because they wanted to benchmark my PC against their latest supercomputer. In fact, the largest prime currently known to mankind was found using my self-made processor. Please do your research before spewing such crap!

Thank You,

WonderManInPanties
[Android General] tdunham:
I think you should probably not post when you have no idea which thread you are posting to. The content of your post is not very constructive or conducive to the XDA model as well.
[Android General] neonkat:
you came to the wrong neighbourhood.

anyways,can you share your pc specs?(Lol,sorry for going off topic)
[Android General] Piyush Rawal:
I am sorry. A friend had access to my PC and he posted that as a joke without my knowledge.
[Android General] bugggmenot:
How can i filter logcat by application package name? i have seen tutorials saying to enter these codes:

Log.<log level>("<your package name>", "message");
adb -d logcat <your package name>:<log level> *:S

but i donno where to enter the first code (log.<log level>...)

i only entered second code in CMD but output is empty.

I am not a developer or an anroid geek, a Windows user with red socks :D so plz tell me the ADB way.
[Android General] neonkat:
example+explanation is given in post #1(wifistatemachine).
[Android General] bugggmenot:
there is no example for package name. thats for activities and puting package name instead of it, wont work.
[Android General] vijayk12:
hey guys...

I am using RR ROM developed on 14th Feb, it's nice ROM but I am facing a problem, can't switch from 2g to 3g or LTE...

anybody facing the same & is there any solution to solve this issue.?
[Android General] kroonys3:
You're in the wrong thread. This is not RR thread

Sent from my S6 Edge
[Android General] ehtisham ali:
When u flash a zip via recovery and device hangs on boot animation logo , then how to make a log cat ?
[Android General] neonkat:
never quote op's post,please remove it.it will make thread clean.

btw,check this.
[Android General] Sun Shower:
Thank you.I'm wondering how to logcat during boot time?
[Android General] neonkat:
check the link in my last post.
[Android General] rachit011:
can someone please help me how to logcat for "app optimization bootloop"??
[Android General] neonkat:
check post #266.with android device monitor(sdk tool)you will be able to grab all type of logs.
[Android General] rachit011:
Okay, i just checked the last post. Thanks :)
[Android General] rachit011:
Mate, in the post there is a link in which we need to flash some file to get logcat. I flashed it and run the command on terminal. But it is not logging. Terminal says waiting for devices. Please help
[Android General] neonkat:
that's quite old and seems not to be working with newer roms.only way is via sdk tools.(1.1gb installer size)
[Android General] johnlgalt:
The SDK tools is nowhere near 1.1 GB. That might be for the full developer environment, including the IDE.
[Android General] neonkat:
yeah,was talking about that one.(looks like made some mistakes there).
[Android General] AmmarRaslan:
how to filter lgocat android app output log for one single app?
[Android General] neonkat:
you may try this:

adb logcat applicationpackage:E *:S
[Android General] Helll7:
Helpfull post
[Android General] Zackptg5:
I've been trying to obtain a logcat via various logcat apps, terminal emulators, and adb methods and none are working. The apps just hang and the terminal and adb methods say "logcat read failure". Logcats aren't disabled by the kernel so I have no idea as to why this is happening. Any suggestions?
[Android General] BatDroid:
okay.

how can I get phone radio logs from these apps?
[Android General] neonkat:
you mean modem logs?check syslog app.
[Android General] BatDroid:
sim network logs
[Android General] galaxyornothing2:
feature.xml

Ok, a developer told me to replace my feature.xml with the alogcat that I have because of a fc issue with my alarm clock. How do I go about doing that? He sent me the copy of the file but I don't know how to paste it after deleting the old file. Can you please show me how to go about doing this?:good::):)
[Android General] DocSoton:
Oops, posted in wrong forum! Moved...
[Android General] Desert fox2612:
I am newbie and want answer about this question

I have flashed AOSP noghut ROM and it is not booting due to mediaserver issue...Please guys tell me a way to get logcat of mediaserver through adb....Please guys help me....
[Android General] bg260:
PM me and I'll see if I can help you.
[Android General] IamChapita:
I have a question, if I have an unknown error in the ROM I use, and this is manifested by restarting the terminal, can I use Catlog to know where that error comes from?

Or does the app stop on restart and stop recording?

Please help me solve this.