yashsingh1/xdaforums huggingface dataset:
[XDA-University] forzaferrari0:
Camera error

i got this camera problem,how can i solve it?

Thanks

[ 02-27 13:10:18.692 2772: 2772 V/CAM_PhotoModule ]
On resume.

[ 02-27 13:10:18.692 2772: 2772 V/CAM_PhotoModule ]
Executing onResumeTasks.

[ 02-27 13:10:18.692 2772: 2772 V/CAM_PhotoModule ]
Open camera device.

[ 02-27 13:10:18.702 2772: 2772 V/CameraHolder ]
open camera 0

[ 02-27 13:10:18.712 1500: 1899 E/CameraService ]
CameraService::connect X (pid 2772) rejected (invalid cameraId 0).

[ 02-27 13:10:18.712 2772: 2791 W/CameraBase ]
An error occurred while connecting to camera: 0

[ 02-27 13:10:18.712 2772: 2772 E/CameraHolder ]
fail to connect Camera:-1, aborting.

[ 02-27 13:10:18.712 2772: 2772 E/CAM_PhotoModule ]
Failed to open camera:0

[ 02-27 13:10:18.722 2772: 2772 W/ContextImpl ]
PDroid:ContextImpl: ContextImpl being created but already has sOuterContext

[ 02-27 13:10:18.722 2772: 2772 W/ContextImpl ]
PDroid:ContextImpl: ContextImpl being created but already has sOuterContext
[XDA-University] tdunham:
I don't see anything obvious but I'm sure someone will weigh in on this but is this a third party camera app? Maybe it requires additional files to work properly or the hardware call is not supported on your device.
[XDA-University] forzaferrari0:
It`s not a third party camera app,i`ve build the Dirty Unicorns rom for my device, the HTC desire HD,and i got this error
[XDA-University] tdunham:
Ok, I understand. I did a little looking and see this Dirty Unicorn thread that states is should be compatible with Desire HD. Maybe post or search through that thread for camera issues or ask the dev if he has any ideas or fixes for your particular problem.

http://xdaforums.com/showthread.php?t=2201519
[XDA-University] r_hippy:
[MENTION=3053298]Stryke_the_Orc[/MENTION]

thanks for the time you spent maken' this guide up and support

I have a lot to be answered so People like you, make the learning the right way "easier"

2 thumbs up

&

★★★★★
[XDA-University] Stryke_the_Orc:
Why thank you sir :D

I was just hoping to pass on the little I'd learned to others like myself that wanted to know why things didn't work, and how they were fixed. I always hated not knowing how to fix my own issues. :victory:
[XDA-University] abo hani:
Back to you my friend again :P

Im porting Honami Home 4.3 for my ROM ... So Downgraded SDK Version - Sign it ... Then FC

This is the logcat ... All bugs in framework.jar , But i searched for the method ... and i compare between "My Framework.jar" & "Z1 Framework.jar"

And There were many lines different :| Should i change it all ??? Plus expecting "Line 5365" Not in "My Framework.jar" :| (The Code in 5365 wasn’t in my Framework.jar ... just in Z1 Framework.jar)

Log :

E/AndroidRuntime( 2645): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2071)

E/AndroidRuntime( 2645): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2096)

E/AndroidRuntime( 2645): at android.app.ActivityThread.access$600(ActivityThread.java:138)

E/AndroidRuntime( 2645): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1207)

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

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

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

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

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

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

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

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

E/AndroidRuntime( 2645): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x20201d5 a=4 r=0x20201d5}

E/AndroidRuntime( 2645): at android.content.res.Resources.loadDrawable(Resources.java:1897)

E/AndroidRuntime( 2645): at android.content.res.Resources.getDrawable(Resources.java:664)

E/AndroidRuntime( 2645): at com.sonymobile.home.presenter.resource.FolderResourceLoader.<init>(FolderResourceLoader.java:40)

E/AndroidRuntime( 2645): at com.sonymobile.home.HomeFragment.onCreate(HomeFragment.java:231)

E/AndroidRuntime( 2645): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:800)

E/AndroidRuntime( 2645): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1039)

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

E/AndroidRuntime( 2645): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1405)

E/AndroidRuntime( 2645): at android.app.Activity.performStart(Activity.java:5017)

E/AndroidRuntime( 2645): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2044)

E/AndroidRuntime( 2645): ... 11 more
[XDA-University] lacoursiere18:
Looks like you left some stuff out.. post the hole log in a txt file and attach it..

Edit: My mistake.
[XDA-University] Goldie:
This file...

com.sonymobile.home.presenter.resource.FolderResourceLoader.<init>

Is using your R$ files in framework.jar to find id of a typed value. Its returning 0x20201d5 which must refer to the wrong resource in public of whichever apk has 0x20 ids (for samsung that is twframework-res.apk).

Sent from my GT-I9305
[XDA-University] abo hani:
No ... its the whole log

---------- Post added at 04:06 PM ---------- Previous post was at 03:55 PM ----------

Sony ==> Framework-res.apk decompiled it ... Searched in public.xml .. No 0x20 or 0x020 were found in it :|

I Opened this file in Home.apk ... And found this ID

.line 40

.local v1, res:Landroid/content/res/Resources;

const v2, 0x7f020025

invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v0

check-cast v0, Landroid/graphics/drawable/BitmapDrawable;

Is that it ??
[XDA-University] Goldie:
No. What device are you porting from and to? There is probably another res apk in the device your are porting from

Sent from my GT-I9305
[XDA-University] abo hani:
Xperia Z1 to Xperia Acro S

But ... I have Z1 Framework files and everything ... and searched for that Value you give me in Z1 Home & Framework-res.apk public.xml :|

[MENTION=3065070]Goldie[/MENTION] SemcGenericUxpRes.apk
[XDA-University] Stryke_the_Orc:
To help narrow it down and find the file, I would decompile all apks that end in res and use something like fileseek to find the correct smali.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] abo hani:
I have found it ... And opened public.xml file .... and all IDs start with 0x20 As he told me ... but No Code match the one he gave me :(
[XDA-University] Stryke_the_Orc:
How about in the other apk? (the one from the ROM that you're porting to/from)

That id it's coming from somewhere.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] abo hani:
I searched in Z1 framework files not the phone that im trying "to port to" !

But still ... nothing :|

Da*n this logcat ... ! :( Its so hard :|
[XDA-University] Stryke_the_Orc:
Try systemui apk, another thing you could do if you're running Linux is use romzilla script to decompile the entire ROM and search all the files.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] desalesouche:
videorecord logcat

hi sir.

i am trying to undestand why it takes 6 seconds before videorecord begins...

may be you can point me?

here is the logcat.

http://pastebin.com/4p6Vm56Y

thank you.
[XDA-University] abo hani:
Windows 8.1 :p

But if i fixed this error should all bugs be fixed ? :|

And for fixing bugs

I need either add methode or fix the methode , and compare between them till "end methode" , right ?
[XDA-University] Stryke_the_Orc:
I wouldn't count on all bugs being fixed, something else will probably pop up but its a good starting point. Most likely what you'll need to do is compare the methods that exist in both ROMs and fix the errors resulting from changing or adding anything. The bad news is, you fix one thing usually a few new ones pop up. The good news, it generally gets easier after the initial fix.
[XDA-University] Stryke_the_Orc:
Is this a stock or ported camera apk?
[XDA-University] desalesouche:
it is cm camera from cm11 stable build... for huawei honor... not stock.
[XDA-University] Stryke_the_Orc:
That may just be how its going to behave without a major overhaul. It is pulling a lot of resources to start. Have you tried using any other camcorder apps to see if they behave the same way?

But these errors are probably what's causing the lag before startup:

[LIST=1]
[*]E/OMX-VENC-720p( 808): get_parameter: OMX_IndexParamVideoProfileLevelQuerySupported for Input port returned Profile:1, Level:512
[*]E/OMX-VENC-720p( 808): get_parameter: OMX_IndexParamVideoProfileLevelQuerySupported for Input port returned Profile:2, Level:512
[*]E/OMX-VENC-720p( 808): get_parameter: OMX_IndexParamVideoProfileLevelQuerySupported for Input port returned Profile:8, Level:512
[*]E/OMX-VENC-720p( 808): get_parameter: OMX_IndexParamVideoProfileLevelQuerySupported for Input port returned Profile:8, Level:512
[*]E/OMX-VENC-720p( 808): Invalid entry returned from get_supported_profile_level 8, 512
[*]D/CameraSource( 808): Camera does not support setVideoSize()
[*]E/QualcommCamera( 808): Qint android::set_parameters(camera_device*, const char*): E
[/LIST]

And I see this repeatedly:

[LIST=1]
[*]E/QualcommCamera( 808): Qvoid android::release_recording_frame(camera_device*, const void*): E
[*]E/QualcommCameraHardware( 808): virtual void android::QualcommCameraHardware::releaseRecordingFrame(const void*) : BEGIN, opaque = 0x0x44b3d000
[/LIST]
[XDA-University] youngchaos:
Hello , thanks for the useful thread. I'm new to porting , starting my first attempt.

I figured out my devices are compatible since have the same specs litterally.

But , i'm stuck at boot.img and i'm not able to understand all the processes in the logcat, it's pretty big :S

Can you help me to trace where is the problem ?

http://pastebin.com/0m1mEVnz

Would like an explanation if possible too so i can understand for next times :)

Thanks!
[XDA-University] desalesouche:
for information for others dev...

the 6 seconds delay is fixed with that commit:

https://github.com/moihack/Project-...mmit/510fc903d75980ccd99ff235cde4994df946122a
[XDA-University] youngchaos:
I finally ported the rom i wanted to. But i have a problem , when i restart the phone the rom get stuck on lockscreen i can just see the Clock but can't unlock can't do nothing.. here my logcat , can anyone help me read this and understand where is the problem?

http://d-h.st/8z2
[XDA-University] tdunham:
Is the rom odexed? I see a bunch of framework errors. Not sure if files are missing or just not compatible but normally a ported rom requires some framework files, and many library and hw modules be included from your native phone for a ported rom to work properly.
[XDA-University] youngchaos:
Hi , the rom boot properly just the first time , i can do everything , but when i reboot for the first time it get stuck on lockscreen.

I guess it's odexed since near all the apks have their odex part.. mmm but i repeat the first boot is perfect , i can do everything wifi , sms , surfing .. but when i reboot i got like an overlay on the lockscreen , black screen clock battery charge and the 2 sim state , the phone answer properly thru adb.. :S
[XDA-University] Stryke_the_Orc:
Have you tried wiping your caches after the initial boot?

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] tdunham:
I saw the adb calls. I can't say for certain. Maybe Stryke_the_Orc will add some comments. Try a couple simple things like wiping cache & dalvik cache in recovery or flashing full rom over existing install. I know odex can be tricky especially with framework files.
[XDA-University] youngchaos:
I've tried wiping but nothing always get stuck , btw since devices are really the same i just replaced zimage from stock boot.img to ported boot.img . I was ready to fix the bugs with libs replacement but i couldn't since i got stuck on lockscreen everytime.. should i edit the bootclasspath aswell in boot.img or not?
[XDA-University] Stryke_the_Orc:
I'd be willing to bet dollars to donuts they're not as close as you think. The ported boot image is probably your problem.

I'm mobile and not able to view your logs, but I'd start there.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] abo hani:
Im having bootloop ... but not restarting ... just stuck on boot :| How to take logcat please ?
[XDA-University] Stryke_the_Orc:
There's almost a full page at the beginning of this thread detailing multiple ways to get a log. I'd start there.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] youngchaos:
Well i really don't know what could be then.. i'm trying to port Coollife Ui 5.5 from Coolpad 9976A and ZP998 .. specs are basically same.

Mtk6592

2gb ram

fullhd

android 4.2.2 .. not enough?

I've just extracted from boot.img the zimage from my stock rom to the Coolpad one , and it boots.. nothing more.. but then , i find that error.. i would really happy if you could help me find , when you have the time , to find out what is broken..

Thanks!
[XDA-University] tdunham:
I see your posts in easy method for rom porting threads. I think you need to find alternate porting methods since what you are trying is not working properly. There is no such thing as a 'virtually identical' device. There are many rom porting threads. I would find some that reference which library files, hardware files and framework files to port from base. You may need to combine several methods and experiment for success. Good luck.

---------- Post added at 12:36 PM ---------- Previous post was at 12:30 PM ----------

Also, I have successfully ported a rom from a different carrier using this method but I combined other methods as well so this is only one example of how and what files may be necessary from base to ported rom:

http://xdaforums.com/showthread.php?t=2069850
[XDA-University] youngchaos:
Thanks for your answer , i will try to find the best method , should i give a try on deodexing the porting rom? Maybe i can do it with the kitchen mhhhh i will give a look ;) i will let you know !
[XDA-University] tdunham:
Working with odexed versions is going to create new challenges for you so yes, I would try to get a deodexed version created of the final product once you get it working since it is very difficult to work with odexed files.
[XDA-University] Stryke_the_Orc:
Honestly, I'm not sure this will work. CM, PA, etc... are using AOSP code, Touchwiz framework uses a massively different style. You'd most likely have to rewrite the entire thing, but then again I've never tried anything like this. I'd ask a RD if it's possible.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] lacoursiere18:
Thats the thing, I dont believe it touches the framework besides framework-res, in which it is just pulling images from..Thank you though. I think I found my problem..
[XDA-University] Stryke_the_Orc:
If you get this figured out, please share your results and workarounds here so we can refer others to it that have similar issues.:good:
[XDA-University] youngchaos:
Hello guys , i managed to deodex the rom i was porting , but still stuck on lockscreen... but seems like i got some info on the logcat.. but not sure about this..

Unfortunately i cannot put this on pastebin :S limit :(

But look at this lines ->

E/SQLiteLog( 872): (257) Open fd: 60, file: /data/data/com.yulong.android.savepowermanager/databases/savingpowermanager.db-journal

E/SQLiteLog( 872):

E/SQLiteLog( 872): (257) Close fd: 60

E/SQLiteLog( 872):

E/SQLiteLog( 872): (257) Open fd: 60, file: /data/data/com.yulong.android.savepowermanager/databases/savingpowermanager.db-journal

E/SQLiteLog( 872):

E/SQLiteLog( 872): (257) Close fd: 60

E/SQLiteLog( 872):

E/SQLiteLog( 872): (257) Open fd: 60, file: /data/data/com.yulong.android.savepowermanager/databases/savingpowermanager.db-journal

E/SQLiteLog( 872):

E/SQLiteLog( 872): (257) Close fd: 60

E/SQLiteLog( 872):

E/SQLiteLog( 872): (257) Open fd: 60, file: /data/data/com.yulong.android.savepowermanager/databases/savingpowermanager.db-journal

E/SQLiteLog( 872):

E/SQLiteLog( 872): (257) Close fd: 60

E/SQLiteLog( 872):

E/SQLiteLog( 872): (257) Open fd: 60, file: /data/data/com.yulong.android.savepowermanager/databases/savingpowermanager.db-journal

E/SQLiteLog( 872):

E/SQLiteLog( 872): (257) Close fd: 60

E/SQLiteLog( 872):

Logcat shows this when i press the power button for unlock the device.. :eek: maybe this is the problem? i don't get it btw :crying:

Update:

Forgot to attach the complete logcat.
[XDA-University] lacoursiere18:
Hey guys.. Need a little help again..My LED port kind of fell through bc I lack the smali knowledge for implementing some things in settings:(

But anyway I have a new port that i am working on and having a little issue.. I have managed to work through a lot of them on my own but this one I am not able to figure out or see in a log.. And thought maybe someone here with a good eye could spot something for me..

I ported over IME animations form pac man rom.. I have eveything in place.. SecSettings works fine without FC.. I also edited the framework.jar..

I pulled a log of me clicking each animation, changing it and then hitting the "test IME animation" button..

If someone would take a look I would GREATLY appreciate it.. I would like to get one of these things working ;)

View attachment IMEanimationsLog.zip

Thanks in advance!

If you need more info just ask me.. Also I will post all my findings and a guide if requested on doing this:good:
[XDA-University] Stryke_the_Orc:
Sorry gentlemen, I've been mobile almost all day, when I have the chance I'll review these and try to help. Also I'll be including a new tool in the list of tools and apps. This one looks very promising!

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] Stryke_the_Orc:
Ok red highlights are your error

Purple highlights These are usually in the public.xml file or resources files (the names of these files may vary, I suggest using a tool like file-seek to find all instances of the code/text/etc... you enter)

and finally, Blue highlights will require edits to multiple files that all link to eachother.
[XDA-University] abo hani:
Ok , thanks

I will decompile framework-res.apk and other RES apka and find it :)

Thanks prissed :D

*Find 0x***% in the "Being ported" rghit ? :D
[XDA-University] Stryke_the_Orc:
Yes.
[XDA-University] Stryke_the_Orc:
Post 4 updated with a new tool. :good::highfive:
[XDA-University] lacoursiere18:
Found what i was looking for.. Thanks for this thread though! Will prob need it again sometime soon:D
[XDA-University] Stryke_the_Orc:
Apologies, I went through the logs but forgot to reply :eek:

Glad you have solved this issue though:good:
[XDA-University] Stryke_the_Orc:
Can you post up the original (stock for your device) method for comparison?
[XDA-University] Stryke_the_Orc:
Where did this line of code come from?

move-result-object v1
iput-object v1, p0, Landroid/inputmethodservice/InputMethodService;->mWindowIme:Landroid/view/Window;
.line 747
invoke-direct {p0}, Landroid/inputmethodservice/InputMethodService;->updateSettings()V
[XDA-University] lacoursiere18:
Thats is a good question I do not remember adding that but I may have.. Let me look over my edits again..:rolleyes:

EDIT: It is not in stock but is in the method I was comparing it too.. Not sure it belongs.. I may need to go through the hole smali again bc I added it on accident:rolleyes::confused:

THANKS for the second set of eyes!

EDIT#2: Looks like I need to revisit this WHOLE smali..Did it on a small screen at work think I am missing important bits
[XDA-University] mkuehl06:
I recently compiled a rom (AOKP for gee) (sprint optimus g) and it compiled no problem but went into an endless bootloop. i hope you guys can help me diagnose the issue.. http://pastebin.com/ZHTJvjK7
[XDA-University] Stryke_the_Orc:
E/AndroidRuntime(25006): java.lang.RuntimeException: Unable to instantiate application android.app.Application: java.lang.IllegalStateException: Unable to get package info for com.tmobile.thememanager; is system dying?

This error is causing your system to loop, it can't find the package and it needs it.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] youngchaos:
Stryke can you help me read my logcat?

I've deodexed the rom , and boot successfully but when i reboot i get stuck on lockscreen and cannot do anything..
[XDA-University] Stryke_the_Orc:
You posted this in another thread correct? My apologies if you did and I haven't gotten back to you. When I get home tonight I'll grab your logs and take a look, just do me a favor and shoot me a pm to remind me[emoji106]

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] Vivek_Neel:
Remove theme manager related repos using local manifest .

repo sync

And then compile

Typed using Iphone kb and sent from my GT-I9100 using Tapatalk 2
[XDA-University] mkuehl06:
<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote name="gh" fetch="git://github.com/" />

<project path="device/lge/gee-common" name="xboxfanj/android_device_lge_gee-common" remote="gh" revision="vanir" />

<project path="device/lge/gee" name="xboxfanj/android_device_lge_gee" remote="gh" revision="android-4.4" />

<project path="kernel/lge/gee" name="xboxfanj/kernel_msm" remote="gh" revision="glitch" />

<project path="vendor/lge/gee" name="spleef/proprietary_vendor_lge-xbox" remote="gh" revision="android-4.4" />

</manifest>

here is my local manifest. is there something i missed?
[XDA-University] Vivek_Neel:
Its OK.

But you did not add the remove project line for theme manager .

Look in your manifest.xml and there you will find the project name of theme manager.

But don't edit/save manifest

See below my local manifest for syntax

http://www.mediafire.com/?suj7asb21ssrq32

Typed using Iphone kb and sent from my GT-I9100 using Tapatalk 2
[XDA-University] mkuehl06:
Ill try that and report back, thank you
[XDA-University] Bashar Jarad:
hello sir i have this problem i see my device is offline what should i do ?

note : i follow your steps exactly
[XDA-University] Stryke_the_Orc:
Try putting your device into download or fastboot mode and see if your computer recognizes it. If it doesn't make sure you have the latest adb and tools from google.

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] Stryke_the_Orc:
[MENTION=5351403]youngchaos[/MENTION] I haven't forgotten about you, just been busy. I should have time to get to it tonight[emoji106]

Slithering from the nether regions of a twisted mind and tarnished soul
[XDA-University] Bashar Jarad:
hello guys

i have this log in the bootloop

any one can help me please ?

thanks in advanced :D

http://www74.zippyshare.com/v/1978459/file.html
[XDA-University] Stryke_the_Orc:
TBH, this looks like it's trying to run with no supporting libraries. Can you tell me what you did to deodex the rom, and the exact steps you took to flash it?

Also, if possible give me the device name and model #, and post a copy of your updater script.

Thanks :D