yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Deltadroid:
Marshmallow Base Gapps (MRA58K)

Ive added pre-extracted library support back into Google Play Services while keeping the original Google Play Services apk unaltered. Hopefully, this will solve the Google Play Services problems.

Marshmallow Base Gapps package for 6.0.0: gapps-600-base-20151009-2-signed.zip

diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-600-base-20151009-1-signed/scripts/install-core-0.sh gapps-600-base-20151009-2-signed/scripts/install-core-0.sh
--- gapps-600-base-20151009-1-signed/scripts/install-core-0.sh	2008-02-29 02:33:46.000000000 +0100
+++ gapps-600-base-20151009-2-signed/scripts/install-core-0.sh	2008-02-29 02:33:46.000000000 +0100
@@ -2,7 +2,6 @@

LCD=$(grep ro.sf.lcd_density /system/build.prop | cut -d "=" -f 2);

-mkdir /system/priv-app/PrebuiltGmsCore
#if [ ! "$LCD" == 240 ] && [ ! "$LCD" == 320 ] && [ ! "$LCD" == 480 ]; then
if [ ! "$LCD" == 320 ] && [ ! "$LCD" == 480 ]; then
echo "Installing default."
diff -ru '--exclude=CERT.RSA' '--exclude=CERT.SF' '--exclude=MANIFEST.MF' gapps-600-base-20151009-1-signed/system/addon.d/70-gapps.sh gapps-600-base-20151009-2-signed/system/addon.d/70-gapps.sh
--- gapps-600-base-20151009-1-signed/system/addon.d/70-gapps.sh	2008-02-29 02:33:46.000000000 +0100
+++ gapps-600-base-20151009-2-signed/system/addon.d/70-gapps.sh	2008-02-29 02:33:46.000000000 +0100
@@ -29,6 +29,19 @@
priv-app/GoogleServicesFramework/GoogleServicesFramework.apk
priv-app/Phonesky/Phonesky.apk
priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk
+priv-app/PrebuiltGmsCore/lib/arm/libAppDataSearch.so
+priv-app/PrebuiltGmsCore/lib/arm/libconscrypt_gmscore_jni.so
+priv-app/PrebuiltGmsCore/lib/arm/libdirect-audio.so
+priv-app/PrebuiltGmsCore/lib/arm/libgcastv2_base.so
+priv-app/PrebuiltGmsCore/lib/arm/libgcastv2_support.so
+priv-app/PrebuiltGmsCore/lib/arm/libgmscore.so
+priv-app/PrebuiltGmsCore/lib/arm/libgms-ocrclient.so
+priv-app/PrebuiltGmsCore/lib/arm/libjgcastservice.so
+priv-app/PrebuiltGmsCore/lib/arm/libleveldbjni.so
+priv-app/PrebuiltGmsCore/lib/arm/libNearbyApp.so
+priv-app/PrebuiltGmsCore/lib/arm/libsslwrapper_jni.so
+priv-app/PrebuiltGmsCore/lib/arm/libwearable-selector.so
+priv-app/PrebuiltGmsCore/lib/arm/libWhisper.so
priv-app/SetupWizard/SetupWizard.apk
usr/srec/en-US/c_fst
usr/srec/en-US/clg
@@ -99,6 +112,8 @@
chmod 755 /system/priv-app/GoogleServicesFramework
chmod 755 /system/priv-app/Phonesky
chmod 755 /system/priv-app/PrebuiltGmsCore
+ chmod 755 /system/priv-app/PrebuiltGmsCore/lib
+ chmod 755 /system/priv-app/PrebuiltGmsCore/lib/arm
chmod 755 /system/priv-app/SetupWizard
chmod 755 /system/usr/srec
chmod 755 /system/usr/srec/en-US
Only in gapps-600-base-20151009-2-signed/system/priv-app: PrebuiltGmsCore
[Android Software Development] Rock-86:
It's much better now. Google Play Services crashes, but I ignored crash messages, added my Connections, added my Google Account and give manualy all permissions for Google Play Services and Contacts. Play Store is working now, and Google Play Services are not crashing after giving them all permissions manualy.
[Android Software Development] Deltadroid:
Thank you. I'm a little confused on the permission problem. What permissions do you need to change?

Edit: the permission problem you experience seems to be related to having an older recovery. If possible, try using the latest version of TWRP.
[Android Software Development] Rock-86:
APP permissions in Apps Settings. :) This is new function which came with 6.0.

EDIT: I am using the latest version of TWRP for my phone.
[Android Software Development] Deltadroid:
Thanks, I understand now. This is a new application permissions issue with Marshmallow. This issue is not related to flashing the files with your recovery. :)

There will need to be an easier way to add Google Play Services and Google Contacts Sync to the list of allowed applications. Perhaps this can be fixed on the ROM side.

Edit:

At least the "stuck at checking connection" problem is fixed now and the marshmallow base gapps package is usable after manually fixing the app permissions for Google Play Services and Google Calendar Sync.

Thanks for helping me test this and come up with a working solution [MENTION=6989802]Rock-86[/MENTION]
[Android Software Development] Chlorophyll:
Waiting for lollipop gapps pack update.
[Android Software Development] ikslawlok:
Google Play Services constantly crashes

Shamu (AOSP Build)

TWRP 2.7.1

Here's how I have installed gapps-600-base-20151009-2-signed.zip
[Android Software Development] Deltadroid:
could you please try the same installation procedure using the previous gapps base 20151009-1 (without pre extracted libs).

http://xdaforums.com/showthread.php?p=63220698
[Android Software Development] ikslawlok:
Log : Pastebin
[Android Software Development] Deltadroid:
I see a bunch of selinux denials in your log. Can you try the latest 20151009-2 base gapps with your rom in permissive mode?
[Android Software Development] ikslawlok:
OK

---------- Post added at 03:31 PM ---------- Previous post was at 03:30 PM ----------

I do not know how to do that
[Android Software Development] LeftyGR:
In settings/about, there should be a listing for selinux mode. If it's enforcing, there is a selinux switch app in my signature.
[Android Software Development] ikslawlok:
Thank you, but I am not root ;)

Envoyé de mon Nexus 6 en utilisant Tapatalk
[Android Software Development] LeftyGR:
Well that'd be the problem. These are for custom/not stock ROMs and u must be rooted to flash anything.
[Android Software Development] androcraze:
You SHOULDN'T have to be rooted to flash GApps; flashing and root privileges are entirely different things.

You quoted my process for getting GApps working on Marshmallow for my Nexus 5. I'll detail my setup:

- Nexus 5

- TWRP 2.8.7.1

- UntouchedAOSP 6.0 (a very RAW, unmodified AOSP build)

For my final (current) setup, I flashed in the following order:

- Booted to Recovery

- Wiped everything but internal storage

- Flashed UntouchedAOSP ROM

- Flashed BusyBox Stericson version (http://xdaforums.com/showthread.php?t=1929852)

- Flashed Qualcom TimeService (Lollipop | Marshmallow)

- Flashed ElementalX 6.01 Kernel

- Flashed SuperSU 2.5.2

- Rebooted to System

- Launched SuperSU, clicked "OK" to "persistent" feature

- Rebooted to Recovery

- Followed previously-outlined GApps install procedure

I've found the reboots are critical; some folks have luck with mounting and unmounting, but reboots are easier for me.

You can PROBABLY skip the BusyBox and TimeService install. For the custom kernel and SuperSU installs I'm guessing "no" (probably not required), but I'm not certain....

Marshmallow is just so new, with so many changes from Lollipop.... It's redefining how we handle flashing and add-on management. I also think it's going to change how AOSP ROMs are built: WebView and GPS now require code changes to work better with Google products. Rooting requires Kernel or significant boot.img modifications. The new Permissions model is making automated installs impossible (SetupWizard is crippled with a "chicken vs. egg" dilemma). Google Pay will not work on a rooted system.

Hopefully you'll get GApps running; otherwise, you may need to look at what's working for others and possibly change your approach.

EDIT: Switched location for "Launched SuperSU"
[Android Software Development] Deltadroid:
In order to fix this permission problem with gapps and Android 6.0, some changes need to be made to the App Ops code and Google play services must be added to the list of allowed services by default.
[Android Software Development] androcraze:
Do you mean at the GApps level, by the user, or by the ROM creator?

Getting ROM creators to change their code isn't practical.
[Android Software Development] Deltadroid:
It will need to be changed on the rom most likely. That is how AOSP allows default permissions for its system applications.

The code that needs to be changed is in this file:

frameworks_base

services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java
[Android Software Development] androcraze:
When I change permissions for an app, they're stored somewhere on the device. Those can't get pushed or modified?
[Android Software Development] Deltadroid:
The marshmallow gapps work now if you can get to the app op settings to allow Google play services, but this change in the rom code would allow Google play services by default on a fresh install and fix the problems with Google's setup wizard.
[Android Software Development] androcraze:
I'm happy just bypassing the Wizard. My earlier process worked flawlessly.

Some ROMs may modify accordingly.... The un-modified (raw) AOSP ones won't.

I'd recommend a "Plan B" so folks can manually install. Just include a provision to bypass the Wizard, and I'm happy.
[Android Software Development] Deltadroid:
Yes, if you don't mind bypassing Google's setup wizard and manually allowing Google play services in app ops, then it is fine.
[Android Software Development] ckret:
i am not really sure but i think it should be included in "mac_permissions.xml" in android_external_sepolicy
[Android Software Development] ts_mpls:
Sorry if this is a silly question but does anyone know why Play Services hasn't been updated for LP arm devices? 8.1.18 is out for 6.0+, x86, and arm64, but arm is still on 8.1.15.
[Android Software Development] Deltadroid:
Google play services 8.1.18 (240 dpi) is still unavailable to complete the package.
[Android Software Development] ts_mpls:
Is that the only one? My phone (LG G2 D801) has -238 installed and according to this thread (link) 8.1.15 is still the most recent version.
[Android Software Development] Deltadroid:
Actually, I was wrong. We are missing all of the arm 32bit versions of Google play services for lollipop and kitkat.

The only versions I see available for Google play services 8.1.18 are for 32bit arm devices running marshmallow and 64 bit devices running lollipop.

We need these to make a lollipop package:

230

234

236

238
[Android Software Development] ts_mpls:
Ok cool, just to glad to hear it wasn't just me being crazy. ;)
[Android Software Development] Deltadroid:
Gmail, Keyboard

Google Gmail has been updated to version 5.7.104875269.release-57011636

Google Gmail addon for 4.4.4: gapps-kk-google-gmail-20151012-1-signed.zip (replaces stock email client)

Google Gmail addon for 5.0.2+: gapps-lp-google-gmail-20151012-1-signed.zip (replaces stock email client)

Binary files gapps-kk-google-gmail-20150918-1-signed/system/app/Gmail2.apk and gapps-kk-google-gmail-20151012-1-signed/system/app/Gmail2.apk differ

Binary files gapps-lp-google-gmail-20150918-1-signed/system/app/PrebuiltGmail/PrebuiltGmail.apk and gapps-lp-google-gmail-20151012-1-signed/system/app/PrebuiltGmail/PrebuiltGmail.apk differ

Google Keyboard has been updated to version 4.1.23043.2297020-23043

Google Keyboard addon for 4.4.4: gapps-kk-google-keyboard-20151012-1-signed.zip (replaces stock keyboard)

Google Keyboard addon for 5.0.2+: gapps-lp-google-keyboard-20151012-1-signed.zip (replaces stock keyboard)

Binary files gapps-kk-google-keyboard-20150701-1-signed/system/app/LatinIMEGoogle.apk and gapps-kk-google-keyboard-20151012-1-signed/system/app/LatinIMEGoogle.apk differ

Binary files gapps-lp-google-keyboard-20150701-1-signed/system/app/LatinIMEGoogle/LatinIMEGoogle.apk and gapps-lp-google-keyboard-20151012-1-signed/system/app/LatinIMEGoogle/LatinIMEGoogle.apk differ
[Android Software Development] Deltadroid:
The permission problem with installing gmscore has to do with the new App Ops permissions in Marshmallow. App Ops needs to recognize applications signed by Google in order to trust them on the system. Are there also changes required in the selinux policy?
[Android Software Development] bratboo:
@ Deltadroid

Thanks for keeping the thread updated. I already have an update for photos on LP since 3 days ago. Hope you can also update it.

Many Thanks!
[Android Software Development] md07:
i have a question: Google search add on for lollipop have feature OK Googke everywhere ? I installed this app on Google Play, but not have this
[Android Software Development] Deltadroid:
"ok Google" everywhere is only officially supported by Google Search with the Google Launcher.
[Android Software Development] Deltadroid:
AFAIK, The latest version of Google photos was updated on 20151005.
[Android Software Development] ooolti:
[MENTION=5227588]Deltadroid[/MENTION] Will Google Search add-on work on marshmallow? (Device-Nexus2013)
[Android Software Development] Deltadroid:
Yes, the lollipop Google search add-on should work on marshmallow. In fact, I think all the lollipop add-ons will work with marshmallow.

Edit:

The only difference is that you may have to manually give each app permission in app ops.
[Android Software Development] bratboo:
Hi! Thanks for the reply. I got Oct 8 update. Maybe I got the new update before you got one? I'll just wait then. Again thanks! :)
[Android Software Development] MauroRTR:
it's the same version
[Android Software Development] bratboo:
Weird, coz When i flashed the oct 5 update the version is 1.6.0 and not 1.6.1. Anyways I'll try to redownload the link and flash it. :)
[Android Software Development] zephyrus17:
I had experienced the same. Still receiving update notification from playstore.
[Android Software Development] Deltadroid:
[MENTION=2227873]bratboo[/MENTION]

I see the problem. I posted an update but I forgot to update the op.

This is the latest photos (20151009-1). I will fix the link on the op. Sorry about that.

http://xdaforums.com/showthread.php?p=63221219
[Android Software Development] MauroRTR:
Photos 1.7.0.105329634-92092 (All DPI)

Photos 1.7.0.105329634-92094 (240 DPI)
[Android Software Development] Deltadroid:
Double post.
[Android Software Development] Deltadroid:
Chrome

Google Chrome has been updated to version 46.0.2490.76-249007600 for kitkat and version 46.0.2490.76-249007601 for lollipop.

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

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

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

Binary files gapps-lp-google-chrome-20150916-1-signed/system/app/GoogleChrome/GoogleChrome.apk and gapps-lp-google-chrome-20151015-1-signed/system/app/GoogleChrome/GoogleChrome.apk differ
Binary files gapps-lp-google-chrome-20150916-1-signed/system/app/GoogleChrome/lib/arm/libchromium_android_linker.so and gapps-lp-google-chrome-20151015-1-signed/system/app/GoogleChrome/lib/arm/libchromium_android_linker.so differ
[Android Software Development] saenanme:
Exchange services update:

http://www.apkmirror.com/apk/google-inc/exchange-services/

Thanks for your work

Regards
[Android Software Development] Deltadroid:
Yes, I've been debating on what to do with the exchange services update from marshmallow. With lollipop, the exchange services is version 6.5.x and with marshmallow the exchange services is version 5.0.x. It looks to me like Google downgraded exchange services in marshmallow because they were trying to save money on licensing fees.

I will create a separate exchange add-on for marshmallow using the 5.0.x version.

I recommend keeping exchange services version 6.5.x if you are using lollipop.
[Android Software Development] Chlorophyll:
Playstore new version out
[Android Software Development] JoeBear1975:
Still called PlayStore or did they actually rename it? Also, link?

---------- Post added at 05:47 PM ---------- Previous post was at 05:44 PM ----------

I'm getting lag that just started outta nowhere. No changes in settings or Synapse. Any ideas? Been back on here for less than 24 hours. Was Running fast & smooth, as always, but delaying in responses :(
[Android Software Development] Deltadroid:
Play Store

Google Play Store has been updated to version 5.10.29-80402900 for Kitkat, Lollipop, and Marshmallow base gapps packages.

Changelog: New Google Play logo

Kitkat Base Gapps package for 4.4.4: gapps-444-base-20151016-1-signed.zip

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

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

Marshmallow Base Gapps package for 6.0.0: gapps-600-base-20151016-1-signed.zip

Binary files gapps-444-base-20150917-1-signed/system/priv-app/Phonesky.apk and gapps-444-base-20151016-1-signed/system/priv-app/Phonesky.apk differ

Binary files gapps-502-base-20150915-1-signed/system/priv-app/Phonesky/Phonesky.apk and gapps-502-base-20151016-1-signed/system/priv-app/Phonesky/Phonesky.apk differ

Binary files gapps-511-base-20150915-1-signed/system/priv-app/Phonesky/Phonesky.apk and gapps-511-base-20151016-1-signed/system/priv-app/Phonesky/Phonesky.apk differ

Binary files gapps-600-base-20151009-2-signed/system/priv-app/Phonesky/Phonesky.apk and gapps-600-base-20151016-1-signed/system/priv-app/Phonesky/Phonesky.apk differ
[Android Software Development] Chlorophyll:
flashed latest gapps for lollipop but all my google apps were still not updated

playstore still shwing updates for google apps

i can update via playstore but for every google app i update phone wil reboot.so am not even dare to update via playstore all my google apps

waited nearly one month for gapps update but still apps were not updated

any alternative method to update my google apps...pls reply
[Android Software Development] LeftyGR:
Everything here is up to date, or is updated in a very swift manner. Check the version installed in settings/apps vs the version in play store claiming an update available.
[Android Software Development] saenanme:
New gmail version

http://www.apkmirror.com/apk/google-inc/gmail/gmail-5-7-105345578-release-7-android-apk-download/

Thanks

Regards
[Android Software Development] Deltadroid:
This was already updated.

http://xdaforums.com/showthread.php?p=63307698
[Android Software Development] saenanme:
But I flashed this package and one or two days later I saw that I had a new gmail version in google play.

I have checked that my installed version was not the same as this I have linked here ...

Regards

Note: my installed version is this:

http://www.apkmirror.com/apk/google-inc/gmail/gmail-5-7-104875269-release-android-apk-download/
[Android Software Development] Deltadroid:
5.7.1053 > 5.7.1048

The latest gmail add-on is updated to version 5.7.1053, which is the newest.

Edit:

Make sure to uninstall any updates that were downloaded from play store.
[Android Software Development] Deltadroid:
The problem is probably because some of these add-on packages are not designed to replace applications that already exist on the stock factory ROMs. In the future, I will start adding support for the add-ons to replace the stock factory versions of their counterparts. At the moment, these add-ons only support replacing stock CM/AOSP applications.

Although, on a stock ROM, I would not recommend replacing the stock core android gapps. I would recommend letting everything just automatically update itself on a stock ROM. Most gapps packages would not be replacing the core gapps correctly on a stock ROM anyways. The best version of the core gapps to use on a stock ROM is the version that comes with the stock ROM (ie; Google framework, libraries, etc.).
[Android Software Development] Chlorophyll:
@ deltadroid

sorry to mention am using RESURRECTION REMIX 5.1.1 LATEST version .am not using stock roms

wen i update thru playstore al of a sudden my phone reboots.thats y i wanna flash ur gapps pack but 2day after flashing ur latest gapps pack for 5.1.1. google apps were NOT updated.still am having 9 google app updates on playstore

POST UPDATED
[Android Software Development] JoeBear1975:
I always make a full nandroid backup no matter what I'm installing cause u never know
[Android Software Development] Deltadroid:
The base gapps package only updates the core gapps, Google play services, play store, contacts sync, calendar sync, face unlock.

Edit:

Make sure you don't still have a different gapps distribution flashed on your system. Follow the flashing procedure on the op that includes formatting the system partition to remove old gapps backup scripts (in /system/addon.d/) that could be interfering with your current gapps.
[Android Software Development] dingermtb:
Sounds like you only flashed the base package which is play services Play Store and other core apps what you need to do is download the app addons that you want from the Opie and before flashing any of this you should wipe dalvik system and cash to wipe out you're already installed Google Apps then you flash the base package then each app add on you want I love this package the best because essentially you can create your own Google gapps package

Sent from outside the 9 using my Exodus SGS3
[Android Software Development] YamazakiRobert:
[MENTION=5227588]Deltadroid[/MENTION]

the nexus has recived the 5.1.1 LMY48T update

http://www.androidpolice.com/2015/1...gs-android-6-0-marshmallow-nexus-ota-roundup/
[Android Software Development] Deltadroid:
Most of the core gapps are from the Nexus 7 2013 Wi-Fi factory image (razor). The latest razor version is LMY48M before it was updated to marshmallow. I think razor is not getting any more 5.1.1 factory updates since it has moved on to marshmallow.

The other parts of the base gapps packages are pulled from the Nexus 6 factory image (shamu). The latest shamu version is LMY48T, but there are no code changes in the parts that are being pulled to use in the base package. The shamu image is only used to pull setupwizard.apk and the dialer framework (which has not changed from LMY48M to LMY48T).

The only new development that is currently happening in the core gapps right now is for marshmallow.
[Android Software Development] saenanme:
I have downloaded the zip again and reflashed

The version is updated now

Thanks again :)

Regards
[Android Software Development] eternal70:
Guys, is now on tap working for you ? It give me Google app FC and the nothing happens when i long press the home button.
[Android Software Development] JERW28:
[MENTION=5227588]Deltadroid[/MENTION]

Google Play Services has updated to 8.2.99 on 5.1.1 here is the link to the apk from my device: https://drive.google.com/file/d/0BzLsyGqS2f2OU2EzNjFhWmN3MEE/view?usp=sharing

Thanks for all your hard work!
[Android Software Development] Deltadroid:
I am currently uploading a new version of Google App. Perhaps it will fix your problem.
[Android Software Development] JoeBear1975:
Awesome [emoji106] [emoji106] [emoji106]
[Android Software Development] cianz94:
Anyone have a google dialer flashable for marshmallow ?
[Android Software Development] Deltadroid:
I'll add one this evening to replace the stock dialer.
[Android Software Development] cianz94:
Thanks!
[Android Software Development] Deltadroid:
Google Dialer (Marshmallow)

Google Dialer has been updated to version 2.2-20200 for Marshmallow

Google Dialer addon for 6.0.0+: gapps-mm-google-dialer-20151017-1-signed.zip (replaces stock dialer)
[Android Software Development] cianz94:
I have a force closes after the flash. How to repair it?
[Android Software Development] Deltadroid:
If you are on Marshmallow, try going into the App Op settings and give Google Dialer permissions.

Edit: Also you can try deleting the cache/data for the Google Dialer.

If you still have problems and want to remove the dialer addon:

1) delete the dialer backup script (/system/addon.d/94-gapps-dialer.sh).

2) reboot to recovery and dirty flash your rom again to restore the stock dialer.
[Android Software Development] cianz94:
It Works! Thanks! :good:
[Android Software Development] Deltadroid:
Thanks for testing. It seems like a few Marshmallow addons will need to be manually given permissions with App Ops.