[ROM] CM9 4.0.4 ICS HTC HD Mini [16.Jul.2012]

Search This thread

acrocosm

Senior Member
Sep 27, 2008
202
53
and I tried padding it after the change to maintain the original filesize. still doesn't work. I only get a black screen
 

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
There's no "liberty" entry in libcamera.so. There is however a single entry in liboemcamera.so. I copied that to SD, then PC, then used HxD to change that to "photon", I put it back on the device and set the proper permissions for it. I finally rebooted but the camera now doesn't work at all!

"photon" is 1 character shorter than "liberty" Do I need to pad the file with 00 at the end to maintain it's filesize???

Yes of course...
 

hkdennis2k

Member
Nov 7, 2010
11
1
Great work.

However, I'd like to report problems I have on the "04.Jun. for rom 24.May.2012" version.

I have a lot of random freezing and not responding that require me to cold boot(remove battery). When I
  • Try to play youtube
  • Facebook app
  • Login to facebook using default browser
  • Blank screen and cannot pickup incoming calls
When it freeze, ALL buttons do not response, screen just freeze.

What else I could do to help the development?
 
  • Like
Reactions: rigo007

iPlasm

Senior Member
Feb 15, 2011
729
481
Please tell me, which sign tool you are using?
http://xdaforums.com/showpost.php?p=27137979&postcount=552
because I saw different tools that may not compatible with this photon.
I did it all your Steps for the Aria ROM, just replaced & also I didn't change the board name, the Board name is Liberty as it is.

just the (Modified Liberty) needs to be signed or either I can't pass it on Recovery.
 
  • Like
Reactions: draltus

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
Please tell me, which sign tool you are using?
http://xdaforums.com/showpost.php?p=27137979&postcount=552
because I saw different tools that may not compatible with this photon.
I did it all your Steps for the Aria ROM, just replaced & also I didn't change the board name, the Board name is Liberty as it is.

just the (Modified Liberty) needs to be signed or either I can't pass it on Recovery.
You need to delete line in META-INF\com\google\android\updater-script:
Code:
assert(getprop("ro.product.device") == "liberty" || getprop("ro.build.product") == "liberty");

Details is here http://xdaforums.com/showpost.php?p=27137979&postcount=552
But why not you build cm9 from source?
 
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
There's no "liberty" entry in libcamera.so. There is however a single entry in liboemcamera.so. I copied that to SD, then PC, then used HxD to change that to "photon", I put it back on the device and set the proper permissions for it. I finally rebooted but the camera now doesn't work at all!

"photon" is 1 character shorter than "liberty" Do I need to pad the file with 00 at the end to maintain it's filesize???

About liboemcamera.so... I disasembled it now, and found: changing string liberty to photon and adding remaining bute 0x00 give this instruction: "photon",0,0 instead of "liberty",0 that is wrong (its reason for black screen in camera !), but I found a way how to do it... just replace string "legend" with "photon" and blue camera will be fixed (it will working only if you not changed board from photon to liberty in build.prop!!!).

Here is patched liboemcamera, just revert back build.prop to photon (if you changed it to liberty), and use:
Code:
adb remount
adb push liboemcamera.so /system/lib/
reboot device and I think blue screen will be fixed... Try and let me know :)
 
Last edited:
  • Like
Reactions: tm.bax and draltus

iPlasm

Senior Member
Feb 15, 2011
729
481
You need to delete line in META-INF\com\google\android\updater-script:
Code:
assert(getprop("ro.product.device") == "liberty" || getprop("ro.build.product") == "liberty");

Details is here http://xdaforums.com/showpost.php?p=27137979&postcount=552
But why not you build cm9 from source?

I said I did everything, deleted this first line in Updater-script before, but do you mean I don't need special signapk? or I can just Packup Zip with WinRar?

about why don't I build from CM9 Source, I'm sorry.. I don't have enough knowledge for Phone Devices, I'm more on Computer. I don't have the tools to do?
---
Also I tried your last patched liboemcamera.so and replaced by Root Explorer then rebooted, My board name is still photon & I didn't change anything, But Camera save image is still Blue...
 

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
I said I did everything, deleted this first line in Updater-script before, but do you mean I don't need special signapk? or I can just Packup Zip with WinRar?

about why don't I build from CM9 Source, I'm sorry.. I don't have enough knowledge for Phone Devices, I'm more on Computer. I don't have the tools to do?
---
Also I tried your last patched liboemcamera.so and replaced by Root Explorer then rebooted, My board name is still photon & I didn't change anything, But Camera save image is still Blue...

Yes, you can use winrar without need to use signapk! Are you sure you replaced liboemcamera? What happens when you change borad type to liberty, did your save image blue?
 

iPlasm

Senior Member
Feb 15, 2011
729
481
I didn't change the Board name ever, it is photon as it is. and yes I have replaced with your new liboemcamera.so patched to system/lib, tried with Superuser using Root Explorer. it is still saving blue Images (in Preview OK), but I didn't use ADB becuase I didn't find Debug mode in this CM9 Rom.

*about Modified Aria ROM going to try and I will tell you the result. but in this ROM board name is Liberty, so I don't need to change it? right?

Update: (photon cm9 rom) I have changed board name (ro.product.device=photon) from photon to liberty, and now the camera is Opposite! Preview is Blue, But Save Image is Perfect! (no blue) :) and of course in the system/lib include the Patched liboemcamrea.so
So with Patched liboemcamera:
if board name photon> preview ok, image blue.
if board name liberty> preview blue, image ok.

also tried this, I putted back the original liboemcamera, still same.


---------- Post added at 09:26 PM ---------- Previous post was at 08:29 PM ----------



*Great! I've Installed my Modified Aria CM9 ROM, the Camera is Perfect! both Preview and save Image are perfect even more beautiful than htc hd mini CM9 ROM, Wifi Works (better performance than htc mini cm9), but Mobile Network not working, says error! no 2G & no 3G!
now let me know what to do...
 
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
If you use aria rom you no need to add liboemcamera. Did you ported winsuk or mine rom? Mine rom is old so better port winsuk rom! I will create new rom booth for aria and photon when cyanogenmod team fix video codecs... now I waiting :)

About 2g and 3g, use mine libril, and do not forget to add libhtc_ril_wrapper.so to system/lib, and do not forget to replace/edit build.prop with these 2 lines:
rild.libpath=/system/lib/libhtc_ril_wrapper.so
rild.libargs=-d /dev/smd0 nand_init
 
Last edited:

iPlasm

Senior Member
Feb 15, 2011
729
481
If you use aria rom you no need to add liboemcamera. Did you ported winsuk or mine rom? Mine rom is old so better port winsuk rom! I will create new rom booth for aria and photon when cyanogenmod team fix video codecs... now I waiting :)

About 2g and 3g, use mine libril, and do not forget to add libhtc_ril_wrapper.so to system/lib, and do not forget to replace/edit build.prop with these 2 lines:
rild.libpath=/system/lib/libhtc_ril_wrapper.so
rild.libargs=-d /dev/smd0 nand_init

1- This about only (htc hd mini cm9 munjeni): your patched liboemcamera doesn't do something, and if I change the (ro.product.device=photon) to liberty, it will be opposite! meaning preview will be blue, but image save is ok. after that I putted back the original liboemcamera.so, was same thing.
--------------------------------------------------------

2- And this only about (Aria ROM): I used your (Munjeni Aria ROM [07.Jun.2012]), I did everything you said before & nothing forgot to do. Camera in this (munjeni CM9 Aria ROM) is Perfect! and even smoother than other roms (Camera Preview OK. Camera Save Image OK). And now the Mobile Network Works! :D but I see the rotate (rotation screen) doesn't work.. (also attached the build.prop for htc mini)

Anyway, for WinSuk's CM9 Aria.. should I do same as I did with the munjeni's aria cm9? also doesn't these aria roms needs special thing about battery for htc mini? I mean it is okay I use Aria ROM about battery now?
 
Last edited:

peteriron

Member
Aug 10, 2007
5
0
Thanks for your summary, it helps a lot of noobs. But what did you do to fix the waiting on the boot screen, mine's still stuck for 'bout 10 minutes ...


Okay it´s my process right ? I have WM 6,5 rom back. I dont see here any tutorial how to install this..


I downloaded files

04.Jun_update_for.24.May.zip

LK_27.May.2012.zip

cm9_photon-ota-eng.root_24.May.2012.zip

gapps-ics-20120429-signed.zip

-----------------------------------------------------------

OK I copied
cm9_photon-ota-eng.root_24.May.2012.zip
04.Jun_update_for.24.May.zip
gapps-ics-20120429-signed.zip
and
HARET_PHOTON7227.exe
lk.bin
startup.txt

to root of SD card...Ok I launched HARET_PHOTON7227.exe from windows mobile file manager. Now i have fastboot turned on. On PC I lauched LK_27.May.2012/update.bat and selected option 2 - Install recorvery.... after this HD mini restarted and i installed ZIPs from SD card following the instructions in this program. files installed completely and mobile rebooted after this i get only HTC boot logo and nothing happens.

I know, I look like biggest noob on this website...




Ach ... it´s working. yippee...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 73
    Its first and last :) port for HTC HD Mini... most of features is backported from my aria cm9 so I will not support photon cm9 in the future... you need to finish it! Its dirty packed (in one day) so maybe something is mising! Please do not reguest any help to me by pm, I will ignore!!! If you have some problems just write an post and I think some users from HD Mini forum will help you... thanks!

    CM9 4.0.4 ICS HTC HD Mini (Ice Cream Sandwich)

    This is a port of CM9 (Ice Cream Sandwich) for HTC HD Mini based on WinSuk repo and my repo

    Screenshoots:
    http://img845.imageshack.us/img845/340/screenshot2012040818074.png
    http://img585.imageshack.us/img585/8750/screenshot2012040818081.png
    http://img442.imageshack.us/img442/491/screenshot2012040818083.png

    Currently working and not working:

    What works:
    • Auto-brightness
    • Browser
    • Capticive buttons (with backlight)
    • DSPManager
    • Mic
    • Music player
    • Audio
    • Equalyser
    • Headset
    • Keyboard
    • Market downloads
    • MMS
    • Notification light
    • Overclocking
    • Phone radio (calling, sms, data)
    • Sensors (light, proximity, rotation, acceleration)
    • Superuser
    • Tethering
    • Touchscreen (with multitouch)
    • USB Mass Storage Device
    • Vibration & Haptic feedback
    • Wifi
    • Gallery
    • Wifi sleep
    • Built-in data usage meter - full working now
    • Hardware acceleration (EGL)
    • Live wallpapers
    • Screenshots
    • Screen off/on animations
    • Wallpaper scrolling
    • bootanimation - have right size now including cm9 logo
    • Wifi signal strength bar on status bar (wpa_supplicant_8)
    • Camera shoots and preview
    • Bluetooth
    • Show mobile networks when choosing it in Select Network
    • GPS

    If something missing or not working please let me know!

    What working partially:
    • Camera recorder and panorama (panorama frezing, camcorder can not stop recording)
    • HQ Videos... (have freze)

    What not working:
    • Audio have no stereo format (generally)

    Google Apps for Ice Cream Sandwich:
    You need to find an stable gapps for your needs!
    But if you want an, look here -> http://goo.im/gapps/gapps-ics-20120429-signed.zip :)

    Rom is bassed on my Aria android git: https://gitorious.org/ics-on-htc-aria/master/commits/master
    Kernel is bassed on derefas git with ics patchset from my aria ics kernel: http://www.2shared.com/file/23vX7nGE/2635-photonic-kernel-ICStar.html
    Finally, added support for Photon to my Aria kernel, so this is allways fresh kernel for Photon:
    https://gitorious.org/ics-cyanogenmod-2-6-35-kernel-msm7227-for-htc-aria/ics/commits/master

    Download LK bootloader and recovery [16.Jul.2012]:
    http://www.2shared.com/file/0RC2fnor/LK_16Jul2012.html
    md5: 8F5327E34C71CC9B7B1646C4EAEE1CF1

    Download cm9 rom - 24.May.2012.:
    http://www.2shared.com/file/yplhAdu2/cm9_photon-ota-engroot_24May20.html
    md5: 57A103629A697B6328F22F5A3FDE7096

    Download update 04.Jun. for rom 24.May.2012.:
    http://www.2shared.com/file/broI0z6C/04Jun_update_for24May.html
    md5: EA0F9B32AFE82E034AFC52A83D9104A0

    Download GPS Fix::
    http://xdaforums.com/showpost.php?p=28654948&postcount=643

    WARNING for new cm9 rom!
    Rom have scripts that will erase all nand partitions needed for clean install! Android folder and .android_secure folder will be deleted from sdcard allso, so backup your data if you have something inside!
    About GPS. In order to have gps working "GPS update" must be last update. Then everything is allright!
    DO NOT CHANGE BOARD TYPE FROM PHOTON TO LIBERTY IN ORDER TO FIX CAMERA!

    Thanks:
    First, big thanks to Qualcomm and their user space library that was needed for HW acceleration!!!
    Google - for both Android and their search engine, which are awesome
    CyanogenMod Team
    WinSuk
    s0be
    modpunk
    cotulla
    sp3dev
    r0bin
    pwel
    schlund
    derefas
    RomanM82
    Everyone who helped in photon project
    Everyone who has shared their working ICS source - It has helped a lot in fixing things
    32
    Instructions and changelog

    Kernel is fast patched and audio libs is from old kernel and is not latest from schlund (I had problems compiling acoustic_wince under ICS so I switched back to legacy audio libs). Most of features inside kernel is added that was needed for ICS so you need to finish all other things that is needed for ICS. Compare kernel with derefas kernel, maybe I missing something! In any way I think I done big job for you photon users? :)
    Audio status = FIXED :) Tanks to schlund for his audio libs!

    About wifi. Because photon not support compressed kernel image there is a way for changing mac adress (I included old wifi nvs init) :)... just simple open boot.img with hex editor and look for line like in this picture -> http://img109.imageshack.us/img109/199/20120429111947.jpg and change mac adress.:D

    24.May.2012:
    • New kernel
    • Logo for my kernel :)
    • A lot of upstream changes to framework... + a lot of build changes (changes from my last aria build)
    • Some tweaks for ram (you will have constantly 90mb amount of the free memory, so... less force closes or maybe no force closes:))
    • Camera recorder and panorama partialy fixed
    • New lk_bootloader:
      boot size=6mb
      recovery size=4mb
      misc size=0.625mb
      system size=200mb
      userdata size=250.875mb
      cache size=9mb
    • new recovery (latest recovery from my aria)
    • etc...etc...etc :)
      Added photon build source to my git, so you can compile an build from source if you want. Kernel is ported from my aria kernel... added photon support, so you can build an kernel if you want. Force closes is fixed, stability is a lot improved. To improve performance simple follow next steps:
      - settings/display/automatic_backlight/...enable "allow lights increase"
      - settings/performance/memory_management... enable "kernel samepage merging"
      - install an taskiller like v6supercharger or "I use taskiller from airdroid app"
      - stable frequency (245 - 806) gov ondemand... do not change it

    26.May.2012:
    • bluetooth fix
    • compressed kernel and unique mac addr for wifi and bluetooth

    30.May.2012:
    • improvements for battery level - test version
    • Battery drain fix
    • Camera blue screen temporary fixed - will improve it later
    • New recovery
    Complete changes in battery driver you can see here -> https://gitorious.org/ics-cyanogenm...mmit/5f4b670a17c2e612478cc0da5843ceaa5b3dfaf0
    To install this update just siple coppy zip archive to sd card and install it trought recovery !

    04.Jun.2012:
    • improvements for battery level still in testing stage
    • Zram fixed (you can enable or disable it from settings)
    • Show mobile networks when choosing it in Select Network - fixed
    • Some workarounds to gps (gps still not working but oncrpc is not harlinked now)
    • Kernel, recovery and modules
    Simple update your android trought recovery !
    Complete changes in battery driver you can see here -> https://gitorious.org/ics-cyanogenm...mmit/5f4b670a17c2e612478cc0da5843ceaa5b3dfaf0
    To install this update just siple coppy zip archive to sd card and install it trought recovery !

    12.Jul.2012:
    • GPS fixed by RomanM82

    16.Jul.2012:
    • Increased system partition in lk bootloader
    14
    this is amazing news. now i am waiting this rom link for the test. :D

    14,30------now i am downloading...
    17,30------now i am testing
    Auto-brightness------------------------------------OK
    Browser--------------------------------------------OK
    Capticive buttons (with backlight)-------------------OK
    DSPManager----------------------------------------OK
    Keyboard------------------------------------------OK
    Market downloads----------------------------------OK
    MMS----------------------------------------------OK
    Notification light------------------------------------???
    Overclocking---------------------------------------OK
    Phone radio (calling, sms, data)----------------------SMS OK---- DATA OK-----CALLİNG OK
    Sensors (light, proximity, rotation, acceleration)-----LİGHT OK--ROTATİON OK--- PROXİMİTY
    Superuser-----------------------------------------OK
    Tethering (you need to confirm)--------------------OK
    Touchscreen (with multitouch)----------------------OK
    USB Mass Storage Device---------------------------OK
    Vibration & Haptic feedback-------------------------OK
    Wifi------------------------------------------------OK
    Gallery---------------------------------------------OK
    Wifi sleep------------------------------------------OK
    Built-in data usage meter - full working now----------OK
    Hardware acceleration (EGL)-------------------------OK
    Live wallpapers--------------------------------------OK
    Screenshots----------------------------------------???
    Screen off/on animations-----------------------------???
    Wallpaper scrolling-----------------------------------???
    bootanimation - have right size now including cm9 logo---OK
    Wifi signal strength bar on status bar (wpa_supplicant_8)----OK
    Camera shoots and preview-------------------------------OK
    Sound & Mic-----------------------------------------OK
    bluetooth ------------------------------------------OK
    GPS -----------------------------------------------------OK

    Headphones/Headset --------------------------------OK BUT MONO
    MUSİC PLAYER---------------------------------------OK BUT MONO


    if I use munjeni'S LK and recovery I did not receive any error message during installation and I did not receive any error message during use


    I love ics
    i am using now daily using. battery performance is like cm7
    14
    Ok guys, yesterday I added support for photon to my aria kernel and pushed all changes to git -> https://gitorious.org/ics-cyanogenm...3358e12a1d49670f9a579147346eabc5911b849/diffs ,I'm going to update aria and hd mini cm9 bulds soon with latest stable version without force closes and a lot of improvements... this photon cm9 is an old build so soon I will switch to photon flash and compile/debug new build for you...
    14
    Here you go... this is new bootloader and automated batch script. Usb drivers is allso in archive. Script format all partition, performing lk installation, performing recovery booting and installing. There is 5 steps, first step is:
    - extract LK_21.May.2012.rar somewhere on your computer
    - extract photonic-sd.rar to your phone sd card
    - put rom archive to sd card
    - install usb drivers if you have not done before
    - run install.bat, than folow step 1 and step 2 on screen

    Next steps you can do from recovery :)

    Current bootloader:
    boot size=6mb
    recovery size=8mb
    misc size=0.625mb
    system size=200mb
    userdata size=250.875mb
    cache size=5mb

    click here >>> LK_21May2012 DELETED, new LK from 24.May. is out!!!<<<
    In next few days I will compile an cm9 build. Please do not miror links, that thing make confusion for users in chosing right archive... this is complete archive and have lk for sd card, lk for nand, recovery, usb drivers and install script, thanks! And please allways read first and seccond page for update, there will be every new update and instruction!