yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Acid0057:
So you know I'm in Ontario Canada using cm 11 nightly gt-i9100. Just if that info helps troubleshoot. Still no FC on GPS here. Someone mentioned that it could also be location and account dependant. I also let Google do its full tracking. WiFi cell tower and all.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Android Software Development] aamadorj:
After updating GPS to 7.5.71 version using Lollipop Base Gapps Package, my N5 started to show GPS FC when location was on, just like many people has reported. So I installed previous GPS that was working fine on my device (7.5.66) and forget about the weird issue. But yesterday afternoon GPS updated automatically so the issue returned.

I tried to uninstall the GPS 7.5.71 update but the "uninstall updates" button was grey out. After searching for a while, I found removing "Android Device Manager" from administrators restored the "uninstall updates" button functionality.
[Android Software Development] Deltadroid:
So we both allow all tracking (in account history settings) and we both don't get fc's. I wonder if that is coincidence.
[Android Software Development] Deltadroid:
I'm using all the add-ons except books, keyboard, messenger, movies, music, and newsstand. Although, just the "standard" add-ons should be enough. Perhaps also the Play Games addon, since that also shows up in Google Play Services settings.
[Android Software Development] Deltadroid:
That is a good thing to know about the device manager preventing uninstall of GPS.
[Android Software Development] adrman:
I know there's been some speculation on the exclusion of Play Games being the cause of the fc, but on my stock shamu, I have Play Games 2.3.10 frozen via TiBu and I've had no problems with GPS 7.5.71.

---------- Post added at 09:23 AM ---------- Previous post was at 09:16 AM ----------

@Deltadroid Looks like there might be a fix
[Android Software Development] Deltadroid:
Excellent find!

https://github.com/temasek/android_libcore/commit/4d46de25bdb6d3b8150612a49849e251dcfcb035

Thanks. So, this explains why some ROMs have this problem and others do not. It's a bug in the optimized code.
[Android Software Development] DFault:
Do I understand correctly that ROMs with the Temasek source will have this issue unless they start using newer code? And the ROMs using a different source should be ok?

Edit: Forgive me if this makes no sense, I am trying to learn alot, I am bound to make some mistakes...
[Android Software Development] Deltadroid:
I think the problem depends on which compiler is used to build the ROM and also perhaps the chipset of the device. The patch removes an optimization from the source code that some compilers are not able to build correctly.
[Android Software Development] Acid0057:
Could be just wanted to help with my setup.

Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
[Android Software Development] Deltadroid:
It was just a coincidence. :)

The reason why both of our devices work with latest version Google Play Services 7.5.x is because both of our ROMs were built with a compiler that is not affected by an optimization bug in libcore.
[Android Software Development] head_banger:
Person I know with stock moto g phone is also getting fc of services
[Android Software Development] Deltadroid:
If the stock rom was built by gcc 4.9, then it would have the same problem.

The problem does not affect ROMs built with gcc 4.8.
[Android Software Development] head_banger:
You are right

FIX FOR GAPPS : http://xdaforums.com/showthread.php?p=60996183

So it came from toolchains after all..

Envoyé de mon Nexus 4 avec XDA Forums

---------------

Admin Note: this thread has a dedicated questions and answers section which you can access here -->.
[Android Software Development] GXGOW:
I haven't had any problems with GPS force closing either. The only thing that's crashing is the latest version of Google Search, which always crashes on launchers other than GEL. Clearing data/cache didn't work, so I went back to 2 versions earlier.

Sent from my LG-V500 running CM12.1
[Android Software Development] galen2:
Google search works for me with nova launcher 4 without fc
[Android Software Development] Deltadroid:
Same here. I've never had a FC with Google Search.
[Android Software Development] ettore88:
Hi guys!!!Just a question.If i installed all addon...I would have stock gapps?THX in advance!!!(all addon=stock package?)
[Android Software Development] Deltadroid:
Yes, plus more. Most "stock" packages just install one dpi version, even if it's not the correct one for your device. These add-ons will read build.prop and install the correct dpi version.
[Android Software Development] ettore88:
Many thx Delta!!!Great work;)
[Android Software Development] head_banger:
Quick fix for Play Services in the meanwhile:

https://www.androidfilehost.com/?fid=23991606952610917

Credits: temasek and txuki2005
[Android Software Development] Xemidra:
What does this fix do ?
[Android Software Development] head_banger:
Stops FC's on some ROMs not compatible with the new google services, replaces two files in tmp and lib
[Android Software Development] jnetode:
Will it work on CM11?
[Android Software Development] head_banger:
Try it :p
[Android Software Development] jnetode:
Hummmm, hangs on opening animation. Did not work. :(

Thanks anyway!
[Android Software Development] head_banger:
You tried rebooting again
[Android Software Development] jnetode:
Yeah. Did not work. :(
[Android Software Development] fluffi444:
Same here. Stuck at CM Bootlogo.
[Android Software Development] Steph310:
Maybe new Google photos addon replaces stock gallery? ;)

Thanks for your work and this nice gapps! :thumbup:
[Android Software Development] Deltadroid:
I was just thinking that ;) Would it be a suitable replacement? I havent tested it yet. :)
[Android Software Development] Steph310:
Yes nice! Viewer, editor, share,... a suitable replacement! ;)
[Android Software Development] Deltadroid:
Chrome, Inbox, Photos

New Addon:

Google Photos version 1.0.0.94391081-26972

Google Photos addon for 5.0.2+: gapps-lp-google-photos-20150528-1-signed.zip (replaces stock Gallery)

Updated Addons:

Google Chrome has been updated to version 43.0.2357.78-2357078

Google Chrome addon for 4.4.4: gapps-kk-google-chrome-20150528-1-signed.zip (replaces stock web browser)

Google Chrome addon for 5.0.2+: gapps-lp-google-chrome-20150528-1-signed.zip (replaces stock web browser)

Binary files gapps-kk-google-chrome-20150428-1-signed/system/app/GoogleChrome.apk and gapps-kk-google-chrome-20150528-1-signed/system/app/GoogleChrome.apk differ
Binary files gapps-kk-google-chrome-20150428-1-signed/system/lib/libchrome.so and gapps-kk-google-chrome-20150528-1-signed/system/lib/libchrome.so differ
Binary files gapps-kk-google-chrome-20150428-1-signed/system/lib/libchromium_android_linker.so and gapps-kk-google-chrome-20150528-1-signed/system/lib/libchromium_android_linker.so differ

Binary files gapps-lp-google-chrome-20150428-1-signed/system/app/GoogleChrome/GoogleChrome.apk and gapps-lp-google-chrome-20150528-1-signed/system/app/GoogleChrome/GoogleChrome.apk differ
Binary files gapps-lp-google-chrome-20150428-1-signed/system/app/GoogleChrome/lib/arm/libchrome.so and gapps-lp-google-chrome-20150528-1-signed/system/app/GoogleChrome/lib/arm/libchrome.so differ
Binary files gapps-lp-google-chrome-20150428-1-signed/system/app/GoogleChrome/lib/arm/libchromium_android_linker.so and gapps-lp-google-chrome-20150528-1-signed/system/app/GoogleChrome/lib/arm/libchromium_android_linker.so differ

Google Inbox has been updated to version 1.8-94231013-5623029

Google Inbox addon for 5.0.2+: gapps-lp-google-inbox-20150528-1-signed.zip (replaces stock email client)

Binary files gapps-lp-google-inbox-20150506-1-signed/system/app/GoogleInbox/GoogleInbox.apk and gapps-lp-google-inbox-20150528-1-signed/system/app/GoogleInbox/GoogleInbox.apk differ
Binary files gapps-lp-google-inbox-20150506-1-signed/system/app/GoogleInbox/lib/arm/libindexeddb.so and gapps-lp-google-inbox-20150528-1-signed/system/app/GoogleInbox/lib/arm/libindexeddb.so differ
[Android Software Development] ChungHung.Chen:
Will Google photo be available for KitKat(CM11) ??
[Android Software Development] Deltadroid:
Play Games

I've created new Kitkat and Lollipop addons for Google Play Games version 2.2.09-1680149-006

Google Play Games addon for 4.4.4: gapps-kk-google-games-20150216-1-signed.zip

Google Play Games addon for 5.0.x: gapps-lp-google-games-20150216-1-signed.zip

Also, Google has just released their LCD 240 specific version of Google Play Services (version 6.7.74_1723905-434). So, I have added this back into the Lollipop Gapps Base package. This change only affects devices with LCD 240 resolution. Google also releases a universal DPI Google Play Services version, but that will use up more room on the system partition. These gapps base packages support all resolution devices and install the best recommened version of Google Play Services for every device that it is installed on.

Lollipop Base Gapps package for 5.0.x: gapps-lp-base-20150216-1-signed.zip

diff -ru gapps-lp-base-20150213-1-signed gapps-lp-base-20150216-1-signed
diff -ru gapps-lp-base-20150213-1-signed/install-optional.sh gapps-lp-base-20150216-1-signed/install-optional.sh
--- gapps-lp-base-20150213-1-signed/install-optional.sh	2015-02-14 00:05:26.000000000 +0100
+++ gapps-lp-base-20150216-1-signed/install-optional.sh	2015-02-17 00:03:40.000000000 +0100
@@ -37,7 +37,7 @@
cp -f /tmp/gms/0/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk /system/priv-app/PrebuiltGmsCore/
elif [ $LCD == 240 ]; then
echo "LCD 240 detected."
- cp -f /tmp/gms/0/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk /system/priv-app/PrebuiltGmsCore/
+ cp -f /tmp/gms/4/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk /system/priv-app/PrebuiltGmsCore/
elif [ $LCD == 320 ]; then
echo "LCD 320 detected."
cp -f /tmp/gms/6/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk /system/priv-app/PrebuiltGmsCore/
Only in gapps-lp-base-20150216-1-signed/optional/gms: 4
[Android Software Development] Deltadroid:
Google Calendar Update

Android 5.1 Gapps is finally starting to roll out. Here is an update for Google Calendar version 5.1-1739691-2015020921 for Lollipop and Kitkat.

Google Calendar addon for 4.4.4: gapps-kk-google-calendar-20150225-1-signed.zip

Google Calendar addon for 5.0.x: gapps-lp-google-calendar-20150225-1-signed.zip

Notes:

See more events at a glance with 7-day week view and pinch-to-zoom [phones]

Add Google Drive files to events. Drive will even check if everyone can open them.

Control whether birthdays from Google+ are shown in settings. You'll also see the same changes on the web next week.

A new option to show week numbers in settings.

Import .ics files sent to you in Gmail and other apps
[Android Software Development] Deltadroid:
Youtube Update

Youtube addon for lollipop updated to version 10.08.52-100852130

Youtube addon for 5.0.x: gapps-lp-google-youtube-20150228-1-signed.zip

This package can be flashed on top of the previous version to update. No wiping necessary.
[Android Software Development] Deltadroid:
Google Talkback Update

Google Talkback addon updated to version 4.1.0-40100005 for kitkat and lollipop.

Google Talkback addon for 4.4.4: gapps-kk-google-talkback-20150305-1-signed.zip

Google Talkback addon for 5.0.x: gapps-lp-google-talkback-20150305-1-signed.zip

These packages can be installed on top of the previous version to update. No wiping necessary.
[Android Software Development] Deltadroid:
Youtube Update

Google Youtube addon updated to version 10.08.53-100853130

Google Youtube addon for 5.0.x: gapps-lp-google-youtube-20150305-1-signed.zip

Binary files gapps-lp-google-youtube-20150228-1-signed/system/app/Youtube/Youtube.apk and gapps-lp-google-youtube-20150305-1-signed/system/app/Youtube/Youtube.apk differ

This package can be installed on top of the previous version to update. No wiping necessary.
[Android Software Development] Deltadroid:
Calendar and Maps

Google Calendar addon has been updated to version 5.1-1768105-2015020931 for kitkat and lollipop.

This update fixes the "unable to launch event" bug that showed up in the first Calendar 5.1 update.

Google Maps addon has been updated to version 9.5.0-905008124 for kitkat and lollipop.

Google Calendar addon for 4.4.4: gapps-kk-google-calendar-20150306-1-signed.zip

Google Maps addon for 4.4.4: gapps-kk-google-maps-20150306-1-signed.zip

Google Calendar addon for 5.0.x: gapps-lp-google-calendar-20150306-1-signed.zip

Google Maps addon for 5.0.x: gapps-lp-google-maps-20150306-1-signed.zip

Note: These packages can be installed on top of the previous version to update. No wiping necessary.
[Android Software Development] Deltadroid:
I'm very happy that Google has decided to separate out their packages for Google Contacts, Google Calculator, and Google Clock for Android 5.1+. I will be making additional gapps add-ons for Google Clock, Google Contacts, and Google Calculator that will replace the stock versions as soon as gapps 5.1 is available.
[Android Software Development] Deltadroid:
Youtube Update

Google Youtube addon updated to version 10.09.56-100956130 for lollipop.

Google Youtube addon for 5.0.x: gapps-lp-google-youtube-20150307-1-signed.zip

This can be installed on top of the previous version to update. No wiping necessary.
[Android Software Development] Cal:
This is what makes everything understandable and very clear! Thank you Deltadroid !! :D

"Installation procedure for switching versions of gapps:

1) Reboot into recovery

2) Format /system (no other wipes needed)

3) Install ROM

4) Install new gapps packages

5) Install other optional packages (supersu, custom kernel, etc.)

6) Reboot recovery to Android

Note: Notice how manually formatting the /system partition removes all of the currently installed gapps backup scripts in /system/addon.d/ and prevents them from executing. Preventing the currently installed gapps backup scripts in /system/addon.d/ from executing stops them from interfering with the installation of the new version of gapps. This procedure is only necessary if the currently installed version of gapps contains backup scripts that dont match the backup scripts of the new version of gapps. If you are not sure, its best to just follow this procedure one time to make sure its a clean installation. You will not lose any personal settings or data when manually formatting the /system partition because all settings and data are stored on other partitions, which are not touched.

Excellent explanation!! Clear as glass!

Cal
[Android Software Development] Deltadroid:
Google Maps

Google Maps has been updated to version 9.5.1-905100124 for kitkat and lollipop.

Google Maps addon for 4.4.4: gapps-kk-google-maps-20150311-1-signed.zip

Google Maps addon for 5.0.x: gapps-lp-google-maps-20150311-1-signed.zip
[Android Software Development] Deltadroid:
Google Drive

Google Drive has been updated to version 2.2.083.22.34-50832234 for lollipop.

Google Drive addon for 5.0.x: gapps-lp-google-drive-20150311-1-signed.zip
[Android Software Development] Deltadroid:
I forgot to update Facelock in the last 5.1 gapps package (20150311-1), but there is also a new version of Google Play Services (7.0.93) rolling out right now. So, I will update all of the base packages at the same time, as soon as all of the versions of Google Play Services are available for packaging.
[Android Software Development] Deltadroid:
The gapps add-ons for 5.0.x will also work for 5.1.x, but the add-ons specifically for 5.1.x won't work for 5.0.x. I'm going to label the add-ons as "kk" for kitkat or "lp" for lollipop if they don't require a specific version of kitkat or lollipop. If the add-ons require a specific version of Android, then I will label them as 444, 502, or 510 and so forth.
[Android Software Development] Deltadroid:
Google Plus Addon

Google Plus addon for lollipop has been updated to version 5.1.0.88070530-413753253

Google Plus addon for 5.0.x: gapps-lp-google-plus-20150312-1-signed.zip

Binary files gapps-lp-google-plus-20150212-2-signed/system/app/GooglePlus/GooglePlus.apk and gapps-lp-google-plus-20150312-1-signed/system/app/GooglePlus/GooglePlus.apk differ
Binary files gapps-lp-google-plus-20150212-2-signed/system/app/GooglePlus/lib/arm/libcronet.so and gapps-lp-google-plus-20150312-1-signed/system/app/GooglePlus/lib/arm/libcronet.so differ
Binary files gapps-lp-google-plus-20150212-2-signed/system/app/GooglePlus/lib/arm/libmoviemaker-jni.so and gapps-lp-google-plus-20150312-1-signed/system/app/GooglePlus/lib/arm/libmoviemaker-jni.so differ
Binary files gapps-lp-google-plus-20150212-2-signed/system/app/GooglePlus/lib/arm/libphotoeditor_native.so and gapps-lp-google-plus-20150312-1-signed/system/app/GooglePlus/lib/arm/libphotoeditor_native.so differ
Binary files gapps-lp-google-plus-20150212-2-signed/system/app/GooglePlus/lib/arm/libwebp_android.so and gapps-lp-google-plus-20150312-1-signed/system/app/GooglePlus/lib/arm/libwebp_android.so differ
[Android Software Development] Deltadroid:
Google photo is dependent on a specific version of libcronet.so and it would conflict with several other applications that are also dependent on the same library but different version. In kitkat, both versions of the same library would both need to be in /system/lib/libcronet.so, which means one version of libcronet would get overwritten. It might be possible to mix libraries from various applications, but that seems very difficult to maintain.
[Android Software Development] ChungHung.Chen:
Thanks for the information, I'll try to install from play store which will install library in separated space to prevent conflict. If this method works, would you mind to mention it for KitKat users in release post?
[Android Software Development] Gbooye:
does FC means ****up or what ??
[Android Software Development] Pariahnoble:
Force closes
[Android Software Development] Deltadroid:
Webview

Google Webview has been updated to version 43.0.2357.86-2357086

Google Webview addon for 5.0.2+: gapps-lp-google-webview-20150531-1-signed.zip

Note: This addon no longer replaces the stock AOSP/CM webview application. The Google WebView addon is meant to be used in combination with the stock webview application, if your ROM supports it. This should fix any force closes that were happening when the Google Webview was attempting to replace the stock webview application.

diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-lp-google-webview-20150513-1-signed/META-INF/com/google/android/updater-script gapps-lp-google-webview-20150531-1-signed/META-INF/com/google/android/updater-script
--- gapps-lp-google-webview-20150513-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
+++ gapps-lp-google-webview-20150531-1-signed/META-INF/com/google/android/updater-script	2008-02-29 02:33:46.000000000 +0100
@@ -6,7 +6,7 @@
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/mount", "-o", "remount,rw", "/system", "/system");
show_progress(1, 15);
-delete_recursive("/system/app/GoogleWebview","/system/app/webview");
+delete_recursive("/system/app/GoogleWebview");
package_extract_dir("system", "/system");
show_progress(1, 15);
ui_print("Setting metadata.");
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-lp-google-webview-20150513-1-signed/system/addon.d/94-gapps-webview.sh gapps-lp-google-webview-20150531-1-signed/system/addon.d/94-gapps-webview.sh
--- gapps-lp-google-webview-20150513-1-signed/system/addon.d/94-gapps-webview.sh	2008-02-29 02:33:46.000000000 +0100
+++ gapps-lp-google-webview-20150531-1-signed/system/addon.d/94-gapps-webview.sh	2008-02-29 02:33:46.000000000 +0100
@@ -34,7 +34,6 @@
# Stub
;;
post-restore)
- rm -rf /system/app/webview
chmod 755 /system/app/GoogleWebview
chmod 755 /system/app/GoogleWebview/lib
chmod 755 /system/app/GoogleWebview/lib/arm
Binary files gapps-lp-google-webview-20150513-1-signed/system/app/GoogleWebview/GoogleWebview.apk and gapps-lp-google-webview-20150531-1-signed/system/app/GoogleWebview/GoogleWebview.apk differ
Binary files gapps-lp-google-webview-20150513-1-signed/system/app/GoogleWebview/lib/arm/libwebviewchromium.so and gapps-lp-google-webview-20150531-1-signed/system/app/GoogleWebview/lib/arm/libwebviewchromium.so differ
[Android Software Development] Deltadroid:
I like how the latest Google Search changes the Google Now launcher's drawer with the five most recently used apps on top.
[Android Software Development] Deltadroid:
Your rom must have the following commit if you want to be able to utilize the webview add-on. If you use cm12.1, then your rom already has this capability.

http://review.cyanogenmod.org/#/c/97919/
[Android Software Development] TheByteSmasher:
Cleanup package?

Hey [MENTION=5227588]Deltadroid[/MENTION] can you make a cleanup package to remove all traces of all modular gapps? With dirty flashing roms, as intended, previously installed gapps stay installed, which is great except when I want CM's package, it won't install if the gapps that replaces it was previously installed eg: Play music over Eleven or Aosp keyboard etc.. And/Or can you point me to the persistance/init.d file so I can remove the reference to the gapps one so a dirty flash will add the apps I want? Thanks
[Android Software Development] Deltadroid:
The easiest solution is this:

1) Delete the associated backup shell scripts of the gapps add-ons that you want to remove (located in /system/addon.d/)

2) reboot to recovery

3) dirty flash rom

4) reboot to system

When you remove the associated backup script and dirty flash your rom to update, that particular gapps add-on will be removed and any applications that it replaced will be restored.
[Android Software Development] ChasingShadows:
In my opinion its much easier to do it that way:

1) Reboot to recovery

2)wipe /system

3)flash rom

4) reboot to system
[Android Software Development] Deltadroid:
Yes, your way is best if you want everything removed to start from scratch. The other way I mentioned is when you only want to remove some of the add-ons.
[Android Software Development] ChasingShadows:
No, you don't understand ... I just wipe /system not /data
[Android Software Development] Deltadroid:
I should probably rephrase what I said. I meant that wiping the system partition and then dirty flashing the ROM is good when you want to start from scratch with installing all the gapps packages, but nothing will be lost that is installed from the play store on the data partition during that process.

Wiping the system partition before dirty flashing the ROM removes all the backup scripts for gapps in /system/addon.d which prevents all of the gapps packages from being restored.

Although, sometimes I only want to remove one or two add-ons and not reinstall all the rest of the gapps over, so that is when I would manually remove only the backup scripts for the gapps that I don't want to be restored after dirty flashing ROM updates.
[Android Software Development] ASHURiCAN:
I also like it :) but I think Google should let the user choose between vertical and horizontal sliding... What you think? Maybe for further release.
[Android Software Development] Beyaz66:
Shouldn't this

if good_ffc_device && [ -e /system/etc/permissions/android.hardware.camera.front.xml ]; then
echo "Installing face detection support"

be

if [COLOR="red"]$[/COLOR]good_ffc_device && [ -e /system/etc/permissions/android.hardware.camera.front.xml ]; then
echo "Installing face detection support"

?

---------- Post added at 08:52 ---------- Previous post was at 08:40 ----------

See attached script. Rename its extension to .sh and execute.