yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] Zepius:
it is better to learn how to do it as you will be better able to fix the phone yourself if something happens

if the toolkit broke your phone, you wouldve created a thread and with something similar to this title: '[HELP] MY PHONE IS BRICKED'

with the body of the thread something like this: "i used such and such toolkit now my phone wont even boot! please help!"
[Samsung Galaxy Nexus] Knighthawk108:
LOL your absolutely right! thanks for clarifying :D
[Samsung Galaxy Nexus] strumcat:
This thread was custom made for curious new gnex users:

http://xdaforums.com/showthread.php?t=1812959

[REF] efrant's "Android for Galaxy Nexus" 101 & FAQs
[Samsung Galaxy Nexus] cybereric518:
So what I have been reading...no matter which method I use, when I unlock the bootloader, it will reset the phone to factory. So I'm wondering the reset would be to ICS or JB?
[Samsung Galaxy Nexus] el_charlie:
The android version you're currently running. It just wipes the data partition (including /sdcard which in turn is a symlink of /data/media).

Cheers!
[Samsung Galaxy Nexus] RogerPodacter:
To answer your question, yes you can be rooted on stock rom and not use a custom rom.
[Samsung Galaxy Nexus] cookie1203:
Hey guys, I'm new to this phone but not new to the forums, I googled it and searched but couldn't find anything like to what I'm running in to. If I missed it sorry.

I received my gsm nexus last Wednesday and ran stock jb for a day then had to root and try some custom Roms. Coming from the tmo sgs2, the pure quantity of Roms almost overwhelmed me. I decided on minco to start with. I had a couple random reboots, not doing anything crazy with it, No different kernels or baseband or anything. No damage to it either. I tried cm10, xenon and aokp, same thing with all of them. With every new flash I always wiped everything so that couldn't be it either. Is this a known issue or something that I'm just going to have to live with?
[Samsung Galaxy Nexus] aventinus:
Hello. I have the same problem using Revolution HD ROM atm. Coming from HTC Desire I remember that the first 6 months were full of random reboots no matter the ROM. But after that they disappered, not magically but probably due to software fixes. I guess that's the same thing with GNex. Atm I have a reboot once or twice a day. It's pretty annoying cause I have lost some calls due to that. But I'm not sure how to fix it. I guess I'll just wait.

p.s. Someone in XDA said that random reboots might be the result of problematic apps. Suggesting that one of our apps is malfuctioning which kinda makes sense since random reboots seems to be a problem of very few people.
[Samsung Galaxy Nexus] Mattymat:
I'm having the same problems, but I'm curious how we pinpoint which app it could be. I'm currently on CM10 with Franco's kernel, and but it's also happened on BAMF too.
[Miscellaneous Android Development] abhishek046:
PLEASE REFER TO THE MOST RECENT COMMENTS AS A LOT OF CHANGES HAVE TAKEN PLACE OVER TIME.

I'm creating a separate thread related to camera development for our LG P690 aka LG OPTIMUS NET so as to avoid spamming and mix up of topics in other threads.

Please don't spam this thread with topics other than the LG P690 camera.

If you're a developer and know about C programming, YOU'RE THE GUY WE NEED!!!:D:D

I'll brief up what we're doing here:-

I've been studying the camera problem of our device from quite a long time and I've been trying to fix it but its taking lot of time. So, I need help from interested people so that I can possibly fix it asap!!:fingers-crossed: I'm gonna list what we have to do to fix it in steps.

If you've ever seen a logcat for the camera for any of the recent roms for our device, you'll notice this line:

E/CameraService( 1506): Camera HAL module not loaded

This line means that the camera module that needs to be loaded for the camera to start is not being loaded. Solving this would be the 1st step in solving the camera problem. To do this we need the camera.msm7x27.so lib from devices with working camera(preferably with preview as well) which exists in the /system/lib/hw directory.

If you're interested in helping me, find devices with specs similar to our own and download JB, ICS roms of those devices. The specs I'm speaking of are:-

Must be ARMV6

Must have a 3MP camera

It must have a msm7x27 board(THIS IS MOST IMPORTANT)

In general its specifications must be as similar to our device as possible

Extract the rom, go to /system/lib/hw, get the camera.msm7x27.so lib, upload it & obviously provide me a link to it on this thread. This will save a lot of time in downloading roms one by one and trying to fix.

Please do include:

Name of the device

Name of the rom from which you have extracted the lib
[Miscellaneous Android Development] abhishek046:
RESERVED

I'll be uploading test fixes in this post from now on. I need someone to test these. Flash cm9 or cm10 or aopk ics rom onto your device. If you don't know how to logcat specifically for the camera, download the alogcat apk provided in this post as well. Even if you do know, its easier doing it using this app.

1)Place the rom, cam fix zip file and alogcat apk(if needed) on your sd card.

2)Do a clean wipe, flash the rom and flash the fix as well.

3)Reboot and install the alogcat apk.

4)Enable USB debugging on your phone and connect to pc. Open adb and type the following commands one by one.

adb shell
su
chmod 0666 /dev/msm_camera/config0
chmod 0666 /dev/msm_camera/control0
chmod 0666 /dev/msm_camera/frame0
chmod 0666 /dev/graphics/fb0

Reboot.

5)Open alogcat. Set camera as the filter in options & minimize.

6)Now click on the camera icon. You'll probably get an error. Close it.

7)Open alogcat and see if camera HAL module was loaded instead of the error mentioned on the 1st post.

8)If it shows the same error as that on the 1st post, the fix is useless. If HAL module was loaded before the camera crashed, we're in luck!!:D

9)Post that logcat and mention the fix file name.

Loading the HAL module is the 1st step and we're gonna have to keep on trying libs from different phones, make small modifications and try. So post the camera.msm7x27.so from working roms having similar specifications as ours.
[Miscellaneous Android Development] aj1234josh:
ready to help in any way.. :laugh: :laugh: :angel: :angel:
[Miscellaneous Android Development] sacredash:
Here's one from p500 aokp with working camera. Rename and remove .zip.
[Miscellaneous Android Development] daedricgeek:
Hi,

I'm ready to test and post dmesg, logcat, etc. Just tell me what to do ...

Btw what are the phones with same soc? I'll try to search xda and download such rom's :beer::)
[Miscellaneous Android Development] abhishek046:
Guys go to the 2nd post. I've posted a test fix. The instructions are on the post itself.

@sacredash I'm not able to use your file. I'm not able to extract it & renaming doesn't seem to help either. Upload it once again plz. Try mediafire.
[Miscellaneous Android Development] aj1234josh:
trying asap.. :good: :good:
[Miscellaneous Android Development] sacredash:
It wasn't a zip file I had to rename it because .so shows invalid file.

hw.zip
[Miscellaneous Android Development] aj1234josh:
the above fix cam patch_03 dint workd for me..anybody else tried?i tried on aokp..:confused:
[Miscellaneous Android Development] abhishek046:
The camera itself won't work with that patch. The aim is to make the HAL module load. That's why I'm asking for logcats. As of now, the logcat shows the error written in the 1st post, i.e HAL module not loading. If the new logcat, i.e the logcat after flashing the patch shows that the camera HAL loaded and then the camera crashed, I can modify this fix to make the cam work. Right now our aim is to CHECK WHETHER THE HAL MODULE LOADS.
[Miscellaneous Android Development] aj1234josh:
m saying same..it dint worked for me means,,the HAL module dint loaded..i checked logcat its same..
[Miscellaneous Android Development] abhishek046:
Hmm, that lib was from a p500 rom. I'll try with sacredash's lib tomo. Meanwhile we need to make a list of devices which have specs similar to ours & most imp-a msm7x27 board. It'll help others in selecting roms to download. Could you help??
[Miscellaneous Android Development] sacredash:
Tried the patch too and got Hal module not loaded before as well as after.

Btw most devices with our specs don't have a working camera in ics, p500 is the closest.
[Miscellaneous Android Development] abhishek046:
If not all specs, it must use msm7x27 board atleast. Then we can try. Most roms containing cams which are partially working were done by switching libs and modding. Once if we manage to get the HAL module loaded, then the rest of the fixing I can do. Finding the right camera.msm7x27.so is the headache. We won't get a perfect cam through this but it'll allow 3rd party camera apps to function which can do that job.
[Miscellaneous Android Development] aj1234josh:
i think this link may help in making list for devices..

http://smartphonebenchmarks.com/for...msm7225-msm7625-processors-how-good-are-they/

we hav to particularly find Qualcomm MSM7x27 (MSM7227 MSM7627) devices
[Miscellaneous Android Development] aj1234josh:
sorry off topic..

@abhishek046

if you know how to work with sources can you try to fix speaker phone..

this is the source for speaker fone fix for p500 can you make it work for p690?

https://github.com/lgics/cm_device_lge_p500/commit/61e35e443f326d8ea66ca08803920aeb42b9b360
[Miscellaneous Android Development] alex-p690:
Name: Lg Optimus Hub (the phone is pretty much the same, but it has a 5MP camera

ROM: CyanogenMod 9 (in the changelog it says that it's working paritially)

in the archive is just the system/lib/hw

hope this can help you guys.
[Miscellaneous Android Development] Laur3nt1u:
htc legend it's a MSM7227 device with working camera on jell bean port only with a third part app as Camera Illusion... so have you tested with this app?
[Miscellaneous Android Development] aj1234josh:
can you provide updaterscript and boot.img of same rom?
[Miscellaneous Android Development] alex-p690:
here they are... Do you need anything else?
[Miscellaneous Android Development] OldDroid:
come on guys, you cant fix the problem with camhal with using libs from another device -.-'

User requested to me to help, so i will do ... I heared that youtube hq isnt working on p690? its such an easy thing ...

maybe anyone can cooperate with me to test and debug my builds of cm9 and cm10

Cheers and Regards

Recognized developer,

OldDroid
[Miscellaneous Android Development] markolino631:
Hi OldDroid! i maked cm9 and cm10 for net :)

for camera i'm using proprietary lib and lg camera hal and libcamera works and load but camera can't connect!
[Miscellaneous Android Development] bieltv3:
U should use your camera libs, and try to take as base the lg libcamera or samsung camera.

@Oldroid I think they should join us on androidarmv6 if they arent already :P

EDIT: if u wamt to join androidarmv6 your dev should contact rashed97. Also I think, building our framework will have youtube HQ working...

EDIT_2: use legacy camera, dont use JB camera for fix it as JB 4.2 camera needs modifications on frameworks that wayland ace did on amdroidarmv6 frameworks. So yeao use legacy camera for cm9 and cm10, dont try it on CM10.1 yet
[Miscellaneous Android Development] markolino631:
tried also other camera app but still nothing! on logcat it shows only maximum zoom value is 61 if i remember right
[Miscellaneous Android Development] bieltv3:
Try what I told u, using libs from ur original GB rom and build libcamera of some lg devices similar to yoiurs from scratch and tell results here, also link me to ur camera.msm7x27.so source, will take a look and try to help.
[Miscellaneous Android Development] markolino631:
here's the camera source: https://github.com/androidarmv6/android_device_lge_msm7x27-common/tree/ics

i also tried to use builded libcamera but still nothing! camera app force close and on logcat only java errors of camera app closed but i will try again
[Miscellaneous Android Development] OldDroid:
AW: ICS, AOKP & JB Camera Fixing for the LG P690 aka LG OPTIMUS NET

im already in the team but a noob in gerrit :P

also camhal is built for froyo camera libs. maybe thats the point. or im wrong?
[Miscellaneous Android Development] markolino631:
R: ICS, AOKP & JB Camera Fixing for the LG P690 aka LG OPTIMUS NET

its possibile! also I'm noob with gerrit :)

Inviato dal mio LG-P760 con Tapatalk 2
[Miscellaneous Android Development] bieltv3:
Did u put in boardconfig

True in camera stuff

And

True in froyo camera

Sorry cant remember the exact names in boardconfig, ill edit asap.

Enviado desde mi GT-S5830 usando Tapatalk 2

EDIT: this are the commands in boarconfig.mk, some new, I think u should try those:

USE_CAMERA_STUB := true

BOARD_USE_NASTY_PTHREAD_CREATE_HACK := true

CAMERA_FC_HACK := true

try those, and comment results...
[Miscellaneous Android Development] Andrian25:
The above method does not work!

Friends, the question everyone Have you tried to change cameraparameters for s5k5caga camera module?

This is in android_frameworks_av repository :o

We all look forward to and we hope to fix the camera, We remember and will not forget! ;)

And thank you for helping developers idea, we need all your help!

idea is this, you need to disassemble libcamera.so and prescribe the necessary parameters in the library framework itself!

this will be the camera hack as mentioned above!

USE_CAMERA_STUB := true

BOARD_USE_NASTY_PTHREAD_CREATE_HACK := true

CAMERA_FC_HACK := true

https://github.com/androidarmv6/android_frameworks_av

to edit and append commands missing libraries camera with our GB
[Miscellaneous Android Development] Andrian25:
camera HAL

We have compiled the 4.2.2 does not work:

network

bt

Hal camera is not loaded

https://github.com/lgics/android_de...mmit/036a7da072774ecc386f0df39d78f2be4273263d

this is not the right decision! And because of this may not work correctly hal module! Do not miss the function!
[Miscellaneous Android Development] Andrian25:
Attention new log loading camera EXPERIMENTAL 4.2.2!

I/CameraService( 1493): CameraService started (pid=1493)

E/HAL ( 1493): load: module=/system/lib/hw/camera.msm7x27.so

E/HAL ( 1493): Cannot load library: soinfo_link_image(linker.cpp:1649): could not load library "libcamera.so" needed by "camera.msm7x27.so"; caused by soinfo_relocate(linker.cpp:989): cannot locate symbol "_ZN7android16CameraParameters17KEY_SHUTTER_SOUNDE" referenced by "libcamera.so"...

E/CameraService( 1493): Could not load camera HAL module

And why does not work bt

D/bt_hwcfg( 2888): Chipset BCM4330B1

D/bt_hwcfg( 2888): Target name = [BCM4330B1]

I/bt_hwcfg( 2888): FW patchfile: /etc/firmware/BCM4325D1_004.002.004.0218.0248.hcd

E/bt_hwcfg( 2888): vendor lib preload failed to open [/etc/firmware/BCM4325D1_004.002.004.0218.0248.hcd]

I/bt_hwcfg( 2888): Setting local bd addr to 22:22:CF:05:B4:85

I/bt_hwcfg( 2888): vendor lib fwcfg completed

it loads the module bt from p500

please help to fix it! :rolleyes:
[Miscellaneous Android Development] markolino631:
R: ICS, AOKP & JB Camera Fixing for the LG P690 aka LG OPTIMUS NET

you need to changes framework base and add shutter sound

Inviato dal mio LG-P760 con Tapatalk 2
[Miscellaneous Android Development] Andrian25:
changed, an error loading the library is gone, but the camera still does not hal loaded, how to load?

bt fixing,network not..
[Miscellaneous Android Development] markolino631:
which error? also i'm stuck at this...
[Miscellaneous Android Development] Andrian25:
V/CameraHolder( 2895): open camera 0

E/CameraService( 1492): Camera HAL module not loaded

E/CameraHolder( 2895): fail to connect Camera

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

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

E/CameraHolder( 2895): at android.hardware.Camera.<init>(Camera.java:340)

E/CameraHolder( 2895): at android.hardware.Camera.open(Camera.java:302)

E/CameraHolder( 2895): at com.android.camera.CameraManager.cameraOpen(CameraManager.java:283)

E/CameraHolder( 2895): at com.android.camera.CameraHolder.open(CameraHolder.java:210)

E/CameraHolder( 2895): at com.android.camera.Util.openCamera(Util.java:394)

E/CameraHolder( 2895): at com.android.camera.PhotoModule$CameraStartUpThread.run(PhotoModule.java:331)

only when you start the camera
[Miscellaneous Android Development] markolino631:
turn off phone, connect phone to pc and do a logcat when the phone starts! you can see which error make camera hal not load
[Miscellaneous Android Development] dodgedroid:
camera HAL could be ported from another device, i got an optimus sol and also on JB 4.1.2 camera was not working, but somebudy had ported camera HAL libs/module from an xpera device that have same specs as i have....somebudy could try.
[Miscellaneous Android Development] DeviousFusion:
I see the logs from 4.2.2. What's the status for 4.1.2 and 4.0.4? I am still syncing the sources. Its slow.
[Miscellaneous Android Development] PolishVodka:
Maybe try this camera module from GT540 , working on JB.
[Miscellaneous Android Development] PolishVodka:
Or try this one from AOKP ICS. Working on LG Optimus GT540.
[Miscellaneous Android Development] PolishVodka:
Do you have smooth video playback on ICS/JB? Or videos laggy?
[Miscellaneous Android Development] aj1234josh:
YOUTUBE HQ FIX FOR ICS :angel::angel::-

http://xdaforums.com/showthread.php?p=37323941#post37323941

FOR WORKING YOUTUBE HQ JB PA..CHECKOUT MY SIGNATURE..
[Miscellaneous Android Development] DeviousFusion:
Hello PolishVodka. Thanx for the files, will have a look at them. I don't think the AOKP one will work, will see with the JB one you posted earlier. Whats the onboard camera sensor of GT540?

Umm..Andrian25, Marko..anything new??
[Miscellaneous Android Development] Andrian25:
error now by your log in startPreview that is, at the very end!

We all forum 4pda tried to run the camera and network 4.2.2 but it never happened. If anyone knows how to fix it, see the log and help please!

All sources I'll lay out!

---------- Post added at 06:01 PM ---------- Previous post was at 05:39 PM ----------

http://www.mediafire.com/?55rccblbmddn5wm all source

http://www.mediafire.com/?xde4r64r2sg0aew JB 4.2.2 what happened

---------- Post added at 06:11 PM ---------- Previous post was at 06:01 PM ----------

I think we need to ask for help arm6 team https://github.com/androidarmv6?tab=members

by p500 is 3.0 kernel and is completely all works, Do not sit, act and ask for help!

Marko example, even bought the phone and he is not even trying to help!
[Miscellaneous Android Development] markolino631:
i worked on camera of net 1 YEAR and i only managed to make camera hal and libcamera stock works and nothing so i tried to help but i don't know how to continue :)
[Miscellaneous Android Development] DeviousFusion:
Marko, it is really true that we wouldn't have been able to reach without your help and your work on the sources. But you know, the problem is still not solved. I know this camera is being a pain in ass, but lets not give up. There are people from other forums coming in to help. Lets get all we can. Are you there on armv6 development?? Anything happening there on this problem Please get back on this soon.

To ALL:

We have different sets of logcats here now. Can we please brainstorm and think over some new idea? We need complete participation from all devs (even those not so expert).
[Miscellaneous Android Development] Andrian25:
Marco I have laid out above source, continue, and help run the hal to them. We in 4.2.2 does not run hal module. However, all the other errors with the camera fixed. And if you know how to repair the network, too, tell me.
[Miscellaneous Android Development] aj1234josh:
can sombdy give me log of network by:terminal emulator

command:

give me the output..i wil try on network..
[Miscellaneous Android Development] Andrian25:
log rild

D/su ( 3419): su invoked.

E/su ( 3420): sqlite3_exec: callback requested query abort

D/su ( 3421): db denied

W/su ( 3423): request rejected (10050->0 /system/bin/sh)

D/AndroidRuntime( 3422):

D/AndroidRuntime( 3422): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<

D/AndroidRuntime( 3422): CheckJNI is OFF

D/dalvikvm( 3422): Trying to load lib libjavacore.so 0x0

D/dalvikvm( 3422): Added shared lib libjavacore.so 0x0

D/dalvikvm( 3422): Trying to load lib libnativehelper.so 0x0

D/dalvikvm( 3422): Added shared lib libnativehelper.so 0x0

D/AndroidRuntime( 3422): Calling main entry com.android.commands.am.Am

D/dalvikvm( 3422): Note: class Landroid/app/ActivityManagerNative; has 157 unimplemented (abstract) methods

D/dalvikvm( 2058): GC_CONCURRENT freed 343K, 57% free 3363K/7696K, paused 23ms+21ms, total 327ms
[Miscellaneous Android Development] Andrian25:
It was possible to run the camera hal with native library libcamera.so to 4.2.2 now there are new bugs, we're close! Help us! Complete logs run number where the idle network and the camera

https://disk.yandex.ru/public/?hash=fYwc18GseBht5EyOkdn56q5RW8n+fmc6L+p60YMNaWc=
[Miscellaneous Android Development] markolino631:
yes only with ro.product.qcomdevice=msm7627

camera "starts" because libcamera.so proprietary of p690 is compiled with that line! (i think)

but i'm not managed to make camera works after this...
[Miscellaneous Android Development] Andrian25:
all the network errors!

V/NetworkMonitor( 3121): Intent { act=android.net.conn.CONNECTIVITY_CHANGE_IMMEDIATE flg=0x8000010 (has extras) }
V/NetworkMonitor( 3121): Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x8000010 (has extras) }
V/NetworkMonitor( 3121): Network is DOWN, Checkin HAS succeeded, GLS IS connected
W/Netd ( 1487): No subsystem found in netlink event
D/ConnectivityService( 1896): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 1854): ConnectivityService starting up
I/SystemServer( 1854): NetworkManagement Service
I/SystemServer( 1854): NetworkStats Service
I/SystemServer( 1854): NetworkPolicy Service
E/ConnectivityService( 1854): Ignoring protectedNetwork 10
E/ConnectivityService( 1854): Ignoring protectedNetwork 11
E/ConnectivityService( 1854): Ignoring protectedNetwork 12
E/MobileDataStateTracker( 1854): default: Ignoring feature request because could not acquire PhoneService
E/MobileDataStateTracker( 1854): default: Could not enable APN type "default"
D/ConnectivityService( 1854): setMobileDataEnabled(false)
D/ConnectivityService( 1854): setMobileDataEnabled(true)
D/NetworkManagementService( 1854): enabling bandwidth control
F/NetworkManagementService( 1854): problem enabling bandwidth controls

camera reaches a certain point and stops working with any application:

D/[UCAM]ModuleCreator( 3626): start module 1
D/[UCAM]NormalModule( 3626): initializeModuleControls
D/PreviewFrameLayout( 3626): window size is 320X480 density:160
D/[UCAM]CameraHolder( 3626): Open camera 0
[COLOR="Red"]W/CameraService( 1493): CameraService::connect X (pid 3626) rejected (existing client).[/COLOR]
[COLOR="Red"]E/[UCAM]CameraHolder( 3626): Fail to connect Camera[/COLOR]
E/[UCAM]CameraHolder( 3626): java.lang.RuntimeException: Fail to connect to camera service
E/[UCAM]CameraHolder( 3626): at android.hardware.Camera.native_setup(Native Method)
E/[UCAM]CameraHolder( 3626): at android.hardware.Camera.<init>(Camera.java:340)
E/[UCAM]CameraHolder( 3626): at android.hardware.Camera.open(Camera.java:302)
E/[UCAM]CameraHolder( 3626): at com.ucamera.ucampro.aa.dX(Unknown Source)
E/[UCAM]CameraHolder( 3626): at com.ucamera.ucampro.u.cN(Unknown Source)
E/[UCAM]CameraHolder( 3626): at com.ucamera.ucampro.c.c.d(Unknown Source)
E/[UCAM]CameraHolder( 3626): at com.ucamera.ucampro.modules.u.run(Unknown Source)
[Miscellaneous Android Development] kitkatshabam:
Any news about camera fixing?
[Miscellaneous Android Development] Andrian25:
hephappy added caf options in the framework, now the camera should work! Did fix in the source network. But while you can not collect when you sync the latest version 4.2.2 I get an error bluetooth.

We are waiting for all along this fix. I'll let you know about the news if it appears! :D