[Android Software Development] Deltadroid:
ConfigUpdater

ConfigUpdater has been added to the Marshmallow Base Gapps package and will be installed by default to /system/priv-app/ in order to fix Google's ability to restore backup settings during initial setup on a clean installation. ConfigUpdater gives Google the ability to change default system settings and firewall settings. For privacy concerns, ConfigUpdater will not be installed while flashing the latest marshmallow base gapps package if the following 0 byte file exists on the internal sdcard: /sdcard/.removeconfigupdater

If this marshmallow base gapps package is flashed without the ".removeconfigupdater" switch, ConfigUpdater will be installed by default. ConfigUpdater can be removed by then creating the ".removeconfigupdater" switch and flashing the marshmallow base gapps package on top of the previous base gapps installation.

Marshmallow Base Gapps package for 6.0.1: gapps-601-base-20160130-1-signed.zip

diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-601-base-20160129-1-signed/META-INF/com/google/android/updater-script gapps-601-base-20160130-1-signed/META-INF/com/google/android/updater-script
--- gapps-601-base-20160129-1-signed/META-INF/com/google/android/updater-script	2008-02-29 03:33:46.000000000 +0100
+++ gapps-601-base-20160130-1-signed/META-INF/com/google/android/updater-script	2008-02-29 03:33:46.000000000 +0100
@@ -8,13 +8,15 @@
show_progress(1, 15);

ui_print("Cleaning system.");
-delete_recursive("/system/app/BrowserProviderProxy","/system/app/PartnerBookmarksProvider","/system/app/FaceLock","/system/app/GoogleContactsSyncAdapter","/system/priv-app/GoogleBackupTransport","/system/priv-app/GoogleFeedback","/system/priv-app/GoogleLoginService","/system/priv-app/GoogleOneTimeInitializer","/system/priv-app/GooglePartnerSetup","/system/priv-app/GoogleServicesFramework","/system/priv-app/Phonesky","/system/priv-app/PrebuiltGmsCore","/system/priv-app/SetupWizard");
+delete_recursive("/system/app/BrowserProviderProxy","/system/app/FaceLock","/system/app/GoogleContactsSyncAdapter","/system/app/PartnerBookmarksProvider","/system/priv-app/ConfigUpdater","/system/priv-app/GoogleBackupTransport","/system/priv-app/GoogleFeedback","/system/priv-app/GoogleLoginService","/system/priv-app/GoogleOneTimeInitializer","/system/priv-app/GooglePartnerSetup","/system/priv-app/GoogleServicesFramework","/system/priv-app/Phonesky","/system/priv-app/PrebuiltGmsCore","/system/priv-app/SetupWizard");

ui_print("Installing files.");
+run_program("/sbin/mkdir", "/tmp/config");
run_program("/sbin/mkdir", "/tmp/dialer");
run_program("/sbin/mkdir", "/tmp/face");
run_program("/sbin/mkdir", "/tmp/setup");
package_extract_dir("system", "/system");
+package_extract_dir("optional/config", "/tmp/config");
package_extract_dir("optional/dialer", "/tmp/dialer");
package_extract_dir("optional/face", "/tmp/face");
package_extract_dir("optional/setup", "/tmp/setup");
Only in gapps-601-base-20160130-1-signed/optional: config
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-601-base-20160129-1-signed/scripts/install-optional.sh gapps-601-base-20160130-1-signed/scripts/install-optional.sh
--- gapps-601-base-20160129-1-signed/scripts/install-optional.sh	2008-02-29 03:33:46.000000000 +0100
+++ gapps-601-base-20160130-1-signed/scripts/install-optional.sh	2008-02-29 03:33:46.000000000 +0100
@@ -12,6 +12,14 @@
fi
}

+if [ -f /sdcard/.removeconfigupdater ]; then
+ sed -i '/ConfigUpdater/ d' /system/addon.d/70-gapps.sh
+else
+ echo "Installing ConfigUpdater"
+ cp -a /tmp/config/* /system/
+fi
+rm -rf /tmp/config
+
if [ -e /system/etc/permissions/android.hardware.telephony.gsm.xml ] || [ -e /system/etc/permissions/android.hardware.telephony.cdma.xml ]; then
echo "Installing dialer framework"
cp -a /tmp/dialer/* /system/
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-601-base-20160129-1-signed/system/addon.d/70-gapps.sh gapps-601-base-20160130-1-signed/system/addon.d/70-gapps.sh
--- gapps-601-base-20160129-1-signed/system/addon.d/70-gapps.sh	2008-02-29 03:33:46.000000000 +0100
+++ gapps-601-base-20160130-1-signed/system/addon.d/70-gapps.sh	2008-02-29 03:33:46.000000000 +0100
@@ -21,6 +21,7 @@
framework/com.google.android.media.effects.jar
framework/com.google.widevine.software.drm.jar
lib/libjni_latinimegoogle.so
+priv-app/ConfigUpdater/ConfigUpdater.apk
priv-app/GoogleBackupTransport/GoogleBackupTransport.apk
priv-app/GoogleFeedback/GoogleFeedback.apk
priv-app/GoogleLoginService/GoogleLoginService.apk
@@ -104,6 +105,7 @@
chmod 755 /system/app/GoogleContactsSyncAdapter
chmod 755 /system/etc/preferred-apps
chmod 755 /system/etc/sysconfig
+ chmod 755 /system/priv-app/ConfigUpdater
chmod 755 /system/priv-app/GoogleBackupTransport
chmod 755 /system/priv-app/GoogleFeedback
chmod 755 /system/priv-app/GoogleLoginService
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-601-base-20160129-1-signed/system/etc/g.prop gapps-601-base-20160130-1-signed/system/etc/g.prop
--- gapps-601-base-20160129-1-signed/system/etc/g.prop	2008-02-29 03:33:46.000000000 +0100
+++ gapps-601-base-20160130-1-signed/system/etc/g.prop	2008-02-29 03:33:46.000000000 +0100
@@ -1,6 +1,6 @@
# begin addon properties
ro.addon.type=gapps
ro.addon.platform=mm
-ro.addon.version=gapps-601-base-20160120-1
+ro.addon.version=gapps-601-base-20160130-1
ro.addon.minimumversion=6.0.1
# end addon properties