• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[PORT] How to port ROMs to Desire S [ICS -> Sense 4.0 - GB -> Sense 3.5 -> AOSP ICS]

Search This thread

proxuser

Senior Member
Jul 2, 2010
1,836
5,711
www.emexci.com
Last edited:

proxuser

Senior Member
Jul 2, 2010
1,836
5,711
www.emexci.com
Port Sense 3.5 [Gingerbread - Runnymede(Sensation XL)]

Take KERNEL from lowveld's Endymion ROM, its best choose for PORT
Take files for change from my Saga3D or Endymion both should work..

IF you want port direct from RUU
get ruu's here

1. open ruu**.exe but dont install it
2. then type %temp% and go Temp folder your windows
3. search rom.zip
4. open file with winrar and extract system.img
5. open kitchen\tools\ext2read_windows\ext2explore.exe and extract system.img
6. learn how to use kitchen, no ask in this thread. (thanks ;) )

for deodex rom and other details use android kitchen

+ ADD
- REMOVE
# CHANGE
/ FOLDER


files for port needed [pulled from endymion]
http://www.mediafire.com/?bh8rld7kvydbw16


+ akmd
# awb_camera
# bma150_usr
# cam_ins_spmo
- htc_ebdlogd
# lsc_camera
+ snd3254
# wpa_supplicant



# calibration
# AdieHWCodec.csv
# AudioBTID.csv
# CodecDSPID.txt
# CodecDSPID_WB.txt
+ AIC3254_REG_DualMic.csv
# media_profiles.xml
# init.post_boot.sh
# vold.fstab
### copy all *.csv files in etc folder from source rom**

# /soundimage/ copy files from soundimage to /soundimage/ dont remove anything
- /firmware/BCM4330B1_002.001.003.0221.0228.hcd
- /firmware/fw_bcm4330
- /firmware/fw_bcm4330_apsta
- /firmware/fw_bcm4330b2
- /firmware/fw_bcm4330b2_apsta
+ /firmware/fw_bcm4329
+ /firmware/fw_bcm4329_apsta
# /firmware/default.acdb
# /firmware/default_org.acdb
# /firmware/default_org_wb.acdb
+ /firmware/BCM4329B1_002.002.023.0589.0632.hcd
+ /firmware/BCM4329B1_002.002.023.0589.0647_saga.hcd
# /firmware/vidc_720p_command_control.fw
# /firmware/vidc_720p_h264_dec_mc.fw
# /firmware/yamato_pfp.fw
# /firmware/yamato_pm4.fw


- /hw/gps.***.so
- /hw/sensors.***.so
+ /hw/gps.saga.so
+ /hw/sensors.saga.so
- /modules/bcm4330.ko
# /modules/kineto_gan.ko
+ /modules/bcm4329.ko


# libaudio.so
# libaudioflinger.so
# libcamera.so
# libcameraface.so
# libhardware_legacy.so
# libhtc_acoustic.so
# libhtc_ril.so
# libmmjpeg.so
# liboemcamera.so
# libOmxVdec.so
# libOmxVenc.so
# libril.so

--- BUILD.PROP

Code:
[COLOR="Red"][B]change[/B][/COLOR]

ro.product.model=HTC Runnymede
ro.product.brand=htc_europe
ro.product.name=htc_runnymede
ro.product.device=runnymede
ro.product.board=runnymede

ro.build.product=runnymede
# system.prop for mahimahi

# vision RF team request
ro.ril.enable.dtm = 1
ro.ril.gprsclass = 12
ro.ril.hsdpa.category = 8
ro.ril.hsupa.category = 6
ro.ril.hsxpa = 2

ro.product.processor = 1.5 GHz
ro.product.ram = 768MB
ro.product.display_resolution = 4.7 inch WVGA resolution
ro.product.main_camera = 8M
ro.product.front_camera = 1.3M

[COLOR="Red"][B]REMOVE[/B][/COLOR]
# For emmc phone storage
ro.phone_fat = 1
[COLOR="Red"][B]ADD[/B][/COLOR]
# For emmc phone storage
ro.phone_storage = 0

[SIZE="3"]OPTIONAL[/SIZE]

[B][COLOR="Red"]ADD[/COLOR][/B]
# Disable checkin services, error reporting and logging
ro.config.htc.nocheckin=1
ro.config.nocheckin=1
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
ro.kernel.android.checkjni=0
dalvik.vm.checkjni=0

[B][COLOR="Red"]REMOVE[/COLOR][/B]

# For FOTA setting (leave empty value to use default)
ro.htc.checkin.url = [url]http://andchin.htc.com/android/checkin[/url]
ro.htc.checkin.crashurl = [url]http://andchin.htc.com/android/crash[/url]
ro.htc.checkin.url_CN = [url]http://andchin.htccomm.com.cn/android/checkin[/url]
ro.htc.checkin.crashurl_CN = [url]http://andchin.htccomm.com.cn/android/crash[/url]
ro.htc.checkin.exmsg.url = [url]http://fotamsg.htc.com/android/extra/[/url]
ro.htc.checkin.exmsg.url_CN = [url]http://fotamsg.htccomm.com.cn/android/extra/[/url]
ro.htc.appupdate.url = [url]http://apu-chin.htc.com/check-in/rws/and-app/update[/url]
ro.htc.appupdate.url_CN = [url]http://apu-chin.htccomm.com.cn/check-in/rws/and-app/update[/url]
ro.htc.iappupdate.url = [url]http://apu-chin.htc.com/check-in/rws/and-app/update-i[/url]
ro.htc.iappupdate.url_CN = [url]http://apu-chin.htccomm.com.cn/check-in/rws/and-app/update-i[/url]
ro.htc.appupdate.exmsg.url = [url]http://apu-msg.htc.com/extra-msg/rws/and-app/msg[/url]
ro.htc.appupdate.exmsg.url_CN = [url]http://apu-msg.htccomm.com.cn/extra-msg/rws/and-app/msg[/url]
 
Last edited:

proxuser

Senior Member
Jul 2, 2010
1,836
5,711
www.emexci.com
How to port Sense 4.0A

senseport.png


PORT SENSE 4.0A (lite) Ice Cream Sandwich

you have something need to know before you begin porting. it will not fully working. need kernel 3.0 for more functional.. for fixes, just ask in thread. someone will answer it ;)

use primadonna kernel & parts for your port. is best choose for now.
take these files from primadonna or primo-s and copy to each folder.

/SYSTEM/BIN

Code:
- akmd
- btld
- cams_ins_spmo
- charging
- rild
- rmt_storage
- vold
- wpa_supplicant

/SYSTEM/ETC

Code:
calibration
vold.fstab

/AdieHWCodec.txt
/AIC3254_REG_DualMic.csv
/AIC3254_REG_DualMic.csv
/AIC3254_REG_DualMic_XB.csv
/AIC3254_REG_DualMic_XC.csv
/CodecDSPID.txt
/CodecDSPID_WB.txt


/firmware/default.acdb
/firmware/default_org.acdb
/firmware/default_org_wb.acdb
/firmware/fw_bcm4329.bin
/firmware/fw_bcm4329_apsta.bin

/soundimage/Sound_Original.txt
/soundimage/Sound_Original_SPK.txt
/soundimage/Sound_Phone_Original_REC.txt
/soundimage/Sound_Phone_Original_REC_WB.txt
/soundimage/Sound_Rec_Landscape.txt
/soundimage/Sound_Rec_Portrait.txt
/soundimage/Sound_Recording.txt

/SYSTEM/LIB

Code:
libbluedroid.so
libbluetoothd.so

/hw/gps.saga.so
/hw/sensors.saga.so


/SYSTEM/USR


Code:
/keylayout/keylayout.kl
/keylayout/himax-touchscreen.kl
/keylayout/synaptics-rmi-touchscreen.kl

BUILD.PROP

Code:
ro.build.user=
ro.build.host=ABM018
ro.build.tags=release-keys
ro.product.model=Desire S
ro.product.brand=htc_europe
ro.product.name=htc_saga
ro.product.device=saga
ro.product.board=saga

ro.build.product=saga


# Following property will be reference by Settings.
ro.product.processor=1GHz
ro.product.ram=768MB
ro.product.display_resolution=3.7 inch WVGA resolution
ro.product.main_camera=5M
ro.product.front_camera=VGA
ro.product.bluetooth=3.0
ro.product.wifi=802.11 b/g/n

# Disable LPA decode
lpa.decode=false
lpa.use-stagefright=false

# For emmc phone storage
ro.phone_storage=0

guide is almost finished! just try ;)
 
Last edited:

proxuser

Senior Member
Jul 2, 2010
1,836
5,711
www.emexci.com
How to port any AOSP ICS rom to Desire S ?

How to port any ICS AOSP based roms to Desire S (AOKP, CM9 & many other)

- for best compatibilty
--> use same android versions. (4.0.4 -> 4.0.4 example)
--> use latest base from CM9 (is best choose for port) or Quattro
--> use each brand for port (mean Desire HD -> Desire S or other HTC devices). you also can port other roms, but you will have network issues.


PORT:

-> download latest cm9 base and extract it
-> download target rom and extract it

use Camera.apk & FFCFix.apk from cm9 rom for camera issues fix.

copy
/app
/framework
/media
/fonts folders and replace in cm9 folder.


repack your zip and let it boot.
if it doesn't boot then copy /system/lib/libandroid_runtime.so from target rom and repack your rom.zip and install again.. if you get bootloop anyway, then just type in adb "adb logcat" and share it with us in this thread..

if you dont get success dont cry, just try to port another rom :D you can not port all roms

to fix network auto select,
decompile framework-res.apk
go to \framework-res\res\values\bools.xml change
<bool name="skip_restoring_network_selection">true</bool>
to false.
to fix graphichal issues,

decompile framework.jar

change these files with cm9 base

smali\smali\android\os
Environment
SystemProperties
smali\smali\android\view
HardwareCanvas
HardwareRenderer$Gl20Renderer
HardwareRenderer$GlRenderer
HardwareRenderer
 
Last edited:
D

Deleted member 4123551

Guest
Very interesting prox. Subscribed!

Sent from my HTC Desire S using XDA
 
Last edited by a moderator:
D

Deleted member 4123551

Guest
hi prox!

I managed to port a ROM from the Sensation XL to the Desire S, but when I try to turn on wifi, it just says 'error'.
Can you tell me what I should do to fix it? or do you want a logcat first? :p
EDIT: And the camera app quits (no fc) when i open it.

thanks in advance,

djpbx
 
Last edited by a moderator:

Floatshow

Senior Member
Jun 24, 2011
984
1,837
Toulouse
hi prox!

I managed to port a ROM from the Sensation XL to the Desire S, but when I try to turn on wifi, it just says 'error'.
Can you tell me what I should do to fix it? or do you want a logcat first? :p
EDIT: And the camera app quits (no fc) when i open it.

thanks in advance,

djpbx

Same problem here. Asked lowveld also.

Sent from my Desire S
 

ajhavery

Senior Member
May 21, 2011
957
1,024
Gurgaon
www.progeeky.com
nope. Camera keeps crashing and wifi still throws error :mad:

Try copying wpa_supplicant also and If it doesn't work then you have messed up with kernel.

You didn't copied all the necessary files needed for the kernel to work. Just copying boot.img will not do, ask lowheld for what are the kernel files or as an alternative to test my argument, you can flash unity kernel on top of it from the development thread and see if you get your WiFi functional again.

For camera to work, did you copied vold.fstab and media_profiles.xml and everything with word camera in it??
 

Top Liked Posts

  • There are no posts matching your filters.
  • 53
    [PORT] How to port ROMs to Desire S [ICS -> Sense 4.0 - GB -> Sense 3.5 -> AOSP ICS]

    HI ALL,

    its time to start your own port. learn it and learn us what you know ;)


    Port Sense 3.5 [Gingerbread - Runnymede(Sensation XL)]

    How to port AOSP based ICS ROMS


    How to port SENSE 4.0


    MAIN COMMANDS


    [+]----- ADD
    [-]----- REMOVE
    [#]----- CHANGE
    [/] ----- FOLDER
    37
    Port Sense 3.5 [Gingerbread - Runnymede(Sensation XL)]

    Take KERNEL from lowveld's Endymion ROM, its best choose for PORT
    Take files for change from my Saga3D or Endymion both should work..

    IF you want port direct from RUU
    get ruu's here

    1. open ruu**.exe but dont install it
    2. then type %temp% and go Temp folder your windows
    3. search rom.zip
    4. open file with winrar and extract system.img
    5. open kitchen\tools\ext2read_windows\ext2explore.exe and extract system.img
    6. learn how to use kitchen, no ask in this thread. (thanks ;) )

    for deodex rom and other details use android kitchen

    + ADD
    - REMOVE
    # CHANGE
    / FOLDER


    files for port needed [pulled from endymion]
    http://www.mediafire.com/?bh8rld7kvydbw16


    + akmd
    # awb_camera
    # bma150_usr
    # cam_ins_spmo
    - htc_ebdlogd
    # lsc_camera
    + snd3254
    # wpa_supplicant



    # calibration
    # AdieHWCodec.csv
    # AudioBTID.csv
    # CodecDSPID.txt
    # CodecDSPID_WB.txt
    + AIC3254_REG_DualMic.csv
    # media_profiles.xml
    # init.post_boot.sh
    # vold.fstab
    ### copy all *.csv files in etc folder from source rom**

    # /soundimage/ copy files from soundimage to /soundimage/ dont remove anything
    - /firmware/BCM4330B1_002.001.003.0221.0228.hcd
    - /firmware/fw_bcm4330
    - /firmware/fw_bcm4330_apsta
    - /firmware/fw_bcm4330b2
    - /firmware/fw_bcm4330b2_apsta
    + /firmware/fw_bcm4329
    + /firmware/fw_bcm4329_apsta
    # /firmware/default.acdb
    # /firmware/default_org.acdb
    # /firmware/default_org_wb.acdb
    + /firmware/BCM4329B1_002.002.023.0589.0632.hcd
    + /firmware/BCM4329B1_002.002.023.0589.0647_saga.hcd
    # /firmware/vidc_720p_command_control.fw
    # /firmware/vidc_720p_h264_dec_mc.fw
    # /firmware/yamato_pfp.fw
    # /firmware/yamato_pm4.fw


    - /hw/gps.***.so
    - /hw/sensors.***.so
    + /hw/gps.saga.so
    + /hw/sensors.saga.so
    - /modules/bcm4330.ko
    # /modules/kineto_gan.ko
    + /modules/bcm4329.ko


    # libaudio.so
    # libaudioflinger.so
    # libcamera.so
    # libcameraface.so
    # libhardware_legacy.so
    # libhtc_acoustic.so
    # libhtc_ril.so
    # libmmjpeg.so
    # liboemcamera.so
    # libOmxVdec.so
    # libOmxVenc.so
    # libril.so

    --- BUILD.PROP

    Code:
    [COLOR="Red"][B]change[/B][/COLOR]
    
    ro.product.model=HTC Runnymede
    ro.product.brand=htc_europe
    ro.product.name=htc_runnymede
    ro.product.device=runnymede
    ro.product.board=runnymede
    
    ro.build.product=runnymede
    # system.prop for mahimahi
    
    # vision RF team request
    ro.ril.enable.dtm = 1
    ro.ril.gprsclass = 12
    ro.ril.hsdpa.category = 8
    ro.ril.hsupa.category = 6
    ro.ril.hsxpa = 2
    
    ro.product.processor = 1.5 GHz
    ro.product.ram = 768MB
    ro.product.display_resolution = 4.7 inch WVGA resolution
    ro.product.main_camera = 8M
    ro.product.front_camera = 1.3M
    
    [COLOR="Red"][B]REMOVE[/B][/COLOR]
    # For emmc phone storage
    ro.phone_fat = 1
    [COLOR="Red"][B]ADD[/B][/COLOR]
    # For emmc phone storage
    ro.phone_storage = 0
    
    [SIZE="3"]OPTIONAL[/SIZE]
    
    [B][COLOR="Red"]ADD[/COLOR][/B]
    # Disable checkin services, error reporting and logging
    ro.config.htc.nocheckin=1
    ro.config.nocheckin=1
    profiler.force_disable_err_rpt=1
    profiler.force_disable_ulog=1
    ro.kernel.android.checkjni=0
    dalvik.vm.checkjni=0
    
    [B][COLOR="Red"]REMOVE[/COLOR][/B]
    
    # For FOTA setting (leave empty value to use default)
    ro.htc.checkin.url = [url]http://andchin.htc.com/android/checkin[/url]
    ro.htc.checkin.crashurl = [url]http://andchin.htc.com/android/crash[/url]
    ro.htc.checkin.url_CN = [url]http://andchin.htccomm.com.cn/android/checkin[/url]
    ro.htc.checkin.crashurl_CN = [url]http://andchin.htccomm.com.cn/android/crash[/url]
    ro.htc.checkin.exmsg.url = [url]http://fotamsg.htc.com/android/extra/[/url]
    ro.htc.checkin.exmsg.url_CN = [url]http://fotamsg.htccomm.com.cn/android/extra/[/url]
    ro.htc.appupdate.url = [url]http://apu-chin.htc.com/check-in/rws/and-app/update[/url]
    ro.htc.appupdate.url_CN = [url]http://apu-chin.htccomm.com.cn/check-in/rws/and-app/update[/url]
    ro.htc.iappupdate.url = [url]http://apu-chin.htc.com/check-in/rws/and-app/update-i[/url]
    ro.htc.iappupdate.url_CN = [url]http://apu-chin.htccomm.com.cn/check-in/rws/and-app/update-i[/url]
    ro.htc.appupdate.exmsg.url = [url]http://apu-msg.htc.com/extra-msg/rws/and-app/msg[/url]
    ro.htc.appupdate.exmsg.url_CN = [url]http://apu-msg.htccomm.com.cn/extra-msg/rws/and-app/msg[/url]
    25
    How to port Sense 4.0A

    senseport.png


    PORT SENSE 4.0A (lite) Ice Cream Sandwich

    you have something need to know before you begin porting. it will not fully working. need kernel 3.0 for more functional.. for fixes, just ask in thread. someone will answer it ;)

    use primadonna kernel & parts for your port. is best choose for now.
    take these files from primadonna or primo-s and copy to each folder.

    /SYSTEM/BIN

    Code:
    - akmd
    - btld
    - cams_ins_spmo
    - charging
    - rild
    - rmt_storage
    - vold
    - wpa_supplicant

    /SYSTEM/ETC

    Code:
    calibration
    vold.fstab
    
    /AdieHWCodec.txt
    /AIC3254_REG_DualMic.csv
    /AIC3254_REG_DualMic.csv
    /AIC3254_REG_DualMic_XB.csv
    /AIC3254_REG_DualMic_XC.csv
    /CodecDSPID.txt
    /CodecDSPID_WB.txt
    
    
    /firmware/default.acdb
    /firmware/default_org.acdb
    /firmware/default_org_wb.acdb
    /firmware/fw_bcm4329.bin
    /firmware/fw_bcm4329_apsta.bin
    
    /soundimage/Sound_Original.txt
    /soundimage/Sound_Original_SPK.txt
    /soundimage/Sound_Phone_Original_REC.txt
    /soundimage/Sound_Phone_Original_REC_WB.txt
    /soundimage/Sound_Rec_Landscape.txt
    /soundimage/Sound_Rec_Portrait.txt
    /soundimage/Sound_Recording.txt

    /SYSTEM/LIB

    Code:
    libbluedroid.so
    libbluetoothd.so
    
    /hw/gps.saga.so
    /hw/sensors.saga.so


    /SYSTEM/USR


    Code:
    /keylayout/keylayout.kl
    /keylayout/himax-touchscreen.kl
    /keylayout/synaptics-rmi-touchscreen.kl

    BUILD.PROP

    Code:
    ro.build.user=
    ro.build.host=ABM018
    ro.build.tags=release-keys
    ro.product.model=Desire S
    ro.product.brand=htc_europe
    ro.product.name=htc_saga
    ro.product.device=saga
    ro.product.board=saga
    
    ro.build.product=saga
    
    
    # Following property will be reference by Settings.
    ro.product.processor=1GHz
    ro.product.ram=768MB
    ro.product.display_resolution=3.7 inch WVGA resolution
    ro.product.main_camera=5M
    ro.product.front_camera=VGA
    ro.product.bluetooth=3.0
    ro.product.wifi=802.11 b/g/n
    
    # Disable LPA decode
    lpa.decode=false
    lpa.use-stagefright=false
    
    # For emmc phone storage
    ro.phone_storage=0

    guide is almost finished! just try ;)
    17
    How to port any AOSP ICS rom to Desire S ?

    How to port any ICS AOSP based roms to Desire S (AOKP, CM9 & many other)

    - for best compatibilty
    --> use same android versions. (4.0.4 -> 4.0.4 example)
    --> use latest base from CM9 (is best choose for port) or Quattro
    --> use each brand for port (mean Desire HD -> Desire S or other HTC devices). you also can port other roms, but you will have network issues.


    PORT:

    -> download latest cm9 base and extract it
    -> download target rom and extract it

    use Camera.apk & FFCFix.apk from cm9 rom for camera issues fix.

    copy
    /app
    /framework
    /media
    /fonts folders and replace in cm9 folder.


    repack your zip and let it boot.
    if it doesn't boot then copy /system/lib/libandroid_runtime.so from target rom and repack your rom.zip and install again.. if you get bootloop anyway, then just type in adb "adb logcat" and share it with us in this thread..

    if you dont get success dont cry, just try to port another rom :D you can not port all roms

    to fix network auto select,
    decompile framework-res.apk
    go to \framework-res\res\values\bools.xml change
    <bool name="skip_restoring_network_selection">true</bool>
    to false.
    to fix graphichal issues,

    decompile framework.jar

    change these files with cm9 base

    smali\smali\android\os
    Environment
    SystemProperties
    smali\smali\android\view
    HardwareCanvas
    HardwareRenderer$Gl20Renderer
    HardwareRenderer$GlRenderer
    HardwareRenderer
    10
    Port MIUI ICS