[Xperia SP Android Development] ruchirtrehan:
Disclaimer Note :​

​

[/COLOR][/SIZE][/B]
[SIZE="2"][B][COLOR="Blue"]
* By you using my Mods, Roms etc...
*[COLOR="red"] I am not responsible[/COLOR] for bricked devices, or dead SD cards, but I will try to help you if things go wrong.
* thermonuclear war, or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about features included in this ROM
* before flashing it! [COLOR="red"]YOU[/COLOR] are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.[/COLOR][/B][/SIZE]

​

Introduction :

After a great success of my previous ROM, I preset you to the [v2][HonamiUltraized][White Edition] More Faster! More Fluid! More Stable! And all bugs fixed from the previous [Black Edition]

Here's the HonamiUltraizeD ROM for the XPERIA SP, a combo of XPERIA Z Ultra and XPERIA Z1 Honami

This is a White Edition ROM

[/B][/COLOR][/SIZE][B][SIZE="3"][COLOR="Red"]Requirements :[/COLOR][/SIZE][/B]

[B][SIZE="2"][COLOR="blue"]- Root
- CWM/TWRP[/COLOR][/SIZE][/B]

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

All Tweaks description

build.prop tweaks description

Not all tweaks from build.prop has been used, you can find all the tweaks below and use them as per your needs.

Render using GPU and GPU Tweaks:

#enable harware egl profile
debug.egl.profiler=1

#16BIT transparency , Smother Scrolling
persist.sys.use_16bpp_alpha=1

#debug.composition.type=gpu
debug.composition.type=c2d
debug.performance.tuning=1
debug.enabletr=true
debug.qctwa.preservebuf=1
dev.pm.dyn_samplingrate=1
video.accelerate.hw=1
ro.vold.umsdirtyratio=20
debug.overlayui.enable=1
debug.egl.hw=1
ro.fb.mode=1
hw3d.force=1
persist.sys.composition.type=c2d
persist.sys.ui.hw=1
ro.sf.compbypass.enable=0

#Enable tile rendering
debug.enabletr=true
persist.sys.composition.type=gpu
#3d performance
persist.android.strictmode=0
ro.min_pointer_dur=1
ro.secure=0

Media Quality:

ro.media.enc.jpeg.quality=100
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
ro.media.dec.aud.wma.enabled=1
ro.media.dec.vid.wmv.enabled=1
ro.media.cam.preview.fps=0
ro.media.codec_priority_for_thumb=so

Liquid Smooth Ui:

persist.service.lgospd.enable=0
persist.service.pcsync.enable=0

Sensor Sleep:

# For sensor sleep control
ro.ril.sensor.sleep.control=1
Unlock fps limit:
Code:
debug.egl.swapinterval=0

Qualcomm tweaks:

com.qc.hardware=1
debug.qc.hardware=true
debug.qctwa.preservebuf=1
debug.qctwa.statusbar=1

Screen Glitches fix:

debug.gr.numframebuffers=3

3G network for speeding up :

ro.ril.set.mtu1472=1

Disable Logers (safe battery + performance gain)

ro.config.htc.nocheckin=1
ro.config.nocheckin=1
profiler.force_disable_ulog=1
profiler.force_disable_err_rpt=1

Touch tuning :

### Touch tuning ###
touch.presure.scale=0.001

Enable Hardware 3D :

hw3d.force=1

Save power while phone is in sleep mode:

ro.ril.disable.power.collapse=1

Better scrolling:

windowsmgr.max_events_per_sec=90
ro.max.fling_velocity=12000
ro.min.fling_velocity=8000

Support for ipv4 and ipv6.:

persist.telephony.support.ipv4=1
persist.telephony.support.ipv6=1

Better battery life:

pm.sleep_mode=1
usb_wakeup=enable
proximity_incall=enable
power_supply.wakeup=enable
ro.config.hw_power_saving=1
ro.config.hw_fast_dormancy=1
ro.config.hw_quickpoweron=true
persist.sys.use_dithering=0
#improve battery under no signal -- need test
ro.mot.eri.losalert.delay=1000

ro.config.vc_call_vol_steps=15
Increase overall scrool speed and enable rotation to 270 degree:

Better signal reception:

persist.cust.tel.eons=1
ro.config.hw_fast_dormancy=1

Enable 16 BIT:

debug.fb.rgb565=1

VM tweak:

ro.vold.umsdirtyratio=20
Better in call voice quality:

ro.ril.enable.amr.wideband

Signal Tweaks:

persist.cust.tel.eons=1
ro.ril.gprsclass=10
ro.ril.hsdpa.category=8
ro.ril.hsupa.category=6
ro.ril.hsxpa=1

net speed tweaks:

net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.hspda=4096,87380,256960,4096,16 384,256960
net.tcp.buffersize.hspa=4096,87380,256960,4096,163 84,256960

Wireless Tweaks:

net.ipv4.ip_no_pmtu_disc=0
net.ipv4.route.flush=1
net.ipv4.tcp_ecn=0
net.ipv4.tcp_fack=1
net.ipv4.tcp_mem=187000 187000 187000
net.ipv4.tcp_moderate_rcvbuf=1
net.ipv4.tcp_no_metrics_save=1
net.ipv4.tcp_rfc1337=1
net.ipv4.tcp_rmem=4096 39000 187000
net.ipv4.tcp_sack=1
net.ipv4.tcp_timestamps=1
net.ipv4.tcp_window_scaling=1
net.ipv4.tcp_wmem=4096 39000 187000

Google DNS Tweak -- fastest DNS service:

net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4
net.ppp0.dns1=8.8.8.8
net.ppp0.dns2=8.8.4.4
net.dns1=8.8.8.8
net.dns2=8.8.4.4
Website Bypass:
Code:
net.dns1=8.8.8.8
net.dns2=8.8.4.4
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4

DalvikVM:

dalvik.gc.type=precise
dalvik.vm.dexopt-data-only=1
#Enables register map for tracking objects to garbage collect. Might give a little more RAM at the cost of a few CPU cycles.
dalvik.vm.dexopt-flags=m=v,o=y
dalvik.vm.jniopts=forcecopy
dalvik.vm.lockprof.threshold=500
dalvik.vm.stack-trace-file=/data/anr/traces.txt
dalvik.vm.verify-bytecode=false

Launcher tweaks: Testers needed

# Keep launcher in memory
ro.HOME_APP_ADJ=1
# Won't let memory managers to kill Launcher
ro.PERCEPTIBLE_APP_ADJ=2
#ro.HOME_APP_MEM=2048

Kernel Tweaks: (Should speed things up a bit)

# Disable error checking
ro.kernel.checkjni=0
ro.kernel.android.checkjni=0

Allow purging of assets (System can free more Ram when needed):

persist.sys.purgeable_assets=1
Disabling Strict mode:

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

Disable WiFi calling for EU models:

ro.ril.enable.ganlite=0

Decrease dial out delay:

ro.telephony.call_ring.delay=0
ring.delay=0

Decrease time for screen off/on during call:

ro.lge.proximity.delay=25
mot.proximity.delay=25
ro.mot.buttonlight.timeout=0

Makes streaming videos stream faster:

media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-aac=true
media.stagefright.enable-qcp=true
media.stagefright.enable-record=true

For quick boot mode:

# persist.sys.shutdown.mode=hibernate
ro.config.hw_quickpoweron=true

Hide debuging icon from taskbar:

persist.adb.notify=0
persist.service.adb.enable=1

For the default value of aGPS:

ro.ril.def.agps.mode=2
ro.ril.def.agps.feature=1

Enable egl profiler - enable harware egl profile:

debug.egl.profiler=1

enable/disable data in roaming:

#ro.com.android.dataroaming=true
ro.com.android.dataroaming=false

Script tweaks description

Special Thanks to Jeeko bro for the PurePerformances™X | Golden Edition

One of the best scripts ever made on XDA

FEATURES:

- Android performances improved at 360°
- Radically improved management ram on android (Lags...adios!)
- Script lightweight and revised to be adapted to this engine
- Improves a lot the graphics: of course Pure Graphic™HD, Pure Dithering Plus™ and... AOSPA 3.60 system tweaks
- Scan multimedia time drastically reduced
- Network Improvements, 3G experience even in 2G modality
- All SQlite database optimized
- Enable hardware features turned off by default for a better experience on entry level devices
- Greatly increases the score AnTuTu: Try it to believe it!!
- Reduces the startup time of Android
- A version for stock rom and one for CM, to squeeze any roms!
- Allows you to play ported games without lags
- Cleans the system every 24 hours, thecache every week and the Dalvik every month (cronos easter egg)
- Automatically Zipalign on each boot (sensitive to the user)[/COLOR]

Battery:

- Drastically decreased the drainage of battery
- Check the activities that consume too much battery stop them with PureWakelocks™
- When the phone is charging reduces system services for faster charging
- The battery is calibrated on every boot
- Disable animation of the system when the battery is nearly exhausted
- Improvements in build.prop as regards the part of consumption

Graphics, Screen, Images

- Enables a non-aggressive dithering to save CPU
- When you lock the device, the engine makes sure that the GPU is turned off
- Enables deep sleepalso in the bugged rom
- Parts of bravia engine
- parts of CrossBreeder (credits to dev)
- parts of Adrenaline Engine (credits to dev)
- PureGraphics HD
- V6 supercharger
- Generates video entropy (like seeder)

CPU, Governors, I/O Schedulers

- Slightly improves the scaling of the frequencies (for better results you need a good kernel)
- Lightens the load on the CPU switching the workload to GPU rendering
- Enable the swap partition in Android (experimental)

Init.D Tweaks description

1. strict minfree handler tweak
echo "2048,3072,6144,15360,17920,20480" > /sys/module/lowmemorykiller/parameters/minfree

2. internet speed tweaks
echo "0" > /proc/sys/net/ipv4/tcp_timestamps;
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse;
echo "1" > /proc/sys/net/ipv4/tcp_sack;
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle;
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling;
echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes;
echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl;
echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout;
echo "404480" > /proc/sys/net/core/wmem_max;
echo "404480" > /proc/sys/net/core/rmem_max;
echo "256960" > /proc/sys/net/core/rmem_default;
echo "256960" > /proc/sys/net/core/wmem_default;
echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem;
echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem;

3. vm management tweaks
echo "4096" > /proc/sys/vm/min_free_kbytes
echo "0" > /proc/sys/vm/oom_kill_allocating_task;
echo "0" > /proc/sys/vm/panic_on_oom;
echo "0" > /proc/sys/vm/laptop_mode;
echo "0" > /proc/sys/vm/swappiness
echo "50" > /proc/sys/vm/vfs_cache_pressure
echo "90" > /proc/sys/vm/dirty_ratio
echo "70" > /proc/sys/vm/dirty_background_ratio

4. misc kernel tweaks
echo "8" > /proc/sys/vm/page-cluster;
echo "64000" > /proc/sys/kernel/msgmni;
echo "64000" > /proc/sys/kernel/msgmax;
echo "10" > /proc/sys/fs/lease-break-time;
echo "500,512000,64,2048" > /proc/sys/kernel/sem;

5. battery tweaks
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs

6. EXT4 tweaks (greatly increase I/O)
(needs /system, /cache, /data partitions formatted to EXT4)
a) removes journalism
tune2fs -o journal_data_writeback /block/path/to/system
tune2fs -O ^has_journal /block/path/to/system
tune2fs -o journal_data_writeback /block/path/to/cache
tune2fs -O ^has_journal /block/path/to/cache
tune2fs -o journal_data_writeback /block/path/to/data
tune2fs -O ^has_journal /block/path/to/data

b) perfect mount options
busybox mount -o remount,noatime,noauto_da_alloc,nodiratime,barrier =0,nobh /system
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /data
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /cache

7. Flags blocks as non-rotational and increases cache size
LOOP=`ls -d /sys/block/loop*`;
RAM=`ls -d /sys/block/ram*`;
MMC=`ls -d /sys/block/mmc*`;
for j in $LOOP $RAM
do
echo "0" > $j/queue/rotational;
echo "2048" > $j/queue/read_ahead_kb;
done

8. microSD card speed tweak
echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

9. Defrags database files
for i in
`find /data -iname "*.db"`
do
sqlite3 $i 'VACUUM;';
done

10. Ondemand governor tweaks
Code:
SAMPLING_RATE=$(busybox expr `cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency` * 750 / 1000)
echo 95 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo $SAMPLING_RATE > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate

11. Auto change governor and I/O Scheduler
a) I/O Scheduler (Best: MTD devices - VR; EMMC devices - SIO) - needs kernel with these
echo "vr" > /sys/block/mmcblk0/queue/scheduler
or
echo "sio" > /sys/block/mmcblk0/queue/scheduler
b) Governor (Best: Minmax > SavagedZen > Smoothass > Smartass > Interactive) - needs kernel with these
echo "governor-name-here" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
12. Auto-zipalign on boot
(needs zipalign bin)

12. Move dalvik-cache to cache partition (if it's big enough) to free up data partition space
CACHESIZE=$(df -k /cache | tail -n1 | tr -s ' ' | cut -d ' ' -f2)
if [ $CACHESIZE -gt 80000 ]
then
echo "Large cache detected, moving dalvik-cache to /cache"
if [ ! -d /cache/dalvik-cache ]
then
busybox rm -rf /cache/dalvik-cache /data/dalvik-cache
mkdir /cache/dalvik-cache /data/dalvik-cache
fi

busybox chown 1000:1000 /cache/dalvik-cache
busybox chmod 0771 /cache/dalvik-cache

# bind mount dalvik-cache so we can still boot without the sdcard
busybox mount -o bind /cache/dalvik-cache /data/dalvik-cache
busybox chown 1000:1000 /data/dalvik-cache
busybox chmod 0771 /data/dalvik-cache
else
echo "Small cache detected, dalvik-cache will remain on /data"
fi

13. Disable normalize sleeper
mount -t debugfs none /sys/kernel/debug
echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features[/COLOR][/HIDE]

+/system/etc/init.d/ scripts :
-ram_manager: It's a complete memory manager
-92cleaner: Cleans log files and tombstones at every boot.
-09sdcardspeedfix: Set SDCard readahead speed to 2048 KB.
-darky_zipalign: Zipalign apps in "/system" at every booting.
-zipaligndata: Zipalign apps in "/data" every 48 hours.
-98fly_engine: Contains various tweaks and improvements. (3G/VM/sysctl/kernel/battery life tweaks etc.)
-sqlite_optimize: Optimizing database of apps every 48 hours.
-93kill_media_server: Kills media server when unused to save battery .
-94Governor_tweaks: Tweaks for CPU governors,It's aimed on better performance and battery backup.

+/system/xbin/ :
-sqlite3
-zipalign
-Openvpn

+/system/etc/rngd/ :
-entro
-entropy
-rngd

+/system/lib/
-libncurses.so .

Features and Improvements (Init.D) :

- Full memory management.
- Linux kernel tweaks and improvements for better performance and battery life.
- Entropy generator engine used to reduce lags.
- Zipalign apps in "/system" and apps in "/data" every 48 hours which result in less RAM usage.
- Sqlite optimizations and faster database access.
- CPU governors tweaks and improvements for better performance and battery life.
- Increased SD Card read-ahead cache to 2048 KB .
- Ad blocking.
- Build.prop tweaks and improvements.
- Cleans log files and tombstones at every boot.
- Many other tweaks for better performance and battery life!

​

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This ROM is based on 2.254 Firmware

Whats New In This ROM​

Screenshot & Features

Setup Wizard

Home, SystemUI, Widgets, Small Apps

Sony Sketch

Update Center

Alarms & Clocks

Calendar

Lockscreen

Power Management

Phonebook, Conversation & Dialer

Settings

Media Apps

Sony Notes

Themes

Calculator

Download Provider

Features to come

List of deleted Apps/Bloatware :

GenieWidget
Gmail
GMS_Maps
facebook
talk
talkback
GoogleTTS
PlusOne
velvet
socialife
googlebooks
googlevideos
SemcNotes
youtube
livewaremanager
xperialink
sonystore
SemcEmail
chrome
VideoEditorGoogle
many more cant remember :p

​

THREAD RULES :

- Do not quote the whole OP
- Do not Spam
- Do not post unwanted stuff/questions
- Do not take out anything from my ROM and publish it, take permissions from me first!
- For better development of this ROM, use feature requests or bug reports sections and not ask them in the thread, it will be difficult for me.

XDA:DevDB Information

HonamiUltraizeD, A ROM For XPERIA SP, a ROM for the Sony Xperia SP

Contributors

RuchRha, whitemamba

ROM OS Version: 4.1.x Jelly Bean

ROM Kernel: Linux 3.4.x

ROM Firmware Required: 12.0.A.2.254

Version Information

Status: Stable

Current Stable Version: 1

Stable Release Date: 2013-09-21

Created 2013-09-21

Last Updated 2013-12-25