Porting MTK6752 devices (A7000-Vibe 2.5 specific) - Android Q&A, Help & Troubleshooting

Hi Guys,
It is important to know that the porting process for lollipop pretty much remains the same to a large degree.. There are some hits and misses. But I am adding below a list of files that have been used as a replacement on the vibe 2.5 ROMs .
The Vibe 2.5 ROMS seem a little complicated and seem to need a large replacement set. If we find a shorter way or if you find a shorter way, please comment that and it can be a part of this guide.
This is specific to the Lenovo A7000 series . The source ROM is from a K3 note.
When you port an AOSP ROM , you may need lesser replacements in libs and bins, but you may need to replace the sdcard binary sometimes. so be careful and happy porting.
here is a list
-------------------------------------
bin
etc
lib
lib64
******************************************************
-------------------------------------
/system/bin
-------------------------------------
audiocmdservice_atci
bcc
bootanimation
ccci_mdinit
downloader
factory
gzip_static
hostapd
installd
ip6tables
ipod
iptables
make_ext4fs
mdnsd
mtkbt
ndc
netd
pq
recovery
vold
wpa_cli
wpa_supplicant
-------------------------------------
******************************************************
-------------------------------------
/system/etc
-------------------------------------
/system/etc/.tp overwrite
/system/etc/firmware replace all
/system/etc/mddb replace all
apns-conf.xml
spn-conf.xml
-------------------------------------
******************************************************
-------------------------------------
/system/lib
-------------------------------------
lib3a.so
lib3a_sample.so
libacdk.so
libadpcm.so
libAGifEncoder.so
libaudioflinger.so
libaudiopolicymanager.so
libaudiopolicymanagerdefault.so
libaudiopolicyservice.so
libbcc.so
libbcinfo.so
libbtcusttable.so
libc.so
libcam.camadapter.so
libcam.camnode.so
libcam.camshot.so
libcam.client.so
libcam.hal3a.v3.so
libcam.halsensor.so
libcam.iopipe.so
libcam.jni.lomohaljni.so
libcam.metadataprovider.so
libcam.paramsmgr.so
libcam.sdkclient.so
libcamalgo.so
libcamdrv.so
libcameracustom.so
libcameraservice.so
libcamera_client_mtk.so
libdpframework.so
libexif.so
libextsimap.so
libfeatureio.so
libhwui.so
libimageio.so
libimageio_plat_drv.so
libinputflinger.so
libjpeg.so
libLLVM.so
libm4u.so
libmdnssd.so
libmedia.so
libmediaplayerservice.so
libMiraVision_jni.so
libn3d3a.so
libnetd_client.so
libpng.so
libpq_cust.so
libquickshot.so
libRS.so
libRScpp.so
libRSCpuRef.so
libRSDriver.so
libshowlogo.so
libsqlite.so
libssl.so
libstagefright.so
libstagefright_omx.so
libstagefright_soft_aacdec.so
libstagefright_soft_aacenc.so
libstagefright_soft_flacenc.so
libstagefright_soft_hevcdec.so
libstagefright_wfd.so
libsurfaceflinger.so
mtk-ril.so
mtk-rilmd2.so
-------------------------------------
******************************************************
-------------------------------------
/system/lib64/egl
-------------------------------------
libGLES_mali.so
-------------------------------------
******************************************************
-------------------------------------
/system/lib64/hw
-------------------------------------
audio.primary.mt6752.so
audio_policy.default.so
gps.default.so
mmsdk.default.so
sensors.mt6752.so
-------------------------------------
******************************************************
-------------------------------------
/system/lib64
-------------------------------------
lib3a.so
lib3a_sample.so
libacdk.so
libaudiopolicymanager.so
libaudiopolicymanagerdefault.so
libaudiopolicyservice.so
libbcc.so
libbcinfo.so
libbinder.so
libbtcusttable.so
libc.so
libcam.camadapter.so
libcam.camnode.so
libcam.camshot.so
libcam.client.so
libcam.hal3a.v3.so
libcam.halsensor.so
libcam.iopipe.so
libcam.jni.lomohaljni.so
libcam.metadataprovider.so
libcam.paramsmgr.so
libcam.sdkclient.so
libcamalgo.so
libcamdrv.so
libcameracustom.so
libcameraservice.so
libcamera_client_mtk.so
libdpframework.so
libexif.so
libfeatureio.so
libhwui.so
libimageio.so
libimageio_plat_drv.so
libinputflinger.so
libjpeg.so
libLLVM.so
libm4u.so
libmdnssd.so
libmedia.so
libMiraVision_jni.so
libn3d3a.so
libnetd_client.so
libpac.so
libpng.so
libpq_cust.so
libquickshot.so
libRS.so
libRScpp.so
libRSCpuRef.so
libRSDriver.so
libsoundtrigger.so
libsqlite.so
libssl.so
libstagefright.so
libstagefright_omx.so
libstagefright_soft_aacdec.so
libstagefright_soft_aacenc.so
libstagefright_soft_flacenc.so
libstagefright_soft_hevcdec.so
libsurfaceflinger.so
-------------------------------------
Have these files ready in a folder separated into their respective folders.
NOTE:
DO NOT REBOOT THE PHONE AFTER YOU FLASH THE ZIP.
once you are done flashing the zip, mount the system and delete the recovery-from-boot.p (this is very important else you will end up with a messed up recovery )
once that is done, keep the system mounted and use the following commands
open the folder you have the files arranged correctly in.
it should have the folders as bin, etc , lib , lib64 .
press shift and right click , select open command window here.
when you open the command window use the command below to push the files to the phone.
adb push . /system
******************************************************
pull the build.prop with
adb pull /system/build.prop
--------------------------------
edit build.prop with the values below
ro.lenovo.region=row
ro.sf.lcd_density=320
ro.product.locale.language=en
ro.product.locale.region=US
#add below lines for adb debugging.
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
----------------------------------------------------------------------------------------------
save this file and push it back with the command
adb push build.prop /system
----------------------------------------------------------------------------------------------
Boot.img editing.
This is the same as the others but ensure your default prop is as below to enable debugging.
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.adb.secure=0
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
persist.service.acm.enable=0
ro.secure=0
ro.allow.mock.location=0
ro.debuggable=1
ro.zygote=zygote64_32
ro.mount.fs=EXT4
camera.disable_zsl_mode=1
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
ro.dalvik.vm.native.bridge=0
--------------------------------------------------------
Remember some ROMS need the partition to be 2.6 GB. i have scatter that can make the system partition 3 GB. I will upload that and share a link here.
--------------------------------------------------------
flashing the rom
the updater-script needs a bit of edit to flash the Rom as it is on the phone. Delete the lines in red.
replace the boot.img with the edited boot.img (I hope you all know how to do that edit)
--------------------------------------------------------------------------------------------------------------------
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/data", "");
get_lenovo_custom1("1431948134") == "OK" || abort("Can't install this package (Mon May 18 19:22:14 CST 2015) over newer build (" + getprop("ro.build.data") + "). Or lenovo can't allow to rollback.");
unmount("/data");
getprop("ro.product.device") == "aio_otfp" || abort("This package is for "aio_otfp" devices; this is a "" + getprop("ro.product.device") + "".");
show_progress(0.750000, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p6", "0", "/system");
block_image_update("system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
show_progress(0.050000, 5);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "bootimg"),
delete("/tmp/boot.img"));
assert(run_program("/system/bin/dd", "if=/dev/zero", "of=/proc/driver/mtd_writeable", "bs=3", "count=1"));
assert(package_extract_file("logo.img", "/tmp/logo.img"),
write_raw_image("/tmp/logo.img", "logo"),
delete("/tmp/logo.img"));
assert(package_extract_file("uboot.img", "/tmp/uboot.img"),
write_raw_image("/tmp/uboot.img", "uboot"),
delete("/tmp/uboot.img"));
assert(package_extract_file("mobicore.bin", "/tmp/tee1.img"),
write_raw_image("/tmp/tee1.img", "tee1"),
delete("/tmp/tee1.img"));
show_progress(0.200000, 10);
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/data", "");
delete_recursive("/data/data/com.chinamworld.main/.cache");
unmount("/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/data", "");
!(get_lenovo_custom2("1431948134") == "OK") || format("ext4", "EMMC", "/dev/block/mmcblk0p3", "0", "/data");
unmount("/data");
---------------------------------------------------------------------------------------------------------------
Resized Scatter
https://drive.google.com/folderview...04YnE0V2UxXzVtOTBseWd5T2FqWmh5TDg&usp=sharing
Remember you will need to format the phone. If you format the phone you will lose IMEI and you will see the wifi 0x0 error showing up in the access point settings (safe to ignore that). you can use the maui meta tool in that share to fix the imei and you can search for the sn write tool to fix the wifi error (i didnt bother , it just shows up and doesn't bother me) .
Click to expand...
Click to collapse
To flash with the new scatter you will select the upgrade or format + download option. ensure the DL all with checksum is selected. You will need to select the right files and all the files need to be selected. Ensure you check tutorials on xda before you undertake this.
Remember to start from scratch, you will need to flash the custom recovery. you can find the custom recovery on xda. start there.
Disclaimer:
I am not responsible for any mess you get into with these steps. Remember, if in doubt ask questions, watch videos and learn before you mess things up.
Press THANKS if this helps you and rate this thread the way it helped you. Thanks again. Took some time to write this for you all. :fingers-crossed:

BEST
maxritz said:
Hi Guys,
It is important to know that the porting process for lollipop pretty much remains the same to a large degree.. There are some hits and misses. But I am adding below a list of files that have been used as a replacement on the vibe 2.5 ROMs .
The Vibe 2.5 ROMS seem a little complicated and seem to need a large replacement set. If we find a shorter way or if you find a shorter way, please comment that and it can be a part of this guide.
This is specific to the Lenovo A7000 series . The source ROM is from a K3 note.
When you port an AOSP ROM , you may need lesser replacements in libs and bins, but you may need to replace the sdcard binary sometimes. so be careful and happy porting.
here is a list
-------------------------------------
bin
etc
lib
lib64
******************************************************
-------------------------------------
/system/bin
-------------------------------------
audiocmdservice_atci
bcc
bootanimation
ccci_mdinit
downloader
factory
gzip_static
hostapd
installd
ip6tables
ipod
iptables
make_ext4fs
mdnsd
mtkbt
ndc
netd
pq
recovery
vold
wpa_cli
wpa_supplicant
-------------------------------------
******************************************************
-------------------------------------
/system/etc
-------------------------------------
/system/etc/.tp overwrite
/system/etc/firmware replace all
/system/etc/mddb replace all
apns-conf.xml
spn-conf.xml
-------------------------------------
******************************************************
-------------------------------------
/system/lib
-------------------------------------
lib3a.so
lib3a_sample.so
libacdk.so
libadpcm.so
libAGifEncoder.so
libaudioflinger.so
libaudiopolicymanager.so
libaudiopolicymanagerdefault.so
libaudiopolicyservice.so
libbcc.so
libbcinfo.so
libbtcusttable.so
libc.so
libcam.camadapter.so
libcam.camnode.so
libcam.camshot.so
libcam.client.so
libcam.hal3a.v3.so
libcam.halsensor.so
libcam.iopipe.so
libcam.jni.lomohaljni.so
libcam.metadataprovider.so
libcam.paramsmgr.so
libcam.sdkclient.so
libcamalgo.so
libcamdrv.so
libcameracustom.so
libcameraservice.so
libcamera_client_mtk.so
libdpframework.so
libexif.so
libextsimap.so
libfeatureio.so
libhwui.so
libimageio.so
libimageio_plat_drv.so
libinputflinger.so
libjpeg.so
libLLVM.so
libm4u.so
libmdnssd.so
libmedia.so
libmediaplayerservice.so
libMiraVision_jni.so
libn3d3a.so
libnetd_client.so
libpng.so
libpq_cust.so
libquickshot.so
libRS.so
libRScpp.so
libRSCpuRef.so
libRSDriver.so
libshowlogo.so
libsqlite.so
libssl.so
libstagefright.so
libstagefright_omx.so
libstagefright_soft_aacdec.so
libstagefright_soft_aacenc.so
libstagefright_soft_flacenc.so
libstagefright_soft_hevcdec.so
libstagefright_wfd.so
libsurfaceflinger.so
mtk-ril.so
mtk-rilmd2.so
-------------------------------------
******************************************************
-------------------------------------
/system/lib64/egl
-------------------------------------
libGLES_mali.so
-------------------------------------
******************************************************
-------------------------------------
/system/lib64/hw
-------------------------------------
audio.primary.mt6752.so
audio_policy.default.so
gps.default.so
mmsdk.default.so
sensors.mt6752.so
-------------------------------------
******************************************************
-------------------------------------
/system/lib64
-------------------------------------
lib3a.so
lib3a_sample.so
libacdk.so
libaudiopolicymanager.so
libaudiopolicymanagerdefault.so
libaudiopolicyservice.so
libbcc.so
libbcinfo.so
libbinder.so
libbtcusttable.so
libc.so
libcam.camadapter.so
libcam.camnode.so
libcam.camshot.so
libcam.client.so
libcam.hal3a.v3.so
libcam.halsensor.so
libcam.iopipe.so
libcam.jni.lomohaljni.so
libcam.metadataprovider.so
libcam.paramsmgr.so
libcam.sdkclient.so
libcamalgo.so
libcamdrv.so
libcameracustom.so
libcameraservice.so
libcamera_client_mtk.so
libdpframework.so
libexif.so
libfeatureio.so
libhwui.so
libimageio.so
libimageio_plat_drv.so
libinputflinger.so
libjpeg.so
libLLVM.so
libm4u.so
libmdnssd.so
libmedia.so
libMiraVision_jni.so
libn3d3a.so
libnetd_client.so
libpac.so
libpng.so
libpq_cust.so
libquickshot.so
libRS.so
libRScpp.so
libRSCpuRef.so
libRSDriver.so
libsoundtrigger.so
libsqlite.so
libssl.so
libstagefright.so
libstagefright_omx.so
libstagefright_soft_aacdec.so
libstagefright_soft_aacenc.so
libstagefright_soft_flacenc.so
libstagefright_soft_hevcdec.so
libsurfaceflinger.so
-------------------------------------
******************************************************
edit build.prop
ro.lenovo.region=row
ro.sf.lcd_density=320
ro.product.locale.language=en
ro.product.locale.region=US
------------------------------
Add below for Adb debug in build as well as default.prop
------------------------------
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
----------------------------------------------------------------------------------------------
Boot.img editing.
This is the same as the others but ensure your default prop is as below to enable debugging.
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.adb.secure=0
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
persist.service.acm.enable=0
ro.secure=0
ro.allow.mock.location=0
ro.debuggable=1
ro.zygote=zygote64_32
ro.mount.fs=EXT4
camera.disable_zsl_mode=1
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
ro.dalvik.vm.native.bridge=0
Click to expand...
Click to collapse
Best detailed tutorial.... Thanks mate
but the question is brother how do they flash this to their phones... :-/

Bro I am unable to fix IMEI pls help me i that respect

How To Fix Invalid IMEI

Hi, you have an idea to correct the LED notification? (Lenovo)

maxritz said:
Press THANKS if this helps you and rate this thread the way it helped you. Thanks again. Took some time to write this for you all. :fingers-crossed:
Click to expand...
Click to collapse
Thanks bro,
A very useful guide indeed :good:

Sir you can port the Elephone P7000 to Ulephone be touch . Can port my phone not turning on

Related

[SCRIPTS] CWR Hacking- ReRecovery after a DataWipe or Flash

mastafunk said:
Well lets start from the beginning. Does this phone even have a​ charge_only_mode? If pluged in when off does it fire off a battery meter?
If so is there a file called /system/bin/charge_only_mode. If so is this file a softlink to a file called /system/bin/hijack?
Is /system/bin/hijack actually there?
Those are pretty much the prerequisites for setup....
Then what triggers the whole deal is a file in /data called .recovery_mode
check for that file. Look inside.. is it a "1", if so everything is in place and it should do it.
Click to expand...
Click to collapse
Thanks to mastafunk for the info.
I noticed after uninstalling system recovery that it still worked(edit pull is for emergency only will reset date. Just plug in and power off) w/ a battery pull. I remember now where the /preinstall files came from:
Rom Manager
Set charge mode.
Uninstall sys recov, and rom mgr(if there).
Then DL mkt RM free/donate. Install.
DL latest 5025 (1st choice).
Reboot into recov and it just boots.
Install Tenfar's and get into cwr.
Go adv and reboot recovery (goes to stk recov, should this not be CWR? So here is where the preinstall gets filled?) and reboot from there.
/preinstall is filled!
You do not need to do this just showing how they got there.
I am saying that with these 2 folders: /preinstall and /system/bin as well as the .recovery_mode file , cwr works for the Dx2. While trying to confirm the source of the PI files I crashed. So SBF'ing I confirmed it works: use Root Explorer, you may have to set charge mode and uninstall SR.
1)paste to /preinstall: the 3 files and set perms to rwxrwxrwx ( adbd is not needed btw. ), and update-recovery.zip: rwxr-xr-x . Note hijack goes to /preinstall as well as /system/bin.
2)Change charge_only_mode ( your original in system/bin) to .bak. Then paste the 2 /system/bin files (less the .not file) set perms to rwxrwxrwx.
3)Then .recovery_mode goes in /data perms to rw-rw-rw-.
Edit: have the charger plugged in and Power off. I thought a: (Pull battery and put it back in. Plug in) was needed but it is not. CWR!
Edit: the /pi needs just 3 files: ud-recovery.zip, ud-binary(same as in the zip) and hijack (same as system/bin/) 6 files if you count hijack twice.
This may work on the Milestone X2. I don't know of anyone who tried this yet.
About the files needed (attached at the end)note file: charge_only_mode.bin.not in /system/bin was included for reference NOT TO MESS WITH IT.
The linkage notation, in Root Explorer, from chargeonlymode to hijack gets lost once the files are off the phone but it still works.
This could it be packaged in a zip and flashed from CWR so after a data wipe or a ROM flash CWR could be restored before leaving CWR.
I wrote a test script to write .recovery_mode to /data. I wiped data from cwr then mounted /data manually. Then ran the script and recovery was restored with a battery pull.
I cannot get the full "ReRecovery" to work. For the update-binary I am told P3Droid's prerooted 234 is good to pull from. But have yet to try his binary. Here is where I am at: updater-script:
run_program("/bin/mount", "/dev/block/ mmcblk0p12 ", "/system");
run_program("/bin/mount", "/dev/block/ mmcblk0p16 ", "/data");
run_program("/bin/mount", "/dev/block/ mmcblk0p17 ", "/preinstall");
#this one zeroed /preinstall.
Or
#mount("ext3", "/dev/block/mmcblk0p12", "/system");
#mount("ext3", "/dev/block/mmcblk0p17", "/preinstall");
#mount("ext3", "/dev/block/mmcblk0p16", "/data");
# this gave a status 7
package_extract_dir("data", "/data");
#set_perm(0, 0, 0666, "/data/.recovery_mode");
set_perm(0, 0, 0666, "/data/test");
unmount("/data");
package_extract_dir("system", "/system");
#set_perm(0, 0, 0777, "/system/bin/charge_only_mode");
set_perm(0, 0, 0777, "/system/bin/test");
#set_perm(0, 0, 0777, "/system/bin/hijack");
unmount("/system");
package_extract_dir("preinstall", "/preinstall");
#set_perm(0, 0, 0666, "/preinstall/adbd");
set_perm(0, 0, 0666, "/preinstall/test");
#set_perm(0, 0, 0777, "/preinstall/hijack");
#set_perm(0, 0, 0777, "/preinstall/hijack.killall");
#set_perm(0, 0, 0777, "/preinstall/update-binary");
#set_perm(0, 0, 0755, "/preinstall/update-recovery.zip");
unmount("/preinstall");
End code
#'ed out real files for test files. This trashed /preinstall and no test files got written. Test files are 0 bytes.
Any help would be greatly appreciated.
I got bored and decided to try this out. Did you paste to /preinstall with root explorer because I can't get it to mount r/w. The button to switch modes isn't there in the preinstall file. It is on the root and every other file on the root.
Sent from my DROID X2 using XDA App
I think you are in a kind of unrooted funk. Happened to me b4. RE has a fit. Reroot. Or reinstall RE.
I am certain it was Rom Mgr and a version used at the same time as http://www.droidforums.net/forum/dr...ve-successful-system-upgrade.html#post1791296
Found it!!!!!!!!!!
Set charge mode.
Uninstall sys recov, and rom mgr(if there).
Then DL mkt free RM. Install. Choose "all CWM ..." last menu.
DL 5024.
Reboot into recov and it just boots.
Install Tenfar's and get into cwr.
Go adv and reboot recovery (stk recov) and reboot from there.
/preinstall is filled!
rename these files and cwr will not boot!
Put names back.
From rom mgr "backup current rom"
Pulled(a4 green led) battery and put back(b4 logo) while chg. plug still in.
Got cwr -could not mount sd......
Got this after boot: log
Starting recovery on Sun Dec 25 14:25:38 2011
Starting Open fb0 devices
DroidX2 Recovery GFAN.COM V2.5.1.8
Command: "/sbin/recovery"
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
persist.service.adb.enable=1
EXTERNAL_STORAGE_MOUNT=/mnt/sdcard
ro.factorytest=0
ro.usb_mode=normal
ro.serialno=TA05404FJV
ro.bootmode=unknown
ro.baseband=unknown
ro.carrier=unknown
ro.bootloader=unknown
ro.hardware=daytona
ro.revision=33696
ro.build.id=4.5.1A-DTN-150-30
ro.build.display.id=4.5.1A-DTN-150-30
ro.build.version.incremental=0
ro.build.version.sdk=10
ro.build.version.codename=REL
ro.build.version.release=2.3.4
ro.build.date=Tue Aug 23 21:45:08 CDT 2011
ro.build.date.utc=1314153908
ro.build.type=user
ro.build.user=hudsoncm
ro.build.host=il93lnxdroid52
ro.build.tags=release-keys
ro.product.model=DROID X2
ro.product.brand=verizon
ro.product.name=daytona
ro.product.device=daytona
ro.product.board=daytona
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=motorola
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=tegra
ro.build.product=daytona
ro.build.description=daytona-user 2.3.4 4.5.1A-DTN-150-30 0 release-keys
ro.build.fingerprint=verizon/daytona/daytona:2.3.4/4.5.1A-DTN-150-30/0:user/release-keys
persist.ril.uart.flowctrl=1
persist.ril.mux.ttydevice=/dev/ttyHS3
persist.ril.mux.noofchannels=8
persist.ril.modem.ttydevice=/dev/ttySPI0
persist.ril.modem.mode=1
persist.ril.features=0x0C
mot.mdm_panicd.nopanic=yes
ro.hdmi.mirror.enable=false
ro.hdmi.default.app=
hw.overlay.path.config=
ro.mot.ril.danlist=611,*611,#611
persist.ril.ecclist=911,*911,#911
windowsmgr.max_events_per_sec=70
ro.sf.lcd_density=240
dalvik.vm.heapsize=32m
ro.mot.hw.calibratedImager=1
ro.default_usb_mode=2
ro.tether.denied=false
ro.cdma.homesystem=64,65,76,77,78,79,80,81,82,83
ro.telephony.default_network=4
ro.com.google.clientid=android-motorola
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
ro.config.vc_call_vol_steps=7
keyguard.no_require_sim=true
ro.cdma.home.operator.numeric=310004
ro.cdma.home.operator.alpha=Verizon
ro.cdma.otaspnumschema=SELC,1,80,99
persist.radio.cdma.min=8186321808
ro.HorizontalVVM=true
ro.opengles.version=131072
ro.url.safetylegal=http://www.motorola.com/staticfiles/Support/legal
ro.mot.hw.HAC=1
ro.mot.eri=1
persist.mot.proximity.touch=1
ro.cdma.nbpcd=1
mot.proximity.delay=450
mot.proximity.distance=60
wifi.supplicant_scan_interval=45
persist.radio.vzw.cdma.mdn=8186321808
ro.mot.mynet=true
cdma.nbpcd.supported=false
ro.mot.bindervm.config=165
ro.ngp_available=1
ro.modem_available=0
persist.mot.usb.mediasync=1
ro.cdma.sms.latin_encode=true
ro.mot.deep.sleep.supported=true
ro.mot.hw.uaprof=http://uaprof.vtext.com/mot/mb870/mb870.xml
ro.blan.interface=usb0
mot.mms.conn.timeout=30000
mot.mms.socket.timeout=120000
mot.mms.tr.vc.timeout=55000
mot.mms.trm.timeout=240000
mot.mms.abort.prog.lim=90
mot.mms.retry.pic.size=512000
mot.mms.retry.default=false
mot.mms.retry.timeout.1=30000
mot.mms.retry.timeout.2=180000
mot.mms.retry.timeout.3=300000
mot.mms.retry.timeout.4=480000
ro.com.google.clientidbase=android-motorola
ro.com.google.clientidbase.ms=android-verizon
ro.com.google.clientidbase.am=android-verizon
ro.com.google.clientidbase.gmm=android-motorola
ro.com.google.clientidbase.yt=android-verizon
rild.libpath=/system/lib/libmoto_ril.so
persist.ril.mux.retries=500
persist.ril.mux.sleep=2
ro.kernel.android.ril=yes
ro.config.ringtone=DroidX2.ogg
ro.config.notification_sound=Droid.ogg
ro.config.alarm_alert=Alarm_Classic.ogg
ro.media.enc.aud.fileformat=qcp
ro.media.enc.aud.codec=qcelp
ro.media.enc.aud.bps=13300
ro.media.enc.aud.ch=1
ro.media.enc.aud.hz=8000
ro.com.google.gmsversion=2.3_r5
ro.config.sync=no
ro.browser.useragent=0
ro.media.camcorder.720p=mp4,h264,30,12000000,aac,128000,44100,2
ro.media.camcorder.d1NTSC=mp4,h264,30,6000000,aac,128000,44100,2
ro.media.camcorder.vga=mp4,h264,30,4000000,aac,128000,44100,2
ro.media.camcorder.cif=mp4,h264,30,1500000,aac,128000,44100,2
ro.media.camcorder.qvga=mp4,h264,15,500000,aac,32000,16000,2
ro.media.camcorder.mms=3gp,h264,15,128000,amrnb,12200,8000,1
ro.media.camcorder.mmsres=qvga
ro.camcorder.zoom=true
ro.media.capture.shuttertone=1
ro.camcorder.videoModes=false
ro.telephony.call_ring.multiple=false
ro.telephony.call_ring.delay=3000
ro.cdma.data_retry_config=default_randomization=2000,0,0,120000,180000,540000,960000
ro.mot.setuptype=2
ro.media.camera.focal=3378.6,3378.6
ro.media.camera.principal=1632.0,1224.0
ro.media.camera.skew=0.0
ro.media.camera.distortion=0.0,0.0,0.0,0.0,0.0
ro.media.camera.calresolution=3264,2448
ro.mot.internalsdcard=1
dalvik.vm.dexopt-flags=m=y
net.bt.name=Android
net.change=net.tcp.buffersize.gprs
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.mot.dpmext=true
ro.build.version.full=Blur_Version.1.3.380.MB870.Verizon.en.US
ro.mot.hidden_keyboards=evfwd
ro.sys.atvc_allow_netmon_usb=0
ro.sys.atvc_allow_netmon_ih=0
ro.sys.atvc_allow_res_core=0
ro.sys.atvc_allow_res_panic=0
ro.sys.atvc_allow_all_adb=0
ro.sys.atvc_allow_all_core=0
ro.sys.atvc_allow_efem=0
ro.sys.atvc_allow_bp_log=0
ro.sys.atvc_allow_ap_mot_log=0
ro.sys.atvc_allow_gki_log=0
persist.sys.timezone=America/Los_Angeles
persist.sys.mot.encrypt.mmc=0
persist.sys.localevar=
persist.sys.language=en
persist.service.adb.NV_DISABLE=1
persist.sys.country=US
ro.FOREGROUND_APP_MEM=2464
ro.VISIBLE_APP_MEM=3712
ro.PERCEPTIBLE_APP_MEM=5632
ro.HEAVY_WEIGHT_APP_MEM=5632
ro.SECONDARY_SERVER_MEM=7392
ro.BACKUP_APP_MEM=7392
ro.HOME_APP_MEM=7392
ro.HIDDEN_APP_MEM=14336
ro.EMPTY_APP_MEM=16896
ro.FOREGROUND_APP_ADJ=0
ro.VISIBLE_APP_ADJ=1
ro.PERCEPTIBLE_APP_ADJ=2
ro.HEAVY_WEIGHT_APP_ADJ=3
ro.SECONDARY_SERVER_ADJ=4
ro.BACKUP_APP_ADJ=5
ro.HOME_APP_ADJ=6
ro.HIDDEN_APP_MIN_ADJ=7
ro.EMPTY_APP_ADJ=15
net.tcp.buffersize.default=65536,131072,262144,65536,131072,262144
net.tcp.buffersize.wifi=4095,87380,110208,4096,16384,110208
net.tcp.buffersize.umts=4094,87380,110208,4096,16384,110208
net.tcp.buffersize.edge=4093,26280,35040,4096,16384,35040
net.tcp.buffersize.gprs=4092,8760,11680,4096,8760,11680
wifi.interface=eth0
softap.interface=wl0.1
sys.mot.encrypt.keysig=a32d22b8d3175b4a
sys.chargeonly.mode=1
init.svc.servicemanager=running
init.svc.vold=running
init.svc.netd=running
init.svc.debuggerd=running
init.svc.ril-daemon=running
init.svc.12m_files_copy=stopped
init.svc.nvrm_daemon=running
init.svc.battd=running
init.svc.usbd=running
init.svc.touch=stopped
init.svc.atvc=stopped
init.svc.adbd=running
init.svc.zygote=stopped
ril.restart.counter=1
ro.ril.barcode=
ro.ril.ecclist=911,#911,*911,112
I:Checking for extendedcommand...
I:Running extendedcommand...
Waiting for SD Card to mount (20s)
SD Card mounted...
I:Running script:
I:
ui_print("ROM Manager Version 4.8.0.7");
ui_print("December 25, 2011");
assert(backup_rom("/emmc/clockworkmod/backup/2011-12-25-14.24.18"));
line 1: unexpected character at 'u'
Syntax error in update script

Continuously frustrated with attempting to DEV anything on my OSX

I have spent over an hour trying to get an update someone else already created that removes sense(to work on a recent ICS leak for the amaze 4g)- all I should need to do is modify the updater-script. I opened and edited with gedit, I've checked everything about it and can't find a reason why I get installation aborted- critical error. The recovery log doesn't give me any detail(I am using 4ext), and I'm sure there is something minor I am missing that is keeping me from such a SIMPLE thing..
*Some of this is a rant to explain that I have done PLENTY of searching, if you can take a look at the file and see if you know what I'm doing wrong it is appreciated.
Before I asked this I have searched everything I could find on doing this- I made sure any hidden osx files in the directory were deleted before compressing, made changes with gedit that should maintain the file type, I signed the file with dxixda's kitchen(I do get an error: ls: illegal option -- X - usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...] but everything I've found makes me think this shouldn't be a problem- and if it is I don't even know what is wrong with the kitchen or my file).
As I said, this is a last resort, I've also had problems deodexing and it seems like everything else I've tried to do on my mac lately.. GOING CRAZY. If I don't figure out what keeps screwing things up I'm gonna do a complete new install of OSX- I'm thinking maybe there is something wrong..
/Rant*
Thanks in advance if anyone can point out what I'm doing wrong, I am beyond frustrated! In the end I am trying to develop a zip to remove sense and htc apps that can be replaced by aosp ics apps, and maybe a tiny bit of theming if I integrate all of this into a rom- so I'm dying that i can't even get the first part of this accomplished(as I have in the past!)
Script.sh
Code:
#!/sbin/sh
RDD="/data/app"
RDATA="com.twitter.android-1.apk
com.htc.FMRadioWidget.apk
com.htc.FriendStreamWidget.apk
com.htc.MusicWidget.apk
com.htc.NewsReaderWidget.apk
com.htc.StockWidget.apk
com.htc.TwitterWidget.apk
com.htc.WeatherWidget.apk
HtcAddProgramWidget.apk
htcbookmarkwidget.apk
HtcCalculatorWidget.apk
htccalendarwidgets.apk
HtcClockWidget.apk
htccontactwidgets.apk
HtcCopyright.apk
HtcFootprintsWidget.apk
htcmailwidgets.apk
htcmsgwidgets.apk
HtcPhotoWidget.apk
HtcProfilesWidget.apk
HtcRingtoneWidget.apk
htcsettingwidgets.apk
HtcSyncwidget.apk
HtcWeatherWallpaper.apk
PluginManager.apk
Rosie.apk
WidgetDownloadManager.apk"
RSS="/system/app"
RSYS="com.twitter.android-1.apk
com.htc.FMRadioWidget.apk
com.htc.FriendStream3DWidget.apk
com.htc.MusicWidget.apk
com.htc.Twitter3DWidget.apk
com.htc.Weather3DWidget.apk
htcbookmarkwidget3d.apk
HtcCalculatorWidget.apk
htccalendarwidgets3d.apk
HtcClock3DWidget.apk
htccontactwidgets3D.apk
htcmailwidgets3d.apk
HtcPhotoWidget.apk
HtcProfileWidget.apk
HtcRingtoneWidget.apk
htcsettingwidgets.apk
Sync3Dwidget.apk
HtcWeatherWallpaper.apk
PluginManager.apk
Rosie.apk"
for x in $RDATA; do
rm -f $RDD/$x
done
for x in $RSYS do
rm -f $RSS/$x
done
exit 0
updater script
Code:
format("MTD", "cache");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");
show_progress(1, 15);
package_extract_file("script.sh", "/tmp/script.sh");
set_perm(0, 0, 0777, "/tmp/script.sh");
run_program("/tmp/script.sh", "");
delete_recursive("/data/dalvik-cache");
unmount("/userdata");
unmount("/system");

[GUIDE] Porting rom to MDPI FROM MIUI AND HDPI [aroma tut coming soon]

so here iam making a guide for ppl who wold like to port miui to xperia MDPI...noob friendly
soon ill make a guide for how to port HDPI rom to MDPI..
ill be tell u ppl how to make a miui rom with aroma installer...
and this how i port.
So lets start
STEP:-1
Things u need to before porting.
1.META-INF folder (iam giving my roms meta-inf folder.) http://www.mediafire.com/download.php?g2f3d233tkvteua
2.APKTOOL http://www.mediafire.com/download.php?ba8bqcf9lpfiu6mhttp://www.wuala.com/neroyoung/XDA%20ROM%20Dev%20Tools/APKTool.rar/
3.APK MANAGER ICS http://www.mediafire.com/download.php?ba8bqcf9lpfiu6m
4.DEV FILES (giving my roms dev files) http://www.mediafire.com/download.php?z3onaugfr4nr65r
5.NOTE PAD++
6.WINRAR
7.BASE ROM OF ARC S FROM MIUIANDROID.com
8.BASE .587 ROM OF xperia MDPI (any one of mini pro,mini,lww,active)
9.PROPER KNOWLEDGE OF COMPILING AND DECOMPILING .
10.CALM MIND
STEP:-2
In system folder
From xperia mdpi .587 base rom
delete:
app
framework
fonts
media
open arc s miui rom archive with winrar and replace with those files above folders.DONT CLOSE ARCHIVE
now Open lib folder and copy some files from the arc s archive.
content-types.properties
liblbesec.so
liblocSDK_2.5OEM.so
Open etc Folder and copy some files from arc s archive
yellowpage.db
telocation.td
go to permissions folder in etc folder and add some files from arc s archive
miui-framework.xml
com.google.android.media.effects.xml
com.google.widevine.software.drm.xml
com.google.android.maps.xml
STEP:-3
Modifying build prop
change the underlined texts with notepad++ according to ur versions
Code:
################# Updating of the SW Version #################
ro.semc.version.fs_revision=4.1.B.0.587
ro.build.id=4.1.B.0.587
ro.build.display.id=[U]4.1.B.0.587[/U]
##### Values from product package metadata #####
ro.semc.product.model=SK17i
ro.semc.ms_type_id=AAD-3880097-AV
ro.semc.version.fs=WORLD-i
ro.semc.product.name=Xperia mini pro
ro.semc.product.device=SK17
ro.product.model=SK17i
# begin build properties
# autogenerated by buildinfo.sh
ro.build.version.incremental=[U]2.9.29[/U]
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=cn
persist.sys.timezone=Asia/Shanghai
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 mango
# ADDED BY BUILD SCRIPT
ro.rommanager.developerid=miuiandroid
ro.modversion=MIUIAndroid-[U]2.9.29-EN-SK17i
STEP:-4
BUILD PROP TWEAKS
add thses to ur build prop ..
Code:
# 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:-5
Disabling auto brightness to make the leds to work.
1-decompile framework-res.apk
2-after decompiling goto res>values>bools.xml
3-u will see this line
Code:
<bool name="config_automatic_brightness_available">[COLOR="Red"]true[/COLOR]</bool>
4-change that 'true' to 'false'
5. recompile and put the file in system/framework folder.
BLACK BAR removing.
1-decompile MiuiSystemUI.apk
2-goto res>values> drawables.xml
3-delete this line
Code:
<item type="drawable" name="notification_header_bg">#ff000000</item>
4-recompile it and paste it in system/app folder.
STEP:-6
Changing some things in meta-inf folder.
change the highlighted things according to ur rom
1-aroma config file
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2-goto meta-inf>com>google>android>aroma>license
and write what every u want.
STEP:-7
Setting up folders.
so after doing all these
u should have these folder
META-INF
DEV
SYSTEM
make a zip of these folders...and ur done with the new miui rom
sorry for my bad presentation
CREDITS
Lens_flare (for giving idea how to do it)
jj doctor
GUIDE:-2
HOW TO COMPILE AND DECOMPILE
so 1st using apktool install these files by using this command..
framework-res.apk - apktool if framework-res.apk
framework-miui-res.apk - apktool if framework-miui-res.apk
SemcGenericUxpRes.apk - apktool if SemcGenericUxpRes.apk
once u done installing these 3 things.. close apktool.......
FRAMEWORK-RES
now download and install apk manager to ur c/ drive...
after installing u should have folders like this.
after that put apks in the folder named ' put apk's here for moding'
so u put framework-res.apk and miuisystemui.apk in that folder
like this
then open the script.
like this
after opening the script it will be like this
choose a project by pressing 22 and choose framework-res.apk
then decompile it by pressing 9
after in the project folder.
go to framework-res.apk >res>values>and open bools.xml in that change the auto brightness to false insted of true.
then recompile it by pressing 11 and it will ask for 'is it a system app' say yes there..
.
and it will also ask for 'copy original files that u have not modified.' say no there.
and do not sign the framework or systemui apk
so in the same folder ' put apks for modding u will find a file like this 'unsignedframework-res.apk' so rename it to framework-res and replace in the system/framework
so now framework is over..
SYSTEM UI
same way u decompile miuisystemui.apk
in that go to res>values> open drawables.xml and delete this line shown in down
after that recompile it by pressing 11
it will ask the same thing again 'is it a system app' say yes.
and 'do u want to copy original files that u have not modified' say yes.
and again a msg will popup like this
so for that a temp folder called 'keep' will be created in the inside apk manager ics folder in that delete this file shown in pic
and press enter
so recompiling is done with out any error...
now in the that 'put ur apks for moding' folder rename it to MiuiSystemUI and place it in the system/app
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.
Code:
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
Code:
/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
Code:
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]
NOTE:
framework of an HDPI rom will work on MDPI rom no need to change it
Click to expand...
Click to collapse
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.
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 '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
Code:
# 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.
Code:
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.
Code:
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
data http://www.mediafire.com/download.php?l1ejemfyftax1ej
META-INF
system
Click to expand...
Click to collapse
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
Very nice guide, but would be cool if you could show more screenshots, this would make the whole presentation better. Apart from this, it's very good
But maybe you could write something about porting kernels, because we need to port kernel, too. Otherwise the phone wouldn't boot, right?
mihahn said:
Very nice guide, but would be cool if you could show more screenshots, this would make the whole presentation better. Apart from this, it's very good
But maybe you could write something about porting kernels, because we need to port kernel, too. Otherwise the phone wouldn't boot, right?
Click to expand...
Click to collapse
thanks ill update the screen shots soon..
i never tried porting kernels....ill start it in this month....once iam done ill bring a guide for that also
edit: for making this miui rom u can use any ics kernels in development forums works fine.
sandy7 said:
thanks ill update the screen shots soon..
i never tried porting kernels....ill start it in this month....once iam done ill bring a guide for that also
edit: for making this miui rom u can use any ics kernels in development forums works fine.
Click to expand...
Click to collapse
Okay great, because every rom I've tried to port needed it's own kernel
How about the updater-script? Could you maybe explain something about this; what we can change there, etc?
mihahn said:
Okay great, because every rom I've tried to port needed it's own kernel
How about the updater-script? Could you maybe explain something about this; what we can change there, etc?
Click to expand...
Click to collapse
just use my updater script attached in meta-inf folder...
bcz it would be easy for noobs..
edit: ok ill make update what all u need to change in updater script
sandy7 said:
just use my updater script attached in meta-inf folder...
bcz it would be easy for noobs..
edit: ok ill make update what all u need to change in updater script
Click to expand...
Click to collapse
This would be great if you could tell us (maybe not in this tutorial, but maybe in another?) what we have to change to port updater-script, maybe even if we port from different manufactures?
mihahn said:
This would be great if you could tell us (maybe not in this tutorial, but maybe in another?) what we have to change to port updater-script, maybe even if we port from different manufactures?
Click to expand...
Click to collapse
ok iam thinking of pining this thread ...it will be help full for devs
guide 2
updated the guide for decompiling recompiling files.
Really nice of yhu buddy..... Thumbsup!!!!
would love to know how to make Aroma Installer....
whalesplaho said:
Really nice of yhu buddy..... Thumbsup!!!!
would love to know how to make Aroma Installer....
Click to expand...
Click to collapse
ok will make a guide for it asap
sandy7 said:
ok will make a guide for it asap
Click to expand...
Click to collapse
"Sorry, you are limited to 8 thanks per day"........ thanks so much brov!!!!
can use aroma installer for any installation right not only ROM?
whalesplaho said:
"Sorry, you are limited to 8 thanks per day"........ thanks so much brov!!!!
can use aroma installer for any installation right not only ROM?
Click to expand...
Click to collapse
Yes you should be able to use it for mods, etc, too
Sent from my SK17i running Jelly Bean via CM10
mihahn said:
Yes you should be able to use it for mods, etc, too
Sent from my SK17i running Jelly Bean via CM10
Click to expand...
Click to collapse
Okay... thanks!
whalesplaho said:
"Sorry, you are limited to 8 thanks per day"........ thanks so much brov!!!!
can use aroma installer for any installation right not only ROM?
Click to expand...
Click to collapse
ya u can use for any mods also
sandy7 said:
ya u can use for any mods also
Click to expand...
Click to collapse
thanks brov..... waiting for tutorial!
Great tut sandy...
Hope ill make a MIUI rom one day following these guides
ssanjay19 said:
Great tut sandy...
Hope ill make a MIUI rom one day following these guides
Click to expand...
Click to collapse
ya sure make it...any doubt post it here ill solve it....
ill add a one more tut today...how to port HDPI rom to MDPI
sandy7 said:
ya sure make it...any doubt post it here ill solve it....
ill add a one more tut today...how to port HDPI rom to MDPI
Click to expand...
Click to collapse
Great brov but dnt forget Aroma Installer when yhu idle.....

Updater-Script Status 7 Error on Flash

Greetings XDA Forums! First time poster due to a very annoying problem I have with my Updater-Script.
Let me provide background knowledge:
I flashed the Sammy Deluxe Operation IVY Rom on my S4. It's essentially a 100% port of the S5 rom. It works better than my expectation and I was mentally blown away. However there was one annoyance. The hardware keys for the Context Menu and App Switcher were changed to emulate the S5 method. I didnt like it because now context menu is inaccessible. I tried doing the trick where I hold down the capacitive button to see if that works, but Im afraid that trick is a hardware coded trick that was only implemented on the S5. Not the S4 where its merely being emulated.
Adding to my state of annoyance, the ROM author wrote on the front page he wont change it back and dont even ask to change it back. Quote, he said this : "Please change it yourself. This is a S5 style ROM and I don’t understand what the problem is to adapt to new changings. If not, there is always the possibility for you to revert to the original softkey layout." I do understand why he would say that. Let me keep going.
I decided to fix it myself by visiting these 2 links
http://forum.xda-developers.com/showthread.php?t=2792460
This forum post shows you how to emulate the S5 Capacitive Context Menu Button on the S4 ( now the app switcher button )
So I did the reverse process of that. I decompiled the framework-res.apk, edited the boolean back to S4 Default ( which is what I want )
also set the key 139 ( Left Side Capacative ) back to Context Menu function. Recompiled the framework-res.apk.
The question is now is how to install my changes.
I made a flashable zip with updater script and everything. I followed this guide here so I can see the basic syntax and have an understanding of it.
http://forum.xda-developers.com/showthread.php?t=2377695
On doing so, the process of deleting the old framework-res.apk and putting the new one in works perfectly. However the command set_perm doesnt after copying the file to the /system/framework folder. During the flash everything else is good, but once it gets to set perm, Status 7 error is spewed by CWM and it says set_perm some changes failed
I double checked my parenthesis, my semi-colons, and my quotations.
I'm sure the problem is within the syntax of set_perm
Here is my code and I will attach it at the bottom as well for any additional help.
Code:
ui_print("framework-res fix by baboomerang");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(0.150000, 1);
ui_print("Removing old copy of framework-res");
ui_print("Removing old copy of Generic");
delete("/system/framework/framework-res.apk");
delete("/system/usr/keylayout/Generic.kl");
ui_print("Installation...");
show_progress(0.250000, 2);
package_extract_file("/system/framework/framework-res.apk", "/system/framework");
package_extract_file("/system/usr/keylayout/Generic.kl", "/system/usr/keylayout");
ui_print("Patching done");
show_progress(0.476000, 3);
ui_print("Using CHMOD 644 or rw r r");
ui_print("Uploading Stage 1 to diagnose which set perm broken");
set_perm(0,0,0644, "/system/framework/framework-res.apk");
ui_print("Uploading Stage 2 To diagnose which set perm broken");
set_perm(0,0,0644, "/system/usr/keylayout/Generic.kl");
show_progress(0.789000, 4);
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
show_progress(0.930000, 5);
ui_print("Cleaning Up...");
show_progress(0.999999, 6);
ui_print("Installation done..........");
ui_print("Now your s4 hardware keys should be back to normal");
It works all the way up to the UI PRINT Uploading Stage 1 to diagnose which set perm broken. Then it just stops with status 7 error.
I am finally requesting assistance or guidance on where to fix this problem. or HOW TO to be accurate.
Hello
Copy your apk at the same level of your updater script and try that :
assert(package_extract_file("framework-res.apk", "/system/framework/framework-res.apk"));
Thanks for the help but...
cyrillem28410 said:
Hello
Copy your apk at the same level of your updater script and try that :
assert(package_extract_file("framework-res.apk", "/system/framework/framework-res.apk"));
Click to expand...
Click to collapse
I see the purpose of that line of code you told me to add. Since I see that English isn't your best ( Don't worry, I understand ) I assume your telling me to put that line of yours above my package extract line code.
So like this:
Code:
ui_print("framework-res fix by baboomerang");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(0.150000, 1);
ui_print("Removing old copy of framework-res");
ui_print("Removing old copy of Generic");
delete("/system/framework/framework-res.apk");
delete("/system/usr/keylayout/Generic.kl");
ui_print("Installation...");
show_progress(0.250000, 2);
[B]
[I]package_extract_file("/system/framework/framework-res.apk", "/system/framework");
assert (package_extract_file("framework-res.apk", "/system/framework/framework-res.apk"));
package_extract_file("/system/usr/keylayout/Generic.kl", "/system/usr/keylayout");[/I][/B]
ui_print("Patching done");
show_progress(0.476000, 3);
ui_print("Using CHMOD 644 or rw r r");
ui_print("Uploading Stage 1");
set_perm(0,0,0644, "/system/framework/framework-res.apk");
ui_print("Uploading Stage 2");
set_perm(0,0,0644, "/system/usr/keylayout/Generic.kl");
On doing this I get from cwm:
Code:
-- Installing: /storage/sdcard1/framework-fix
by baboomerang.zip
Finding update package...
Opening update package...
Installing update...
framework-res fix by baboomerang
Mounting system...
Removing old copy of gramework-res
Removing old copy of Generic
Installation...
[I][B]assert failed: package_extract_file("framework
-res.apk", "/system/framework/framework-res.apk")[/B][/I]
E:Error in /storage/sdcard1/framework-fix by b
aboomerang.zip
(Status 7)
Installation aborted.
I get this when the assertion is below/after the original package_extract. I haven't tried the assertion before/above the original package_extract.
Btw thanks, I think Im getting closer.
EDIT: I am closer and got very close. But now I am here.
Code:
ui_print("framework-res fix by baboomerang");
ui_print("Mounting system...");
[I][B]mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");[/B][/I]
show_progress(0.150000, 1);
ui_print("Removing old copy of framework-res");
ui_print("Removing old copy of Generic");
delete("/system/framework/framework-res.apk");
delete("/system/usr/keylayout/Generic.kl");
ui_print("Installation...");
show_progress(0.250000, 2);
[I][B]package_extract_file("system/framework/framework-res.apk", "/system/framework");
package_extract_file("system/user/keylayout/Generic.kl", "/system/usr/keylayout");[/B][/I]
ui_print("Patching done");
show_progress(0.476000, 3);
ui_print("Using CHMOD 644 or rw r r");
ui_print("Uploading Stage 1");
set_perm(0,0,0644, "/system/framework/framework-res.apk");
ui_print("Uploading Stage 2");
set_perm(0,0,0644, "/system/usr/keylayout/Generic.kl");
show_progress(0.789000, 4);
[I][B]assert(package_extract_file("framework-res.apk", "/system/framework/framework-res.apk"),
package_extract_file("Generic.kl", "/system/usr/keylayout"));[/B][/I]
ui_print("Unmounting system...");
unmount("/system");
This fixes my issues. But I now get back to the part of Stage 1. Where it cant set the permissions.
Instead of using this:
Code:
package_extract_file("[I][B]/system[/B][/I]/framework/framework-res.apk", "/system/framework");
package_extract_file("[I][B]/system[/B][/I]/user/keylayout/Generic.kl", "/system/usr/keylayout");
I did this:
Code:
package_extract_file("[I][B]system[/B][/I]/framework/framework-res.apk", "/system/framework");
package_extract_file("[I][B]system[/B][/I]/user/keylayout/Generic.kl", "/system/usr/keylayout");
Reason for that is because I saw in the guide in my first post, their package_extract_file shows "system" since its coming from the zip itself there is no " / " folder behind it. its just the zip itself, meta inf and system folder. Even if that was added, it doesn't make any sense or wouldn't fit the flashable zip standard.
Fixed 100% working
Ok so thanks for the help, I fully fixed my script with a lot of experimenting.
Here's a summary of what I did
I changed
Code:
run_program("/sbin/busybox", "mount", "/system");
to
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");
also added
Code:
package_extract_dir("system", "/system");
before doing this below
Code:
package_extract_file("system/framework/framework-res.apk", "/system/framework");
package_extract_file("system/usr/keylayout/Generic.kl", "/system/usr/keylayout");
Next I used
Code:
set_perm_recursive(0, 0, 0755, 0644, "/system/framework", "/system/usr/keylayout");
to at least in a different way change the permissions of the files directly with no errors. the 0755 sets the framework folder itself of rwx rx rx then 0644 sets all the files inside to rw r r.
Then I continued to use
Code:
set_perm(0, 0, 0644, "/system/usr/keylayout/Generic.kl");
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
and somehow after all that it worked yay!
Finally, I did
Code:
assert(package_extract_file("system/framework/framework-res.apk", "/system/framework/framework-res.apk"),
package_extract_file("system/usr/keylayout/Generic.kl", "/system/usr/keylayout/Generic.kl"));
so at least the files are forced to be downloaded.
Im keeping this here so future viewers at least see or get an idea on how to fix it like I did. Cheers

Cross Porting 6795 to 6752

Hi All,
Porting 6795 ROMs to 6752.
It has been a while since i published the Vibe ui porting thread. Here is a quick cheat guide for getting the basics of the rom working.
Display, sound ,GSM (3g) and Wifi . (updated to add camera)
I used this for Flyme and Miui and it worked for me. If anyone finds additional items or wants to complete this guide please feel free to add it in here.
Your milage may vary. Please remember, i am posting this so that people will try things and usually when they do, they end up finding something better and awesome than not trying.
I use this from stock and push this via adb.
NOTE: ALWAYS REMOVE RECOVERY-FROM-BOOT.P before you do anything else.
###REPLACE#bin
afm_server
akmd09911
applysig
app_process64_original
app_process_init
custom_sn
encfs
factory_reset.sh
fusermount
geomagneticd
gzip_static
install-recovery_original.sh
ipod
mediaserver
mmp
mtkbt
mtk_agpsd
nvram_agent_binder
nvram_daemon
nvram_proximity
updater
###REPLACE#etc\firmware
catcher_filter_1_lwg_n.bin
dsp_1_lwg_n.bin
md32_d.bin
md32_p.bin
modem_1_lwg_n.img
mt6627
ROMv2_lm_patch_1_0_hdr.bin
ROMv2_lm_patch_1_1_hdr.bin
WIFI_RAM_CODE_6752
###REPLACE#etc\firmware\mt6627
mt6627_fm_v1_coeff.bin
mt6627_fm_v1_patch.bin
mt6627_fm_v2_coeff.bin
mt6627_fm_v2_patch.bin
mt6627_fm_v3_coeff.bin
mt6627_fm_v3_patch.bin
mt6627_fm_v4_coeff.bin
mt6627_fm_v4_patch.bin
mt6627_fm_v5_coeff.bin
mt6627_fm_v5_patch.bin
###REPLACE#etc\mddb
APDB_MT6752_S01_L0.MP6_W15.13
BPLGUInfoCustomAppSrcP_MT6752_S00_A7000_ROW_V15_1_lwg_n
###REPLACE#fonts
DroidSans-Bold.ttf
DroidSans.ttf
###REPLACE#lib
lib3a.so
lib3a_sample.so
liba3m.so
libacdk.so
libaed.so
libaudiocustparam.so
libbluetoothdrv.so
libbluetooth_mtk.so
libcam.camadapter.so
libcam.camnode.so
libcam.camshot.so
libcam.client.so
libcam.device1.so
libcam.device3.so
libcam.exif.so
libcam.exif.v3.so
libcam.hal3a.v3.so
libcam.halsensor.so
libcam.iopipe.so
libcam.jni.lomohaljni.so
libcam.metadataprovider.so
libcam.paramsmgr.so
libcam.sdkclient.so
libcam.utils.so
libcam3_app.so
libcam3_hwnode.so
libcam3_hwpipeline.so
libcam3_pipeline.so
libcam3_utils.so
libcamalgo.so
libcamdrv.so
libcameracustom.so
libcameraservice.so
libcamera_client.so
libcamera_client_mtk.so
libcam_hwutils.so
libcam_platform.so
libcustom_nvram.so
libdpframework.so
libfeatureio.so
libfeatureiodrv.so
libfm_gpio_jni.so
libimageio.so
libimageio_plat_drv.so
libipod.so
libjni_pq.so
libjni_slow_motion.so
libJpgDecPipe.so
libJpgEncPipe.so
liblenovo_lcd.so
libmmprofile.so
libmtk_drvb.so
libnvram.so
libnvramagentclient.so
libnvram_platform.so
libnvram_sec.so
libquickshot.so
librilmtk.so
librilmtkmd2.so
libsensorservice.so
mtk-ril.so
mtk-rilmd2.so
###REPLACE#lib\drm
libfwdlockengine.so
###REPLACE#lib\egl
egl.cfg
libGLES_mali.so
###REPLACE#lib\hw
audio.primary.mt6752.so
bluetooth.default.so
camera.mt6752.so
gps.default.so
gralloc.mt6752.so
hwcomposer.mt6752.so
lenovopower.default.so
lights.default.so
sensors.mt6752.so
###REPLACE#lib64
lib3a.so
lib3a_sample.so
liba3m.so
libacdk.so
libaed.so
libaudiocustparam.so
libbluetoothdrv.so
libbluetooth_mtk.so
libcam.camadapter.so
libcam.camnode.so
libcam.camshot.so
libcam.client.so
libcam.device1.so
libcam.device3.so
libcam.exif.so
libcam.exif.v3.so
libcam.hal3a.v3.so
libcam.halsensor.so
libcam.iopipe.so
libcam.jni.lomohaljni.so
libcam.metadataprovider.so
libcam.paramsmgr.so
libcam.sdkclient.so
libcam.utils.so
libcam3_app.so
libcam3_hwnode.so
libcam3_hwpipeline.so
libcam3_pipeline.so
libcam3_utils.so
libcamalgo.so
libcamdrv.so
libcameracustom.so
libcameraservice.so
libcamera_client.so
libcamera_client_mtk.so
libcam_hwutils.so
libcam_platform.so
libcustom_nvram.so
libdpframework.so
libfeatureio.so
libfeatureiodrv.so
libfilterpack_facedetect.so
libfm_gpio_jni.so
libimageio.so
libimageio_plat_drv.so
libJniAtvService.so
libjni_effects.so
libjni_gesture.so
libjni_imagetransform.so
libjni_lomoeffect.so
libjni_pq.so
libjni_slow_motion.so
libJpgDecPipe.so
libJpgEncPipe.so
libjtranscode.so
liblenovo_lcd.so
libmmprofile.so
libmtk_drvb.so
libnvram.so
libnvramagentclient.so
libnvram_platform.so
libnvram_sec.so
libquickshot.so
librilmtk.so
librilmtkmd2.so
libsensorservice.so
libsupol.so
libvcodec_utility.so
###REPLACE#lib64\egl
libGLES_mali.so
###REPLACE#lib64\hw
audio.primary.mt6752.so
camera.mt6752.so
gps.default.so
gralloc.mt6752.so
hwcomposer.mt6752.so
lenovopower.default.so
lights.default.so
mmsdk.default.so
sensors.mt6752.so
###REPLACE#vendor\lib\egl
egl.cfg
libGLES_android.so
libGLES_mali.so
###REPLACE#vendor\lib\hw
audio.a2dp.blueangel.so
bluetooth.blueangel.so
gralloc.mt6752.so
###REPLACE#vendor\lib64\egl
libGLES_android.so
libGLES_mali.so
###REPLACE#vendor\lib64\hw
gralloc.mt6752.so
###REPLACE#xbin
daemonsu
su
sugote
sugote-mksh
supolicy
If it worked for you , do click thanks. I don't mind anyone using my guide as long as they point to this original thread and add due credits. I got a rep to build at XDA.
Good job pro
Thank for you share:good:
Thanks for sharing. Does it work on 6752 to 6753? Also porting CM12.1? Thanks for the response
thanks a lot... but what about boot.img

Categories

Resources