[Android Themes] [] AL []:
OK,

First off: I don't want to drag on or be repetitive about anything here... ;)

But I'd like to share something in the hope of preventing further questions or problem for TBO's apps users...

I'm sure that many users are CM11 nightly builds flashing addicts like me, so here's something that I believe can be useful in more than one way.

Since flashing a nightly build will overwrite most (Playstore being an exception) system apps and delete the extra ones you might have flashed (like TBO's), a good practice -imho- is to prepare yourself a modded Gapps (required for clean installs flashing) and a what I call "FIX zip" for other system apps. So the order or flashing would be: 1- nightly, 2- Gapps (opt) and 3- FIX. That way, the updater scripts are used to cleanup/prepare the rom for all of your "addons".

So here as an example, what my scripts look like:

1- Gapps:

ui_print("*****************************");
ui_print("Google Apps for Android 4.4.4");
ui_print("");
ui_print(" Minimal Edition ");
ui_print("");
ui_print(" GPS 6.1.88 1557022-036 ");
ui_print("");
ui_print(" Release Date - 20140924 ");
ui_print("*****************************");
ui_print("incl. TBO's Clear PS v4.9.1.3 ");
ui_print("modded for no auto-update-all");
ui_print("*****************************");
ui_print("**** Zipped by [] AL [] **");
ui_print("*****************************");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 1);
ui_print("Removing pieces from left over GApps...");
delete(
"/system/app/Calendar.apk",
"/system/app/CalendarGoogle.apk",
"/system/app/GoogleCalendar.apk",
"/system/app/GoogleCalendarSyncAdapter.apk",
"/system/app/GoogleContactsSyncAdapter.apk",

"/system/framework/com.google.android.ble.jar",
"/system/framework/com.google.android.camera2.jar",
"/system/framework/com.google.android.maps.jar",
"/system/framework/com.google.android.media.effects.jar",
"/system/framework/com.google.widevine.software.drm.jar",

"/system/lib/libAppDataSearch.so",
"/system/lib/libconscrypt_gmscore_jni.so",
"/system/lib/libgames_rtmp_jni.so",
"/system/lib/libgcastv2_base.so",
"/system/lib/libgcastv2_support.so",
"/system/lib/libgmscore.so",
"/system/lib/libgms-ocrclient.so",
"/system/lib/libjgcastservice.so",
"/system/lib/libjni_latinime.so",
"/system/lib/libjni_unbundled_latinimegoogle.so",
"/system/lib/libocrclient.so",
"/system/lib/libWhisper.so",

"/system/priv-app/GoogleBackupTransport.apk",
"/system/priv-app/GoogleFeedback.apk",
"/system/priv-app/GoogleLoginService.apk",
"/system/priv-app/GoogleOneTimeInitializer.apk",
"/system/priv-app/GooglePartnerSetup.apk",
"/system/priv-app/GoogleServicesFramework.apk",
"/system/priv-app/Phonesky.apk",
"/system/priv-app/PrebuiltGmsCore.apk",
"/system/priv-app/SetupWizard.apk",

"/system/app/BrowserProviderProxy.apk",
"/system/app/GmsCore.apk",
"/system/app/PartnerBookmarksProvider.apk",
"/system/app/PrebuiltGmsCore.apk",
"/system/app/Provision.apk",
"/system/app/Vending.apk",

"/system/priv-app/BrowserProviderProxy.apk",
"/system/priv-app/GmsCore.apk",
"/system/priv-app/PartnerBookmarksProvider.apk",
"/system/priv-app/Provision.apk",
"/system/priv-app/Vending.apk"
);
ui_print("Copying files...");
package_extract_dir("system", "/system");
ui_print("Fixing Permissions...");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete! Party On!");

2- Fix.zip:

ui_print("| ** AHD - CM11 Nightly Build FIX **");
ui_print("| now includes:");
ui_print("| - TBOs Clear Calendar v5.0.xx-V2");
ui_print("| - TBOs Black MMS");
ui_print("| - TBOs Clear Youtube - disabled ");
ui_print("| - Hosts files dated:___ ");
ui_print("| - Olney font family (incl bold)");
ui_print("| - Additional audio files");
ui_print("| - Blue Gears bootanimation");
ui_print("| - Camera Next (from the 1+1)");
ui_print("|<---------------------------------->|");
ui_print("|<---- Zipped by [] AL [] ----->|");
ui_print("|<---------------------------------->|");
ui_print("");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 1);
delete(
"/system/app/Calendar.apk",
"/system/app/CalendarGoogle.apk",
"/system/app/GoogleCalendar.apk",
"/system/app/GoogleCalendarSyncAdapter.apk",
"/system/app/Camera2.apk",
"/system/app/YouTube.apk",
"/system/etc/hosts",
"/system/fonts/Clockopia.ttf",
"/system/fonts/DroidSans.ttf",
"/system/fonts/DroidSans-Bold.ttf",
"/system/fonts/Roboto-Bold.ttf",
"/system/fonts/Roboto-BoldItalic.ttf",
"/system/fonts/RobotoCondensed-Bold.ttf",
"/system/fonts/RobotoCondensed-BoldItalic.ttf",
"/system/fonts/RobotoCondensed-Italic.ttf",
"/system/fonts/RobotoCondensed-Regular.ttf",
"/system/fonts/Roboto-Italic.ttf",
"/system/fonts/Roboto-Light.ttf",
"/system/fonts/Roboto-LightItalic.ttf",
"/system/fonts/Roboto-Regular.ttf",
"/system/fonts/Roboto-Thin.ttf",
"/system/fonts/Roboto-ThinItalic.ttf",
"/system/app/Stk.apk",
"/system/priv-app/VoiceDialer.apk",
"/system/fonts/Roboto-Regular.ttf",
"/system/priv-app/Mms.apk",
"/system/media/bootanimation.zip");
ui_print("");
ui_print("Copying files...");
package_extract_dir("system", "/system");
ui_print("");
ui_print("Fixing Permissions...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");
ui_print("");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("");
ui_print("ALL DONE !!");

I decided to share this just because I got the Playstore update on me and then redid my scripts and updated my zips.

PLEASE do not reply with questions on how to make a flashable zip (or anything else about this really...) as this will get flames going [mine as well]. But you can do so on this

thread where I've tried (quite a while ago) to explain how to prepare your own flashable zips:

Again, sorry for this OT, but I sure hope that this will save headaches, time when updating your rom and most importantly, future useless posts here.

Cheers,

/AL