There are many people out there that frustrated and stuck by the lack of memory on theirAndroid gadget, or may be by its slowness, or short battery life? With these 'simple' steps you'll have over 75 installed apps on your gadget (several of them over 1 MB each) and still have 15 MB free. Let's begin the trick (please use with your own rrisk!)
Disable wifi and bluetooth
Install the free WiFi OnOff widget. After installing from the Android Market, do a long press on your home screen, select "Widgets" then "WiFi OnOff". Enable wifi only when you actually need it. To make sure you don't forget to disable wifi when there is no wifi signal, install wifi status. You do not have to run this app, it works as soon as it is installed.Disable also bluetooth when you don't need it
You can also disable GPS but this is much less important since the battery is drained only when an application such as Google Maps effectively uses the GPS.Disable sync
During syncing my G1 is very unresponsive, hardly usable. So I keep sync disabled by default, and I enable it manually with AutoSync OnOff when I know I won't need the phone for the next few minutes. ]Sync only your own calendar
Open Calendar, select Menu->More->My calendars->Menu->Remove calendars. Select all calendars except your own and click OK. This can save a lot of memory, but also makes syncing much faster. Do not just disable the other calendars, you must actually remove them.Sync only your inbox
I do not use the GMail app on my phone because it's not manageable when receiving several hundred messages per day. But if you do use the GMail app, sync only your inbox, not all your labels. Open the GMail app, select Menu->Settings->Labels. Sync the mimimum number of days and of labels.Disable the on-screen keyboard
Disable the on-screen keyboard in Settings->Locale & text->Android keyboard. This makes the phone much more responsive. Obviously this is possible only if you have a real keyboard, as on the G1.Reduce screen brightness
Install the free Brightness Level widget. (See wifi above for widget install.)Kill unused processes
Install TasKiller and kill the processes you do not need. Android kills processes automatically when RAM becomes low but this is generally too late, the phone is already slow.Reboot
If you run out of memory or your phone gets very unresponsive, try rebooting (long press on the red phone key).Move stuff to /cache or SD card (for experts only)
The above sections are perfectly safe. If you still run out of memory, you need to get root on your Android device to be able to free a lot more memory by moving stuff to /cache or to the SD card. Do this only if you have enough Linux expertise. You can brick your phone if you make mistakes. The simplest way to get root is to install a custom ROM. Search for android rooting to find many tutorials, including a video for 1-click install. However I personally prefer a much less intrusive method, which requires more manual work and Linux expertise, but makes minimum changes to the system instead of replacing it completely.- Get command line tools
- Get root
- Cleanup /data/dalvik-cache
- Move other data to the SD card
du -sk /data/data/* | sort -rn | headMoving stuff to the SD card is unsafe since all apps can read and write its contents. So only non-sensitive data should be moved there.
then move the biggest caches to the SD card as in the following example:
cd /data/data/com.android.vending
rm -R cache
mkdir /sdcard/cache/market
ln -s /sdcard/cache/market cache
- Delete old system apps
- Move .so files to /cache
cd /data/data/com.qualcomm.qx.dillo/libDo this only for games, not for essential system apps, because /cache might be cleaned by an OTA, and the access rights on /cache are reset to 770 at each reboot.
mkdir -p /cache/lib
cp -p libdillo.so /cache/lib/
chown 1000:1000 /cache/lib/libdillo.so
chmod 444 /cache/lib/libdillo.so chmod 555 /cache/lib
ln -sf /cache/lib/libdillo.so .
then once and at each reboot:
chmod 771 /cache
- Move the apps cache to /cache
- Command line editing
mount -o remount,rw /dev/block/mtdblock3 /systemwith the appropriate hashed password instead of xxx. /data is mounted with the nosuid option, so I had to put a setuid copy of busybox in /system/bb/su. I can now put arbitrary commands in /data/root/.profile without having to remount /system in rw mode, such as:
echo 'root:xxx:0:0:root:/data/root:/system/bb/ash' > /etc/passwd
ln -s /data/root/.profile /etc/profile
echo root::0: > /etc/group
touch /etc/shadow
passwd root
chmod 4755 /system/bb/su
mount -o remount,ro /dev/block/mtdblock3 /system
export PATH=/data/bb:/data/root:/sbin:/system/binThen on my laptop I run the following script:
export HOME=/data/root
PS1='# '
alias cp='cp -p'
#!/bin/bashThe tab key and the arrows keys then magically work. Note that the password typed in telnet goes over the USB cable only, not over ethernet. If I need root in the Terminal Emulator I just have to type
adb -d forward tcp:4444 tcp:23
adb -d shell "exec /data/bb/telnetd -F -b 127.0.0.1 -l /data/bb/login" &
sleep 1
telnet localhost 4444
adb kill-server
/system/bb/su -The tab key and the trackball work. I get the correct PATH and aliases, and also the correct uid (0 for root). The original /system/bin/su doesn't give the correct uid even when installed setuid root. Do not forget to disable Settings->Applications->Development->USB debugging once you have finished otherwise someone else can get root access if you lose your phone and adbd runs as root.
Useful apps
Once you have made your phone responsive and saved a lot of memory, you can install the following apps that I found useful (more to come). •Steel excellent browser.•Astro the best file manager.
•TasKiller kill processes to save memory.
•AndNav2 maps with local cache if you don't have 3G.
•sipdroid VoIP over 3G or wifi.
•SnapPhoto Free takes crisp photos.
•Hugoban go problems and pro games.
•KoalaGo watch go games on IGS
•Contact owner show your name on locked phone.
•SK Sync Client sync phone and workstation through wifi.
•APNdroid essential if you have no data plan or when roaming.
•Proxoid simple USB tethering (http proxy) that does not need root
Thanks to : http://gailly.net/android/android-tips.html
0 comments:
Post a Comment