How to enable Logcat logs using the Android Studio ? - Xiaomi Redmi Note 4 Questions & Answers

I have been trying to capture logcat logs/device logs using the 'Android Studio' on my Win 7 ... but I always see empty screen. When I try to so the same with any other device I can see all the traces.... What I am doing wrong ??? Can anyone help me please?

Related

Can't start logcat!!!

I need logcat in adb to be able to get logfiles while testing android app on my P500!!! But when i enter in cmd:"adb.exe logcat > somefile.log"
it doesn't do anything and only creates somefile.log file that says:
Unable to open log device '/dev/log/main': No such file or directory
What is the problem? I am using PerfectPeso2.2!
i have confirmed that device is connected to PC when i type adb devices, i get serial number of my device so don't know whats the problem... got debbuging mode on, and in sdk manager downloaded all under the column "tools" and "extras"}
help please!!!
Echelonex said:
I need logcat in adb to be able to get logfiles while testing android app on my P500!!! But when i enter in cmd:"adb.exe logcat > somefile.log"
it doesn't do anything and only creates somefile.log file that says:
Unable to open log device '/dev/log/main': No such file or directory
What is the problem? I am using PerfectPeso2.2!
i have confirmed that device is connected to PC when i type adb devices, i get serial number of my device so don't know whats the problem... got debbuging mode on, and in sdk manager downloaded all under the column "tools" and "extras"}
help please!!!
Click to expand...
Click to collapse
In folder android-sdk / platform-tools / u can find ddms so run it..if u will see your connected device everything is OK and u will see after that logcat..if not your sdk instalation si corrupted or wrong..
mastershefis said:
In folder android-sdk / platform-tools / u can find ddms so run it..if u will see your connected device everything is OK and u will see after that logcat..if not your sdk instalation si corrupted or wrong..
Click to expand...
Click to collapse
thx tried that, but in that window in text column it still says that message...!?
"Unable to open log device '/dev/log/main': No such file or directory"
i read somewhere it it due to kernel logging disabled...:/ How to make enabled...?
You would need to either recompile the kernel to enable logging or install another kernel if the problem is that it isn't enabled in the kernel.
Sent from my LG-P500 using xda premium

[Q]Start logcat via init.d script?

Here's the sit: A very good developer is trying to blind port a JB ROM to his sister device which happens to be my device. There's some issues and he needs a logcat starting as early as possible. I tried to run logcat from terminal emulator but it didn't output a log to the directory I specified. In the logcat tutorial thread it says to end logcat by pressing control+c; obviously that's not possible on the phone itself. So, is it even possible for a shell script to start logcat, end it via terminal emulator and the log then created?
Sent from my LG-P999 using xda premium
Волк said:
Here's the sit: A very good developer is trying to blind port a JB ROM to his sister device which happens to be my device. There's some issues and he needs a logcat starting as early as possible. I tried to run logcat from terminal emulator but it didn't output a log to the directory I specified. In the logcat tutorial thread it says to end logcat by pressing control+c; obviously that's not possible on the phone itself. So, is it even possible for a shell script to start logcat, end it via terminal emulator and the log then created?
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
Download and install the android SDK
Then in terminal or cmd prompt type
Adb logcat
Sent from my HTC PH39100 using Tapatalk 2

how to take logcat

i am using ddms in android sdk to take logcat but i cant take logcat while booting the phone
use google

[Q] logcat error?

Code:
c:\logcat>adb logcat > logcat.txt
- waiting for device -
error: protocol fault (no status)
- waiting for device -
c:\logcat>
what does that suppose to mean? i need logcat for my miui port and i get this message.
the logcat.txt is saved in logcat folder
butr the file is blank.
Do adb devices and see if it can actually see your phone.
Sent from my HTC6435LVW using xda app-developers app
no it doesnt not while booting. does how ever see phone in recovery fastboot and adb sideload strange
well nevermind i lost all adb functions im dead in the water.
wheres that adb.ro.sercure=0 maybe thats the issue

adb pull error in MIUI Theme editor

Hi !
I have a little issue using MIUI Theme editor, I don't know if i need to post this somewhere else or not, sorry.
When i'm connecting my Pocophone to my PC it's recognised, adb works well but when i want to sync modules in the editor i have the error "Yikes, adb pull error".
Someone here has a solution ?
Thank you !

Categories

Resources