Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
zenulator
Old
(Last edited by zenulator; 25th January 2012 at 02:18 PM.)
#1  
zenulator's Avatar
Recognized Developer - OP
Thanks Meter 309
Posts: 2,355
Join Date: Apr 2009

 
DONATE TO ME
Default ICS Camera Driver Dev thread

I'm posting this in hopes to get more people involved in getting the camera working in ICS roms for the shift.

You will need to pull twistedumbrellas android_hardware_qcom_camera / 7x30 branch into your builds:

https://github.com/TwistedUmbrella/a.../tree/ics/7x30

Then add the following to your boardconfig.mk

Code:
TARGET_LEGACY_CAMERA := true
Pull the following from a gingerbread rom for the shift to build against:
A stock sense gingerbread rom should work fine.

libcamera.so
libmmipl.so
libmmjpeg.so
liboemcamera.so

Add a working media_profiles.xml to system/etc

Correct permissions in the init.rc by adding the following lines:

Code:
# Add permissions for camera access
    chmod 0666 /dev/msm_camera/config0
    chmod 0666 /dev/msm_camera/control0
    chmod 0666 /dev/msm_camera/frame0

    chmod 0666 /dev/graphics/fb0
Credits go to rapmv78 and twistedumbrella
rampv78s thread for the nexus:
Twistedumbrellas thread for the ace:
The Following 10 Users Say Thank You to zenulator For This Useful Post: [ Click to Expand ]
 
abadasstanker69
Old
#2  
abadasstanker69's Avatar
Senior Member
Thanks Meter 360
Posts: 1,371
Join Date: Mar 2009
Location: Houston, Tx
Is this the instructions to get it working or what you think COULD work? I'm sorry if it's a dumb question. It just wasn't very clear.

Sent from my PG06100 using xda premium
 
zenulator
Old
#3  
zenulator's Avatar
Recognized Developer - OP
Thanks Meter 309
Posts: 2,355
Join Date: Apr 2009

 
DONATE TO ME
Quote:
Originally Posted by abadasstanker69 View Post
Is this the instructions to get it working or what you think COULD work? I'm sorry if it's a dumb question. It just wasn't very clear.

Sent from my PG06100 using xda premium
The instructions are to get it to work if you are building from source per twistedumbrella. I havent had time to do a full build with it so i posted this for anyone to try.


Sent from my PG06100 using XDA App
The Following 2 Users Say Thank You to zenulator For This Useful Post: [ Click to Expand ]
 
Xqtftqx
Old
#4  
Junior Member
Thanks Meter 6
Posts: 16
Join Date: Jun 2010
Sorry to be offtopic slightly, but what source tree are you using for the device?

Sent from my PG06100 using XDA App
 
abadasstanker69
Old
#5  
abadasstanker69's Avatar
Senior Member
Thanks Meter 360
Posts: 1,371
Join Date: Mar 2009
Location: Houston, Tx
Quote:
Originally Posted by zenulator View Post
The instructions are to get it to work if you are building from source per twistedumbrella. I havent had time to do a full build with it so i posted this for anyone to try.


Sent from my PG06100 using XDA App
I'll give it a shot if I ever get some time :-/ being a maintenance superintendent and moving is time consuming!

Sent from my PG06100 using xda premium
 
zenulator
Old
#6  
zenulator's Avatar
Recognized Developer - OP
Thanks Meter 309
Posts: 2,355
Join Date: Apr 2009

 
DONATE TO ME
The source tree doesnt matter as long as the libs are compiled against the camera.msm7x30.so source.

The best bet for anyone trying this is to use evervolv or kushdeck since they have the speedy vendor and device setup then use twistedumbrellas msm7x30 source for the camera. Kushdeck has the qsd8 source in his github which should be changed out for twistedumbrellas.



Sent from my PG06100 using XDA App
 
JKILO
Old
#7  
JKILO's Avatar
Senior Member
Thanks Meter 158
Posts: 658
Join Date: Feb 2011
Location: Columbus

 
DONATE TO ME
if anyone manages to do this before me then twistedumbrellas link is down..i forked it from another so here is a working link:

https://github.com/JKILO/android_hardware_qcom_camera

im currently downloading source..slow connection..and i have a netbook to compile source with so again if you have a faster setup take a swing cause almost anything could beat me to it
 
jesuscash
Old
#8  
Senior Member
Thanks Meter 301
Posts: 949
Join Date: Jan 2012
Quote:
Originally Posted by JKILO View Post
if anyone manages to do this before me then twistedumbrellas link is down..i forked it from another so here is a working link:

https://github.com/JKILO/android_hardware_qcom_camera

im currently downloading source..slow connection..and i have a netbook to compile source with so again if you have a faster setup take a swing cause almost anything could beat me to it
I would do it, but i have no idea on how to do any of this
 
sparksco
Old
(Last edited by sparksco; 26th January 2012 at 11:09 PM.)
#9  
sparksco's Avatar
Recognized Developer
Thanks Meter 3959
Posts: 6,352
Join Date: Feb 2010

 
DONATE TO ME
Quote:
Originally Posted by jesuscash View Post
I would do it, but i have no idea on how to do any of this
That's why this is a developer thread...
HTC G1: Bricked
HTC G1 #2: Broke
HTC Evo Shift 4G: Active
ASUS Nexus 7: Active


2-step unroot back to stock 2.3.4 from s-off-Evo Shift 4G
My Work-Evo Shift 4G

Lead Developer of SaberMod
Nexus 4 SaberMod
Nexus 7 SaberMod
Nexus 7 3G SaberMod

If I've helped you in any way shape or form please hit the thanks button


The Following User Says Thank You to sparksco For This Useful Post: [ Click to Expand ]
 
JKILO
Old
(Last edited by JKILO; 26th January 2012 at 06:00 PM.)
#10  
JKILO's Avatar
Senior Member
Thanks Meter 158
Posts: 658
Join Date: Feb 2011
Location: Columbus

 
DONATE TO ME
i have the build going through make right now..maybe itll work..will test later and post results

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...