[Droid Eris Android Development] DS36:
Moving apks and deleting dulicates...make your system efficient

YOU need either rootexplorer OR be ADB inclined to do the following....

i was thinking while doing some root exploring of ways to make this rom more solid and here are a few tips i thought everyone could use.

IF YOU DONT HAVE DUPLICATES DONT KILL YOURSELF SEARCHING JUST CONSIDER YOURSELF LUCKY. AND YOU DONT NEED THIS POST

FIRST

when i flash a Rom i always do my set up. here is an overview of what i do when i flash........

-i flash the Rom

-then i login to google as normal so i can receive Titanium Backup (TB) and Root Explorer (RE) from the market updates

if someone could be kind enough to give us a sample command to use terminal to install apps from the sd would be a great shortcut for us

-move those two apps from data/app to system/app

-then i do a full wipe (huh :eek: a full wipe you say....system files are never wiped....they can only be flashed over, so TB and RE will still be there)

-clean nand (so if you get crazy and screw up you can easily start over)

-Rom surgery

-Restore

-login to google last and sync

-batt tweaks and extras

this process IMHO makes your rom way more efficient than flashing, login and syncing.

OK

first thing i do when i flash a rom is to remove junk

i navigate with either explorer to system/app folder

then i remove all the useless apps i dont use, need or want

AND/OR remove the "ONE USE" apps (like setupwizard.apk only need it once or none at all if your a pro ;) )

this reduces the ROMs footprint making it smaller

the smaller the Rom the better the faster

here are some things i like to rip out of system/app folder....

ADWLauncher.apk (make sure you have another launcher first i use lanucher pro)

Mail.apk (i use gmail)

Twitter.apk (i currently dont tweet)

ProTips.apk

HtcCalibrate.apk (after i calibrate of course)

Launcher2.apk(why have a bunch of other launchers you dont use hogging memory get rid of them)

MagicSmokeWallpapers.apk (this dont work for me but other do)

Carhomegoogle.apk ONLY

etc. there are others you can remove as well depending on you

and we will experiment to find more......

NEXT

i like to move IMPORTANT apks or apps from the data/app folder to the system/app folder epically if your Rom dev has not updated the gapps lately or you cant get access to the latest gapps.zip.

if you do not then you will end up with a lot of duplicate apps installed in your system when ever you receive a gapps update and that wastes memory and will cause memory issues in the future and it screws with autokiller

i like to move my favorite launcher (launcher pro paid) to the same place where launchers go, in the system/app folder (why have your launcher where regular apps go and get killed by autokiller) i think this is better for the system and doesn't hog your app data space plus it adds stability to your launcher.

here are some things i like to move into system/app.....

i like move into system/app are

launchers (stabilze launcher)

keyboards (should speed up keyboard strokes)

root tools and IMPORTANT apps (R.E. T.B.)

security apps (never deleted or wiped in case of theft, hoping thief is not nerdy)

any of the latest gapps update

and some others

this way if any issue occurs wipe and restore is easy as pie

IMPORTANT: APPS IN THE SYSTEM FOLDERS DO NOT GET WIPED OR DELETED DURING A FACTORY DATA WIPE OR DALVIK WIPE.....THEY CAN ONLY BE FLASHED OVER BY A ROM(OVERWRITTEN)

APPS IN THE DATA FOLDERS WILL GET DELETED DURING A FACTORY WIPE......BUT NOT DALVIK

i know we are ALL have at least one pair of identical (double apks in the system)

-but the identical apks have different names

-on is in data/app the other is in system/app

if you have updated ANY google app then chances are that you may have some double apps on your system wasting. when we update these google apks 'think' the rom comes with the apk already and is stored in the protected system/app folder WHILE the actual update is stored in the data/app folder (or where regular apps go) under a different name

EXAMPLE

google maps

-MAPS.apk ........is stored system/app

-com.google.android.app.map-1.apk........is stored in the data/app (this is the latest update of google maps and should replace the older MAPS.apk in system/app)

-these are the SAME APKs

hmmm so think gmaps is 5-6 megs in size and you have 2 of them so thats like 10-12 megs in your system, get rid of the old one.

there are two thing you can do here with two different benefits

-you can either remove the copy from either the data OR system folders depending on what you prefer.

if you remove the old app from system/app that means easier updates with now file moving BUT less app storage

OR move from data/app to system/app which means less FCs, more other app memory, and dealing with future updates and moving each app.

i like to move the new apks to the system/app where they belong

unstable Launcher PRO

my launcher was very unstable for a while wasn't a big deal for me

soo i decided to move my launcher to the system/app folder like all the other launchers....

I think the instability of that launcher was because of AUTOKILLER thinking this is just a regular app in data/app which it was at the moment. i may be wrong but autokiller doesnt kill system apps. so i move my launcher there and guess what now my launcher is much better and faster and stable beacuse you now have lots more memory.

SPEED TIP: in spare parts speed up your transition and animation windows to FAST

MOVING APPS ADVANCED SHORTCUT

i finally figure out a great short cut for moving apps

-first rename and put your favorite file manager (ROOT EXPLO) onto the sd.

to be even faster rename and put your launcher and TB on there too.

-after flashing a rom bypass the setup (touch the android screen) to home screen.

-open terminal

-type

SU

cd sdcard

busybox install yourapp.apk /data/app

-now you have the file explorer ready to go

instead of trying to restore wipe restore.

and hopefully you know what to do next.

so to summarize...

-get rid of junk you dont use and free up that memory

-move apps to the proper locations in system/app AND/OR data/app

-make sure you dont have multiple google apps using different names

"MAPS.apk" and "com.google.android.app.map-1.apk" IS THE SAME APP IN DIFFERENT LOCATIONS. remove the old and put the new in system/app

make sure your main launcher is in system app so it doesn't keep getting killed by auto killer settings and reloading

Replace THESE apps = with THESE apps

system/app = data/app

Gmail.apk = com.google.android.apps.gm-1.apk

ChrometoPhone.apk = com.google.android.apps.chrometophone-1.apk

Maps.apk = com.google.android.apps.maps-1.apk

CarHomeGoogle.apk = com.google.android.carhome-1.apk

GoogleSearch.apk = com.google.android.googlequicksearchbox-1.apk

Googles.apk = com.google.android.appsunveil-1.apk

SuperUser.apk = com.noshufou.android.su-1.apk

AutoKiller = com.rs.autokiller-2.apk

TitaniumBackup = com.keramidas.TitaniumBackup-2.apk

Twittter = (forget)

Voice= com.google.android.apps.gv-1.apk i think

YouTube=

delete OLD in system/app = move NEW from data/app to system/app

YES i did all those with success more memory and speed and a massive increase in overall Rom stability

there may be more

BUT ALL THESE HAVE DUPLICATE APPS USING DIFFERENT NAMES stored in data/app and/or system/app WHEN the latest update should be system/app IMHO to prevent AUTOKILLER from always killing i believe autokiller will try to kill data apps first before system apps.

i still have my auto killer set at optimum and things work even better now

and i gained 25mb of system memory no more Force closes