yashsingh1/xdaforums huggingface dataset:
[XDA-University] Nasheich Xfiles:
Thank you for all your help

Last night I did a little experience, I filter/separate all libs by group A to Z, so all libs with "A" after lib word(like libAndroid.so, libArt.so) will in folder "A", and I did the same things on lib B, C until Z

And now GPS works, but I'm still didn't know which libs that make GPS works, there is no "GPS" words in any libs(except in system/lib/hw)

edit :

check on pictures to easier understanding what I wrote

Sample Folder lib A
[XDA-University] lacoursiere18:
Thanks for looking [MENTION=3053298]Stryke_the_Orc[/MENTION].

Seems like a good idea to organize it that way.. you should flash each folder one by one and then you could narrow it down that way..

And if you do let me know as well.. always trying to learn..:rolleyes:
[XDA-University] Nasheich Xfiles:
l

Yes, cause I believe almost all the problems is on libs, so I did like that, took more time, but it works to fix issues,

If I got bootloop after flashing, I just flash the "Port Rom Lib".

I mean, I made 2 Folder A,

1. from base rom (to fix issues)

2. from rom port (to fix bootloop if lib from base rom didn't works)

Then, i filter/separate again folder A, if in the folder A there are 8 libs, I make 2 folder A, which called, A1 & A2, each folder have 4 libs...

Still bootloop ?

I filter again until I find which libs causing bootloop...

I did on all folder lib A-Z, that's was just sample,

Sorry for my bad language, I'm Indonesian.. :)
[XDA-University] Nwwolf1:
Hi guys, so I was told to post my Logcat here. I've never recorded one so I don't even know if I've done this right. But any time I try to run a KitKat ROM on my Verizon Galaxy s4 (CM, AOKP, SlimKat, Omni, etc, etc.) my wifi ALWAYS causes Screen of Death. This is exactly what will happen: whenever my wifi is on and my screen times out or I sleep the screen it won't turn back on, no matter how many times I press the power or home button. The only way to get the phone back on is to do a battery pull. I've tried different ROMs, kernels, uninstalling certain apps, etc. I know it's Wifi. So if someone could read this logcat and help me in any way I'd be greatly appreciative.
[XDA-University] a2441918:
Built Dirty Unicorn from source but camera doesnt work. Here is the logcat.

http://pastebin.com/7HRCjjfz

Kindly some one help me out.
[XDA-University] Vivek_Neel:
Check this out mate.

It fails to load a module it's looking for.

So that's y the camera crashes.

06-09 09:44:37.516 E/memtrack( 9758): Couldn't load memtrack module (No such file or directory)
[XDA-University] Gokul HAri:
Very Helpful

Thank u .. Very helpful guide
[XDA-University] Slimegod:
Strykes been real busy, anyone know how to read a log and can help me.
[XDA-University] abo hani:
E/AndroidRuntime( 6086): FATAL EXCEPTION: main

E/AndroidRuntime( 6086): java.lang.RuntimeException: Unable to instantiate appli

cation com.sonymobile.home.HomeApplication: java.lang.ClassNotFoundException: co

m.sonymobile.home.HomeApplication

E/AndroidRuntime( 6086): at android.app.LoadedApk.makeApplication(LoadedA

pk.java:501)

E/AndroidRuntime( 6086): at android.app.ActivityThread.handleBindApplicat

ion(ActivityThread.java:4166)

E/AndroidRuntime( 6086): at android.app.ActivityThread.access$1300(Activi

tyThread.java:138)

E/AndroidRuntime( 6086): at android.app.ActivityThread$H.handleMessage(Ac

tivityThread.java:1267)

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

va:99)

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

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

d.java:4787)

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

Method)

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

11)

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

rgsCaller.run(ZygoteInit.java:789)

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

eInit.java:556)

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

E/AndroidRuntime( 6086): Caused by: java.lang.ClassNotFoundException: com.sonymo

bile.home.HomeApplication

E/AndroidRuntime( 6086): at dalvik.system.BaseDexClassLoader.findClass(Ba

seDexClassLoader.java:61)

E/AndroidRuntime( 6086): at java.lang.ClassLoader.loadClass(ClassLoader.j

ava:501)

E/AndroidRuntime( 6086): at java.lang.ClassLoader.loadClass(ClassLoader.j

ava:461)

E/AndroidRuntime( 6086): at android.app.Instrumentation.newApplication(In

strumentation.java:967)

E/AndroidRuntime( 6086): at android.app.LoadedApk.makeApplication(LoadedA

pk.java:496)

E/AndroidRuntime( 6086): ... 11 more

W/ActivityManager( 504): Force finishing activity com.sonyericsson.home/com.s

onymobile.home.HomeActivity

Hello , sorry for being so late , here is the full log for my Home FC ( Ported from 4.3 Xperia Z1 ) .

I only have this error , and Home will work :D ( it must ) .

So , i didnt know what the lost class , can you help me ?
[XDA-University] Deadly:
even though this should be stickied.. but IMO this thread should be asked to move to Android general or xda university. As this covers more section than just a single phone.. and it will help more users if its kept in such sub forum.
[XDA-University] Stryke_the_Orc:
Ooh, I like that idea better lol

Yeah, what he said :P

Duplicate the thread or just move it?

I just went back a reread the rules and nothing says not to, but at the same time, I don't want to clutter the forums;)

Edit- OP Updated and Organized a bit :D
[XDA-University] Deadly:
Move would be better IMO.. you can always link thread in other guides of this forum anyway.. report my post and explain reason.. or if you can't decide on xda university or Android general.. ask mod to decide.. :)
[XDA-University] Stryke_the_Orc:
Yeah, I'll ask them. Thanks Deadly:beer:

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] Stryke_the_Orc:
Will be updating with a few more log tuts, and reference links this weekend:beer:

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] Stryke_the_Orc:
OP updated to include MAC/Linux how to (sorry for the cut/paste there, I'm not remotely familiar with either OS), How to get a demesg log, and reference links to similar threads and Google Developers site:good:
[XDA-University] Stryke_the_Orc:
Updated OP to include logcat apps:beer:
[XDA-University] Stryke_the_Orc:
Updated OP to include a tool for Linux users, this is based on Linux but may be compatible with windows. If anyone tries it, please let me know the outcome:good:
[XDA-University] Shadow_God:
That's awesome bro....:thumbup::thumbup:
[XDA-University] Stryke_the_Orc:
Updated OP to include a new windows tool, the AIO Logcat Manager :highfive::good:
[XDA-University] LuigiBull23:
Love this updated guide!
[XDA-University] jomigp01:
hello, the monitor no detect my device, is a Optimus G, is stays bootloop :( and i need get a logcat.

help plz
[XDA-University] jomigp01:
hey man now if I recognized the device, but do not see the logcat: S
[XDA-University] Stryke_the_Orc:
Make sure that you have usb debugging checked in your device settings. When it is enabled there will be a new button for logcat, press it and you'll see logcat in the lower left corner of your screen, press start and it'll run.

Also, make sure you have the latest tools for sdk:beer:

Edit- after looking at your ss closer you need to select your device where it says system, click on that and try running the logcat again.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] jomigp01:
the problem is that my device stays in bootloop, I made a port a rom but not because it stays in bootloop and for that I need the logcat not?

EDIT: add a screenshot
[XDA-University] Stryke_the_Orc:
To figure out why your ROM won't boot, yes, you'll want a logcat.

If you have a backup of your previous ROM, I'd restore that and make sure you can connect with monitor before trying to reflash your custom ROM. If you don't have a backup, you will probably need to flash back to a working ROM.

You can also make a backup of your ROM that bootloops and use the img files to try to troubleshoot your ROM using the emulator. There is a nice tutorial here on xda on how to do that.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] jomigp01:
I have a backup of rom with boot loop, can you pass me the link of the thread for how to use the rom in the emulator? and thanks for all the help :)
[XDA-University] Stryke_the_Orc:
http://xdaforums.com/showthread.php?t=906161

No problem:D good luck:beer:

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] Vivek_Neel:
Its just showing

"Waiting for device"

After I typed adb logcat > logcat.txt
[XDA-University] Deadly:
Its because the device didn't start booting.. it happens.. log service is not started yet.. so you can't take log at that situation.

______________________________________

Jokes gets more serious thought, than serious words these days:(
[XDA-University] tdunham:
com.sonymobile.home.HomeApplication: java.lang.ClassNotFoundException: com.sonymobile.home.HomeApplication

Homeapplication class is missing from whatever app com.sonymobile.home is.
[XDA-University] abo hani:
com.sonymobile.home = Xperia Z1 4.3 Launcher .

I’m porting it , Downgrade SDK , Fixed 4 Errors and ported SystemUI Theming Engine .

But , For "Homeapplication class" i will find it in Jar ? like Framework.jar ?

==> Homeapplication.xml found in Home/Smali folder .

What to do ? :|
[XDA-University] Stryke_the_Orc:
Edited - missed that it was found.
[XDA-University] abo hani:
Mate , hang on with me please :P

The Class , in Jar files?

Apk’s ?
[XDA-University] Stryke_the_Orc:
typically, you'll find them in apks unless its framework specific. My guess is this one would be in an apk.
[XDA-University] tdunham:
New phone, new development, new problems... :rolleyes:

Anyone happen to know what causes adb to not 'see' the phone until it is pretty much booted up completely? This creates the problem of not being able to capture an early logcat.

On another note, anyone also know how to disable the adb permissions nag that pops up in 4.4.2?

Galaxy S5 SM-900P
[XDA-University] abo hani:
Going to See , Framework-res.apk & SystemUI

And going to search for HomeApplication.smali .

Or Something related .
[XDA-University] youngchaos:
Having a problem with a Miui , the notification stay on HIDE and i cannot find the problem, i used logcat pressing on notification and trying to enable that but they won't.

Can you help me read the issue ?

Logcat Attached

http://d-h.st/epA
[XDA-University] abo hani:
E/AndroidRuntime( 4417): FATAL EXCEPTION: main

E/AndroidRuntime( 4417): java.lang.NoSuchMethodError: Landroid/content/pm/ResolveInfo;.<init>

E/AndroidRuntime( 4417): at com.sonymobile.home.model.PackageHandler.getActivityResolveInfo(PackageHandler.java:420)

E/AndroidRuntime( 4417): at com.sonymobile.home.model.PackageHandler.isActivityInstalled(PackageHandler.java:462)

E/AndroidRuntime( 4417): at com.sonymobile.home.statistics.StatisticsManager.syncStatisticsData(StatisticsManager.java:252)

E/AndroidRuntime( 4417): at com.sonymobile.home.apptray.AppTrayModel$3.onPackagesLoaded(AppTrayModel.java:331)

E/AndroidRuntime( 4417): at com.sonymobile.home.model.PackageHandler$1.run(PackageHandler.java:260)

E/AndroidRuntime( 4417): at android.os.Handler.handleCallback(Handler.java:615)

E/AndroidRuntime( 4417): at android.os.Handler.dispatchMessage(Handler.java:92)

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

E/AndroidRuntime( 4417): at android.app.ActivityThread.main(ActivityThread.java:4787)

E/AndroidRuntime( 4417): at java.lang.reflect.Method.invokeNative(NativeMethod)

E/AndroidRuntime( 4417): at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( 4417): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)

E/AndroidRuntime( 4417): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)

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

OK , i may "managed" to fix Home.Application error , but this is a new error .

Smali File : Landroid/content/pm/ResolveInfo .

And its in Framework.jar .

Question : What is the Missed Method ?

And did i make it right ? (fixing Home.Application error ) . ?
[XDA-University] lacoursiere18:
That is the missing method..

You need to add Landroid/content/pm/ResolveInfo
[XDA-University] abo hani:
So , i fixed the previous error right ? or failed to fix it ?
[XDA-University] lacoursiere18:
Well you only have given us that section to look at.. so without seeing the rest of the log. I am not sure
[XDA-University] abo hani:
Hello again ! , i have added the method , but many apps FC , Home FC too , everything FC :| .

So , How about editing Home Smali ? is it good ?

And how to modify it ?

Tip please :P .

Or its better to add the method ?
[XDA-University] Goldie:
What you are trying to do is no simple task. Just saying things FC doesn't help people help you. You need to be specific and post logs from the FC. This is afterall a log cat thread :p
[XDA-University] abo hani:
:P , I have posted it , " http://xdaforums.com/showpost.php?p=53576339&postcount=389 "

See it ..
[XDA-University] Goldie:
You already have an answer for that. Now you say it still FC so now you need a new log!
[XDA-University] lacoursiere18:
You have a few things going on in there.. What are you trying to accomplish.. and future reference, use pastebin or upload your log in attachment as a zip or other extension.. This way it doesn't take up so much space:good:
[XDA-University] Slimegod:
Didn't think the link would copy my bad. But I'm trying to port a MIUI rom. My base is Sprint s3 and I'm porting from the LG Optimus 4x. I was successful with version 4.6.20 but 4.6.27 it isn't booting. I used 4.6.20 as my base. Decompiled the service, framework etc and I see no diff's.
[XDA-University] lacoursiere18:
Well that maybe your first problem.. WHy not just use the source and compile for yourself? MIUI is open source.. Trying to port a port is pretty difficult considering the devices are different..

You can get started here:

https://github.com/MiCode

Go down to patchrom, there is a READ ME file and it shows you exactly how to do it.. If you have CM11 or AOSP available for your phone I would recommend using that as your base..Then after you get that up and running, you can try porting to TW.

Here (https://github.com/MiCode/patchrom_android/tree/kitkat) is all the decompiled frameworks you need as well..Just start browsing through and get familiar with it..

There are also plenty of guides on XDA on how to use patchrom..:good:

Good Luck!

Also in your log saw this:

D/SELinuxMMAC(18716): Couldn't find install policy /data/security/mac_permission
s.xml
D/SELinuxMMAC(18716): Couldn't find install policy /system/etc/security/mac_perm
issions.xml

EDIT: Also, sorry was thinking.. Did you happen to look at the changelog? What was changed from .20-27? Maybe that will give you an indicator of where to look..
[XDA-University] Slimegod:
No I didn't look at the change log.
[XDA-University] lacoursiere18:
Might be a good idea.. Do me a favor.. Run another log while trying to boot and then upload the whole thing please..
[XDA-University] Slimegod:
Yeah I'm gonna upload the whole thing again when I finish work. Seems I didn't upload it completely.
[XDA-University] FuzzyMeep Two:
Try my logcat tool It can split the log by activity name and log level.

for example, you would get a folder called DEBUG, inside of which you would see a file called SELinuxMMAC.txt, which would include every instance of SELinuxMMAC that falls under the debug level from the logcat. there are also folders for the other levels, as well as text files that include all of the logs for each separate level, and a straight up logcat output text file that includes all lines.

I need people to test it and report if there are any issues.

http://xdaforums.com/showpost.php?p=28193613
[XDA-University] Slimegod:
OK will do
[XDA-University] Cyboy:
hahahaaa..LoL...u stupid smarty ,i loved the way you imagine world!
[XDA-University] Slimegod:
pastebin.com/HXYk83Ac

Heres the full log.... Started it from booting up like the last log.
[XDA-University] lacoursiere18:
This is still not a complete log.. On boot in cmd prompt type:

adb logcat -d > boot.txt

Then keep entering that by hitting up arrow and enter.. This way it keeps pulling it.. Do that about 4 or 5 times..
[XDA-University] Slimegod:
OK I will once I get to a computer. Let it run for a while too.
[XDA-University] BajoPrimate:
Logcat from starting

Hi all!

[MENTION=5056266]lacoursiere18[/MENTION] and [MENTION=3794018]shakim24[/MENTION]:

you also could get a logcat from starting via adb doing this:

power off your phone

in the Windows' command prompt type

adb wait-for-device && adb logcat -d > boot.txt

connect your phone with your PC (USB )

power on your phone

For finishing taking the logcat:

(after a couple of minutes) click on the command prompt window and press Ctrl +"C" in your PC's keyboard.

Cheers. Good luck.
[XDA-University] FuzzyMeep Two:
I think I am going to add the wait for device line to my program. Thanks.
[XDA-University] BajoPrimate:
Hi FuzzyMeep Two. You're welcome.

Cheers. Good luck.

Sent from my LG P76020p-EUR-XX unlocked and rooted
[XDA-University] Slimegod:
Wasn't able to get a log using adb logcat -d > boot.txt. pressed enter, booted up my phone and it went to the command line
[XDA-University] lacoursiere18:
Read my directions HERE:
[XDA-University] Slimegod:
Miss that my bad dude
[XDA-University] tdunham:
Umm, HERE is missing link. ;)
[XDA-University] lacoursiere18:
Lol sorry hit the CAPS key no link intended..:eek:
[XDA-University] Slimegod:
What type of log does that bring up?
[XDA-University] tdunham:
I use this commandline so it goes to my desktop and I can access it right away:

adb logcat -v long > c:\users\raidmax\desktop\logcat.txt

c:\users\raidmax <-- this part of the path is windows 7, username is 'raidmax' for me.

Edit: And I keep the commandline saved in a text file so I can copy and paste it when needed. I'm not THAT creative. ;)
[XDA-University] tdunham:
And this part is correct:

Then keep entering that by hitting up arrow and enter.. This way it keeps pulling it.. Do that about 4 or 5 times..

What happens sometimes is if you try to start the logcat too soon adb will timeout waiting for connection or it just dumps out and you have to restart it. Mine doesn't connect right away on the S5 so I wait until right before the lockscreen pops up.
[XDA-University] Slimegod:
OK I got you. Will send it in about 10 minutes, will pm you when sent.
[XDA-University] Slimegod:
Did that method and it didn't give me anything.
[XDA-University] Slimegod:
Wonder if anyone can take a look at this log. Has a whole bunch of warnings and that are all the same. Phone isn't going past the boot animation screen. http://pastebin.com/571Piu0Z

Edit:

I haven't been sending full logs. My bad for the noobness and thanks for the help guys and the patience. Will be posting one up, a full one, so hopefully all the errors can be discussed. Once again my bad guys. You all can disregard this pastebin.
[XDA-University] Slimegod:
Ok I let this log run for 2 hours and this is what I got. If this isnt a full log then idk http://pastebin.com/zzhMUAaA
[XDA-University] tdunham:
It should only take a couple of minutes and the logcat should be captured while the event is occurring. Doesn't mean it always works though.

I see nothing obvious in your logcat.

If you are getting force closes or bootloop, there should be at least one 'fatal' occurrence in the logcat (again, if it even captures it properly).
[XDA-University] Slimegod:
It's not booting. Don't know what to do anymore
[XDA-University] youngchaos:
Porting miui , trying to fix Micloud automatic sms activation (cost me 0.20) i've copied from another rom Mms.apk , XiaomiServiceFramework.apk , PaymentService.apk , Framework-miui-res.apk but having Messagging apk crashing..

I/BufferQueue( 155): [Application Error: com.android.mms](this:0x45bddd08,api:2) disconnect: api=2

I/SurfaceTexture( 155): [Application Error: com.android.mms] [virtual android::status_t android::SurfaceTexture::forceAuxConversionLocked()] mCurrentTexture:0, mCurrentBuf:0x40f39578

I/BufferQueue( 155): [Application Error: com.android.mms](this:0x45bddd08,api:0) getReleasedBuffers: returning mask 0xffffffff

I/SurfaceTexture( 155): [Application Error: com.android.mms](this:0x45bdd8c8,api:0) destroying EGLImage dpy=0x1 img=0x10000001

I/SurfaceTexture( 155): [Application Error: com.android.mms](this:0x45bdd8c8,api:0) destroying EGLImage dpy=0x1 img=0x10000005

I/GraphicBuffer( 155): free buffer (w:1088 h:449 f:1) handle(0x40f34ce8)

I/SurfaceTexture( 155): [Application Error: com.android.mms](this:0x45bdd8c8,api:0) destroying EGLImage dpy=0x1 img=0x1000000a

I/GraphicBuffer( 155): free buffer (w:1088 h:449 f:1) handle(0x40f27760)

D/GraphicBuffer( 666): close handle(0x79e8b5d0) (w:1088 h:449 f:1)

I/BufferQueue( 155): [Application Error: com.android.mms](this:0x45bddd08,api:0) consumerDisconnect

I/BufferQueue( 155): [Application Error: com.android.mms](this:0x45bddd08,api:0) ~BufferQueue

Anyone can help me?
[XDA-University] thesoldier:
Has anyone been able to take a look at this? I've gone through but nothing stands out to me. I've been trying to simply avoid WiFi...but sometimes it's my only choice. If you have a few minutes please check out my logs...thanks!
[XDA-University] ironshadow2:
please someone help me to take a logcat in bootloop

after trying to port ROM i got bootloop into sony logo but not into ROM animation

after being stuck at sony logo for 30 secs it reboots into recovery and when I reboot again it happens the samething

please help
[XDA-University] ironshadow2:
guys, what do u mean by installing drivers, u mean into my device or my copmuter

And how I do that
[XDA-University] lacoursiere18:
Sorry to be the one..

This is not a thread for ?'s on how to install ABD drivers on your computer. Stryke took the time to write this thread and then provide feedback to fix people's issues when they come up. You need use the "search" box in this forum and research a little more if you have ?'s pertaining to this.

We all have managed to learn how to do this.. so you need to as well.. No hard feelings, just stating the facts;)
[XDA-University] ironshadow2:
what did u think I did?

cant take logcat

my phone stuck at kernel logo then it reboots into recovery and Im not able to take a logcat.

adb drivers is on my computer

Im able to take a logcat on my phone is running but dont know why I cant do that while I have bootloop
[XDA-University] Stryke_the_Orc:
Use the monitor in the Android sdk, adb won't read a bootloop
[XDA-University] ironshadow2:
I tried , My phone stuck at sony logo then it reboots into recovery every time

my phone shows up in recovery only but even in recovery I can not take a logcat

But I was able to get last_kmsg from recovery.
[XDA-University] Stryke_the_Orc:
It sounds as though you don't actually have the /system partition mounted or its empty. What did you flash that caused this?

Edit - Also, You can't grab a logcat from recovery because your system isn't attempting to boot[emoji6]
[XDA-University] ironshadow2:
My phone is not bricked , I ported a ROM and I want to know why it is not booting

this is my last kmag

https://www.mediafire.com/?d7qr9bzphhv58el

if u can help me
[XDA-University] Stryke_the_Orc:
I don't know much about kernels and reading those errors, sorry. You'll need to see if someone else can help you here :(