• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root ICS Camera Ideas

amzer81

Well-Known Member
Is it possible to maybe replace all the files from GingerBread to ICS that have to do with the camera so we at least have a GB camera on ICS? maybe this is dumb lol. But i just thought it wouldn't hurt to ask.
 
I'm sure there is still a lot of work to do to get camera working correctly but it is a great start :thumb:
Actually, to quote,

gannon5197 said:
Hey tjstyle, so us at the Triumph forums are in desperate need of you to update your sources on Github with the camera fixes for ICS. If you could please do this, it would help a LOT of us out.

Thanks a lot,

Gannon
tjstyle said:
gannon5197 said:
Well thanks a lot! But can you please update your sources for the kernel edits you did?
tjstyle said:
Any files that I've edited is there, on fb0 branch.
gannon5197 said:
Oh wow so no kernel edits. Thanks so so so so so much. Like you have no idea how much this benefits us. I'll be sure to give you credit in my thread and to all of AF
tjstyle said:
if you have any bug fix or solution, please let me know on this thread:
Login
 
This just made me smile profusely and then smile once more when I noticed nobody seen me in nerd mode. HELL YEA
 
Funny enough I woke up this AM and had the same thing in my email

You have just been sent a personal message by tj_style on Andro-ID Forum - Indonesian Android Community.

IMPORTANT: Remember, this is just a notification. Please do not reply to this email.

The message they sent you was:

Here you go: https://github.com/tjstyle/hardware_qcom_camera :)

Going to build it here in a sec to see if it actually works. I will report back.

edit:
Looks like Mantera maybe updating some stuff on the repo as it failed to build

Code:
target Java: TelephonyProvider (out/target/common/obj/APPS/TelephonyProvider_intermediates/classes)
packages/apps/Phone/src/com/android/phone/CallNotifier.java:1342: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
        boolean notifOption = Settings.System.getInt(mApplication.getPhone().getContext().getContentResolver(), Settings.System.ENABLE_MWI_NOTIFICATION, 0) == 1;
                                                                                                                               ^
packages/apps/Phone/src/com/android/phone/CallFeaturesSetting.java:439: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
                    Settings.System.ENABLE_MWI_NOTIFICATION, mwi_notification);
                                   ^
packages/apps/Phone/src/com/android/phone/CallFeaturesSetting.java:485: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
                    Settings.System.ENABLE_MWI_NOTIFICATION, mwi_notification);
                                   ^
packages/apps/Phone/src/com/android/phone/CallFeaturesSetting.java:1573: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
            int mwi_notification = Settings.System.getInt(getContentResolver(), Settings.System.ENABLE_MWI_NOTIFICATION, 0);
                                                                                               ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
make: *** [out/target/common/obj/APPS/Phone_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
DroidDoc took 22 sec. to write docs to out/target/common/docs/api-stubs
 
My repo built successfully. I'm about to test it after I have it ssh'd over.

EDIT: Well sure enough, my build did the same thing it usually does and doesn't build camera.msm7x30.so. I'm going to have to find out why.
 
edit:
Looks like Mantera maybe updating some stuff on the repo as it failed to build

Code:
target Java: TelephonyProvider (out/target/common/obj/APPS/TelephonyProvider_intermediates/classes)
packages/apps/Phone/src/com/android/phone/CallNotifier.java:1342: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
        boolean notifOption = Settings.System.getInt(mApplication.getPhone().getContext().getContentResolver(), Settings.System.ENABLE_MWI_NOTIFICATION, 0) == 1;
                                                                                                                               ^
packages/apps/Phone/src/com/android/phone/CallFeaturesSetting.java:439: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
                    Settings.System.ENABLE_MWI_NOTIFICATION, mwi_notification);
                                   ^
packages/apps/Phone/src/com/android/phone/CallFeaturesSetting.java:485: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
                    Settings.System.ENABLE_MWI_NOTIFICATION, mwi_notification);
                                   ^
packages/apps/Phone/src/com/android/phone/CallFeaturesSetting.java:1573: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
            int mwi_notification = Settings.System.getInt(getContentResolver(), Settings.System.ENABLE_MWI_NOTIFICATION, 0);
                                                                                               ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
make: *** [out/target/common/obj/APPS/Phone_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
DroidDoc took 22 sec. to write docs to out/target/common/docs/api-stubs

Hmm.. that's really weird seeing how mantera hasn't even messed with the packages_apps_phone repo. I would try repo syncing as it maybe a problem on CMs side.
 
Hmm.. that's really weird seeing how mantera hasn't even messed with the packages_apps_phone repo. I would try repo syncing as it maybe a problem on CMs side.

Yeah I always delete everything in the directory and do a fresh repo sync each time.
 
Funny enough I woke up this AM and had the same thing in my email

You have just been sent a personal message by tj_style on Andro-ID Forum - Indonesian Android Community.

IMPORTANT: Remember, this is just a notification. Please do not reply to this email.

The message they sent you was:

Here you go: https://github.com/tjstyle/hardware_qcom_camera :)

Going to build it here in a sec to see if it actually works. I will report back.

edit:
Looks like Mantera maybe updating some stuff on the repo as it failed to build

Code:
target Java: TelephonyProvider (out/target/common/obj/APPS/TelephonyProvider_intermediates/classes)
packages/apps/Phone/src/com/android/phone/CallNotifier.java:1342: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
        boolean notifOption = Settings.System.getInt(mApplication.getPhone().getContext().getContentResolver(), Settings.System.ENABLE_MWI_NOTIFICATION, 0) == 1;
                                                                                                                               ^
packages/apps/Phone/src/com/android/phone/CallFeaturesSetting.java:439: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
                    Settings.System.ENABLE_MWI_NOTIFICATION, mwi_notification);
                                   ^
packages/apps/Phone/src/com/android/phone/CallFeaturesSetting.java:485: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
                    Settings.System.ENABLE_MWI_NOTIFICATION, mwi_notification);
                                   ^
packages/apps/Phone/src/com/android/phone/CallFeaturesSetting.java:1573: cannot find symbol
symbol  : variable ENABLE_MWI_NOTIFICATION
location: class android.provider.Settings.System
            int mwi_notification = Settings.System.getInt(getContentResolver(), Settings.System.ENABLE_MWI_NOTIFICATION, 0);
                                                                                               ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
make: *** [out/target/common/obj/APPS/Phone_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
DroidDoc took 22 sec. to write docs to out/target/common/docs/api-stubs

Yeah, I definitely haven't changed anything in phone.apk. If you just did a repo sync and it's doing that, it's possible that upstream CM pushed changes to framework/base or packages/apps/settings that is not reflected in my github yet though. You may need to manually sync to cm upstream in those repos.

Also, if there are no kernel edits needed, then possibly my newest kernel v1.2.2 in 0.6.15.0/1 may work with no further changes. In that kernel, I updated the camera headers and files to the ics chocolate 3.0.x versions so all of the variables defined in tj_style's changes looks like they should be referenced correctly in the latest kernel version.

I'll try a build tonight when I get home from work.
 
Yeah, I definitely haven't changed anything in phone.apk. If you just did a repo sync and it's doing that, it's possible that upstream CM pushed changes to framework/base or packages/apps/settings that is not reflected in my github yet though. You may need to manually sync to cm upstream in those repos.

Also, if there are no kernel edits needed, then possibly my newest kernel v1.2.2 in 0.6.15.0/1 may work with no further changes. In that kernel, I updated the camera headers and files to the ics chocolate 3.0.x versions so all of the variables defined in tj_style's changes looks like they should be referenced correctly in the latest kernel version.

I'll try a build tonight when I get home from work.

Hey mantera, any reason why my setup isn't building camera.msm7x30.so? I've got it defined to build it in my device_triumph.mk?
 
Yeah, I definitely haven't changed anything in phone.apk. If you just did a repo sync and it's doing that, it's possible that upstream CM pushed changes to framework/base or packages/apps/settings that is not reflected in my github yet though. You may need to manually sync to cm upstream in those repos.

Also, if there are no kernel edits needed, then possibly my newest kernel v1.2.2 in 0.6.15.0/1 may work with no further changes. In that kernel, I updated the camera headers and files to the ics chocolate 3.0.x versions so all of the variables defined in tj_style's changes looks like they should be referenced correctly in the latest kernel version.

I'll try a build tonight when I get home from work.

I am sure that's all it is. I have remote access from work to home so I just merged the upstream with frameworks/base

44 files changed. 1044 insertions(+), 235 deletions(-)

Going to build again and see what happens.
 
Just like a visa commercial

Get excited and download new Camera code :D:D:D:D
repo sync with Cyanogenmod (4 minutes)
Merge android_frameworks_base with Cyanogenmod (2 minutes)
Build source code with updated Camera HAL (43 minutes)
upload zip to a remote site (7 minutes)
Download .zip, then wipe and install (10 minutes)

Reboot and stay stuck on Cyanogen splash screen....(7 minutes with two reboot tries)

PRICELESS!!!

Ah the life of a developer :rolleyes: since I don't have ADB local with me I can't look at the issue, but my guess is the new Camera code is not playing nice with our device. Time to reload phone and get everything set back up :P
 
Just like a visa commercial

Get excited and download new Camera code :D:D:D:D
repo sync with Cyanogenmod (4 minutes)
Merge android_frameworks_base with Cyanogenmod (2 minutes)
Build source code with updated Camera HAL (43 minutes)
upload zip to a remote site (7 minutes)
Download .zip, then wipe and install (10 minutes)

Reboot and stay stuck on Cyanogen splash screen....(7 minutes with two reboot tries)

PRICELESS!!!

Ah the life of a developer :rolleyes: since I don't have ADB local with me I can't look at the issue, but my guess is the new Camera code is not playing nice with our device. Time to reload phone and get everything set back up :P
Yeah when I pulled in dzo's camera code it gave me a bootloop. Well, kinda. I got to where it said "starting applications" and it just stayed there. Was giving me error codes on camera. Looks like we'll need to edit these to our liking.
 
Yeah when I pulled in dzo's camera code it gave me a bootloop. Well, kinda. I got to where it said "starting applications" and it just stayed there. Was giving me error codes on camera. Looks like we'll need to edit these to our liking.

Yeah I wonder if it's still not something to do with kernel. I wonder if we used tj's kernel if it wouldn't work.
 
This may be the wrong place to ask...but I read that ice cream had the face recognition to unlock. Does that work on our phones with these roms? Do these roms have all the features they a phone that comes with ice cream has? Minus the hdmi and stuff...but who needs that?
 
This may be the wrong place to ask...but I read that ice cream had the face recognition to unlock. Does that work on our phones with these roms? Do these roms have all the features they a phone that comes with ice cream has? Minus the hdmi and stuff...but who needs that?

to be honest features is least of their worries, they're trying to get the camera up and running first. you can download face recognition app if you really want it i used it on cm7. none of them are truly accurate.
 
I'm saying does an ics ROM do everything stock ics does? All the features...the camera is a feature of the phone. It's not an ics feature.
 
I'm saying does an ics ROM do everything stock ics does? All the features...the camera is a feature of the phone. It's not an ics feature.

If the cameras worked (specifically the front camera), then the face unlock should work. I've seen it in the code. However, whether or not that will work without tweaking, we don't know yet until the cameras works and it can be tested.
 
Back
Top Bottom