m2te, on Jul 25 2010, 23:01, said:
I would be very interested for info on your kernel changes, I tried to download your latest pulse rom earlier to take a look but I couldn't download it for some reason. Good to know about the a2sd changes, I put the code right at the end of init.rc script. I'll change that for the next boot.img release.
Thanks,
Mike.
It was a weird fix. Having the runparts at the end of the init.rc worked with the older a2sd but it caused Darktremor to sometimes not even work right. Moving it up the file allowed it to work correctly at all times. I don't see any reason why it won't work the same for the mini pulse.
Anyway my init.rc changes:
# 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 1
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 10240
setprop ro.CONTENT_PROVIDER_MEM 12800
setprop ro.EMPTY_APP_MEM 15360
# 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,4096,10240,12800,15360
Those are tweaks to the memory management to keep most essentials services in memory for longer as well as provide a little speed boost. The values are based on the "moderate" settings in Autokiller app. 'setprop ro.HOME_APP_ADJ 1' is useful as this keeps the current launcher in ram at all times.
A2SD fixes:
You need to look for 'class_start default' and add two lines above it so it looks like
start userinit
on property:cm.filesystem.ready=1
class_start default
then move the userinit part from the bottom to below "service racoon"
service racoon /system/bin/racoon
socket racoon stream 600 system system
# racoon will setuid to vpn after getting necessary resources.
group net_admin
disabled
oneshot
# Execute files in /etc/init.d before booting
service userinit /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
service mtpd /system/bin/mtpd
socket mtpd stream 600 system system
user vpn
group vpn net_admin net_raw
disabled
oneshot
That will allow A2SD to work correctly.
then you just need to download Darktremor from
http://www.darktremo...pf4a-signed.zip and extract the zip moving the files into the rom. Remember to remove all older a2sd files including the startup scripts.
These are only small changes which make a difference but the best thing is to get compiling the pulse mini kernel source and add compcache, swap and overclocking
and I still want to know how you edited Fancy Widget so it defaults to Celsius and alarm clock. APKtool wouldn't re-compile the apk for me
