[Moto G Q&A, Help & Troubleshooting] hhp_211:
[SIZE=+3]

Please provide ► exact Version and Date ◄ of ROM

Please provide ► exact Version and Date ◄ of Recovery

Please provide ► exact Version and Date ◄ of Kernel

[/SIZE]​

Repost:::

[SIZE="+2"]How to report bugs, the proper way ![/SIZE]

http://therealmofu.com/wp/?p=644

Credit:: by TheRealMofu

Credits:

Indirect for his guide

FuzzyMeep Two for his Windows Logcat Tool

[SIZE="+2"]

Connecting your device through adb on Windows/Ubuntu:[/SIZE]​

▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼

[SIZE="+1"]Windows:[/SIZE]

On your PC you need to be logged in as an administrator for doin this and make sure that you activated “USB Debugging” in Settings/Developer Options on your phone !!!

Connect your phone with the USB cable to the PC and select MTP mode

Open the Windows command prompt, which you also can open through pressing Win + R on your keyboard

Now type:

cmd

Now change into the folder you installed adb, for example:

cd c:\adb

Now were we are in the correct folder, type:

adb

Now you see a lot of commands appering, and when done, type:

adb devices

and your phone (Device-ID) should be listed in there, that’s it :)

[SIZE="+1"]Ubuntu:[/SIZE]

Make sure that you activated “USB Debugging” in Settings/Developer Options on your phone !!!

Connect your phone with the USB cable to the PC and select MTP mode

In terminal type:

cd (TOOLS_PATH)/android-tools

Then issue the following:

./adb devices

That’s it

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------​

[SIZE="+2"]These are the options for reporting a bug:[/SIZE]​

▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼

[SIZE="+1"]Section 1 | Logcat:[/SIZE]

This log should almost always be included just because it provides more info than just saying something doesn’t work. It will essentially tell you which apps are crashing and why and it also gives output of what they’re doing. (Your system is running through apps, the dialer, wireless radio’s, etc are all ran through apps.) so, if something is general, like a system force close, please just include a logcat.

How to get a logcat:

Well, this is REALLY simple, all you need to do is just get adb up and running (google how to do that, I don’t feel like writing a ‘how to use adb’ tutorial for everyone’s phone.) and then type

adb logcat

then you just right click, select, and paste to

http://pastebin.com/

http://logcat.us/

http://paste.ubuntu.com/

and provide the link in the thread/post.

It’s really that simple!

For Windows users i found an self explaining noob friendly program called Windows Logcat tool 4.0

[SIZE="+1"]Section 2 | Dmesg:[/SIZE]

This is getting into issues such as wifi not working, sleep of death, etc. Basically, things that make us go “OH F***” when we use our devices. Note: You will need adb access for this to work, same as logcat.

What this will do is get us live kernel output so we can know things like “What driver is the kernel loading {or not loading for that matter}” and similar things. This is linux, so kernel output is important if a hardware aspect isn’t working right.

How to get a dmesg:

This is simple as well, no matter what operating system you’re on (mac, windows, linux) just type

adb shell dmesg > dmesg.txt

and then it will have written the output to a .txt file in your current directory. Either paste the contents to the thread, or attach it to your post.

You can also get the dmesg by using terminal emulator. Instead though, you dont type adb shell, you need to also include it to somewhere you will be able to save it. Like /sdcard so, the command goes

dmesg > /sdcard/dmesg.txt

Just get it off your sdcard and get the contents to the developer!

[SIZE="+1"]Section 3 | last_kmsg:[/SIZE]

Ok, the last thing is last_kmsg. When android kernels crash, they right to last_kmsg so then you can find out what’s going on. This is usually for issues such as random reboots and other various kernel panic symptoms. A kernel panic happens when the kernel tries to do something it can’t. It doesn’t mean wrong permissions, it could just have errored out on something and died which can cause a few things. Anyway, developers REALLY need this if debugging a kernel because it gives us a viable way to see WHAT it’s trying to do instead of trying to guess what it is trying to do

How to get a last_kmsg:

This is super simple and the same on all phones no matter what, what you need is adb up and running (or terminal emulator) and either in adb shell, or terminal emulator just type

cat /proc/last_kmsg > /sdcard/last_kmsg.txt

or you can do

adb shell cat /proc/last_kmsg > kmsg.txt

and that will write it to your current working directory from cmd.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------​

[SIZE="+2"]Here is another great instruction tutorial link:[/SIZE]

[SIZE="+2"][WIN][TUTORIAL]HOW TO USE ADB,DDMS AND TAKE A LOGCAT {pictorial explanation} [/SIZE]

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------​