Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,901 Members 54,287 Now Online
XDA Developers Android and Mobile Development Forum

Fixing Logcat / Catlog on Jelly Beans [JB] ROMS

Tip us?
 
rtk217
Old
(Last edited by rtk217; 18th September 2012 at 03:18 PM.)
#1  
Member - OP
Thanks Meter 57
Posts: 66
Join Date: Dec 2011
Default Fixing Logcat / Catlog on Jelly Beans [JB] ROMS

so as you may noticed catlog /logcat/ alogcat and such are not working properly or at all.
that is because google added a new permission request from apps which they don't usually request.

but alas, there is fix, if you're working with one of the latest versions of JB (quarx or epsylon3 it doesn't matter) you can fix it by simply by following the next steps:
1. make sure your'e phone is rooted and has superuser or any other permission manager app (superuser zip flashable can be downloaded here)

2. enter the app drawer and enter the "terminal emulator"

3. gain root permissions by typing :
$su

wait for the notification about permission allow/deny, and allow it.

4. now you give permission to the program you want by writing the following line:
pm grant [programs name] android.permission.READ_LOGS

(the upper case /lower case is important)

I.E for catlog you should type:
Code:
su
pm grant com.nolanlawson.logcat android.permission.READ_LOGS

now your logging app should work fine, enjoy!
Fix Logcat/Catlog on JB
Unbrick your DEFY step by step

Defy Bayer, 32GB Sandisk class 4
The Following 29 Users Say Thank You to rtk217 For This Useful Post: [ Click to Expand ]
 
Redhotero
Old
#2  
Redhotero's Avatar
Member
Thanks Meter 7
Posts: 58
Join Date: Apr 2012
Thanks! ill try it, i need logcat a lot
 
ksrao_iete
Old
#3  
ksrao_iete's Avatar
Member
Thanks Meter 29
Posts: 94
Join Date: Nov 2011
Great It works for me im on JB Quarx 22Aug12
 
rtk217
Old
(Last edited by rtk217; 24th August 2012 at 06:51 PM.)
#4  
Member - OP
Thanks Meter 57
Posts: 66
Join Date: Dec 2011
Quote:
Originally Posted by ksrao_iete View Post
Great It works for me im on JB Quarx 22Aug12
Good. if i helped please press the thank you button.
also moderators if you can see this, you'd might want to add this to the wiki or something.
Fix Logcat/Catlog on JB
Unbrick your DEFY step by step

Defy Bayer, 32GB Sandisk class 4
The Following 2 Users Say Thank You to rtk217 For This Useful Post: [ Click to Expand ]
 
WhammyDroid
Old
#5  
Senior Member
Thanks Meter 29
Posts: 452
Join Date: Jun 2010
Works on CM10 for S3.
 
neyenlives
Old
#6  
Senior Member
Thanks Meter 480
Posts: 2,375
Join Date: Oct 2010
Hrm.

Sent from my SCH-I535 using Tapatalk 2
The Following User Says Thank You to neyenlives For This Useful Post: [ Click to Expand ]
 
alienhead13
Old
(Last edited by alienhead13; 18th September 2012 at 05:36 PM.)
#7  
Junior Member
Thanks Meter 3
Posts: 3
Join Date: Mar 2011
It worked! Thanks a lot. For alogcat it's
Code:
su
pm grant org.jtb.alogcat android.permission.READ_LOGS
The Following 3 Users Say Thank You to alienhead13 For This Useful Post: [ Click to Expand ]
 
shag_on_e
Old
#8  
shag_on_e's Avatar
Senior Member
Thanks Meter 185
Posts: 655
Join Date: Sep 2011
Here's a way to make all log reader apps work instead of going one by one:

su: "chmod 04755 /system/bin/logcat"

or open root explorer, navigate /system/bin/logcat, long press logcat and select "permissions", then check the box "Set UID".

Both ways require a reboot after!


Hope this helps, thanks to ChainsDD for this!
The Following 6 Users Say Thank You to shag_on_e For This Useful Post: [ Click to Expand ]
 
MrBC
Old
#9  
MrBC's Avatar
Senior Member
Thanks Meter 151
Posts: 508
Join Date: Nov 2011
Location: Lisburn
Working on LC's Ice Cold Jelly on the One X.

Thanks so much for this

Sent from my HTC One X using xda premium
-nothing to see, move along
 
TiagoRodrigues
Old
#10  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Aug 2012
Thanks, really thanks.

I use aLogcat and the code that I used was
Code:
pm grant org.jtb.alogcat android.permission.READ_LOGS
You can find your logger program accessing with any root explorer the folder "data>data" and look for the name of the folder that contains the name of your app within. I looked for it because I'm not using the same app that you used, so I opened the "Root Explorer>Search" and searched for "logcat". So I found the folder "Data>data" and tried using the name of the folder that was "org.jtb.alogcat" and worked.

Thanks very much, nice job.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes