[Nexus 10 Themes and Apps] sttovo:
I've been meaning to write this up for a while now. These items aren't so much UI tweaks directly, they're more about getting a ROM setup the way I like it before the first boot.

The below shows how I "cleanup" a ROM after installing. I don't like having system apps I never use installed. I know I can delete them with other apps, however, I like to have them uninstalled before I even start the ROM. You'll notice that I delete A LOT of apps. No side effects so far!

###############

ROM Management: Let me start with how I install a new ROM or update an existing.

###############

- Download all necessary ROMs, Gapps, Kernel, SuperSU into one directory. I use "/sdcard/_Backup" so the folder is at the top when using TWRP/CWM

- Reboot into TWRP recovery

- Wipe caches for ROM update | Wipe caches, system for new ROM in same family (eg, CM, AOKP) | Factory Reset for new ROM outside of family or 4.3 to 4.4

- I add a prefix to all ROMs, that way I remember which order to flash them. Example:

+ 01_ROM

+ 02_Gapps

+ 02a_Gapps-Photosphere

+ 03_Kernel

+ 99_SuperSU

- I use TWRP, flashing the above at the same time

- Once flashed, I clean caches again

- Back to TWRP home and mount /system

- Now I'm going to run a shell script I created to "setup" my ROM. The script is called fix.sh, and is contained in the spoiler section below

+ The script does:

* Remounts /system

* Copies over the last /etc/hosts to a backup location

* Creates init.d directory if not there and copies scripts over. The only script I have is to copy/backup the kmsg file

* Change the LCD density to be smaller

* Deletes app data (NOT THE APP) for apps that have problems switching ROMs, even in the same family

* Deletes system apps that I don't use. PLEASE REVIEW THE LIST AND CHANGE TO YOUR LIKING

***** README - If you are using this script after a Factory Reset, make sure you don't delete the default launcher. Example - I only use Nova, so I delete Trebuchet. If I were to Factory Reset, run the script, I would not have Nova (yet) and not have Trebuchet. The ROM would boot, but you would not get past the setup screen. :) Ask me how I know :) If you mess up, just flash the ROM again and skip running the script *****

- Run the script

+ Go into Advanced and pick Terminal Command, picking where I've put the fix.sh script, in this case, /sdcard/_Backup

+ At the command prompt, type:

sh ./fix.sh

+ This will run the script, you might see errors and I've not added in any fancy error checking

- Go back to TWRP home, then Advanced, then Fix Permissions. Sometimes this fails for me, so I run it again it'll work.

- Reboot and enjoy your clean ROM!!!

Here is my full script for fix.sh with extra comments. Save this as a script (.sh) in your /sdcard:

#!/system/bin/sh

# Mount /system rw
busybox mount -o remount,rw /system

# Assign variables to common directories
ei=/system/etc/init.d
tw=/sdcard/_Backup/Tweaks
sa=/system/app

# Base adblocking hosts file (Need Adblock, Adaway, or similar installed)
cp $tw/hosts /system/etc

# Copy bootanimation from backup location
cp $tw/bootanimations/bootanimation-GooglePlay.zip /system/media/bootanimation.zip
chmod 755 /system/media/bootanimation.zip

# Setup init.d
mkdir $ei
chmod 755 $ei

#Copy over useful scripts
cp $tw/02log $ei
chmod 755 $ei/02log

# Change LCD density
#ro.sf.lcd_density=268
sed -i 's/ro\.sf\.lcd_density\=320/ro\.sf\.lcd_density\=268/' /system/build.prop

# Remove data for problematic apps
rm -rf /data/data/com.android.providers.contacts/*
rm -rf /data/data/com.android.providers.media/*
rm -rf /data/data/com.android.deskclock/*
rm -rf /data/data/com.tmobile.thememanager/*
rm -rf /data/data/com.google.android.gallery3d/*

# Remove unwanted apps
rm $sa/Accuweather*.apk
rm $sa/Apollo.apk
rm $sa/BlueBalls.apk
rm $sa/Books*.apk
rm $sa/CMFileManager.apk
rm $sa/Calendar*.apk
rm $sa/CalendarProvider.apk
rm $sa/CellBroadcastReceiver*.apk
rm $sa/Chromecast.apk
rm $sa/CMFileManager.apk
rm $sa/CMWallpapers.apk
rm $sa/Currents*.apk
rm $sa/DashClock.apk
rm $sa/DSPManager.apk
rm $sa/Email.apk
rm $sa/Email2.apk
rm $sa/Exchange2.apk
rm $sa/Focal.apk
rm $sa/Galaxy4.apk
rm $sa/Games.apk
rm $sa/GenieWidget.apk
rm $sa/GooManager.apk
rm $sa/GoogleCalendarSyncAdapter.apk
rm $sa/GooglePlus*.apk
rm $sa/GoogleTTS*.apk
rm $sa/Hangouts*.apk
rm $sa/HoloSpiralWallpaper.apk
rm $sa/Keep*.apk
rm $sa/LatinIME*.apk
rm $sa/Launcher2*.apk
rm $sa/LiveWallpapers.apk
rm $sa/LockClock.apk
rm $sa/Magazines*.apk
rm $sa/MagicSmokeWallpapers.apk
rm $sa/Microbes.apk
rm $sa/mGerrit.apk
rm $sa/MusicFX.apk
rm $sa/NoiseField.apk
rm $sa/PhaseBeam.apk
rm $sa/Phone.apk
rm $sa/PicoTts*.apk
rm $sa/PinyinIME.apk
rm $sa/PlayGames.apk
rm $sa/PlusOne*.apk
rm $sa/PurityWallpapers.apk
rm $sa/QuickSearchBox.apk
rm $sa/ReVoltLauncher.apk
rm $sa/RingsExtended.apk
rm $sa/SamsungWeather_WidgetClock.apk
rm $sa/SecLauncher2.apk
rm $sa/SecWallpaperChooser.apk
rm $sa/Sun*eam.apk
rm $sa/StreetView.apk
rm $sa/SwagPapers.apk
rm $sa/Talk.apk
rm $sa/Talkback.apk
rm $sa/talkback.apk
rm $sa/TalkBack.apk
rm $sa/TelephonyProvider.apk
rm $sa/Trebuchet.apk
rm $sa/Torch*.apk
rm $sa/UnicornPorn.apk
rm $sa/Videos.apk
rm $sa/VisualizationWallpapers.apk
rm $sa/VoiceDialer.apk
rm $sa/VoicePlus.apk
rm $sa/VoiceSearchStub.apk
rm $sa/YouTube.apk
rm $sa/Wallet.apk
rm $sa/Wallpapers.apk
rm $sa/WallpaperZ.apk

# Set /system to ro
busybox mount -o remount,ro /system

Edit - poor wording