[ROM] SuperOSR and CyanogenMod7 on HTC ChaCha.

Search This thread

Alex C.

Senior Member
Aug 17, 2011
1,032
500
I've been looking into it yesterday... On my Chacha, the 0 key is also the Symbol key. It's keycode 183 iirc (or something like 18x, but not 11). I couldn't find this keycode in the kcm (maybe it was too late lol). So we'll need to find a trick... ;)

Is there any chance you could set up a repository/github where we could put files and get the rom so that we could also try different stuff?

Have you tried using the stock .kcm files and .kl files? (currently at work and kinda busy)
 
  • Like
Reactions: miguelmaldonado

qbert456

Senior Member
Jul 21, 2010
432
34
Other than checking this thread every chance I get and sending encouraging thoughts I can't help I'm afraid - keep up the good work tho chaps.



Sent from my HTC ChaCha A810e using Tapatalk
 

adlx.xda

Inactive Recognized Developer
Feb 4, 2010
1,541
1,752
Madrid
Is there any chance you could set up a repository/github where we could put files and get the rom so that we could also try different stuff?

Have you tried using the stock .kcm files and .kl files? (currently at work and kinda busy)

I'll set that up tonight (like in +11 hours from now), and post the info here.

regarding the kcm/kl, what do you mean by stock? AOSP? or stock chacha-keypad kcm/kl files? (I've been working off the chacha-keypad files). Any way, there is more keys defined in the Chacha physical keyboard, like the Sym/0 key, which isn't defined in the CM framework (as far as I've seen).

Also, in my case, after getting the keyboard to "start working", I have a lot of other keys that are not working (not only the 0, like the T, V,..). I don't remember the list right now, but there where several columns (which btw do not relate with the "columns" defined in the kl file).

I tested the GPS using GPS Status & GPS Test and it seemed to be working fine. I couldn't get a sat fix because I was indoor, but it was showing 1 or 2 sats.

Also the 3-axis orientation sensors, as it was correctly showing in GPS Status.

Also the light sensor was showing data in the device file :-D
 

astro11

Senior Member
Oct 10, 2011
85
7
Quebec
Other than checking this thread every chance I get and sending encouraging thoughts I can't help I'm afraid - keep up the good work tho chaps.

I feel the same way, that's why I started going on other ChaCha/Status forums to tell people adlx and the folks are here, in xda, porting cyanogenmod and doing a lot of good for the community... I'll just try to bring more people here to thank who deserves.

And of course, keep up the good work guys!
 
  • Like
Reactions: adlx.xda

Alex C.

Senior Member
Aug 17, 2011
1,032
500
I'll set that up tonight (like in +11 hours from now), and post the info here.

regarding the kcm/kl, what do you mean by stock? AOSP? or stock chacha-keypad kcm/kl files? (I've been working off the chacha-keypad files). Any way, there is more keys defined in the Chacha physical keyboard, like the Sym/0 key, which isn't defined in the CM framework (as far as I've seen).

Also, in my case, after getting the keyboard to "start working", I have a lot of other keys that are not working (not only the 0, like the T, V,..). I don't remember the list right now, but there where several columns (which btw do not relate with the "columns" defined in the kl file).

I tested the GPS using GPS Status & GPS Test and it seemed to be working fine. I couldn't get a sat fix because I was indoor, but it was showing 1 or 2 sats.

Also the 3-axis orientation sensors, as it was correctly showing in GPS Status.

Also the light sensor was showing data in the device file :-D

Awesome job man!

Yeah replacing the keyboard files themselves with the ones from a stock rom on a device. (2.3.5 preferably). Cannot test it until I get home tonight unfortunately and give out some feedback.
 
  • Like
Reactions: miguelmaldonado

xd.bx

Senior Member
May 14, 2011
431
292
I'm close to giving up on the Bluetooth side. I think some magic is missing in the kernel but I can't seem to figure out what.

adlx.xda: you must tweak an Android.mk somewhere to add something like CHACHA_KEYPAD and tweak the .h so the FUNC_1 and QUECHAR keys are understood by the ui. This by itself is not sufficient, I may need to tweak the kcm as well.

---------- Post added at 06:49 PM ---------- Previous post was at 06:38 PM ----------

I tested the GPS using GPS Status & GPS Test and it seemed to be working fine. I couldn't get a sat fix because I was indoor, but it was showing 1 or 2 sats.

Quick question: what are your BOARD_VENDOR_QCOM_AMSS_VERSION and your BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION ?
 
Last edited:
  • Like
Reactions: carstenheuer

adlx.xda

Inactive Recognized Developer
Feb 4, 2010
1,541
1,752
Madrid
I'm close to giving up on the Bluetooth side. I think some magic is missing in the kernel but I can't seem to figure out what.

adlx.xda: you must tweak an Android.mk somewhere to add something like CHACHA_KEYPAD and tweak the .h so the FUNC_1 and QUECHAR keys are understood by the ui. This by itself is not sufficient, I may need to tweak the kcm as well.

---------- Post added at 06:49 PM ---------- Previous post was at 06:38 PM ----------



Quick question: what are your BOARD_VENDOR_QCOM_AMSS_VERSION and your BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION ?

I had used the same VISION_KEYPAD already defined, just added that to frameworks/base:


Code:
From fb7326a1ec2db3be7e25ea3dece6ddf1d2999bd7 Mon Sep 17 00:00:00 2001
From: Alexandre Dumont
Date: Thu, 20 Oct 2011 00:37:48 +0200
Subject: [PATCH 2/2] Declare chacha as VISION_KEYPAD

Change-Id: I35be42d63b74ddcf9ca44144fc63f42d0f7e9c40
---
 libs/ui/Android.mk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libs/ui/Android.mk b/libs/ui/Android.mk
index ad00b12..184ee3d 100644
--- a/libs/ui/Android.mk
+++ b/libs/ui/Android.mk
@@ -40,6 +40,8 @@ endif

 ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),latte)
        LOCAL_CFLAGS += -DLATTE_KEYPAD
+else ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),chacha)
+       LOCAL_CFLAGS += -DVISION_KEYPAD
 else ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),vision)
        LOCAL_CFLAGS += -DVISION_KEYPAD
 else ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),speedy)
--
1.7.4.1

That way the kbd is working, like yours I guess ;). no 0(SYM) nor ? (QUECHAR). I'm gonna look into the stock Chacha KeyEvent.java & the kcm file, hope I can understand & see what is wrong here.

I use no BOARD_VENDOR_QCOM_AMSS_VERSION nor BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION. (edited, I was wrong the first time).

Tested GPS and got a fix :-D, see screenshot.

Btw, Orientation is working now too (flipping portrait/landscape)
 

Attachments

  • GPS_OK.png
    GPS_OK.png
    39.6 KB · Views: 167
Last edited:

carstenheuer

Senior Member
Jan 4, 2011
498
134
Berlin
PayPal donation for adlx.xda :cool:

---------- Post added at 11:42 AM ---------- Previous post was at 11:38 AM ----------

I'm so hot for CM7 :p
 
Last edited:
  • Like
Reactions: adlx.xda

xd.bx

Senior Member
May 14, 2011
431
292
I have a hint on making the camera work: seems the camera supports continuous AF. I think tweaking QualcommCameraHardware.cpp a little bit might do the trick. Also the CameraParameters API seems involved.
 

xd.bx

Senior Member
May 14, 2011
431
292
So gps seems to be working but I can't get more than two satellites (I get more than 5 on the crespo). Wierd, maybe it has something to do with the loc_api version?
 
  • Like
Reactions: carstenheuer

adlx.xda

Inactive Recognized Developer
Feb 4, 2010
1,541
1,752
Madrid
So gps seems to be working but I can't get more than two satellites (I get more than 5 on the crespo). Wierd, maybe it has something to do with the loc_api version?

I got 5 satelites fixed yesterday (see http://attachments.xda-developers.com/attachment.php?attachmentid=755984&d=1319150355).

I'm not using BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE nor BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION (sorry I made a mistake in the previous post when u asked).
 
Last edited:

xd.bx

Senior Member
May 14, 2011
431
292
I'm using the stock sensors.chacha.so. Hit me up on gtalk whenever you have a question :-D. Should be faster than the thread.

Thanks adlx.xda. For the record, I got the AKM sensor working with a small modification of the Liberty libsensors: in nusensors.h, change /dev/akm8973_aot to /dev/akm8975_aot. Also change 8973 to 8975 in the ueventd.chacha.rc.
 

Cadabena

Senior Member
Aug 31, 2010
66
5
United Kingdom
I'm really thrilled about this work and would love to help but I'm nowhere near the technical level of you guys. I recommended this phone for my girlfriend after her 3GS and she's never been happy with me since, constantly out of memory, she just wanted something like CM7 on my Desire so this would be perfect. Would a custom HBOOT be coming along with this to make up for the considerably smaller /system footprint from CM7? Once again thanks for all your work on this little niche device, you're saviours to me right now.
 

adlx.xda

Inactive Recognized Developer
Feb 4, 2010
1,541
1,752
Madrid
working keyboard

small update (yet big achievemnt for me): 0 and ? keys are working now.
btw, xdbg also fixed it, before me atually, but I was already almost finishing to fix it when I knew about it, so I finished lol
 

Attachments

  • keyboardfixed.png
    keyboardfixed.png
    26 KB · Views: 106

xd.bx

Senior Member
May 14, 2011
431
292
small update (yet big achievemnt for me): 0 and ? keys are working now.
btw, xdbg also fixed it, before me atually, but I was already almost finishing to fix it when I knew about it, so I finished lol

Heh :) Now what remains is the Camera and Bluetooth. I haven't made much progress on that front so far.
 

qbert456

Senior Member
Jul 21, 2010
432
34
Bluetooth is quite a big deal for me as I pair phone with car to/from work!

But if it didn't work I'd still give it a go, might use my legend for car journeys....

Great work guys!!!

Sent from my HTC ChaCha A810e using Tapatalk
 

Alex C.

Senior Member
Aug 17, 2011
1,032
500
Bluetooth is quite a big deal for me as I pair phone with car to/from work!

But if it didn't work I'd still give it a go, might use my legend for car journeys....

Great work guys!!!

Sent from my HTC ChaCha A810e using Tapatalk

Off-topic question: what car is it? (manufacturer/model).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 54
    Hello everyone!

    This topic contains all the development stages of custom ROMs, please read the full topic before asking any questions; refrain from asking silly questions/"questions that are easier to answer on Google than logging into XDA, browsing to HTC ChaCha, dev section, this thread, click on post reply, entering the question, clicking submit, waiting for someone to read and reply"/un-constructive feedback-criticism/anything unrelated to these two roms.

    In the order of their availability:

    NOTE: Give thanks and feedback to the developers. Install any of these roms for the purpose of testing and providing information/feedback in the thread. Neither of these are stable yet, they are experimental builds and this topic represents the simplest bug tracking database.


    Apparently users do not read the known issues list. FRONT CAMERA is NOT working. Do not switch to front camera, otherwise Camera.apk will crash constantly. To fix this go to Settings -> Applications -> Manage -> All -> Camera -> Clear data and cache -> Reboot your phone.

    I. SuperOSR by adlx.xda
    SuperOSR (OpenSourceRom and CM) based ROM: SuperOSR-chacha-2.5-20120724.zip - 83.13 MB
    Current version: 20120329-0005
    More information about the ROM HERE.

    Release notes for 1314
    - New kernel with swap enabled. it will also now mount correctly your sd-ext partition as ext4 (if formated as ext4, which is the how my CWM will format it).
    Release notes for 0159
    - FB key remap option in SupSetup/Parts
    - All the keypad fixes avail to date (only for unlocked users, S-Off will still need the patches)
    Release notes for 0513
    - Build is odexed --> I believe it is a significant gain of space in /data (now it will occupy <30 Mb after first start, leaving 120 Mb free)
    - Comes with all the keyboard kl/kcm.bin. (only usefull if S-On, bc S-Off lost their CID. If S-Off flash a keypad patch after the rom)
    - Removed bloat
    Tips and tricks, known issues and workarounds:
    1. Wi-Fi module is not connecting to hidden networks. - reported as fixed, router channel must be set <13
    2. Sometimes Wi-Fi will not connect to an AP after setting it up (Scanning -> Connecting -> Disconnected -> Scanning -> Connecting.. etc.). In this case press and hold the connection, remove it, create it again, then switch Wi-Fi off/on.
    3. I suggest performing the following if you still cannot connect to a visible Wi-Fi AP: Settings -> Wireless & networks -> Wi-Fi Settings -> Press menu button -> Advanced -> Regulatory domain -> 13 channels -> Wi-Fi sleep policy -> Never
    4. Front camera is not working. In study.
    5. Default battery icon and percentage battery icon shown at the same time if activated from the CM settings. No workaround available yet.
    6. Facebook button is unassigned (does nothing). What should it open?​


    II. CyanogenMod (by xd.bx) since 19.01.2012 adlx.xda took over
    CM 7.2.0 (CyanogenMod) based ROM: DOWNLOAD Release No.: 20120321-2039
    More information about the ROM HERE.

    Tips and tricks, known issues and workarounds:
    1. Wi-Fi module is not connecting to hidden networks. reported as fixed, router channel must be set <13
    2. Sometimes Wi-Fi will not connect to an AP after setting it up (Scanning -> Connecting -> Disconnected -> Scanning -> Connecting.. etc.). In this case press and hold the connection, remove it, create it again, then switch Wi-Fi off/on.
    3. I suggest performing the following if you still cannot connect to a visible Wi-Fi AP: Settings -> Wireless & networks -> Wi-Fi Settings -> Press menu button -> Advanced -> Regulatory domain -> 13 channels -> Wi-Fi sleep policy -> Never
    4. Front camera is not working. In study.
    5. Facebook button is unassigned (does nothing). What should it open?

    Other useful information:
    ChaCha Keypad Files/Key mapping
    http://xdaforums.com/showthread.php?t=1456154
    http://xdaforums.com/showpost.php?p=18763527&postcount=101 from adlx.xda
    These should be placed on your device to change your keyboard layout.

    Google Apps - Used for Google account (contacts/calendar sync); also contains GMail/Market. This is not included in the CM rom (by default, CyanogenMod does not contain Google services and applications; these can be added separately by users that want them). Remember that there are users who would like to remove everything Google related from their roms as there are some services which use internet/battery when they want and have dependencies with Google Contacts Sync/Calendar Sync/Gmail. Include requests of gapps into a custom ROM by default will be declined.
    http://cmw.22aaf3.com/gapps/gapps-gb-20110828-signed.zip

    Fix for GSM/Phone.apk crash
    http://xdaforums.com/showpost.php?p=20710120&postcount=474
    Thanks to carstenheuer for finding this out.

    Radio - for people having GPS issues (unable to find sats/get a fix)
    http://xdaforums.com/showthread.php?t=1257776
    A810b
    Another thing has come to our attention: a new region-based model is out, the A810b.
    Do not flash any of the radios available around here as they are mostly based for the A810e model, which uses a different network bandwidth and a lot of issues might occur.

    For more information regarding GSM network frequency, check here: http://www.gsmarena.com/network-bands.php3?
    This might also provide some information as to why 3G doesn't work, for example.

    Small adb kit
    For people that need adb without installing the whole SDK kit, adlx.xda provided a little bit of knowledge regarding this nifty little thing included in other applications.
    http://alex.swtesting.ro/downloads/adb-and-moto-fastboot-win32.zip

    GPS fix
    For people out there without a working GPS on one of the two builds the fix is:
    1. Get a stock ROM.
    2. Go outside using a GPS application (like GPS Test from the Market)
    3. Wait until you get a fix and a location.
    4. Flash SuperOSR/CM.
    5. Redo step 2.
    6
    CM7 Roadmap

    For those who missed it, check http://www.cyanogenmod.com/blog :D

    After CyanogenMod 7.2 is released, we will be merging in and welcoming aboard maintainers for the following devices (with more queued):

    HTC Status (chacha)
    HTC Wildfire S (marvel)
    LG Optimus Chic (e720)
    Motorola Photon (sunfire)
    Samsung Galaxy 5 (i5500)
    5
    working so far

    yesterday late I tried with xdbg's kernel, init.chacha.rc & bcm module and the TS worked. using his kernel I got to test more things:

    So far, in my build this is what I have tested:

    - Touchscreen: OK
    - Calls (with audio): OK
    - Data (3g): OK
    - Wifi: OK

    Doesn't work (yet):
    - Physical keyboard :( (I can get data from input device though)
    - leds and backlight, not well tested, but didn't seem to be working (it work manually though, by echoing in the /proc)
    - Camara
    - GPS
    - Sensors

    SMS, MMS: untested

    Screenshots gallery: https://www.dropbox.com/gallery/788286/1/SuperOSR-Chacha?h=5cc26e#/
    5
    Hi.

    A couple of pointers/possible solutions:

    - Physical keyboard :( (I can get data from input device though)

    You must patch frameworks/base/include/ui/KeycodeLabels.h or remove the unknown keys from chacha-keypad.kl. I suspect other files must be patched as well, for example to make the 0 work.

    - leds and backlight, not well tested, but didn't seem to be working (it work manually though, by echoing in the /proc)

    Check that you have lights.msm7k.so and also check the permissions in init.chacha.rc. You might need a newer lights than the one used in the Liberty.


    I think the libcamera.so from HTC has a different API than CM7. Also you must uncomment PRODUCT_SPECIFIC_DEFINES += TARGET_PRELINKER_MAP... in your vendor/cyanogen/products/cyanogen_chacha.mk.
    Check the libcameraservice source code. This problem could be slightly harder to fix.


    I think the radio is more recent than on the Liberty, hence the loc_api version will be higher. Try 20000 and 50000. Also try with the gps.chacha.so from stock ROM.


    Try with a newer libsensors or sensors.chacha.so from stock ROM.
    5
    Link removed because it was obsolete