Jump to content


Photo

Removing unneeded things from 2.1

- - - - -

  • Please log in to reply
158 replies to this topic

#1
gusthy

gusthy

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,102 posts
  • Location:Budapest
  • Devices:Pulse
I want to remove all the unneeded things from init.rc. Of course it will reflect my personal preferences. The goal is - guess what - to get memory.
These are (at least) the following:

- Bluetooth support
- Compass
- VPN
- Debug things

My question is: what happens if I remove
- mediaserver
- dbus
- installd
- port-bridge


Edit:

Well, I did something, Advanced Task Killer reports 38 MB, sounds good, eh? :()

Edited by gusthy, 27 July 2010 - 11:35 AM.

  • 0

#2
gusthy

gusthy

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,102 posts
  • Location:Budapest
  • Devices:Pulse
Next thing to do is resetting the init.rc settings from the values from AutoKiller moderate to original...

Edit: I did so and it multitasks much better. Okay, I dont have bluetooth and debugging.

Edited by gusthy, 27 July 2010 - 11:50 AM.

  • 0

#3
Totyasrác

Totyasrác

    Addict

  • MoDaCo Silver
  • PipPipPipPipPip
  • 545 posts
  • Gender:Male
  • Location:Bp.
  • Devices:HTC Desire / MildWild CM 2.9

I want to remove all the unneeded things from init.rc. Of course it will reflect my personal preferences. The goal is - guess what - to get memory.
These are (at least) the following:

- Bluetooth support
- Compass
- VPN
- Debug things


Edit:

Well, I did something, Advanced Task Killer reports 38 MB, sounds good, eh? :()


Sounds interesting and promising :P
Might be the way (at least for now) to gain some free RAM :P

(However I really need BT support for my handsfree set in the car - couldn't live without that :()

  • 0

#4
gusthy

gusthy

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,102 posts
  • Location:Budapest
  • Devices:Pulse

Sounds interesting and promising :(
Might be the way (at least for now) to gain some free RAM :P

(However I really need BT support for my handsfree set in the car - couldn't live without that :()


Yup, but why on Earth you should run bluetooth and obex syncing permanently? similarly, running debugger daemon, and things like that...

Now I can run Nimbuzz.
(It is currently not fully stable, I will try something.)

  • 0

#5
gusthy

gusthy

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,102 posts
  • Location:Budapest
  • Devices:Pulse
Short result:
Now my phone runs stable, it can handle 4-8 apps with multitasking.

Now I have an affordable pulse.

Anyone interested in the metgod?

Edited by gusthy, 27 July 2010 - 04:24 PM.

  • 0

#6
flibblesan

flibblesan

    Token Northern bloke

  • Assistant Admin Team
  • PipPipPipPipPipPip
  • 5,656 posts

Short result:
Now my phone runs stable, it can handle 4-8 apps with multitasking.

Now I have an affordable pulse.

Anyone interested in the metgod?


Share please :(

  • 0

#7
Totyasrác

Totyasrác

    Addict

  • MoDaCo Silver
  • PipPipPipPipPip
  • 545 posts
  • Gender:Male
  • Location:Bp.
  • Devices:HTC Desire / MildWild CM 2.9

Short result:
Now my phone runs stable, it can handle 4-8 apps with multitasking.

Now I have an affordable pulse.

Anyone interested in the metgod?


Yeah, wanna see that :(

  • 0

#8
TaiwanCHT8k

TaiwanCHT8k

    Regular

  • Members
  • PipPip
  • 146 posts
  • Gender:Male
  • Location:Taiwan
  • Devices:CHT8000
signed zip please :( j/k

wish the method doesn't involve any task killers

  • 0

#9
flip360

flip360

    Addict

  • Members
  • PipPipPipPipPip
  • 568 posts
  • Devices:T-Mobile Pulse
  • Twitter:@mat3ski
me, me :(

  • 0
GingerFroyo v2.0 for CM 6.1
Samsung GT I9000 Galaxy S 8GB / Froyo 2.2.1

#10
gusthy

gusthy

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,102 posts
  • Location:Budapest
  • Devices:Pulse

signed zip please :( j/k

wish the method doesn't involve any task killers

apparently it partially does, because fibblescan changed the default settings of android memory manager.

it is a dirry hack now, I simply removed some unneccessary binaries from /system/bin.

The correct way would be to wliminate them from init+.rc.

Then I changed the memory management presets back to factory values (wirh autokiller).
I will post the list of removed. binaries a bit later, I am not at the machine now.
fibble, isnt it possible ro do ase scripts for this purpose?

Edited by gusthy, 27 July 2010 - 06:24 PM.

  • 0

#11
gusthy

gusthy

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,102 posts
  • Location:Budapest
  • Devices:Pulse
So:

Currently I cannot build a signed zip :( but if somebody helps me doing that, it would be fine.

Important:
This method limits your pulse's functionality, your mileage may vary!!!
Do it on your risk!


If you are not a developer, you can safely remove this ones:

port-bridge
debuggerd

If you dont use obex and things like this, it seems that you can remove:
syncbt
syncobex

I'm a little bit confused, but probably you can remove this ones too (for me it made no problem):

syncat
syncctl
syncpcuiu
syncsdr

And finally, if you dont use bluetooth at all, you can remove:

dbus-daemon
bluetoothd


I don't recommend to delete dbus, it will not reboot correctly.

After doing this, I've set the following AutoKiller settings (in Advanced mode), it can be done with build.prop I guess:

Foreground: 6MB
Visible: 8MB
Secondary server: 12MB
Hidden app: 15MB
Content provider: 20MB
Empty app: 25MB

My personal feelings are that it would be better to allow content providers to stay alive with lower memory conditions, some apps, like SMS would love it, but i'm currently playing with this.

Edited by gusthy, 28 July 2010 - 08:11 AM.

  • 0

#12
flibblesan

flibblesan

    Token Northern bloke

  • Assistant Admin Team
  • PipPipPipPipPipPip
  • 5,656 posts

apparently it partially does, because fibblescan changed the default settings of android memory manager.

it is a dirry hack now, I simply removed some unneccessary binaries from /system/bin.

The correct way would be to wliminate them from init+.rc.

Then I changed the memory management presets back to factory values (wirh autokiller).
I will post the list of removed. binaries a bit later, I am not at the machine now.
fibble, isnt it possible ro do ase scripts for this purpose?


yup I changed the settings but they can be changed back by editing the init.rc

It may be possible to make a script or two that removes those files. I'll check it out.

  • 0

#13
Totyasrác

Totyasrác

    Addict

  • MoDaCo Silver
  • PipPipPipPipPip
  • 545 posts
  • Gender:Male
  • Location:Bp.
  • Devices:HTC Desire / MildWild CM 2.9

yup I changed the settings but they can be changed back by editing the init.rc

It may be possible to make a script or two that removes those files. I'll check it out.


Would be awesome, dude :(

  • 0

#14
gusthy

gusthy

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,102 posts
  • Location:Budapest
  • Devices:Pulse

Would be awesome, dude :(


If you don't remove them, just rename, it is reversible... But in case you fail, you can reflash the ROM without wiping, it restores you to your previous state, so don't hesitate :(

BTW, I think, dbus-daemon doesn's use a lot of memory, so if you could try the method, I will have a testuser who uses bluetooth... I don't.

  • 0

#15
gusthy

gusthy

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,102 posts
  • Location:Budapest
  • Devices:Pulse

Attached Files


Edited by gusthy, 28 July 2010 - 10:23 AM.

  • 0

#16
flibblesan

flibblesan

    Token Northern bloke

  • Assistant Admin Team
  • PipPipPipPipPipPip
  • 5,656 posts

If you are not a developer, you can safely remove this ones:

port-bridge
debuggerd

If you dont use obex and things like this, it seems that you can remove:
syncbt
syncobex

I'm a little bit confused, but probably you can remove this ones too (for me it made no problem):

syncat
syncctl
syncpcuiu
syncsdr


port-bridge is setup within the kernels init.qcom.rc
service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyHSUSB0 &
It seems important.

the bluetooth stuff will break bluetooth syncing for sure. I'm not sure about the other files.

  • 0

#17
gusthy

gusthy

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,102 posts
  • Location:Budapest
  • Devices:Pulse
port-bridge belongs to adb and debugging, it does some tunmelling I gusless. In tge last 24 hrs it didn't cause any problem for me, even Barnacle works well.

yes, the rest breaks bt syncing, but I gess not roo many pwople use tgat.

  • 0

#18
flibblesan

flibblesan

    Token Northern bloke

  • Assistant Admin Team
  • PipPipPipPipPipPip
  • 5,656 posts

port-bridge belongs to adb and debugging, it does some tunmelling I gusless. In tge last 24 hrs it didn't cause any problem for me, even Barnacle works well.

yes, the rest breaks bt syncing, but I gess not roo many pwople use tgat.


Ok. I'll give you another week. If you don't complain that some apps are broken then I'll look into making a script that removes these :(

  • 0

#19
DanWilson

DanWilson

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,821 posts
  • Gender:Male
  • Location:Glasgow
  • Interests:Trololololololololol
  • Devices:HTC Desire Z // HP Touchpad
  • Twitter:@PARTAYDan

Ok. I'll give you another week. If you don't complain that some apps are broken then I'll look into making a script that removes these :(

Lulz. I give you 24 hours, and if FLB-Mod isn't Froyo'd I'll bomb a major English city. Starting with Sheffield. If the Froyo hasn't landed in 49 hours from now (yes 49) England will detach from Scotland, and fly into the Sun.
Posted Image
BWAHAHAHAHAHAHAHAAHHAHAHAHAHAHAAAAAAAAAAA
:(

  • 0
HTC Desire Z - Something CM9 ish - giffgaff
HP Touchpad - AOKP? I dunno (ICS) // webOS // Debian - 30MB Interwebz

I should still be a mod. #JustSayin.

#20
flibblesan

flibblesan

    Token Northern bloke

  • Assistant Admin Team
  • PipPipPipPipPipPip
  • 5,656 posts

Lulz. I give you 24 hours, and if FLB-Mod isn't Froyo'd I'll bomb a major English city. Starting with Sheffield. If the Froyo hasn't landed in 49 hours from now (yes 49) England will detach from Scotland, and fly into the Sun.
Posted Image
BWAHAHAHAHAHAHAHAAHHAHAHAHAHAHAAAAAAAAAAA
:(


Do that and I'll blow up the Irn-Bru factory!

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users