[GUIDE] Porting rom from HDPI to MDPI

sandy7

Inactive Recognized Developer
May 28, 2012
6,215
6,842
0
31
bangalore
This Guide can be use to port roms from armv6 to armv7 devices

this a simple and easy way to port any cm9 , cm10 , stock roms

Requirements
Winrar
notpad++
MDPI base rom
HDPI port rom
Basic knowledge of system supporting files


so lets start...

step 1

delete these folders from MDPI base rom
Code:
app
fonts
framework
media
and add these folders from HDPI port rom
Code:
app
fonts
framework
media
NOTEHDPI framework are supported for MDPI so no need of editing it.
Step 2
Editing BUILD PROP.

change all the red marked values as per ur device.
change the ringtone defaults in blue marked field.

this is just an example.
Code:
##### Merging of the /util/data/semc_kernel_time_stamp.prop file #####
ro.build.date=Wed Jul 4 12:32:24 2012
ro.build.date.utc=1341397944
ro.build.user=BuildUser
ro.build.host=BuildHost

##### Final patch of properties #####
ro.build.product=[COLOR="red"]MT15i[/COLOR]
ro.build.description=[COLOR="red"]MT15i[/COLOR]-userdebug 4.0.4  UL5_3w test-keys

ro.product.brand=SEMC
ro.product.name=[COLOR="red"]MT15i[/COLOR]_1255-1755
ro.product.device=[COLOR="red"]MT15i[/COLOR]
ro.build.tags=release-keys
ro.build.fingerprint=SEMC/[COLOR="red"]MT15i[/COLOR]_1255-1755/[COLOR="Red"]MT15i[/COLOR]:4.0.4/4.1.B.0.587/UL5_3w:user/release-keys




      ######################## Customized property values #########################
      
ro.semc.version.cust=1255-1755
ro.semc.version.cust_revision=R1I

      #########################################################################
      
[COLOR="Blue"]
ro.config.ringtone=Missing.ogg
ro.config.notification_sound=notification.ogg    
ro.config.alarm_alert=rise_up.ogg
ro.semc.content.number=PA3[/COLOR] 

################# Updating of the SW Version #################
ro.semc.version.fs_revision=[COLOR="red"]write any thing u want[/COLOR]
ro.build.id=[COLOR="red"]write any thing u want[/COLOR]
ro.build.display.id=[COLOR="red"]write any thing u want[/COLOR]

##### Values from product package metadata #####
ro.semc.product.model=[COLOR="red"]MT15i[/COLOR]
ro.semc.ms_type_id=AAD-3880100-AV
ro.semc.version.fs=WORLD-i
ro.semc.product.name=[COLOR="red"]Xperia Neo[/COLOR]
ro.semc.product.device=[COLOR="red"]MT15[/COLOR]
ro.product.model=[COLOR="red"]MT15i[/COLOR]

# begin build properties
# autogenerated by buildinfo.sh
ro.build.version.incremental=UL5_3w
ro.build.version.sdk=15
ro.build.version.codename=REL
ro.build.version.release=4.0.4
ro.build.type=user
ro.product.board=
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Sony Ericsson
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=msm7x30
# ro.build.product is obsolete; use ro.product.device
# Do not try to parse ro.build.description or .fingerprint
ro.build.characteristics=default
# end build properties
#
# system.prop for [COLOR="Red"]hallon[/COLOR] (change it to ur device name)
#

# Notify the system that the RIL only signals once
ro.telephony.call_ring.multiple=false

rild.libpath=/system/lib/libril-qc-1.so
rild.libargs=-d /dev/smd0
persist.rild.nitz_plmn=
persist.rild.nitz_long_ons_0=
persist.rild.nitz_long_ons_1=
persist.rild.nitz_long_ons_2=
persist.rild.nitz_long_ons_3=
persist.rild.nitz_short_ons_0=
persist.rild.nitz_short_ons_1=
persist.rild.nitz_short_ons_2=
persist.rild.nitz_short_ons_3=
DEVICE_PROVISIONED=1

wifi.interface = wlan0
ro.semc.wifi.hostapd=1


ro.semc.sols.product-code=90
ro.semc.timescape_keys=Sony_Ericsson_Xperia

ro.semc.sols.company-code=5
persist.ro.ril.sms_sync_sending=1
ro.use_data_netmgrd=true

# Disable strict mode checking
persist.android.strictmode=0

# Constant values for Battery test in Service menu
ro.semc.batt.capacity=1500
ro.semc.batt.test.z_threshold=50
ro.semc.batt.test.min_level=70

ro.service.swiqi.supported=true
persist.service.swiqi.enable=1

#Default values/Locales for the hiding languages feature
ro.product.locale.excluded=ar_EG ar_IL fa_IR iw_IL


#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.product-res-path=framework/SemcGenericUxpRes.apk
ro.com.google.gmsversion=4.0_r1
ro.com.google.clientidbase=android-sonyericsson
drm.service.enabled=true
keyguard.no_require_sim=true
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.semc.xloud.supported=true
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=48m
dalvik.vm.heapsize=128m
ro.sf.lcd_density=[COLOR="Red"]240[/COLOR] (change it to 160)(or to ur device dpi level)
ro.usb.pid_suffix=156
dalvik.vm.dexopt-flags=m=y
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.drm.active.num=4
ro.drm.active.0=semc,1
ro.drm.active.1=cmla,0
ro.drm.active.2=viaccess,0
ro.drm.active.3=marlin,1

Step:-3
use the the whole meta-inf folder from port rom

Step:4
if u experience and bootloop copy these files from port rom
Code:
libandroid_runtime.so
libandroid_servers.so
libmedia_jni.so
Step:-5

the Icons are of different size in HDPI....
what u have to do is resize it to 48x48 size by using MIR. or GMIP or windows image resize or Photoshop

Step-6

if u want and performance scripts...add some scripts in etc/init.d folder..

Step:7

at the end u should have these folders
META-inf
system
so now zip it using winrar and name it

and flash the ur new ported rom

if any one has problems following these steps post a replay in the thread. donot pm me
 

rohit297

Senior Member
Jul 19, 2011
457
59
0
What if i port a lgp500 cm9 rom for my mmx a110, both ate from diffrent manufacturer and having almost entirely diffrent structure, is it possible to make such a port

Sent from my Micromax A110 using XDA Premium HD app
 

sandy7

Inactive Recognized Developer
May 28, 2012
6,215
6,842
0
31
bangalore
What if i port a lgp500 cm9 rom for my mmx a110, both ate from diffrent manufacturer and having almost entirely diffrent structure, is it possible to make such a port

Sent from my Micromax A110 using XDA Premium HD app
i think its not possible ..roms from same manufacturer can be ported easily with this method.
 

Panagos90

Senior Member
Mar 31, 2012
79
208
0
23
Sorry for this noob question but is it possible to port an xperia go gb stock rom to xperia mini with this method?? pls answer :confused: i know that go uses 3.0.8 kernel and mini 2.6.32.x but i'm just curious to know :confused:
 

BHARDIK

Senior Member
May 27, 2012
741
546
123
Rajkot, Gujarat
www.hardikahir.in
Need Help.....Over Here

hi.
first sorry for this stupid question but m stuck so i have to ask........

1. is it possible to PORT QHD JB ROM in HDPI device ?? ( CPU are same only Resolution is different )

then please help me........ and provide me that method of porting.........

2. if not possible to port QHD to HDPI

then its possible to port an same DPI but CPU are not Same.....??

for example........Qualcomm MSM7627a to MTK6577 ------------any ROM like JB ??

its possible ??

plz help me.......to port JB in my MTK6577 Device>>>>>
Thanks.
 

sandy7

Inactive Recognized Developer
May 28, 2012
6,215
6,842
0
31
bangalore
hi.
first sorry for this stupid question but m stuck so i have to ask........

1. is it possible to PORT QHD JB ROM in HDPI device ?? ( CPU are same only Resolution is different )

then please help me........ and provide me that method of porting.........

2. if not possible to port QHD to HDPI

then its possible to port an same DPI but CPU are not Same.....??

for example........Qualcomm MSM7627a to MTK6577 ------------any ROM like JB ??

its possible ??

plz help me.......to port JB in my MTK6577 Device>>>>>
Thanks.
the Resolution is not the problem....

but different chipset...need some hardware smali's to implemented in framework...

try id this method works..

or ill update the guide to port from diff chipset.
 

BHARDIK

Senior Member
May 27, 2012
741
546
123
Rajkot, Gujarat
www.hardikahir.in
the Resolution is not the problem....

but different chipset...need some hardware smali's to implemented in framework...

try id this method works..

or ill update the guide to port from diff chipset.
humm for me that methods not worked.... i just port Lewa Rom which one from ZTE a different manufacturer.... mine one is Micromax but this things only same... DPI RESOLUTION. (480*800) both have same resolution thas why....? i got bootloop.... even not able to take logcat....

so... plz post new porting methods which one is working in same resolution device... just processor (chipset) are different...

Sent from my A90S using xda premium
 

akki809

Senior Member
Oct 8, 2012
210
72
0
Bhopal
can i port htc desire v cm10.1 rom to ace plus???

humm for me that methods not worked.... i just port Lewa Rom which one from ZTE a different manufacturer.... mine one is Micromax but this things only same... DPI RESOLUTION. (480*800) both have same resolution thas why....? i got bootloop.... even not able to take logcat....

so... plz post new porting methods which one is working in same resolution device... just processor (chipset) are different...

Sent from my A90S using xda premium
same chipset msm7227a chipset.... 480*800(v) bt ace plus320*480

can i port??
 

AK Style

Member
Jun 6, 2013
23
7
0
Hai,can I use the same method to port xperia s stock jellybean rom from it's ftf file to xperia live with walkman(using cm10 as base rom ROM)

Sent from my WT19i using xda app-developers app
 

sandy7

Inactive Recognized Developer
May 28, 2012
6,215
6,842
0
31
bangalore
Hai,can I use the same method to port xperia s stock jellybean rom from it's ftf file to xperia live with walkman(using cm10 as base rom ROM)

Sent from my WT19i using xda app-developers app
no u cant ...bcz of cm libs wont support stock JB.....and need lots of kernel modification to make it boot
 

AK Style

Member
Jun 6, 2013
23
7
0
no u cant ...bcz of cm libs wont support stock JB.....and need lots of kernel modification to make it boot
That's sad because I don't like cm10's message,phone and camera app....so is there any alternate one's for these apps for cm10.(urgently need it)
Sent from my WT19i using xda app-developers app