I am using the app AIDE to develop directly on my devices, without using eclipse or an external machine.
I am getting conflicting logcat outputs on my two devices, one a Galaxy Nexus, the other a Nexus 7. Both are on Jellybean, both are running the same version of the IDE app and both are using the same source code I’m writing.
On my phone I see all the log commands from my app, and on the tablet, none of them.
I have also tried building test hello world apps that come with the IDE app, then adding logging to it. Again, the phone works, the tablet doesn’t.
I have a;so checked the settings on the devices under developer, and both have the same including USB debugging on.
Finally, in the app itself, I have tried both having android:debuggable=”true” in the manifest, and not having it. It always works on themphone, never on the tablet.
UPDATE
After doing a search on jellybean logs not just android ones, it would appear that android/google has turned off seeing logs on 3rd party apps. You can now only see system logs or logs from the app that you’re using I.e. you can’t use one app to see another apps logs.
I’m still a bit confused as both my devices are on jellybean, as I mentioned, and one can see all logs, the other can’t. However….the kernel’s are different. The tablet is 3.1, the phone 3.0.31.
I believe the log change must have come between these versions.
So now I’m left thinking I’m going to have to root to be able to see logs, or only debug when I have my laptop to hand which isn’t often.
Now if anyone knows how to root either a galaxy nexus or nexus 7 without wiping the data……
Jelly Bean no longer allows newly-installed apps to view arbitrary messages in LogCat. More specifically, newly-installed apps can no longer hold the
READ_LOGSpermission. If you had installed AIDE on the phone prior to it getting the upgrade to Jelly Bean, that would explain the symptoms that you are seeing.However, you do not need to root a phone to view logging data. Logging to LogCat is a convenience mechanism. You are welcome to log someplace else (e.g., external storage), using standard Java logging stuff (e.g.,
java.util.logging), so that you can view your logs.