[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sandy7:
Hdpi to mdpi

GUIDE:-3

HOW TO PORT A ROM FROM HDPI TO MDPI

ONLY ICS ROMS

so lets start it.

things u need

1.META-INF folder http://www.mediafire.com/download.php?uv2vf7k7wlqh9vj

2.winrar

3.mdpi .587 base rom (ex: xperia mini pro)

4.Any HPDI rom u want to port (ex: xperia arc s)

5.Basic knowledge of system supporting files.

6.Notepad++

7.patients

So lets start.

Step 1

take a ARC S rom as a base and extract to a folder so that u will consists of all these folders.in the system folder.

and delete the red colored remarked folders.

app
[COLOR="red"]bin[/COLOR] (replace with mdpi bin folder)
etc
[COLOR="Red"]fonts[/COLOR] (replace with mini pro rom fonts folder)
framework
lib
media
semc
tts
[COLOR="red"]usr[/COLOR] (replace with mini pro rom usr. folder)
vendor
xbin

STEP 2.

coming to apps folder.

delete

SemcHdmiControlService.apk

and all the blot wares.

and add what every apks u want in ur rom..like themes etc

STEP:3

Coming to etc folder

open the mini pro rom acrhive

and replace with the following files

/firmware (whole folder)
hw_config
media_profiles
pre_hw_config
sensors.conf

so done with etc folder.

Donot close the archive.

Now open lib folder

copy and replace the following files from mini pro archive

camera files:-
libcameraextensionclient.so
libcameraextensionjni.so
libcameraextensionservice.so
libcameralight.so
libcameraservice.so
libcamera_clientsemc.so
libcald_pal.so
libcald_hal.so
libcald_server.so
liboemcamera.so
libbluedroid.so
libsurfaceflinger.so
libsurfaceflinger_client.so
libbluedroid.so

/hw (whole folder)
/modules (whole folder)

Delete -[B]libhdmidisplay.so[/B]

STEP 4:

TWEAKS

for better performace i have added my roms tweaks....

http://www.mediafire.com/download.php?ve276m6x3xsr3p0

u can place these files in etc/init.d folder.

u can search xda for more tweaks..

STEP 5:-

Editing BUILD PROP.

change all the red marked values as per ur device.

change the ring defaults in blue marked field.

##### 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 'mango')
#

# 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)
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

BUILD PROP TWEAKS.

add these lines at the end of build prop.

u can find more tweaks on xda

# System props for audio
persist.audio.fluence.mode=endfire
persist.audio.vr.enable=false
persist.audio.hp=true

# System prop to select audio resampler quality
af.resampler.quality=255

# Miscellaneous Tweaks!
persist.sys.purgeable_assets=1
windowsmgr.max_events_per_sec=150

# Render UI with GPU
debug.sf.hw=1

# Battery Saving Tweak
ro.ril.disable.power.collapse=1
pm.sleep_mode=1
ro.mot.eri.losalert.delay=1000

# Fastest! 2G/3G/WiFi Settings
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.ril.hep=1
ro.ril.enable.dtm=0
ro.ril.hsdpa.category=8
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=6

# Other Tweaks
ro.kernel.android.checkjni=0
ro.max.fling_velocity=8000
video.accelerate.hw=1
Debug.performance.tuning=1
debug.composition.type=gpu
debug.composition.type=cpu

STEP:6

EDITING Updater script.

only add the red colored line if u are adding a data folder for supercharger. scripts.

show_progress(0.1, 0);
ui_print(" write any thing inside this");
ui_print(" Installation Started !");
format("MTD", "system");
format("MTD", "cache");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");
show_progress(1.2, 83);
package_extract_dir("system", "/system");
show_progress(0.14, 3);
[COLOR="Red"]package_extract_dir("data", "/data");[/COLOR]
ui_print("");
set_progress(0.700000);
unmount("/system");
unmount("/data");
show_progress(1, 0);
ui_print("");
ui_print("reboot");

STEP 7

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

so here is the list of particular png's u have to resize and replace it.

1st open a apk with winrar from the following folders bellow extract those png's do no close the archive resize it to 48x48 and replace it mdpi folder.

browser -- mipmap-mdpi / ic_launcher_browser.png
calculator -- drawabe-hdpi / icon.png
google quick search box -- mipmap-mdpi / search_app_icon.png
phonebook -- drawable-mdpi / ic_launcher_contacts.png & ic_launcher_phone.png
semc calender -- drawable-mdpi / app_icon.png
semc clock -- drawable-mdpi / alarmclock.png
semc phone -- drawable-mdpi / clh_launcher_phone.png
settings -- mipmap-mdpi / ic_launcher_settings.png
torch -- drawable-mdpi/ you will find it.
talk -- drawable-mdpi / ic_launcher_google_talk.png

STEP 8

after doing all these

u should have these folders

make it a zip file name it.

so u have made a new rom ported from HPDI to MDPI

sorry for bad presentation ....ill edit this post in more understandable way soon