Jump to content

My omnia2 android tweaks (Neok_omnia2 android)(update at March-27-2011)


Guest kgp700

Recommended Posts

Guest kgp700

/system/etc/mount.sh

update at March-27-2011

#!/system/bin/sh

chmod 0771 /efs


chmod 0777 /dev/*


chown system.graphics /dev/pmem_gpu

chown system.graphics /dev/pmem_gpu1

chown system.graphics /dev/pmem_render

chown system.graphics /dev/pmem_stream

chown system.graphics /dev/pmem_preview

chown system.graphics /dev/pmem_picture

chown system.graphics /dev/pmem_jpeg

chown system.graphics /dev/pmem_skia

chown system.graphics /dev/s3c-cmm

chown system.graphics /dev/pmem_stream2



chown system.graphics /dev/s3c-mfc

chown system.graphics /dev/s3c-rotator

chown system.graphics /dev/s3c-g3d

chown system.graphics /dev/s3c-pp

chown system.graphics /dev/s3c-g2d

chown system.graphics /dev/s3c-mem


chown root.root /dev/mem


chown radio.radio  /dev/ttySMD0

chown radio.radio  /dev/multipdp

chown radio.radio  /dev/dpramerr

chown radio.radio  /dev/dpram1

chown radio.radio  /dev/dpram0

chown radio.radio  /dev/s3c_serial0

chown radio.radio  /dev/ttyCSD0


chown system.system /dev/ttyGPS0

chown system.system /dev/ttyXTRA0


# CPU Scaling

AWAKE_GOVERNOR="conservative"

AWAKE_GOVERNOR_FREQENCY_MAX="800000"

AWAKE_GOVERNOR_FREQENCY_MIN="133000"


SLEEP_GOVERNOR="conservative"

SLEEP_GOVERNOR_FREQENCY_MAX="266000"

SLEEP_GOVERNOR_FREQENCY_MIN="133000"


(while [ 1 ]

do

	AWAKE=`cat /sys/power/wait_for_fb_wake`

	if [ $AWAKE = "awake" ]; then

		echo $AWAKE_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

		echo $AWAKE_GOVERNOR_FREQENCY_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

		echo $AWAKE_GOVERNOR_FREQENCY_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

		log -p i -t screenstate_scaling "***  awake   ***: switching CPU frequency governor to -> $AWAKE_GOVERNOR"

		AWAKE=

	fi

	SLEEPING=`cat /sys/power/wait_for_fb_sleep`

	if [ $SLEEPING = "sleeping" ]; then

		echo $SLEEP_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

		echo $SLEEP_GOVERNOR_FREQENCY_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

		echo $SLEEP_GOVERNOR_FREQENCY_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

		log -p i -t screenstate_scaling "*** sleeping ***: switching CPU frequency governor to -> $SLEEP_GOVERNOR"

		SLEEPING=

	fi	

done &)



# Tweak kernel VM management

echo "0" > /proc/sys/vm/swappiness

#echo "10" > /proc/sys/vm/dirty_ratio

#echo "4096" > /proc/sys/vm/min_free_kbytes


# Tweak kernel scheduler, less aggressive settings

echo "18000000" > /proc/sys/kernel/sched_latency_ns

echo "3000000" > /proc/sys/kernel/sched_wakeup_granularity_ns

echo "1500000" > /proc/sys/kernel/sched_min_granularity_ns


echo 6 > /proc/sys/kernel/rr_interval;

echo 100 > /proc/sys/kernel/iso_cpu;

echo 10 > /proc/sys/vm/dirty_background_ratio;

echo 200 > /proc/sys/vm/vfs_cache_pressure;

echo 0 > /proc/sys/vm/page-cluster;

echo 0 > /proc/sys/vm/laptop_mode;

echo 1 > /proc/sys/vm/highmem_is_dirtyable;


# Misc tweaks for battery life

echo "2000" > /proc/sys/vm/dirty_writeback_centisecs

echo "1000" > /proc/sys/vm/dirty_expire_centisecs


echo "TWEAKS: for TCP read/write buffers";

echo "404480" > proc/sys/net/core/wmem_max

echo "404480" > proc/sys/net/core/rmem_max

echo 4096 16384 404480 > /proc/sys/net/ipv4/tcp_wmem;

echo 4096 87380 404480 > /proc/sys/net/ipv4/tcp_rmem;


kill logcat -b radio

Edited by kgp700
Link to comment
Share on other sites

Guest kgp700

/system/build.prop

warning! some options optimized for korea omnia2

update at March-27-2011

# begin build properties

# autogenerated by buildinfo.sh

ro.build.id=ECLAIR

ro.build.display.id=sec_saturn-eng 2.1.1 ECLAIR XXJF1-neokim20b2_v3.2 test-keys

ro.build.version.incremental=XXJA1

ro.build.version.sdk=7

ro.build.version.codename=REL

ro.build.version.release=2.1.1

ro.build.date=2011. 01. 06. (목) 19:15:33 KST 

ro.build.date.utc=1294308933

ro.build.type=user

ro.build.user=root

ro.build.host=sep-15

ro.build.tags=test-keys

ro.build.GMM=GT-I8000XXJA1

ro.build.CGMM=GT-I8000XXJA1

ro.product.model=SHW-M180S

ro.product.brand=samsung

ro.product.name=GT-I5700

ro.product.device=GT-I5700

ro.product.board=GT-I5700

ro.product.cpu.abi=armeabi

ro.product.manufacturer=samsung

ro.product.locale.language=ko

ro.product.locale.region=KR

ro.sf.lcd_density=240

ro.board.platform=s3c6410

# ro.build.product is obsolete; use ro.product.device

ro.build.product=GT-I5700

# Do not try to parse ro.build.description or .fingerprint

ro.build.description=sec_saturn-eng 2.1.1 ECLAIR XXJF1 test-keys

ro.build.fingerprint=Samsung/GT-I8000/GT-I8000/GT-I8000:2.1.1/ECLAIR/XXJA1:eng/test-keys

# Samsung Specific Properties

ro.build.PDA=I8000XXJA1

ro.build.Phone=I8000XXJF1

ro.build.hidden_ver=I8000XXJA1

ro.build.changelist=

# end build properties

#

# system.prop for saturn

#


rild.libpath=/system/lib/libsec-ril.so

rild.libargs=-d /dev/ttyS0

keyguard.no_require_sim=true


#neokim20 3G custom preset

ro.ril.hep=1

ro.ril.hsxpa=2

ro.ril.hsdpa.category=8

ro.ril.enable.dtm=1

ro.ril.gprsclass=12

ro.ril.enable.a53=1

ro.ril.hsupa.category=6

ro.ril.enable.3g.prefix=1

ro.ril.disable.power.collapse=0

ro.telephony.call_ring.delay=100

ro.csc.sales_code=MSK


ro.setupwizard.mode=DISABLED

persist.sys.timezone=Asia/Seoul

persist.sys.language=ko

persist.sys.country=KR

ro.product.locale.region=KR

ro.product.locale.language=ko

ro.com.android.dateformat=yyyy-MM-dd

ro.media.dec.aud.wma.enabled=1

ro.media.dec.vid.wmv.enabled=1

ro.camera.sound.forced=1

media.stagefright.enable-player=false

media.stagefright.enable-meta=true

media.stagefright.enable-scan=true

media.stagefright.enable-http=true


#

# ADDITIONAL_BUILD_PROPERTIES

#

ro.config.notification_sound=OnTheHunt.ogg

ro.config.alarm_alert=Alarm_Classic.ogg

ro.com.google.locationfeatures=1

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.com.google.clientidbase=android-samsung

ro.com.google.clientidbase.am=android-skt-kr

ro.config.ringtone=CaribbeanIce.ogg

ro.com.android.dataroaming=false

ro.browser.no.picasa=true

ro.config.ringtone=CaribbeanIce.ogg

ro.kernel.android.checkjni=1

net.bt.name=Android

ro.config.sync=yes

dalvik.vm.stack-trace-file=/data/anr/traces.txt


#Eng Mode

ro.secure=0

ro.debuggable=1

persist.service.adb.enable=1


#neokim20 custom preset

dalvik.vm.heapsize=42m

dalvik.vm.execution-mode=int:jit

windowsmgr.max_events_per_sec=65

wifi.supplicant_scan_interval=45

Edited by kgp700
Link to comment
Share on other sites

Guest kgp700

/init.rc

update at March-27-2011

on init


sysclktz 0


loglevel 3


setprop rilcorrect.enable 1

setprop zygote.enable 1


# setup the global environment

	export PATH /bin:/sbin:/system/sbin:/system/bin:/system/xbin:/sd/bin:/data/xbin

	export LD_LIBRARY_PATH /lib:/system/lib:/system/lib/egl:/sd/bin

	export HOME /

	export ANDROID_BOOTLOGO 1

	export ANDROID_ROOT /system

	export ANDROID_ASSETS /system/app

	export ANDROID_DATA /data

	export EXTERNAL_STORAGE /sdcard

	export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/com.google.android.gtalkservice.jar


# Backward compatibility

	symlink /system/etc /etc

	symlink /sys/kernel/debug /d


# Kernel version

	setprop ro.kernel.display.id "OMNIA II v0.9"


# insert modules

	insmod /modules/vibrator.ko


# create mountpoints and mount tmpfs on sqlite_stmt_journals

	mkdir /sdcard 0755 system system

	mkdir /storage 0755 system system

	mkdir /xbin

	mkdir /system

	mkdir /data 0771 system system

	mkdir /cache 0770 system cache

	mkdir /config 0500 root root

	mkdir /sqlite_stmt_journals 01777 root root

	mount tmpfs tmpfs /sqlite_stmt_journals size=4m


#	mount rootfs rootfs / ro remount


	write /sys/class/sec/switch/usb_sel "PDA"

	write /proc/sys/kernel/panic_on_oops 1

	write /proc/sys/kernel/hung_task_timeout_secs 0

	write /proc/cpu/alignment 4

	write /proc/sys/kernel/sched_latency_ns 20000000

	write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000

	write /proc/sys/kernel/sched_compat_yield 1

	write /proc/sys/kernel/sched_child_runs_first 0


# Create cgroup mount points for process groups

	mkdir /dev/cpuctl

	mount cgroup none /dev/cpuctl cpu

	chown system system /dev/cpuctl

	chown system system /dev/cpuctl/tasks

	chmod 0777 /dev/cpuctl/tasks

	write /dev/cpuctl/cpu.shares 1024


	mkdir /dev/cpuctl/fg_boost

	chown system system /dev/cpuctl/fg_boost/tasks

	chmod 0777 /dev/cpuctl/fg_boost/tasks

	write /dev/cpuctl/fg_boost/cpu.shares 1024


	mkdir /dev/cpuctl/bg_non_interactive

	chown system system /dev/cpuctl/bg_non_interactive/tasks

	chmod 0777 /dev/cpuctl/bg_non_interactive/tasks

	# 5.0 %

	write /dev/cpuctl/bg_non_interactive/cpu.shares 16


# mount mtd partitions

	# Mount /system rw first to give the filesystem a chance to save a checkpoint

##  mount yaffs2 mtd@system /system

##  mount yaffs2 mtd@system /system ro remount


	# We chown/chmod /data again so because mount is run as root + defaults

##	mount yaffs2 mtd@userdata /data nosuid nodev

#	mount vfat /dev/block/mmcblk1p2 /system/sd

#	mount vfat /dev/block/mmcblk0p5 /sdcard

	chown system system /sdcard

	chmod 0777 /sdcard

	mount vfat /dev/block/mmcblk0p5 /storage iocharset=utf8

	chown system system /storage

	chmod 0777 /storage	

	chown system system /data

	chmod 0771 /data

	chmod 0666 /dev/log/radio

	chmod 0666 /dev/log/main


	# Create dump dir and collect dumps.

	# Do this before we mount cache so eventually we can use cache for

	# storing dumps on platforms which do not have a dedicated dump partition.


	mkdir /data/dontpanic

	chown root log /data/dontpanic

	chmod 0750 /data/dontpanic


	# Collect apanic data, free resources and re-arm trigger

	copy /proc/apanic_console /data/dontpanic/apanic_console

	chown root log /data/dontpanic/apanic_console

	chmod 0640 /data/dontpanic/apanic_console


	copy /proc/apanic_threads /data/dontpanic/apanic_threads

	chown root log /data/dontpanic/apanic_threads

	chmod 0640 /data/dontpanic/apanic_threads


	write /proc/apanic_console 1


	# Collect ramconsole data

	copy /proc/last_kmsg /data/dontpanic/last_kmsg

	chown root log /data/dontpanic/last_kmsg

	chmod 0640 /data/dontpanic/last_kmsg


	# Same reason as /data above

##  mount yaffs2 mtd@cache /cache nosuid nodev

	chown system cache /cache

	chmod 0770 /cache


#	mount rfs /dev/stl10 /efs nosuid nodev xattr,check=no

	chown radio radio /efs

	chmod 0771 /efs


	# This may have been created by the recovery system with odd permissions

	chown system system /cache/recovery

	chmod 0770 /cache/recovery


	#change permissions on vmallocinfo so we can grab it from bugreports

	chown root log /proc/vmallocinfo

	chmod 0440 /proc/vmallocinfo

# for Sensor HAL



# create basic filesystem structure

	mkdir /data/misc 01771 system misc

	mkdir /data/misc/hcid 0770 bluetooth bluetooth

	mkdir /data/misc/keystore 0700 keystore keystore

	mkdir /data/misc/vpn 0770 system system

	mkdir /data/misc/vpn/profiles 0770 system system

	# give system access to wpa_supplicant.conf for backup and restore

	mkdir /data/misc/wifi 0770 wifi wifi

	mkdir /data/misc/wifi/sockets 0770 wifi wifi

	chmod 0770 /data/misc/wifi

	chmod 0660 /data/misc/wifi/wpa_supplicant.conf

	mkdir /data/local 0771 shell shell

	mkdir /data/local/tmp 0771 shell shell

	mkdir /data/data 0771 system system

	mkdir /data/app-private 0771 system system

	mkdir /data/app 0771 system system

	mkdir /data/property 0700 root root

	# create log system 

	mkdir /data/log  0777 root root 

	chmod 0777 /data/log


	# create dalvik-cache and double-check the perms

	mkdir /data/dalvik-cache 0771 system system

	chown system system /data/dalvik-cache

	chmod 0771 /data/dalvik-cache


	# create the lost+found directories, so as to enforce our permissions

	mkdir /data/lost+found 0770

	mkdir /cache/lost+found 0770


	# double check the perms, in case lost+found already exists, and set owner

	chown root root /data/lost+found

	chmod 0770 /data/lost+found

	chown root root /cache/lost+found

	chmod 0770 /cache/lost+found


	mkdir /data/misc/dhcp 0774 dhcp system

	chown dhcp system /data/misc/dhcp


	symlink /dev/snd/timer /dev/timer

	symlink /dev/snd/controlC0 /dev/controlC0

	symlink /dev/snd/pcmC0D0c /dev/pcmC0D0c

	symlink /dev/snd/pcmC0D0p /dev/pcmC0D0p


	chown root audio /dev/snd/controlC0

	chown root audio /dev/snd/pcmC0D0c

	chown root audio /dev/snd/pcmC0D0p

	chown root audio /dev/snd/timer


	chmod 0777 /dev/snd/controlC0

	chmod 0777 /dev/snd/pcmC0D0c

	chmod 0777 /dev/snd/pcmC0D0p

	chmod 0777 /dev/snd/timer


	chown root audio /dev/controlC0

	chown root audio /dev/pcmC0D0c

	chown root audio /dev/pcmC0D0p

	chown root audio /dev/timer


	setprop alsa.mixer.playback.master Master

	setprop alsa.mixer.capture.master Capture

	setprop alsa.mixer.playback.earpiece Master

	setprop alsa.mixer.capture.earpiece Capture

	setprop alsa.mixer.playback.headset Master

	setprop alsa.mixer.playback.speaker Master



#	chmod 0660 /dev/s3c-g3d

#	chmod 0660 /dev/s3c-jpg

#	chmod 0660 /dev/s3c-pp

#	chmod 0660 /dev/s3c-rotator

#	chmod 0660 /dev/s3c-cmm

#	chmod 0660 /dev/s3c-mfc

#	chmod 0660 /dev/*

	chmod 0777 /dev/*


	 chmod 0777 /dev/rtc0

	 chmod 0777 /dev/s3c-cmm											

	 chmod 0777 /dev/s3c-g2d											

	 chmod 0777 /dev/s3c-g3d											

	 chmod 0777 /dev/s3c-jpg

	 chmod 0777 /dev/s3c-mem																			   

	 chmod 0777 /dev/s3c-mfc											

	 chmod 0777 /dev/s3c-pp




#	chown root root /dev/s3c-g3d

#	chown root root /dev/s3c-jpg

#	chown root root /dev/s3c-pp

#	chown root root /dev/s3c-rotator

#	chown root root /dev/s3c-cmm

#	chown root root /dev/s3c-mfc

	chown root root /dev/*


# to enable wifi

	setprop wifi.interface "eth0"

	mkdir /data/misc/wifi 0777 wifi wifi

	chmod 0777 /data/misc/wifi/

	mkdir /data/misc/dhcp 0777 dhcp dhcp

	exec /system/bin/rm -r /data/misc/wifi/sockets

	mkdir /data/misc/wifi/sockets 0777 wifi wifi


on property:init.svc.wpa_supplicant=stopped

	stop dhcpcd

	exec /system/bin/rm -r /data/misc/wifi/sockets

	mkdir /data/misc/wifi/sockets 0777 wifi wifi


on property:init.svc.dhcpcd=stopped

	/system/bin/dhcpcd -k eth0



on boot

# basic network init

	ifup lo

	hostname localhost

	domainname localdomain


 # video play for m.youtube.com

 mkdir /data/data/.youtube 0777



# set RLIMIT_NICE to allow priorities from 19 to -20

	setrlimit 13 40 40


# Define the oom_adj values for the classes of processes that can be

# killed by the kernel.  These are used in ActivityManagerService.

	setprop ro.FOREGROUND_APP_ADJ 0

	setprop ro.VISIBLE_APP_ADJ 1

	setprop ro.SECONDARY_SERVER_ADJ 2

	setprop ro.BACKUP_APP_ADJ 2

	setprop ro.HOME_APP_ADJ 4

	setprop ro.HIDDEN_APP_MIN_ADJ 7

	setprop ro.CONTENT_PROVIDER_ADJ 14

	setprop ro.EMPTY_APP_ADJ 15


# Define the memory thresholds at which the above process classes will

# be killed.  These numbers are in pages (4k).

	setprop ro.FOREGROUND_APP_MEM 1536

	setprop ro.VISIBLE_APP_MEM 2048

	setprop ro.SECONDARY_SERVER_MEM 4096

	setprop ro.BACKUP_APP_MEM 4096

	setprop ro.HOME_APP_MEM 4096

	setprop ro.HIDDEN_APP_MEM 5120

	setprop ro.CONTENT_PROVIDER_MEM 5632

	setprop ro.EMPTY_APP_MEM 6144

#


# Write value must be consistent with the above properties.

# Note that the driver only supports 6 slots, so we have HOME_APP at the

# same memory level as services.

	write /sys/module/lowmemorykiller/parameters/adj 0,1,2,7,14,15


	write /proc/sys/vm/overcommit_memory 1

	write /proc/sys/vm/min_free_order_shift 4


	write /sys/module/lowmemorykiller/parameters/minfree 1536,2048,3072,4608,12800,12800


	# Set init its forked children's oom_adj.

	write /proc/1/oom_adj -16


	write /proc/sys/vm/dirty_background_ratio 60


	# Permissions for System Server and daemons.

	chown radio system /sys/android_power/state

	chown radio system /sys/android_power/request_state

	chown radio system /sys/android_power/acquire_full_wake_lock

	chown radio system /sys/android_power/acquire_partial_wake_lock

	chown radio system /sys/android_power/release_wake_lock

	chown radio system /sys/power/state

	chown radio system /sys/power/wake_lock

	chown radio system /sys/power/wake_unlock

	chmod 0660 /sys/power/state

	chmod 0660 /sys/power/wake_lock

	chmod 0660 /sys/power/wake_unlock

	chown system system /sys/class/timed_output/vibrator/enable

	chown system system /sys/class/leds/lcd-backlight/brightness

	chown system system /sys/class/leds/button-backlight/brightness

	chown system system /sys/class/leds/jogball-backlight/brightness

	chown system system /sys/class/leds/red/brightness

	chown system system /sys/class/leds/green/brightness

	chown system system /sys/class/leds/blue/brightness

	chown system system /sys/class/leds/red/device/grpfreq

	chown system system /sys/class/leds/red/device/grppwm

	chown system system /sys/class/leds/red/device/blink

	chown system system /sys/class/leds/red/brightness

	chown system system /sys/class/leds/green/brightness

	chown system system /sys/class/leds/blue/brightness

	chown system system /sys/class/leds/red/device/grpfreq

	chown system system /sys/class/leds/red/device/grppwm

	chown system system /sys/class/leds/red/device/blink

	chown system system /sys/class/timed_output/vibrator/enable

	chown system system /sys/module/sco/parameters/disable_esco

	chown system system /sys/kernel/ipv4/tcp_wmem_min

	chown system system /sys/kernel/ipv4/tcp_wmem_def

	chown system system /sys/kernel/ipv4/tcp_wmem_max

	chown system system /sys/kernel/ipv4/tcp_rmem_min

	chown system system /sys/kernel/ipv4/tcp_rmem_def

	chown system system /sys/kernel/ipv4/tcp_rmem_max

	chown root radio /proc/cmdline


# make hidden folder for divx authentication

	mkdir /data/.svix 0770 system system


	chmod 0777 /data/lmfilter.txt

	chmod 0777 /data/eqfilter.txt

	chmod 0777 /data/situation.txt 

	chmod 0777 /data/stream_headset.txt

	chmod 0777 /data/stream_speaker.txt

# bootsnd

	setprop audioflinger.bootsnd 1



# for ctrl cpu freq.

	chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

	chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

	write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "conservative"


   chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

   chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

   write /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies "133000" "266000" "400000" "800000"


   chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

   chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

   write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq "133000"


   chown system system /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

   chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

   write /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate "125000"


   chown system system /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold

   chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold

   write /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold "40"


   chown system system /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold

   chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold

   write /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold "30"


   chown system system /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step

   chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step

   write /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step "90"


   chown system system /sys/devices/system/cpu/cpu0/cpufreq/conservative/ignore_nice_load

   chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/conservative/ignore_nice_load

   write /sys/devices/system/cpu/cpu0/cpufreq/conservative/ignore_nice_load "0"


# Define TCP buffer sizes for various networks

#   ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,

	setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208

	setprop net.tcp.buffersize.wifi	4095,87380,110208,4096,16384,110208

	setprop net.tcp.buffersize.umts	4094,87380,110208,4096,16384,110208

	setprop net.tcp.buffersize.edge	4093,26280,35040,4096,16384,35040

	setprop net.tcp.buffersize.gprs	4092,8760,11680,4096,8760,11680


# fake some battery state

	setprop status.battery.state Slow

	setprop status.battery.level 5

	setprop status.battery.level_raw  50

	setprop status.battery.level_scale 9


# CDMA datalink property


#	setprop net.cdma.datalinkinterface ttyCDMA0



	start sysinit


	class_start default


## Daemon processes to be run by init.

##

service console /system/bin/sh

	console



service rilcorrect /bin/bash /loadmod

	user root

	disabled

	oneshot

on property:rilcorrect.enable=1

	start rilcorrect


# adbd is controlled by the persist.service.adb.enable system property

service adbd /sbin/adbd

	disabled


# adbd on at boot in emulator

on property:ro.kernel.qemu=1

	start adbd


on property:persist.service.adb.enable=1

	start adbd


on property:persist.service.adb.enable=0

	stop adbd


#service btld /system/bin/logwrapper /system/bin/btld -hb 3000000 -hp /dev/s3c_serial1 -lpm 1

#	user root

#	group bluetooth net_bt_admin

#	disabled

#	oneshot


service servicemanager /system/bin/servicemanager

	user system

	critical

	onrestart restart zygote

	onrestart restart media


service vold /system/bin/vold

	socket vold stream 0660 root mount


service nexus /system/bin/nexus

	socket nexus stream 0660 root system

	disabled


#service mountd /system/bin/mountd

#	socket mountd stream 0660 root mount


# to enable wifi

service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/bcm_supp.conf

   disabled

   oneshot


service dhcpcd /system/bin/dhcpcd -BKL eth0

   disabled

   oneshot


service ifcfg_eth0 /system/bin/ifconfig eth0 up

	disabled

	oneshot


service akmd2 /system/bin/akmd2

	disabled

	oneshot


service debuggerd /system/bin/debuggerd


service ril-daemon /system/bin/rild

	socket rild stream 0660 root radio

	socket rild-debug stream 0660 radio system

	user root

	group radio cache inet misc audio


service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server

	socket zygote stream 0666

	onrestart write /sys/android_power/request_state wake

	onrestart write /sys/power/state on

	onrestart restart media

on property:zygote.enable=1

	start zygote

on property:zygote.enable=0

	stop zygote



service media /system/bin/mediaserver

	user media root

	group system audio camera graphics inet net_bt net_bt_admin


#service bootsound /system/bin/playmp3

#	user media

#	group audio

#	oneshot


service bootanim /system/bin/bootanimation

	user graphics

	group graphics

	disabled

	oneshot


service dbus /system/bin/dbus-daemon --system --nofork

	socket dbus stream 0660 bluetooth bluetooth

	user bluetooth

	group bluetooth net_bt_admin


#service bluetoothd /system/bin/bluetoothd -n

#	socket bluetooth stream 0660 bluetooth bluetooth

#	socket dbus_bluetooth stream 0660 bluetooth bluetooth

	# init.rc does not yet support applying capabilities, so run as root and

	# let bluetoothd drop uid to bluetooth with the right linux capabilities

#	group bluetooth net_bt_admin misc

#	disabled


#service hfag /system/bin/sdptool add --channel=10 HFAG

#	user bluetooth

#	group bluetooth net_bt_admin

#	disabled

#	oneshot


#service hsag /system/bin/sdptool add --channel=11 HSAG

#	user bluetooth

#	group bluetooth net_bt_admin

#	disabled

#	oneshot


#service opush /system/bin/sdptool add --channel=12 OPUSH

#	user bluetooth

#	group bluetooth net_bt_admin

#	disabled

#	oneshot


#service pbap /system/bin/sdptool add --channel=19 PBAP

#	user bluetooth

#	group bluetooth net_bt_admin

#	disabled

#	oneshot


service installd /system/bin/installd

	socket installd stream 0600 system system


#service flash_recovery /system/etc/install-recovery.sh

#	oneshot


service racoon /system/bin/racoon

	socket racoon stream 0600 system system

	# racoon will setuid to vpn after getting necessary resources.

	group net_admin

	disabled

	oneshot


service mtpd /system/bin/mtpd

	socket mtpd stream 0600 system system

	user vpn

	group vpn net_admin net_raw

	disabled

	oneshot


service keystore /system/bin/keystore /data/misc/keystore

	user keystore

	group keystore

	socket keystore stream 0666


service dumpstate /system/bin/dumpstate -s

	socket dumpstate stream 0660 shell log

	disabled

	oneshot


service flash_recovery /system/etc/mount.sh

	oneshot

Edited by kgp700
Link to comment
Share on other sites

Guest surenz
i am drunk

Is that needed ?

kgp700 is trying to share his tweaks and you want to pollute immediately this topic ?!

Anyway thanks to kgp700.

And I want to ask whether is not better to put the minimum frequency to 133 MHz instead of 400 MHz and the sleep one to 133 MHz as well.

Perhaps it will help to the battery drain issue ?

Edited by surenz
Link to comment
Share on other sites

Guest longsin
reserved

directory : /home/longsin/ext2

i package with tar: tar zcvf ext2.tar.gz /home/longsin/ext2/* excludefiles /home/longsin/ext2

is it right? i want to modify mount.sh, it is in ext2,.

in ur ext2.tar.gz there isnot ext2 folder

Edited by longsin
Link to comment
Share on other sites

Guest kgp700
Watch out, this setting could be battery drain cause:

SLEEP_GOVERNOR_FREQENCY_MIN="266000"

It's 266MHz, pretty high.

it's important setting

omnia2's cpu clock setting is 66,266,400,800MHZ

if cpu clock down to 66Mhz at screen off(sleep) state then sleep of death(SOD)

and if cpu clock down to 66MHZ~266MHZ at screen on state

then some times freeze

that setting is prevent freeze and sleep of death(SOD)

Edited by kgp700
Link to comment
Share on other sites

Guest alanmax

I am using your Neok_O2Droid ROM, it cans work as real for me.

Except, one important issue (I think), Battery is not charged from both USB cable and wall charger.

As of now, I have to change to WM for charging and change to Android again when I need to use.

Can you provide update file or any way to resolve this problem ?

I really appreciate your working for us all...Thanks !

Link to comment
Share on other sites

Guest voyteckst
I am using your Neok_O2Droid ROM, it cans work as real for me.

Except, one important issue (I think), Battery is not charged from both USB cable and wall charger.

As of now, I have to change to WM for charging and change to Android again when I need to use.

Can you provide update file or any way to resolve this problem ?

I really appreciate your working for us all...Thanks !

Are You using neok kernel also? If yes, that's explatnation. Use standard O2droid kernel.

Edited by voyteckst
Link to comment
Share on other sites

Guest kgp700
I am using your Neok_O2Droid ROM, it cans work as real for me.

Except, one important issue (I think), Battery is not charged from both USB cable and wall charger.

As of now, I have to change to WM for charging and change to Android again when I need to use.

Can you provide update file or any way to resolve this problem ?

I really appreciate your working for us all...Thanks !

that package kernel is optimized for korea omnia2

korea omnia2 and i8000 usb setting is reversed

so, you use lastest i8000 kernel (http://o2droid.phj.hu/zImage)

Link to comment
Share on other sites

Guest alanmax
that package kernel is optimized for korea omnia2

korea omnia2 and i8000 usb setting is reversed

so, you use lastest i8000 kernel (http://o2droid.phj.hu/zImage)

Are You using neok kernel also? If yes, that's explatnation. Use standard O2droid kernel.

You may don't believe me, I heard someone suggest like that and I have ever tested to use the latest kernel (from http://o2droid.phj.hu/zImage)

Battery charging problem was really closed out ...BUT SOD problem returned !

So, I just report and ask for your help to provide some file or method to fix problems both "Battery Charging" and " SOD "

THANKS a lot.

P.S.However, I will test again for replacement the latest kernel as you suggest...and will update the result later.

Link to comment
Share on other sites

Guest mkmkwong
You may don't believe me, I heard someone suggest like that and I have ever tested to use the latest kernel (from http://o2droid.phj.hu/zImage)

Battery charging problem was really closed out ...BUT SOD problem returned !

So, I just report and ask for your help to provide some file or method to fix problems both "Battery Charging" and " SOD "

THANKS a lot.

P.S.However, I will test again for replacement the latest kernel as you suggest...and will update the result later.

Same Case, may be our omnia2 are came from the same resources...haha~

Link to comment
Share on other sites

Guest alanmax
Same Case, may be our omnia2 are came from the same resources...haha~

^

^

Maybe 555+

After test again with the latest original kernel:

1st time => Freeze during boot at "Android logo" :D

2nd - 3rd times => Freeze after unlock to the first page of Launcher :(

not found "SOD" because, it go to freeze before SOD :(

So, I changed back to neok rom with battery cannot charged but it works fine.

Can you cook kernel to support battery charging and without SOD problem ?

Thanks !

Link to comment
Share on other sites

Guest Rufik
it's important setting

omnia2's cpu clock setting is 66,266,400,800MHZ

if cpu clock down to 66Mhz at screen off(sleep) state then sleep of death(SOD)

and if cpu clock down to 66MHZ~266MHZ at screen on state

then some times freeze

that setting is prevent freeze and sleep of death(SOD)

Are you sure? I'm at 133MHz right now and no SOD.

I need to check 266MHz...

Link to comment
Share on other sites

Guest voyteckst
Are you sure? I'm at 133MHz right now and no SOD.

I need to check 266MHz...

With this setting system is overall slower, but system is more stable. I.e. Linpackscore is ~4-5MFLOPS instead of ~8:

dalvik.vm.excution-mode=int:fast

Edited by voyteckst
Link to comment
Share on other sites

Guest ashburn

I've tested all the tweaks. It's very smooth and stable. So for for 3 hours there isn't any issues yet. But i will tell if there is any, for battery wise still unsure about it.

Edit: Tested on Almar's Beta 2. So far works great.

Edit: 2:09AM 17/3/2011 - Charging issue, Image shows charging but percentage of charging remains at 61%. Charged for 2hrs & 35Minutes.

Edited by ashburn
Link to comment
Share on other sites

Guest LOLOH2

Hi

Are you able to show me where can I, or help to write some program to use only the lock buttom to wake up the phone (like the Beta 1) instead of using the end call button to wake up the phone in Beta 2 ? Thanks.

Link to comment
Share on other sites

  • 2 weeks later...
Guest TheGoDxxxx

Sorry for my dumbness, but how do I exactly apply this modifications. Is it enough to for example write the code into a text-file, rename it to mount.sh and overwrite the file on the phone (while android is running)? Is init.rc compatible with the european version? THX in advance :-)

Link to comment
Share on other sites

Guest bufalo
Sorry for my dumbness, but how do I exactly apply this modifications. Is it enough to for example write the code into a text-file, rename it to mount.sh and overwrite the file on the phone (while android is running)? Is init.rc compatible with the european version? THX in advance :-)

Not enough but exactly! :D before 27/3 update it was working on my spanish device, I've not tried this yet but hope still works. Backup original one anyway

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.