[Android Software Development] Deltadroid:
Lollipop Base Gapps sysconfig

Lollipop Base Gapps (5.0.2 and 5.1.1) have been updated to include the stock sysconfig options from the Lollipop Nexus factory image. These additional sysconfig options enable "Google Experience" mode to turn on extra Nexus software features. Google Play Services and Google Play are given internet access during power save mode, even if they are not in the foreground. Also, these sysconfig options disable IME switching while in the alarm clock to prevent a known bug when switching keyboards while settings an alarm.

Lollipop Base Gapps package for 5.0.2: gapps-502-base-20150701-1-signed.zip

Lollipop Base Gapps package for 5.1.1: gapps-511-base-20150701-1-signed.zip

<!-- These are configurations that must exist on all GMS devices. -->
<config>
<!-- These are the standard packages that are white-listed to always have internet
access while in power save mode, even if they aren't in the foreground. -->

<!-- GmsCore must always have network access for GCM and other things. -->
<allow-in-power-save package="com.google.android.gms" />

<!-- Play Store likewise must have network access to support other applications. -->
<allow-in-power-save package="com.android.vending" />

<!-- If the volta app is pre-installed (for monitoring power use), let it do checkins. -->
<allow-in-power-save package="com.google.android.volta" />
</config>

<!-- These are configurations that should exist on Google's own Nexus and GPe devices. -->
<config>
<feature name="com.google.android.feature.GOOGLE_BUILD" />
<!-- This should be added to all Nexus and GPe devices -->
<feature name="com.google.android.feature.GOOGLE_EXPERIENCE" />
<!-- This should declare the version of Exchange that ships -->
<feature name="com.google.android.feature.EXCHANGE_6_2" />

<!-- Don't allow IME switching in the alarm clock -->
<fixed-ime-app package="com.google.android.deskclock" />
</config>

diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-502-base-20150617-1-signed/META-INF/com/google/android/updater-script gapps-502-base-20150701-1-signed/META-INF/com/google/android/updater-script
--- gapps-502-base-20150617-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
+++ gapps-502-base-20150701-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
@@ -41,6 +41,8 @@
set_metadata("/system/etc/permissions", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/etc/preferred-apps", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/etc/preferred-apps", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata_recursive("/system/etc/sysconfig", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/etc/sysconfig", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/etc/g.prop", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/framework", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/lib", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-502-base-20150617-1-signed/system/addon.d/70-gapps.sh gapps-502-base-20150701-1-signed/system/addon.d/70-gapps.sh
--- gapps-502-base-20150617-1-signed/system/addon.d/70-gapps.sh	2008-02-29 02:33:46.000000000 +0100
+++ gapps-502-base-20150701-1-signed/system/addon.d/70-gapps.sh	2008-02-29 02:33:46.000000000 +0100
@@ -16,6 +16,8 @@
etc/permissions/com.google.widevine.software.drm.xml
etc/permissions/features.xml
etc/preferred-apps/google.xml
+etc/sysconfig/google_build.xml
+etc/sysconfig/google.xml
framework/com.google.android.camera2.jar
framework/com.google.android.dialer.support.jar
framework/com.google.android.maps.jar
@@ -104,6 +106,7 @@
chmod 755 /system/app/GoogleCalendarSyncAdapter
chmod 755 /system/app/GoogleContactsSyncAdapter
chmod 755 /system/etc/preferred-apps
+ chmod 755 /system/etc/sysconfig
chmod 755 /system/priv-app/GoogleBackupTransport
chmod 755 /system/priv-app/GoogleFeedback
chmod 755 /system/priv-app/GoogleLoginService
@@ -118,5 +121,6 @@
chmod 755 /system/usr/srec
chmod 755 /system/usr/srec/en-US
chown 0:2000 /system/etc/preferred-apps
+ chown 0:2000 /system/etc/sysconfig
;;
esac
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-502-base-20150617-1-signed/system/etc/g.prop gapps-502-base-20150701-1-signed/system/etc/g.prop
--- gapps-502-base-20150617-1-signed/system/etc/g.prop	2008-02-29 02:33:46.000000000 +0100
+++ gapps-502-base-20150701-1-signed/system/etc/g.prop	2008-02-29 02:33:46.000000000 +0100
@@ -1,6 +1,6 @@
# begin addon properties
ro.addon.type=gapps
ro.addon.platform=lp
-ro.addon.version=gapps-502-base-20150617-1
+ro.addon.version=gapps-502-base-20150701-1
ro.addon.minimumversion=5.0.2
# end addon properties
Only in gapps-502-base-20150701-1-signed/system/etc: sysconfig

diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-511-base-20150630-1-signed/META-INF/com/google/android/updater-script gapps-511-base-20150701-1-signed/META-INF/com/google/android/updater-script
--- gapps-511-base-20150630-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
+++ gapps-511-base-20150701-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
@@ -41,6 +41,8 @@
set_metadata("/system/etc/permissions", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/etc/preferred-apps", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/etc/preferred-apps", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata_recursive("/system/etc/sysconfig", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/etc/sysconfig", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/etc/g.prop", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/framework", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/lib", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-511-base-20150630-1-signed/system/addon.d/70-gapps.sh gapps-511-base-20150701-1-signed/system/addon.d/70-gapps.sh
--- gapps-511-base-20150630-1-signed/system/addon.d/70-gapps.sh	2008-02-29 02:33:46.000000000 +0100
+++ gapps-511-base-20150701-1-signed/system/addon.d/70-gapps.sh	2008-02-29 02:33:46.000000000 +0100
@@ -16,6 +16,8 @@
etc/permissions/com.google.widevine.software.drm.xml
etc/permissions/features.xml
etc/preferred-apps/google.xml
+etc/sysconfig/google_build.xml
+etc/sysconfig/google.xml
framework/com.google.android.camera2.jar
framework/com.google.android.dialer.support.jar
framework/com.google.android.maps.jar
@@ -104,6 +106,7 @@
chmod 755 /system/app/GoogleCalendarSyncAdapter
chmod 755 /system/app/GoogleContactsSyncAdapter
chmod 755 /system/etc/preferred-apps
+ chmod 755 /system/etc/sysconfig
chmod 755 /system/priv-app/GoogleBackupTransport
chmod 755 /system/priv-app/GoogleFeedback
chmod 755 /system/priv-app/GoogleLoginService
@@ -118,5 +121,6 @@
chmod 755 /system/usr/srec
chmod 755 /system/usr/srec/en-US
chown 0:2000 /system/etc/preferred-apps
+ chown 0:2000 /system/etc/sysconfig
;;
esac
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-511-base-20150630-1-signed/system/etc/g.prop gapps-511-base-20150701-1-signed/system/etc/g.prop
--- gapps-511-base-20150630-1-signed/system/etc/g.prop	2008-02-29 02:33:46.000000000 +0100
+++ gapps-511-base-20150701-1-signed/system/etc/g.prop	2008-02-29 02:33:46.000000000 +0100
@@ -1,6 +1,6 @@
# begin addon properties
ro.addon.type=gapps
ro.addon.platform=lp
-ro.addon.version=gapps-511-base-20150630-1
+ro.addon.version=gapps-511-base-20150701-1
ro.addon.minimumversion=5.1.1
# end addon properties
Only in gapps-511-base-20150701-1-signed/system/etc: sysconfig