FORUMS
Remove All Ads from XDA

[GUIDE] Porting rom from HDPI to MDPI

6,230 posts
Thanks Meter: 6,932
 
By sandy7, Inactive Recognized Developer on 18th November 2012, 08:55 AM
Post Reply Email Thread
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
Quote:

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=MT15i
ro.build.description=MT15i-userdebug 4.0.4  UL5_3w test-keys

ro.product.brand=SEMC
ro.product.name=MT15i_1255-1755
ro.product.device=MT15i
ro.build.tags=release-keys
ro.build.fingerprint=SEMC/MT15i_1255-1755/MT15i: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

      #########################################################################
      

ro.config.ringtone=Missing.ogg
ro.config.notification_sound=notification.ogg    
ro.config.alarm_alert=rise_up.ogg
ro.semc.content.number=PA3 

################# Updating of the SW Version #################
ro.semc.version.fs_revision=write any thing u want
ro.build.id=write any thing u want
ro.build.display.id=write any thing u want

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

# 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 hallon (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=240 (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
Quote:

META-inf
system

so now zip it using winrar and name it

and flash the ur new ported rom

Quote:

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

The Following 12 Users Say Thank You to sandy7 For This Useful Post: [ View ] Gift sandy7 Ad-Free
 
 
18th November 2012, 08:55 AM |#2  
sandy7's Avatar
OP Inactive Recognized Developer
Flag bangalore
Thanks Meter: 6,932
 
Donate to Me
More
reserved for MIUI porting guide.
The Following User Says Thank You to sandy7 For This Useful Post: [ View ] Gift sandy7 Ad-Free
18th November 2012, 08:56 AM |#3  
sandy7's Avatar
OP Inactive Recognized Developer
Flag bangalore
Thanks Meter: 6,932
 
Donate to Me
More
Arrow decopiling
reserved for decompiling and recompiling guide.
18th November 2012, 09:33 AM |#4  
antonio8297's Avatar
Senior Member
Flag Camposano (NA)
Thanks Meter: 598
 
More
I'll try,thanks!

Inviato dalla tazza del tè.
18th November 2012, 09:38 AM |#5  
sandy7's Avatar
OP Inactive Recognized Developer
Flag bangalore
Thanks Meter: 6,932
 
Donate to Me
More
Quote:
Originally Posted by antonio8297

I'll try,thanks!

Inviato dalla tazza del tè.

ok let me know if u have any problems.
18th November 2012, 02:12 PM |#6  
rohit297's Avatar
Senior Member
Thanks Meter: 59
 
More
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
18th November 2012, 02:35 PM |#7  
sandy7's Avatar
OP Inactive Recognized Developer
Flag bangalore
Thanks Meter: 6,932
 
Donate to Me
More
Quote:
Originally Posted by rohit297

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.
7th January 2013, 05:15 PM |#8  
Panagos90's Avatar
Member
Thanks Meter: 212
 
More
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 i know that go uses 3.0.8 kernel and mini 2.6.32.x but i'm just curious to know
7th January 2013, 07:33 PM |#9  
sandy7's Avatar
OP Inactive Recognized Developer
Flag bangalore
Thanks Meter: 6,932
 
Donate to Me
More
No u can't..need some framework modifications

Sent from my SK17i using XDA Premium HD app
13th January 2013, 12:45 PM |#10  
BHARDIK's Avatar
Senior Member
Flag Rajkot, Gujarat
Thanks Meter: 547
 
Donate to Me
More
Thumbs down 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.
13th January 2013, 01:46 PM |#11  
dbarrera's Avatar
Senior Member
Flag Guayaquil
Thanks Meter: 100
 
More
In step 5, where can I find those icons?

Sent from my LG-P350 using Tapatalk 2
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes