yashsingh1/xdaforums huggingface dataset:
[XDA-University] Stryke_the_Orc:
Bootloops and Filtering your logs

Getting a Logcat during the dreaded Bootloop​

The only difference between grabbing a logcat while running and grabbing one during a bootloop is the program you're going to use. Instead of the standard adb bridge, we'll be using the adb monitor tool. You can find this tool under the "TOOLS" folder. Open the "Tools" folder, right click on any empty space and select "Open Command Window Here"

Once the window is open, type "monitor" (without the quotes) and press enter. A whole new program will open listing the device ID and subfolders (your devices partitions)

IMPORTANT! The device ID may not show up right away, THIS IS OK! I found that it took about three bootloop cycles to actually connect.

Once you see the device ID, within a few seconds you should see the "system" partition listed underneath. Select it.

Down in the bottom left corner select the "Logcat" tab. From here, you can grab the logcat in a txt format or just watch it scroll.

I have taken screenshots of the process, and are available here

There's a great guide here that goes a little more in depth and has updated information about the requirements for a log during bootloops.

How to Filter your Logcat​

Lets say you want to find only the logs for a specific app or process, searching through thousands of lines can be a pain. Luckily, adb allows you to filter your logs based on application tags!

Here's how:

adb logcat ActivityManager:I MyApp:D *:S

This filter basically says "Show me only logs for ActivityManager at an Information or above level, and all logs for 'MyApp' with a priority level of Debug and higher" The *:S is important here, this makes all other tags Silent so that it ensures only the filtered tags are shown in your log.How's that for handy?

Demesg (kernel) Logs​

For a demesg log you'll want to follow the same instructions as above to get into adb terminal.

Once there, type adb devices to verify you're connected. Now you can pull a log by simply typing "adb shell dmesg > dmesg.txt" (without the quotatons" This will place the logs in the same folder that you launched terminal from (platform-tools)

Also, for more detailed information and a few other useful commands check out this site
[XDA-University] Stryke_the_Orc:
Apps and Reference

Apps for grabbing Logcats

Mobile Apps

alogcat

This app is great for seeing your logs, especially on older Android versions. The biggest issue I have with this app is that the share function doesn't work properly on jellybean. Yet...

You can grab it here

CatLog

I personally have no experience with this app, but it's highly rated in Play Store and has an easy to use User Interface.

Grab it here

getlogs

This is my favorite of these apps, I can use it to grab almost any log I want. Highly recommended for any developer, themer, or enthusiast!

Simple, clean, effective. The way getting your logs should be:D

Grab it here

Logcat Reader

Grab it here

Logcat Extreme

This one looks pretty cool, it has a "floating logcat" feature. Grab it here

PC Applications

A pretty neat logcat tool is AIOlog found here, contains versions for Windows, Linux and MacOS's by 32 and 64 bit systems.

Here's a neat tool for you windows users, an AIO Logcat manager. Grab it, and view the orignal thread here

Another for you windows users, Easy Logcat Maker is an executable GUI that looks pretty neat.

Another cool logging tool is here created by the genius behind VTS!

A new Windows tool by [MENTION=4507027]FuzzyMeep Two[/MENTION], the aptly named Logcat Tool will parse your logcat to show you how many of each entry your logs contain, and then it organizes your logs into separate files based on the type of entry (Warning, Error, Verbose, etc...), and more! This could easily become my favorite desktop method of grabbing logs.

Misc. Apps and Tools​

For those of you using linux there is a neat tool that color codes your logcat output to make it easier to read. You can find it here

Not a logcat app, per se, but a pretty entertaining and live logcat boot animation courtesy of @Chainfire can be found here. Download it and see your device boot in real time!

There are a lot more apps available than what I've covered here. These are simply the most widely known (possibly with the exception of getlogs) and widely used/recommended. If you find or make any more of these apps, please feel free to post the link here and share with the community!

PLEASE NOTE THAT IT IS AGAINST XDA RULES TO LINK TO PAID APPS, SO DO NOT LINK TO PAID SERVICES OR THE POST WILL BE REPORTED AND LIKELY REMOVED

Reference Links:

Googles Logcat Help Pages

How to get useful logs by tonyp

Guide to logcats provided by Deadly

Color Coding Your Logcat World

Please be sure to thank the developers of these fantastic tools for their time and efforts!​
[XDA-University] Shadow_God:
I almost did a no-no, I almost quoted the OP :eek:

Nice Job....adding it in my OP....Thanks
[XDA-University] Stryke_the_Orc:
LOL, Thanks bro :D
[XDA-University] Stryke_the_Orc:
Oh man, I just noticed tapatalk doesn't hide the content:screwy:

I sincerely apologize to anyone on the app:o

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] brikzpapi:
For some reason every time I try to run a logcat I get this
[XDA-University] CNexus:
Huh. And I thought that was just me :confused:
[XDA-University] DEF3NDER:
Great info. Well done, and thank you very much for sharing :thumbup:
[XDA-University] Deadly:
@ stryke_the_orc. Great job.. will add this to useful thread links in my guide..

Btw.. you have code tags inside hide.. so it doesn't appear hidden in app.. try putting code outside of hide or something.. usually indent or code tags inside hide makes hide not to work on app..

______________________________________

Anyone who doesn't think there are two sides to an argument is probably in one.
[XDA-University] Stryke_the_Orc:
Thanks, I couldn't figure out why the tags didn't work on app :)

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] bilgerryan:
What are you doing in here? Lol. What's up?
[XDA-University] Anurag pandey:
I guess you'll have to add that they must install their device specific drivers(it needs to be done with my device) else adb doesn't detects the device
[XDA-University] Stryke_the_Orc:
Op updated, thank you:thumbup:

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] bilgerryan:
True, my brother's computer wouldn't even pick up my sd without them
[XDA-University] Stryke_the_Orc:
Updated OP to include how to get logcat in bootloop.:good:

Edit - Also included a link to another great guide on logcats, please be sure to thank Deadly:thumbup::beer::D
[XDA-University] MoHoGalore:
Very nice write up! :beer:
[XDA-University] Stryke_the_Orc:
Should I ask about getting this stickied? What do you guys think?

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] MoHoGalore:
+1

Sent from my SPH-L720 using Xparent Skyblue Tapatalk 2
[XDA-University] desalesouche:
hi sir and happy xmas.

i had great progress with the camera...fixed video record etc...front cam ok ...

but still videorcord are not saved on sd....

i am thinking that problems are related to media-codec.xml or media-profile.xml...

here is logcat if you can help ?

http://pastebin.com/xkUMC8ZC
[XDA-University] Stryke_the_Orc:
Both of those are possibilities, however I'm not too familiar with camera porting. I can see if perhaps [MENTION=4310299]bilgerryan[/MENTION] would be willing to take a look, he's brought over many cameras from various devices and may have encountered this before.

The only real errors I'm seeing that are obviously related are these:

E/CAM_VideoModule( 2141): stop fail
E/CAM_VideoModule( 2141): java.lang.RuntimeException: stop failed.
E/CAM_VideoModule( 2141):	at android.media.MediaRecorder.stop(Native Method)
E/CAM_VideoModule( 2141):	at com.android.camera.VideoModule.stopVideoRecording(VideoModule.java:1281)
E/CAM_VideoModule( 2141):	at com.android.camera.VideoModule.onStopVideoRecording(VideoModule.java:491)
E/CAM_VideoModule( 2141):	at com.android.camera.VideoModule.onShutterButtonClick(VideoModule.java:530)
E/CAM_VideoModule( 2141):	at com.android.camera.ShutterButton.performClick(ShutterButton.java:126)
E/CAM_VideoModule( 2141):	at android.view.View$PerformClick.run(View.java:18429)
E/CAM_VideoModule( 2141):	at android.os.Handler.handleCallback(Handler.java:733)
E/CAM_VideoModule( 2141):	at android.os.Handler.dispatchMessage(Handler.java:95)
E/CAM_VideoModule( 2141):	at android.os.Looper.loop(Looper.java:136)
E/CAM_VideoModule( 2141):	at android.app.ActivityThread.main(ActivityThread.java:5081)
E/CAM_VideoModule( 2141):	at java.lang.reflect.Method.invokeNative(Native Method)
E/CAM_VideoModule( 2141):	at java.lang.reflect.Method.invoke(Method.java:515)
E/CAM_VideoModule( 2141):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
E/CAM_VideoModule( 2141):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/CAM_VideoModule( 2141):	at dalvik.system.NativeStart.main(Native Method)
V/CAM_VideoModule( 2141): Deleting video /storage/sdcard1/DCIM/Camera/VID_20131225_110900.mp4.tmp

I'm not sure why the video would be automatically deleted when the stop function fails, but this may be the issue. For all we know, it is saving them but then deleting the video before you can view it.

Sorry I couldn't be of more help with this particular problem:(
[XDA-University] artur0588:
Launcher FC

Hi,

Can you help me find issue for my launcher FC

It's FC when i move icons and widgets on homescreen.

http://www.androidfilehost.com/?fid=23269279319199417

EDIT: I did it finaly, edit some smali methods and it's working.
[XDA-University] Stryke_the_Orc:
Updated post #3 to include more logcat apps. If you guys come across any more drop links in this thread and mention me so I can revise the list.

Thanks :good:
[XDA-University] Möhrchen84:
Thx!
[XDA-University] Stryke_the_Orc:
OP updated
[XDA-University] Vivek_Neel:
This thread saved my life.

How easy is to debug..:good:

Thank you so much.
[XDA-University] desalesouche:
may i ask here about possible fix?

i need some help to fix compilation kernel.

here is the error i have=

/home/desalesouche/cm11acte6/kernel/huawei/honor/arch/arm/mach-msm/board-msm7x30.c:6616:5: warning: braces around scalar initializer [enabled by default]

error, forbidden warning: board-msm7x30.c:6616

make[3]: *** [arch/arm/mach-msm/board-msm7x30.o] Error 1

make[2]: *** [arch/arm/mach-msm] Error 2

make[2]: *** Waiting for unfinished jobs....

and here is the related file...i pointed the line with error....

http://pastebin.com/rPNdRQ3y

thank you vey much ...
[XDA-University] Vivek_Neel:
I think you have to remove wall reference from make file and then repo sync.

. build/envsetup.sh

Brunch codename
[XDA-University] khan_frd2002:
[MENTION=3053298]Stryke_the_Orc[/MENTION].....Brother Thank you Very Much :good: Because of you i Able to fix some error but one error i cant fix ( i didn't understand )

can you please Take A Look :)

W/InterfaceController( 8875): Warning (Cannot load library: load_library[1109]: Library '/system/lib/libnetcmdiface.so' not found) while opening the net interface command library
[XDA-University] Stryke_the_Orc:
You're missing that library file, you'll need to add it to your rom to fix that error. Go back and grab it from a stock rom or your source code.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] khan_frd2002:
Bro thats the main problem....both base and port dont have this lib...

But i google and add it still same error...,,
[XDA-University] Stryke_the_Orc:
What are you porting? You may need to write in the support.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] khan_frd2002:
i m porting mediatek rom to other mediatek phone.....i ported some other roms successful but different UI one like xperia and lenovo give error like this...

both are too mediatek roms
[XDA-University] Stryke_the_Orc:
Your device may have it stock, It looks like it's kernel related from what I can find via google here and the source for the lib looks like it's here.

I don't know if that link to git is device specific or not. What is your device? Model and manufacturer please.
[XDA-University] desalesouche:
hi all. so i cold get some improvement again to the camera.

videorecord are now saved on sd.. i just replaced some libs .

but videorecord in 720P and 480P can't be read.

here is the logcat...

thank you for help or device.

http://pastebin.com/hSgxFvBY
[XDA-University] Stryke_the_Orc:
Look inside the camera apk's smali code and find where the "getdimension" methods are. You can use fileseek or beyond compare to search the files, I believe they both have free trials.
[XDA-University] khan_frd2002:
My device is Micromax A110 MT6577 (Dual Core) and I Am Porting Xperia C Rom Which Is MT6589 (Quad Core)

I Have My Device Kernel Source i Search in that but didn't find that file (InterfaceController.cpp) you mention

Some Other MT6589 Rom Can be Ported Easily But This One Make Me Sick :silly:
[XDA-University] Stryke_the_Orc:
Running several searches I see that Micromax never released source for the device, where did you get it? I'll need to see the source.

Also searching github for the interfacecontroller.cpp and libnetcmdiface.so turned up nothing for either device, so you may need to build it for your device from the google source I linked earlier.
[XDA-University] khan_frd2002:
we have only kernel source not full source.....

here

https://github.com/varunchitre15/thunderzap_canvas2_jb

and here

https://github.com/ajaybhatia/canvas2
[XDA-University] Stryke_the_Orc:
That's a bummer, I don't believe libs are kernel based. I'll keep looking around, but I can't promise anything.
[XDA-University] desalesouche:
hi sir, hope you're ok.

i need one more time your help to finish to fix the camera...

the only bug left is that 720P and 480P videorecord are savec on sd but they are shwoed black in gallery and can't be playback...

if you have any advice, thank you.

http://pastebin.com/qMKqYxHi

regards
[XDA-University] Stryke_the_Orc:
I believe your error is this:

E/MetadataRetrieverClient( 1413): failed to capture a video frame
E/MediaMetadataRetrieverJNI( 1334): getFrameAtTime: [COLOR="Red"]videoFrame is a NULL pointer[/COLOR]
W/MediaThumbRequest( 1334): Can't create mini thumbnail for /storage/sdcard1/DCIM/Camera/VID_20140118_021113.mp4

You need to define the pointer. This is slightly beyond my capabilities to walk you through how to do it, but perhaps [MENTION=3065070]Goldie[/MENTION] may be able to help? He definitely has a much better grasp on smali editing than I do lol.
[XDA-University] Robbie P:
I just found another app for grabbing logs AIOlog, not to be confused with AIO Logcat Manager already linked in OP. It has less functions but is available for windows, linux and mac OSes. I have only just tried the windows version and it seems to work ok.
[XDA-University] Stryke_the_Orc:
Thanks, will add it as soon as I can:thumbup:

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] Stryke_the_Orc:
Post #3 updated and separated into mobile vs PC applications.:good:
[XDA-University] Robbie P:
I noticed there are 3 "neat" PC applications and only one "cool" one:p:D

Edit; oh and a neat linux one too;)
[XDA-University] Stryke_the_Orc:
Lol, copy/paste... I'll get it fixed:p

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] khan_frd2002:
Hi Bro......Bro Can you see this Fatal Error

F/SystemServer(3868): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
F/SystemServer(3868): BOOT FAILURE starting Audio Service
F/SystemServer(3868): android.view.InflateException: Binary XML file line #7: Error inflating class <unknown>
F/SystemServer(3868): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
F/SystemServer(3868): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
F/SystemServer(3868): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
F/SystemServer(3868): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
F/SystemServer(3868): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
F/SystemServer(3868): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
F/SystemServer(3868): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
F/SystemServer(3868): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
F/SystemServer(3868): at android.view.VolumePanel.<init>(VolumePanel.java:265)
F/SystemServer(3868): at android.media.AudioService.<init>(AudioService.java:497)
F/SystemServer(3868): at com.android.server.ServerThread.run(SystemServer.java:783)
F/SystemServer(3868): Caused by: java.lang.reflect.InvocationTargetException
F/SystemServer(3868): at java.lang.reflect.Constructor.constructNative(Native Method)
F/SystemServer(3868): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
F/SystemServer(3868): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
F/SystemServer(3868): ... 11 more
F/SystemServer(3868): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x3020075
F/SystemServer(3868): at android.content.res.Resources.getValue(Resources.java:1519)
F/SystemServer(3868): at android.content.res.Resources.getDrawable(Resources.java:1158)
F/SystemServer(3868): at android.view.View.<init>(View.java:3371)
F/SystemServer(3868): at android.widget.ImageView.<init>(ImageView.java:114)
F/SystemServer(3868): at android.widget.ImageView.<init>(ImageView.java:110)
F/SystemServer(3868): ... 14 more

i know its pointing to smali...is there anyway to fix it without touching smali :p
[XDA-University] Powerhouse:
Maybe it's not able to find some resource files ..Not sure though
[XDA-University] Goldie:
Exactly that. ID 0x3020075. Need to find what that is/should be
[XDA-University] Powerhouse:
He surely messed with smali's ... lets stay away from smali :p ..xD .

Anyway great guide [MENTION=3053298]Stryke_the_Orc[/MENTION] :thumbup:
[XDA-University] Goldie:
Smali doesn't need to be scary! It's only changing 5 digits! :p
[XDA-University] Stryke_the_Orc:
Exactly this. If I had stayed away from smali code, I never would have figured this stuff out to write this guide lol.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] desalesouche:
adreno

hi all .may i ask some help about adreno problem?

http://dl.xda-developers.com/attach.../7/5/0/7/8/uploadfromtaptalk1392210786346.jpg

thank you...
[XDA-University] Stryke_the_Orc:
The link is dead.
[XDA-University] desalesouche:
sorry for that...i could fix the problem anyways.thank you
[XDA-University] Stryke_the_Orc:
No class definition found for android/os/UserManager

It's calling a class that doesn't exist and it needs.
[XDA-University] abo hani:
Sorry for asking noob questions

But how to define this class ?
[XDA-University] Stryke_the_Orc:
What version are you running in the acros? In order to define that class you need the methods and support files associated with it. Meaning you'll need to either code it in or port all files associated with the settings.apk
[XDA-University] abo hani:
The ported Settings is from 4.3 JB

Im running Honami Style V4 Addons

Jb 4.1.2 ROM with ZU 4.2.2 framework
[XDA-University] Goldie:
You need to add the usermanager from 4.3 framework but I guess it will be linked to all sorts of stuff in .os so wont just be that one file
[XDA-University] abo hani:
Maybe it needs SemcSettings.apk ? I see settings wont work without it
[XDA-University] Stryke_the_Orc:
Yes as well as others.
[XDA-University] Goldie:
Why exactly are you putting the whole settings apk in the first place? What are you trying to achieve?
[XDA-University] M7ammad.eb:
I don't know if this is the right place to ask this but this annoying me since a while !!!

I have this problem

03-01 20:05:27.573 E/MM_OSAL (233): Reading first valid sampleInfo. SampleId=23430632

this line is shown in my log about hundred time per second !!! changing sampleId !!!!

I just want to know can I know where is this problem came from !!!
[XDA-University] Stryke_the_Orc:
I'd need more of the surrounding log to see what is going on.
[XDA-University] M7ammad.eb:
I'm using Xperia Arc S (anzu) running on 4.4.2 AOSP based ROM with legacyxperia kernel ...

-EDIT-

thanks.. it seems it caused by the app "catlog" .. it's only appear when open the app !!
[XDA-University] abo hani:
HonamibSettings

Because all themes Honami based settings are bugged :|
[XDA-University] abo hani:
Not working for SemcSettings :| Never mind i themed the original settings :P

And now im trying to port Sketch App

And its working expect one problem and its the text (write in the image feature)

E/AndroidRuntime( 6288): FATAL EXCEPTION: main

E/AndroidRuntime( 6288): java.lang.NoSuchMethodError: Landroid/app/AlertDialog$B

uilder;.setOnDismissListener

E/AndroidRuntime( 6288): at com.sonymobile.sketch.model.TextLayer.showInp

utDialog(TextLayer.java:689)

E/AndroidRuntime( 6288): at com.sonymobile.sketch.model.TextLayer.<init>(

TextLayer.java:273)

E/AndroidRuntime( 6288): at com.sonymobile.sketch.SketchEditorFragment$5.

onClicked(SketchEditorFragment.java:736)

E/AndroidRuntime( 6288): at com.sonymobile.sketch.tools.TextTool.onAction

ViewClick(TextTool.java:67)

E/AndroidRuntime( 6288): at com.sonymobile.sketch.tools.Tool$1.onClick(To

ol.java:74)

E/AndroidRuntime( 6288): at android.view.View.performClick(View.java:4147

)

E/AndroidRuntime( 6288): at android.view.View$PerformClick.run(View.java:

17161)

E/AndroidRuntime( 6288): at android.os.Handler.handleCallback(Handler.jav

a:615)

E/AndroidRuntime( 6288): at android.os.Handler.dispatchMessage(Handler.ja

va:92)

E/AndroidRuntime( 6288): at android.os.Looper.loop(Looper.java:213)

E/AndroidRuntime( 6288): at android.app.ActivityThread.main(ActivityThrea

d.java:4787)

E/AndroidRuntime( 6288): at java.lang.reflect.Method.invokeNative(Native

Method)

E/AndroidRuntime( 6288): at java.lang.reflect.Method.invoke(Method.java:5

11)

E/AndroidRuntime( 6288): at com.android.internal.os.ZygoteInit$MethodAndA

rgsCaller.run(ZygoteInit.java:789)

E/AndroidRuntime( 6288): at com.android.internal.os.ZygoteInit.main(Zygot

eInit.java:556)

E/AndroidRuntime( 6288): at dalvik.system.NativeStart.main(Native Method)

W/ActivityManager( 524): Force finishing activity com.sonymobile.sketch/.Sket

chEditorActivity

I/CrashMonitor( 6270): CrashMonitorServiceBroadcastReceiver: Forwarding intent:

android.intent.action.DROPBOX_ENTRY_ADDED tag: system_app_crash

I/CrashMonitor( 6270): CrashMonitorService: Service started...

I/CrashMonitor( 6270): CrashMonitorService: onHandleIntent action: android.inten

t.action.DROPBOX_ENTRY_ADDED

I searched in the com.sonymobile.sketch.SketchEditorFragment$5.smali

but didnt know what to do :P
[XDA-University] Stryke_the_Orc:
The red is your error at the moment. If you add this method it should resolve some of the other issues, but beware... fixing one issue usually presents another. Isn't debugging fun? ;)
[XDA-University] abo hani:
Debugging will be my death reason :|

BTW ... add it in framework.jar right ?
[XDA-University] Stryke_the_Orc:
If that's where the directory path is, yes. Without actually having the ROM decompiled in front of me, I can't tell you for sure.