• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Galaxo tweaks - get more memory :)

Yup typos!

If you have any Galaxo rom you ONLY need to run clearapps.sh and not install busybox etc:

# mount read/write - remount work on galaxo, but not stock
adb remount

# upload the script - you can upload directory to /system, OR copy to sdcard and copy upto you

# push clearapps.sh from adb folder to the phone
adb push clearapps.sh /system/clearapps.sh
# Open a shell
abd shell

OR

# Open a shell
abd shell
# copy clear apps from the sdcard to system
cp /sdcard/clearapps.sh /system

# make the script executable
chmod +x /system/clearapps.sh

# run the script
/system/clearapps.sh

# reboot
reboot

If you have any stock rom you need to:
- enable SU from recovery
- install busybox
- run clearappsstock.sh

And so follow post 19 exactly (http://androidforums.com/samsung-i7500/12365-galaxo-tweaks-get-more-memory.html#post71842)
 
Thanks for the quick reply, your help is really appreciated!
While you are around, maybe you could help re the control characters that appear when I use a cmd terminal as shown here


C:\Documents and Settings\Stan>cd ../../temp/windows

C:\TEMP\windows>adb remount
remount succeeded

C:\TEMP\windows>adb shell
____ _
/ ___| __ _| | __ ___ ___ _
| | _ / _` | |/ _` \ \/ / | | |
| |_| | (_| | | (_| |> <| |_| |
\____|\__,_|_|\__,_/_/\_\\__, |
|___/ ..... by drakaz

&#8592;[01;32m[root@galaxy&#8592;[01;31m:&#8592;[01;34m/]&#8592;[00m ls
ls
&#8592;[1;34mcache&#8592;[0m &#8592;[1;32minit&#8592;[0m &#8592;[1;34msbin&#8592;[0
m
&#8592;[1;34mdata&#8592;[0m &#8592;[1;32minit.goldfish.rc&#8592;[0m &#8592;[1;34msdcard&#8592;
[0m
&#8592;[1;34mdbdata&#8592;[0m &#8592;[1;32minit.rc&#8592;[0m &#8592;[1;34msqlite_
stmt_journals&#8592;[0m
&#8592;[0;0mdefault.prop&#8592;[0m &#8592;[0;0mlogo.rle&#8592;[0m &#8592;[1;34msys&#8592;[0m
&#8592;[1;34mdev&#8592;[0m &#8592;[1;34mproc&#8592;[0m &#8592;[1;34msystem&#8592;
[0m
&#8592;[1;36metc&#8592;[0m &#8592;[1;34mroot&#8592;[0m &#8592;[1;34muserdat
a&#8592;[0m
&#8592;[01;32m[root@galaxy&#8592;[01;31m:&#8592;[01;34m/]&#8592;[00m
&#8592;[01;32m[root@galaxy&#8592;[01;31m:&#8592;[01;34m/]&#8592;[00m su
su
# ls
ls
&#8592;[1;34mcache&#8592;[0m &#8592;[1;32minit&#8592;[0m &#8592;[1;34msbin&#8592;[0
m
&#8592;[1;34mdata&#8592;[0m &#8592;[1;32minit.goldfish.rc&#8592;[0m &#8592;[1;34msdcard&#8592;
[0m
&#8592;[1;34mdbdata&#8592;[0m &#8592;[1;32minit.rc&#8592;[0m &#8592;[1;34msqlite_
stmt_journals&#8592;[0m
&#8592;[0;0mdefault.prop&#8592;[0m &#8592;[0;0mlogo.rle&#8592;[0m &#8592;[1;34msys&#8592;[0m
&#8592;[1;34mdev&#8592;[0m &#8592;[1;34mproc&#8592;[0m &#8592;[1;34msystem&#8592;
[0m
&#8592;[1;36metc&#8592;[0m &#8592;[1;34mroot&#8592;[0m &#8592;[1;34muserdat
a&#8592;[0m
#

Sorry for the formatting above but I'm not sure how else to copy from the cmd window (I 'marked' the text then copied it).
I've highlighted in bold the 2 'ls' commands and the 'su' command but as the output is surrounded by control chars it is difficult to read it!

Thanks for any help you can give with this. If you have any queries it will be tomorrow before I can get back to you as I am off out for the evening now!
 
Yeah those are anoying for us windows users! The best thing to do is use putty to a redicrected local port.

I'm sure, like me, you dont like to keep ssh running all the time, nor wifi, so do this:

- Turn on ssh in galaxoconfig and reboot - this will generate the ssh keys
- Turn off ssh in galaxoconfig and reboot.

You only need to do that once and never again.

Now make two .bat files in the adb tools directory:

SSH_ON.bat and put this inside it:

adb forward tcp:9999 tcp:2222
adb shell "/system/xbin/dropbear -E -A -N root -U 0 -G 0 -C password -p 2222"

and also SSH_OFF.bat and put this inside it
adb shell "kill `ps | grep dropbear | awk '{print $1}'`"

You can change 'password' to anything you like. The SSH_OFF just finds the dropbear pid and kills it.

After running SSH_ON just putty to 127.0.0.1 and port 9999, make sure to select ssh as the protocol. And hey presto a nice colour shell, and stuff like vim also works!

As soon as you're in type bash to switch to bash shell, and get history to work.

So save a profile in putty, and every time you want to connect, double click SSH_ON, and the windows will stay open showing u ssh connections. Use putty to connect.

When you're done run SSH_OFF, and the SSH_ON windows should dissapear as dropbear was killed.
 
Drakaz, it seems you can steal some memory from the GPU :p

This is the dream 10mb kernel hack:

You need to edit \BSP\kernel_2.6.27\arch\arm\mach-msm\board-saphire.c

Around Line 1140

if (smi_sz == 32) {
mi->bank[0].size = (84*1024*1024);
} else if (smi_sz == 64) {
mi->bank[0].size = (101*1024*1024);
} else {
printk(KERN_ERR "can not get smi size\n");

Change '(101*1024*1024);' to 0x06d00000, which is 108mb. We can probably go even higher i think.

You also need to change this line to the same value \BSP\kernel_2.6.27\arch\arm\mach-msm\board-saphire.h

#define SMI64_MSM_LINUX_BASE MSM_EBI_BASE
#define SMI64_MSM_LINUX_SIZE 0x06500000


---------

Now check out \BSP\kernel_2.6.27\arch\arm\mach-msm\board-init.c

Samsung even left a few comments lol:
Code:
#define MSM_EBI_BASE  0x10000000
#define MSM_EBI_SIZE  0x06D00000    // Total 109M for ARM11
#ifdef CONFIG_MSM7K_SMI64
#define SMI64_MSM_PMEM_MDP_BASE 0x02000000
#define SMI64_MSM_PMEM_MDP_SIZE 0x00800000  // 8M
#define SMI64_MSM_PMEM_ADSP_BASE    0x02800000
#define SMI64_MSM_PMEM_ADSP_SIZE  0x00D00000  // 13M-->7M from IF4 => 8M for MPEG4 Play 480*360 ==> 13M for safety
#define SMI64_MSM_PMEM_CAMERA_BASE 0x03500000
#define SMI64_MSM_PMEM_CAMERA_SIZE 0x00B00000  // 11M
#endif
#define MSM_PMEM_MDP_SIZE 0x800000
#define MSM_PMEM_CAMERA_SIZE 0xa00000
#define MSM_PMEM_ADSP_SIZE 0xd00000
#define MSM_PMEM_GPU1_SIZE 0x800000
#define MSM_FB_SIZE  0x100000     // 1M is enough for Orion Project
 
Hmm did i get this right.. I think the misterious extra 10mb that appeared in the 'H' firmwares is from extra memory stolen from the GPU. Thats why all the 3D stuff broke :-/

Wow, well done samsung lol
 
Hmm did i get this right.. I think the misterious extra 10mb that appeared in the 'H' firmwares is from extra memory stolen from the GPU. Thats why all the 3D stuff broke :-/

Wow, well done samsung lol

I thought 3D was broken in all firmwares?
 
I read some stuff worked on G firmwares and it all broke on H firmwares. Maybe i got it wrong. Anyway looks like drakaz is building the mods in and a tiny kernel! Should be niceeee
 
Yeah. We should probably get a active galaxy member here to moderate and handle things like that for us.
 
Kam187, can you clarify something?

Do I need to leave apps like GMail running in order to get push notifications of new E-mails, or is the GApps process enough?

How does this work with other apps that notify, like Messaging (well, I actually use chompSMS) and Twitter apps (I use Swift)? Do they have to be running in order for notifications to work?

I ask because my battery life is considerably worse with Galaxo than it was with the stock II5 firmware. I'm thinking that killing some of these processes will help battery life as well as making the phone faster.

Thanks,
Tim
 
Gmail, messaging, google maps, calender and a few other procresses run at boot because google think you'll use them all the time. Ok messaging, yeah, but the rest i dont thing i do!

The OS actually handles the events, and launches the associated app when you click on the notification. So if an SMS came in, when you click it, it'll open it in your registered SMS app.

The app itself doesnt need to be running since it doesnt handle the events, only displays the data associated to it, like an SMS.

The only exception is gapps which is needed for autosync.

Alarmclock is another interesting one. It eats 2mb of ram doing pretty much not alot!
It needs to be run at boot to schedule your set alarms with the OS. Then it can be killed. When the scheduled alarm is triggered in the OS, it opens alarmclock app to handle it - and make the alarm noise etc.
So this can also be killed after boot if you like.

Calender works the same, it must be run once to schedule your calender events.

With both alarmclock and calender, if you open then to change an event, it will reschedule with the OS, and so you can kill it again if you like.

You can download 'autostarts' from the market to check whats autostarting and turn stuff off. Its not free i think.

Just remember leave alarmclock and calender autostart on and kill them after boot. alarmclock is actually a system task so is hidden in taskiller
 
BTW..

On II8 with NPS processes removed, and only the google search widget and normal clock, after killing all tasks in taskiller after boot I have 47mb free.

With the flip clock with weather widget I have 40mb free
 
Once all your apps are setup, and you're pretty close to your final system, you can delete the dalvik cache and force it to regenerate all the dex files.
[You need root. Boot the phone, adb shell in then.. ]

cd /data/dalvik-cache
rm *
reboot

The phone will reboot, and take a little longer to boot. You'll probably gain about 1mb of RAM.

dalvik cache? - All apps get translated into bytecode that gets fed to the Dalvik virtual machine. Its a bit like a Java VM with .jar files. When new apps appear, or cache files are missing for them, the dalvik VM converts all apps into their .dex equivalent. It checks all dependancies and creates the best set of .dex files it can.

If you installed/removed loads of stuff, or like most of us, installed loads of apps, the cache may not be optimal. Remember sometimes it will include libraries inside the .dex files. Dalvik is supposed to redo the caches for any files that might be affected by install/uninstall or library update, but it doesnt seem to do a good job!
 
Another classical FAQ post, thx kam: )

Btw how do I register app that I moved to app_s? Would clearing dalvik cache do?
 
Register? Normally on a boot up, the dalvikvm does it's magic and app_s is symbolically linked from /system/app so it's included during boot up too.
 
Register? Normally on a boot up, the dalvikvm does it's magic and app_s is symbolically linked from /system/app so it's included during boot up too.

All apps from market are by default installed in small system partition. app_s folder is not on that partition.
 
The dalvik cache is 'all' programs converted into .dex files. So any programs your phone see's in its app paths, OR tries to run, will get the treatment and cached in that directory :)

So there's no need to worry about anything else, just delete the cache as above.
 
Yeah those are anoying for us windows users! The best thing to do is use putty to a redicrected local port.

I'm sure, like me, you dont like to keep ssh running all the time, nor wifi, so do this:

- Turn on ssh in galaxoconfig and reboot - this will generate the ssh keys
- Turn off ssh in galaxoconfig and reboot.

You only need to do that once and never again.

Now make two .bat files in the adb tools directory:

SSH_ON.bat and put this inside it:

adb forward tcp:9999 tcp:2222
adb shell "/system/xbin/dropbear -E -A -N root -U 0 -G 0 -C password -p 2222"

and also SSH_OFF.bat and put this inside it
adb shell "kill `ps | grep dropbear | awk '{print $1}'`"

You can change 'password' to anything you like. The SSH_OFF just finds the dropbear pid and kills it.

After running SSH_ON just putty to 127.0.0.1 and port 9999, make sure to select ssh as the protocol. And hey presto a nice colour shell, and stuff like vim also works!

As soon as you're in type bash to switch to bash shell, and get history to work.

So save a profile in putty, and every time you want to connect, double click SSH_ON, and the windows will stay open showing u ssh connections. Use putty to connect.

When you're done run SSH_OFF, and the SSH_ON windows should dissapear as dropbear was killed.

Just had a chance to try the above. Thanks very much for that! Using putty is so much better than the wiindows cmd terminal.

Cheers!!
 
Hi, I can't find my app_s directory. When I cd into data then do an ls I get nothing back and if I cd into /data/app_s I get an error stating can't cd to app_s My phone is working properly and I have the Galaxo Hero rom installed. Any ideas please? Thanks.
# Remount read/write
adb remount

# open shell
adb shell

# go to apps directory
cd /data/app_s
 
Back
Top Bottom