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

unqualified

Senior Member
Nov 14, 2013
141
60
0
Denver
Really liking this ROM. Battery lasts all day and it seems very responsive and lightweight, however, I'm having a few minor problems.

Every once in awhile all text (in menus, in apps, everywhere) will get all garbled up and look corrupted, almost like memory from one location bled over to another or something. Everything still *works* fine, it's all just illegible until I reboot. Only seems to happen once a week or less, so not a huge issue, but still there.

My other problem is that the camera seems to take corrupt images when used within any app other than the actual camera app. So if I take a picture with the camera it comes out just fine and there are no problems, but if I use a different app to take a picture, like my bank's app so I can deposit a check, the resulting image is either corrupt looking or will have parts of the *previous* image taken overlaid into it.

Has anyone else had any issues like this? They haven't stopped me from using this ROM as my new DD, but I'd like to fix them if possible.
Yep, I have both those issues. Never really noticed the third party camera issue until you mentioned it. As far as the garbled text, it doesn't happen that often, but the workaround I use is to enable the "Kill App Back Button" in Developer options, then just long press the back button if it happens. It works on any app, including the launcher, so you don't have to reboot the whole phone.
 
  • Like
Reactions: Kline

Kline

Senior Member
Mar 5, 2009
250
14
0
Illinois
Yep, I have both those issues. Never really noticed the third party camera issue until you mentioned it. As far as the garbled text, it doesn't happen that often, but the workaround I use is to enable the "Kill App Back Button" in Developer options, then just long press the back button if it happens. It works on any app, including the launcher, so you don't have to reboot the whole phone.
Well hey, glad to know it's not just my phone and thanks for the tip with the "Kill App Back Button"! Haven't had the garbled up text problem for about two weeks now (woo woo!) but I've turned that on and will give it a go next time I run into that.

I think the times when I wake the phone and immediately try to do a lot of actions are when that text issue seems to happen most often, so I've been giving the phone a second or two to fully wake up before doing things and it's been going swell.
 

hview

Senior Member
Dec 31, 2012
134
20
0
Karachi
Firstly I am not responsible for anything you do to your device.

Current Android Version: 4.2.2
Current Kernel: 2.6.35.14(Synthetic's mint_chocolate)

Bugs:
Browser - freeze/ANR. (Use Firefox or Chrome for workaround)
Occasional glitching of graphics


Anyone else I may have forgotten
what about headphone overheated bug?
 

ibuddler

Senior Member
Jul 9, 2012
308
127
0
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.
 

Steppnasty

Senior Member
Oct 11, 2012
76
98
0
Washington D.C.
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
 

Steppnasty

Senior Member
Oct 11, 2012
76
98
0
Washington D.C.
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.
 

Steppnasty

Senior Member
Oct 11, 2012
76
98
0
Washington D.C.
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.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone