yashsingh1/xdaforums huggingface dataset:
[XDA-University] me.and.roid:
I wonder if anyone will help me with the mess I made. I'm totally new to porting roms so i detected an error but i dont know how to solve it.

my real problem is the camera, it says "can not connect camera" and the wifi setting keep saying "turning on wifi" the on/off button is greyed out so I cant change it. I will be very grateful for anyone who wants to help me :beer:

I'm new user, i cant use outside link so here is the complete logcat generated from logcat tool attached
[XDA-University] AlphaBeta:
hey i was trying to port miui v5 to my device

but it is stuck on boot screen

and the logcat just keeps looping at this

I/Netd ( 5326): Netd 1.0 starting

W/InterfaceController( 5326): Warning (dlopen failed: library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library

can you tell me what exactly is stopping the rom from booting

here is the complete logcat

http://pastebin.com/raw.php?i=6cUUJFwy

please help me out ?

thankyou :)
[XDA-University] Goldie:
Obvious I know but assuming you have that lib?
[XDA-University] AlphaBeta:
is this reply for me?
[XDA-University] lacoursiere18:
Yes it was..

Thats the main error in that log... Looks like a pretty short log though.. Try adding that lib and then if it doesn't boot pull another log..
[XDA-University] AlphaBeta:
that lib file

libnetcmdiface.so doesn't exist in my base rom or any other rom as well i even checked up my device's github

and the logcat just keeps looping at this warning only :\
[XDA-University] lacoursiere18:
Well obviously something in the system is trying to access it.. Where did your port come from? Nexus 5? Have you check there?
[XDA-University] AlphaBeta:
no it is a port from xperia M and my device is xperia L

these devices are almost similar and even the port rom files don't have this lib

i found on xda to replace libcrypto.so to get rid of it but it is still there
[XDA-University] lacoursiere18:
Hmm not sure than my friend..

/I have very little expertise in tearing down lib files and editing them, although I do know sometimes it is need especially when porting Miui
[XDA-University] AlphaBeta:
well anyways thankyou for your help :)

porting miui is a hard job

i guess i need to find my solution somewhere else :\

well do you have any idea what this lib is related to?
[XDA-University] remuntada78:
hi to all, i'm trying to port "lockscreen notifications" from DirtyUnicorn rom for galaxy s2 to samsung based rom for s2, I think I've done all the necessary, but i got this error

E/AndroidRuntime( 4576): FATAL EXCEPTION: main

E/AndroidRuntime( 4576): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException

E/AndroidRuntime( 4576):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110)

E/AndroidRuntime( 4576):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)

E/AndroidRuntime( 4576):	at android.app.ActivityThread.access$700(ActivityThread.java:140)

E/AndroidRuntime( 4576):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)

E/AndroidRuntime( 4576):	at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime( 4576):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 4576):	at android.app.ActivityThread.main(ActivityThread.java:4921)

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

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

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

E/AndroidRuntime( 4576):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)

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

E/AndroidRuntime( 4576): Caused by: java.lang.NullPointerException

E/AndroidRuntime( 4576):	at com.android.settings.AOSPAL.LockscreenNotifications.onCreate(LockscreenNotifications.java)

E/AndroidRuntime( 4576):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:796)

E/AndroidRuntime( 4576):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1035)

E/AndroidRuntime( 4576):	at android.app.BackStackRecord.run(BackStackRecord.java:635)

E/AndroidRuntime( 4576):	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1399)

E/AndroidRuntime( 4576):	at android.app.Activity.performStart(Activity.java:5215)

E/AndroidRuntime( 4576):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2083)

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

what mean?

this is the original LockscreenNotifications.smali View attachment originalLockscreenNotifications.zip

this is the modded LockscreenNotifications.smali View attachment modLockscreenNotifications.zip

thanks in advance
[XDA-University] lacoursiere18:
This is your error:

E/AndroidRuntime( 4576): Caused by: java.lang.NullPointerException

E/AndroidRuntime( 4576):	at com.android.settings.AOSPAL.LockscreenNotifications.onCreate(LockscreenNotifications.java)

So it looks like you removed some code in method onCreate.. to remove what? an Icon? Or the whole actionbar itseld.. which can cause issues..

Would you mind uploading your hole log so I can search a little more..
[XDA-University] remuntada78:
ok this is the whole logcat View attachment log.zip thanks again
[XDA-University] countryfolk07:
I have a log I would like help with please. I'm on stock Kit Kat. LG G2 d800 20u firmware. I flash a custom kernel (simple kernel by dr87) and I just hang on the boot logo screen. I hope this is enough information. I'm not getting any support from the dev. Thanks. :confused:
[XDA-University] Stryke_the_Orc:
Check the md5 hash of your download to verify the integrity of what you flashed, see if others are having this issue or if there have been successful flashes.

Posting logs for situations like this won't really tell anyone much and is beyond the scope of this thread.

If all else fails, flash the stock kernel back.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] countryfolk07:
Thanks. I did verify md5 and I successfully flashed it on a ported "stock" Rom. But on my own carriers stock Rom would not boot.
[XDA-University] remuntada78:
same error without remove the code for icon and actionbar
[XDA-University] Stryke_the_Orc:
Have there been successful flashes on your carrier stock ROM by others?

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] AlphaBeta:
Well can you please tell me how can i know the dependecies of a lib file

I am getting

Netd1.0 is starting loop in my logcat

So is there a way i can check what file is causing the error?
[XDA-University] remuntada78:
After some search i found what NullPointerException mean. if I understand correctly it mean that there isn't a variable declared which can be an xml or part of it, in my case in the .method public onCreate(Landroid/os/Bundle;)V

But I'm pretty sure i have declared all the necessary
[XDA-University] Stryke_the_Orc:
You're understanding it correctly, I've not seen your logs but I'd be willing to bet that surrounding that error is an explanation of what's missing.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] remuntada78:
if you have the time to see it , the whole log is in the last post of the previus page, thanks in advance
[XDA-University] kingdj:
09-23 11:22:45.760 2408 2408 E AndroidRuntime: Process: com.android.systemui, PID: 2408

09-23 11:22:45.760 2408 2408 E AndroidRuntime:	at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:324)

09-23 11:22:45.760 2408 2408 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:545)

09-23 11:22:45.760 2408 2408 E AndroidRuntime:	at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106)

09-23 11:22:45.760 2408 2408 E AndroidRuntime:	at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58)

09-23 11:22:45.760 2408 2408 E AndroidRuntime:	at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:228)

09-23 11:22:45.760 2408 2408 E AndroidRuntime:	at com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java:49)

09-23 11:22:45.760 2408 2408 E AndroidRuntime:	at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)

can you help me with that error??? im modding system ui

thank you before
[XDA-University] LeftyGR:
If you drill down each of those in your smali folder structure, open each specific .smali file. Where it says Java:## is what you're looking for inside. Each of those ## should be a line number.

It may be easier to see what's happening when you look at them all. Or they could all be completely unrelated. But you won't know until you look at them all.
[XDA-University] Goldie:
The problem is in basestatusbar in the start method. It would help if you actually said what you were doing. "Modding" is a bit too general! Plus need more of the log before and after that part because whilst that identifies where the problem is it does not show what the problem is
[XDA-University] kingdj:
thank you. im modding my system ui. specificly expanded statusbar so it will have more tab.originaly made by serajr and port to cm11 by adi ai****eru reborn so im comparing my system ui to his systemui to port it my device samsung s3 running cm11 too it have 95% similar smali and xml. i will post more log for more info.:good:
[XDA-University] remuntada78:
Suggestions?
[XDA-University] Goldie:
Null pointer can be caused be a multitude of things. Missing lines in xml....null returns from igets....wrong ids....the list goes on
[XDA-University] remuntada78:
Can you found what is missing or wrong from my logcat?Or is a generic null pointer?
[XDA-University] lacoursiere18:
Hes basically telling you need to review what you added and changed.. no there was no "this is where your error stems from". I would double check your edits.. maybe start from the beginning and take it step by step..

sometime NullPointers will give you more info but doesn't seem so in this case
[XDA-University] AlphaBeta:
Hey i need some help

I succesfully booted miui but it shows no sim card

I have already replaced all the ril related lib files

Still it shows no sim card

Any more solutions?
[XDA-University] tdunham:
That is beyond the scope of this thread I think. It would be best suited in one of the many MIUI development threads. Sorry, I do not run that version so can't provide you any links.
[XDA-University] AlphaBeta:
But you would know the ril related files except the one in lib?
[XDA-University] tdunham:
I think there are some files in framework too. Search for rom porting threads for which files you might need from there.
[XDA-University] AlphaBeta:
any idea for this logcat?

my camera gps notification led and brightness don't work

http://pastebin.com/raw.php?i=Dzw4Hr2f
[XDA-University] Goldie:
What on earth are you trying to run? Im suprised it boots at all looking at that log

Edit: i see miui....this log has way too many issues to fix here. As previously advised it would be better in one of the miui rom port threads
[XDA-University] AlphaBeta:
Even i am surprised it has so many errors but the rom runs smooth except a few bugs :p

Well i guess the camera issue is something many of us get

E/CameraService( 302): CameraService::connect X (pid 3683) rejected (invalid cameraId 0).

W/CameraBase( 3683): An error occurred while connecting to camera: 0

E/CameraHolder( 3683): fail to connect Camera

E/CameraHolder( 3683): java.lang.RuntimeException: Fail to connect to camera service

E/CameraHolder( 3683): at android.hardware.Camera.native_setup(Native Method)

E/CameraHolder( 3683): at android.hardware.Camera.<init>(Camera.java:394)

E/CameraHolder( 3683): at android.hardware.Camera.open(Camera.java:333)

E/CameraHolder( 3683): at com.android.camera.CameraManager.cameraOpen(CameraManager.java:232)

E/CameraHolder( 3683): at com.android.camera.CameraHolder.open(CameraHolder.java:151)

E/CameraHolder( 3683): at com.android.camera.Util.openCamera(Util.java:266)

E/CameraHolder( 3683): at com.android.camera.Camera$CameraStartUpThread.run(Camera.java:317)

It says invalid camera id so any idea which file provides the camera id ? I think this is not miui related?
[XDA-University] Stryke_the_Orc:
Do any camera apps work? Only thing I can think of is the driver for camera isn't there, but I'm not at all familiar with miui...

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] AlphaBeta:
Well thankyou but i got it working :)

The only bug left is notification led

It also has a similar error

Could not load vendor lights
[XDA-University] Reznov Steele:
Miui 5 port bootloop

Hello guys, I ported a ROM and I want to know why it is not booting.

http://pastebin.com/djuGiVAa
[XDA-University] M_Maha:
Help with cant connect to camera problem

Hey guys Ive been working on this problem for a few days.And I cant find anything to fix the problem. So may be one of you much more experienced peole could help me

Here are logcats

You can refer both of them

http://pastebin.com/vMMRC2LH

http://pastebin.com/SbhhBq4Z

Please take a look at them!!

Or Is there a problem in the kernel should I take kernel log ?? I have never done that :confused:
[XDA-University] LordGex:
Awesome guide! This one help me a lot!
[XDA-University] Reznov Steele:
to fix camera port

Replace first*libcamdrv.so and check if not success then replace libcameraservice.so*from/lib.
[XDA-University] M_Maha:
Thanks for your reply !!

You mean to say replace those lib files from stock? The stock is a JB rom and this rom is KK ported from another device from same SoC.

So I dont know if just replacing them will work. But will try and report

EDIT : The camera doesnt work even after replacing libcameraservice.so . Here is the log

http://pastebin.com/CZKGex2Q
[XDA-University] Reznov Steele:
replace it from your base, you cant use as base JB to port a KK rom.
[XDA-University] M_Maha:
I know I cant . But this is ported from another device that got a KK update and has same specs. My device never got a KK update.
[XDA-University] tdunham:
It might be easier just to remove the stock camera entirely and replace with one of the many third party or modified stock camera apps that are available.

Edit: Since stock cameras apps are definitely tied into the specific hardware, the ported one may just not be compatible with your hardware or require heavy modification to make it compatible that may not make it feasible.

'Similar' does not make it the same. We see camera problems quite often for ported roms, especially non-Touchwiz.

If you run out of choices, I still recommend replacing the app entirely with one that is more universal.
[XDA-University] M_Maha:
Thanks for your reply

No, none of the apps work, thats why im digging into it in the first place
[XDA-University] oracle01642:
When I type in 'adb devices', I get the message 'unauthorized'.

---------- Post added at 12:48 PM ---------- Previous post was at 12:06 PM ----------

I managed to get past the unauthorized message, but when I type in 'adb logcat', and hit enter, nothing happens?
[XDA-University] lacoursiere18:
Well the best option would be to direct that logact somewhere..like a txt document..so your code should be this:

adb logcat > log.txt

Then the log.txt is your text document. It will show up wherever your adb directory is..
[XDA-University] oracle01642:
I have also tried that command in command promp, but nothing happened again. What is supposed to happen when you type in those commands? I downloaded the SDK files, and then extracted them to the download folder. I have looked through the 3 folders and I can't find a logcat anywhere. This is soooo f'ing frustrating!!!
[XDA-University] lacoursiere18:
Adb directory should be sdk\platform tools... look in there see if you have text files.. that is where your cmd directory be as well..
[XDA-University] oracle01642:
There is a logcat file there, but it is empty?
[XDA-University] remuntada78:
You have to leave your device connected to pc and wait until pc recognized you device and logcat is loaded

Inviato dal mio GT-I9100 utilizzando Tapatalk
[XDA-University] oracle01642:
Yeah, I seen the message thing pop up on my phone, and I checked the box always allow from this PC (or something to that nature). What is supposed to happen when you type in the logcat commands??? I was expecting a big list to come up in the command promt window, but when I type in the adb logcat commands, and hit enter, nothing happens whatsoever??
[XDA-University] remuntada78:
When the device is not recognized command prompt windows show you "waiting for device" , when device is recognised command prompt windows show you nothing

Inviato dal mio GT-I9100 utilizzando Tapatalk
[XDA-University] oracle01642:
I don't get it? My device is recognised, so why isn't it working? How do you perform a logcat, and what is supposed to happen when you do? If I type in the comman adb logcat, and then hit enter, where is the logcat going to be so I can view it? And how long does it take to perform a logcat?
[XDA-University] remuntada78:
The command to type is adb logcat > log.txt , and it is stored in the addres that command prompt windows show you

So for example if address in command prompt windows is c:\a\b\c> the logcat file is stored in the address c:\a\b\c

Inviato dal mio GT-I9100 utilizzando Tapatalk
[XDA-University] oracle01642:
[MENTION=3053298]Stryke_the_Orc[/MENTION] Can you help me please mate? I really need to do a logcat! :(
[XDA-University] remuntada78:
Have you actived debug usb in developer option in settings in your device?

Which kernel are you using?

Inviato dal mio GT-I9100 utilizzando Tapatalk
[XDA-University] oracle01642:
Yes, I have the box checked 'debug mode when USB is connected'. Like I said earlier, I downloaded the SDK files from the OP, extracted them, followed the instructions, but nothing is happening? What is this adb thing? And do I need to crate a path to it or something? It is driving me crazy! :eek:

---------- Post added at 10:29 PM ---------- Previous post was at 09:45 PM ----------

I forgot to mention that I am using adam kernel.
[XDA-University] remuntada78:
Perhaps there is an option in adam recovery to enable and disable logs like in Apolo kernel

If not you have problem with SDK , then I suggest to you to search more info about how to install it

Inviato dal mio GT-I9100 utilizzando Tapatalk
[XDA-University] engloa:
I think that's the culprit.Logging was disabled by default when I used Adam kernel and had to be enabled through STweaks.
[XDA-University] Stryke_the_Orc:
This is a good point, be sure to check if logging is disabled through tweaks, kernels, apps, etc... If that's the case, you won't be able to get logs at all. I know that exit_only had a script full of tweaks that does this and logging needs to be enabled for a logcat to work.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] kingdj:
can you help me with this error???

log and my phone status bar smali on attachment
[XDA-University] Stryke_the_Orc:
You have far more than the statusbar error, you're missing lib files, encountering errors on almost every method called for startup...

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] kingdj:
bad news then, i just mod my system ui did,t realize if i missing lib files, can you tell which lib files is missing??? and could you tell me which line is make verify error on my phone status bar???

thank you
[XDA-University] Goldie:
You should post dumpstate_app_error from data/log. Your log snippet does not detail the vfy error
[XDA-University] joecool666:
deleted info please
[XDA-University] Nasheich Xfiles:
[MENTION=3053298]Stryke_the_Orc[/MENTION]

can you help me, Sir ?

this camera problem killing me...

i did replaced lib, storage-list.xml and the things, but still can't fix the camera...

here is the log, i hope you can help me fix this issue

11-26 02:48:15.196 W/CameraBase(3731): An error occurred while connecting to camera: 0

11-26 02:48:15.196 W/CameraBase(3731): Camera service died!

11-26 02:48:15.196 E/CameraHolder(3731): fail to connect Camera:-1, aborting.

11-26 02:48:15.196 E/CAM_PhotoModule(3731): Failed to open camera:0

11-26 02:48:15.938 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/OMXCameraAdapter/OMXDCC.cpp:99 initDCC - No DCC files found, switching back to default DCC

11-26 02:48:15.938 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/OMXCameraAdapter/OMXDCC.cpp:44 loadDCC - Error in DCC Init

11-26 02:48:15.969 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/CameraHalCommon.cpp:178 getPixelFormatConstant - Preview format is NULL, defaulting to NV12

11-26 02:48:16.016 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/CameraHalCommon.cpp:178 getPixelFormatConstant - Preview format is NULL, defaulting to NV12

11-26 02:48:16.063 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/CameraHalCommon.cpp:178 getPixelFormatConstant - Preview format is NULL, defaulting to NV12

11-26 02:48:16.118 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/CameraHalCommon.cpp:178 getPixelFormatConstant - Preview format is NULL, defaulting to NV12

11-26 02:48:16.118 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:4483 OMXCameraAdapter_Capabilities - Number of OMX Cameras detected = 1

11-26 02:48:16.180 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/CameraHalCommon.cpp:178 getPixelFormatConstant - Preview format is NULL, defaulting to NV12

11-26 02:48:16.219 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/CameraHalCommon.cpp:178 getPixelFormatConstant - Preview format is NULL, defaulting to NV12

11-26 02:48:16.274 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/CameraHalCommon.cpp:178 getPixelFormatConstant - Preview format is NULL, defaulting to NV12

11-26 02:48:16.321 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/CameraHalCommon.cpp:178 getPixelFormatConstant - Preview format is NULL, defaulting to NV12

11-26 02:48:16.321 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:4483 OMXCameraAdapter_Capabilities - Number of OMX Cameras detected = 2

11-26 02:48:16.360 E/CameraHal(3979): (400a2168) device/lge/u2-common/camera/BaseCameraAdapter.cpp:2708 CameraAdapter_Capabilities - supportedCameras= 2

11-26 02:48:17.438 W/CAM_UI (3731): SurfaceTexture destroyed
[XDA-University] Stryke_the_Orc:
There's not enough information in that log to describe what's going on. It states the problem, but no causes. Look in your full log for fatal errors and exceptions.
[XDA-University] gamzekal:
hi [MENTION=3053298]Stryke_the_Orc[/MENTION] sir,

I want to port sony dialer and contacts to cm11 devices

I think I have ported necessary apps,libs,framework about them.Contacts is working but dialer doesnt work.Some Sections in Contacts is giving FC too.

I Need your help bro.Can you explain to me what is meeaning "android.content.res.Resources$NotFoundException: String resource ID #0x0"

Which sources is missing?

Here is my logcat.txt

http://www.mediafire.com/download/9454a1xja63xugj/2014-11-29-01-25-27.txt

Thanks for your excellent thread
[XDA-University] Stryke_the_Orc:
"android.content.res.Resources$NotFoundException: String resource ID #0x0"

This simply means that the string the system is looking for doesn't exist, there should be other lines similar to this one surrounding it telling you what the expected value is. You'll need to copy the expected value into your public.XML for the resource id that is being called. If you look at the surrounding text it should also tell you if any other files need to be edited to contain the expected values.