I had some time to play around with gappsintegrator on a Moto X Pure with the stock 6.0 rom, systemless root and Open GApps Super package installed. I found that for some reason, getprop wasn't working while running from /su/su.d. This caused the script to attempt to process the upgraded GApps using the KitKat rules since $sdkver was less than 20. Since the du format was wrong for the free space check, the script would fail indicating no free space.
This change fixes that:
Code:
Original:
# get SDK version to perform different actions due to /data/app layout changes
sdkver=`getprop ro.build.version.sdk`;
New:
# get SDK version to perform different actions due to /data/app layout changes
sdkver=`grep "ro.build.version.sdk" /system/build.prop | cut -d\= -f2`;
# abort if failed to get SDK version
if [ ! "$sdkver" ]; then
abort=1;
logbuff echo -ne "\n\x20* -- SDK version unknown";
fi;
As a cosmetic change since /su/su.d is an option:
Code:
Original:
# chmod -R 755 /system/etc/init.d /system/su.d
New:
# chmod -R 755 /system/etc/init.d /system/su.d /su/su.d
Finally, an app that was notbeing optimized in the Super GApps package was Google Earth and with the Motorola rom, some of their apps like their camera, gallery, Moto Voice are updated from the play store; so I made this change:
Code:
Original:
for i in $(ls /data/app/ | grep -E '^com.android|^com.google.android|^com.chrome'); do
New:
for i in $(ls /data/app/ | grep -E '^com.android|^com.google.android|^com.google.earth|^com.chrome|^com.motorola'); do
Interestingly, SafetyNet still passes on this ROM after integrating the GApps (I also had some things in /system/xbin before discovering /su/xbin and SafetyNet didn't care about that either.)
Last comment: The forcerebuild for apps like Calendar and keyboard/inputmethod apps where runtime-permissions.xml is deleted causes all apps that need location permission to require that to be set again, some apps like Call Recorder by Skavalex lost all their permissions; yet other apps seemed to have their permissions restored from somewhere (like Google keyboard.) Anyway, not a deal breaker, just thought I'd mention it.
Thanks for your work on this, it saves almost 500mb in data after integration with my set of GApps and Moto Apps!