FORUMS
Remove All Ads from XDA

[ROM][JB][02/28/2019] aospSX 1.0.9

76 posts
Thanks Meter: 95
 
Post Reply Email Thread
5th September 2014, 06:55 PM |#111  
Senior Member
Thanks Meter: 127
 
More
Quote:
Originally Posted by eximido

Excuse me, do those issues with the camera mentioned in the first post mean that main camera doesn't work at all in any app in the latest 1.0.1 build?

This is due to the kernel. I don't think camera works on jb with 2.6 kernel. The best and most solid combine will be ics with 2.6. The support for mt4g is far less even than the 1st gen desire. On that device, I'm on 4.4 without any bugs.

Tbo, there's no real developers working on this device any more. Anyone looking for a DD should stay on ics. If you don't mind the flicker screen, you can upgrade to any jb roms with early 3.0 kernel. This is a great device but I think it's the time for everybody to move on. Next time, just don't buy an HTC device.
 
 
8th September 2014, 06:32 PM |#112  
OP Member
Flag Washington D.C.
Thanks Meter: 95
 
Donate to Me
More
That is correct. I am currently trying to rewrite the camera driver to work with the open source version of libcamera. The libcamera blob that I was originally using used pmem which is deprecated in newer versions of android.

Sent from my SPH-L720 using XDA Free mobile app
15th September 2014, 02:02 AM |#113  
OP Member
Flag Washington D.C.
Thanks Meter: 95
 
Donate to Me
More
Quote:
Originally Posted by eximido

Excuse me, do those issues with the camera mentioned in the first post mean that main camera doesn't work at all in any app in the latest 1.0.1 build?

That is correct. The libcamera blob that I was using in the previous builds do not support the ION memory manager. I am currently trying to rewrite the camera driver to work with the open-source libcamera.
The Following 3 Users Say Thank You to Steppnasty For This Useful Post: [ View ] Gift Steppnasty Ad-Free
11th March 2015, 03:04 AM |#114  
OP Member
Flag Washington D.C.
Thanks Meter: 95
 
Donate to Me
More
Since the last update I have been working on getting the camera operational. I could have taken the easy route and just brought up PMEM just for the camera but that would have been messy and it would make any future updates I do a PITA. So I dove into the code and learned a few things that I thought I would share here since it is difficult to find any documentation online. First of all I originally thought that libcamera was made open source for jellybean. This is actually only partially correct. When I was trying to make the libcamera code work I kept running into issues where it felt like the code was not finished. For instance, libcamera would send an IOCTL to the kernel and expect a response from a second non-existant thread. After writing in a substantial amount of "missing" code into libcamera in an effort to "complete" it, I decided to google one of the IOCTLs that were missing from libcamera. I managed to find something on a chinese website that wasn't much help except for the title of the page which was "mm_qcamera_daemon". After doing some research on this I came to the conclusion that the "missing thread" from libcamera was actually a separate program that communicates with libcamera and the kernel driver. So prior to Jellybean the camera was structured like this:

Camera App->android frameworks->libcameraservice->camera HAL->libcamera->liboemcamera->kernel driver

As of Android 4.2.2 it was reworked to look something like this:

camera App->android frameworks->libcameraservice->camera.msm7x30->libmmcamera_interface->kernel driver
mm_qcamera_daemon->kernel driver

Basically the proprietary imaging functions were moved out of the main thread and into a separate executable that runs at boot. There were significant changes made to the kernel drivers that are similar to the changes made to the framebuffer drivers. The camera sensor drivers have had most of their functions moved to a sort of shared sensor driver with the actual sensor drivers mostly holding specific register settings. A lot of the changes were made to tie the camera sensors into Video For Linux 2 (V4L2). Userspace functions in libmmcamera & mm_qcamera_daemon then talk to the camera drivers through V4L2.

So I managed to write a Jellybean camera sensor driver for the main rear camera that works with this new format. I have also made progress writing a program that will act as the daemon. Currently I have a camera preview on the rear facing camera. I still have clean up to do on my local code before I commit as everything is a mess right now. I am trying to get everything close to the jb_mr1.1-release branch AOSP with as few modifications as possible. If everything goes smoothly I should be able to post the next release in a couple of weeks.
The Following 7 Users Say Thank You to Steppnasty For This Useful Post: [ View ] Gift Steppnasty Ad-Free
11th March 2015, 12:09 PM |#115  
mybestway's Avatar
Senior Member
Flag Beijing
Thanks Meter: 32
 
More
Thumbs up
you did lots of work on our Glacier. thank you very much !
12th April 2015, 01:43 PM |#116  
OP Member
Flag Washington D.C.
Thanks Meter: 95
 
Donate to Me
More
1.0.2 is up! Lots of updates. Rear camera works. Sort of. Still a work in progress but I figured I would add the theme manager as a distraction. So enjoy!
The Following 4 Users Say Thank You to Steppnasty For This Useful Post: [ View ] Gift Steppnasty Ad-Free
14th April 2015, 02:44 AM |#117  
conzzy's Avatar
Member
Flag Colombo
Thanks Meter: 4
 
More
Quote:
Originally Posted by Steppnasty

1.0.2 is up! Lots of updates. Rear camera works. Sort of. Still a work in progress but I figured I would add the theme manager as a distraction. So enjoy!

Many thanks for your efforts on this old device.. will test this build later
16th April 2015, 06:58 AM |#118  
Syaoran Lord's Avatar
Junior Member
Flag Ho Chi Minh
Thanks Meter: 8
 
Donate to Me
More
Quote:
Originally Posted by Steppnasty

1.0.2 is up! Lots of updates. Rear camera works. Sort of. Still a work in progress but I figured I would add the theme manager as a distraction. So enjoy!

Thanks you,I will test this build now <3
10th February 2016, 01:28 PM |#119  
Junior Member
Thanks Meter: 0
 
More
re-new my MT4G..... downloading the ROM and will test it.
11th March 2016, 04:03 PM |#120  
OP Member
Flag Washington D.C.
Thanks Meter: 95
 
Donate to Me
More
1.0.3 is up. Lots of bug fixes, camera fixes, etc. Let me know if you dirty flash and are unable to find the Camera app. Or any issues that is.
The Following 5 Users Say Thank You to Steppnasty For This Useful Post: [ View ] Gift Steppnasty Ad-Free
20th March 2016, 04:53 PM |#121  
jwhood's Avatar
Senior Member
Flag baltimore,md
Thanks Meter: 193
 
More
Can't believe you are still updating the ole mt4g still,that's great commitment I still have mine I'm gonna try it

Sent from my HUAWEI P8max using Tapatalk
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes