yashsingh1/xdaforums huggingface dataset:
[General Paranoid Android Discussion] eurochild:
To figure out the right version of Google Play Services for your Android device, go to Settings -> Apps -> Google Play services, and look at the last 3 numbers in the parentheses. You'll see something like -XYY where X is 0 for pre-Lollipop and both 4 and 7 for Lollipop+, and YY is a specific variant id. -738 means you need the APK that has -738, etc.

Note: It seems that -7xx builds became -4xx with Google Play Services 6.5. If you were on -7xx before, you should now install -4xx.

The types are:

Version number has -X10 - universal armeabi CPU

Version number has -X12 - 160 DPI & armeabi CPU

Version number has -X14 - 240 DPI & armeabi CPU

Version number has -X30 - universal armeabi-v7a CPU

Version number has -X32 - 160 DPI & armeabi-v7a CPU

Version number has -X34 - 240 DPI & armeabi-v7a CPU

Version number has -X36 - 320 DPI & armeabi-v7a CPU

Version number has -X38 - 480 DPI & armeabi-v7a CPU

Version number has -X46 - 320 DPI & arm64-v8a CPU

Version number has -X70 - x86 CPU

source: apkmirror
[General Paranoid Android Discussion] chanbi amine:
Does not work on Samsung Galaxy s4 Android 5.0.1 I9500XXUHOA7
[General Paranoid Android Discussion] sax0406:
This gapps is for aosp roms only. Not for Samsung stock rom.
[General Paranoid Android Discussion] HebeGuess:
Updates for Android System Webview

..and its a Good and Bad scenarios.

Good part is I got it working by tweaking single line, Google made it fairly easy for OEMs to switch.

Bad part is it laid on a compiled code in system; It might not be feasible for us to flash like PA-Gapps.

More details here tomorrow, maybe on new thread. :cool:
[General Paranoid Android Discussion] ashahin1:
Is there away to add Aroma installer to these awesome packages?
[General Paranoid Android Discussion] guardian_uk:
Help with customising GApps installation!

Can someone kindly explain just how to use the scripting ability of the GApps package? I have read the first page completely and even searched the thread, but I am still confused. I basically want to use the Stock Google package as the base, and just remove certain AOSP and Google apps such as Launcher, Play Books, Play Music, Earth, etc. :confused::confused::crying::crying:

Would actually really appreciate it if someone could make and give me the gapps-config file scripted to remove apps. One app is more than enough, I will add the others myself. :o
[General Paranoid Android Discussion] panart:
If i'm not mistaken the script for removal of apps is only for stock AOSP apps so it cannot be used for Google apps.

I attach the script i use to remove all AOSP CM12 apps (except FM Radio) as i prefer to use the equivalent Google apps and/or 3rd party apps.

If you do not want to remove an app listed in the txt file i attach remove that line and if you want to remove the FM Radio add a line with "FM Radio".

To use the script put the txt file in the same folder you placed the GApps file and then flash the GApps file.
[General Paranoid Android Discussion] MikeRL100:
I've serached all over the place and cannot find what I should change. What did you change? If stuff breaks, I can always revert back, right? I know there's holes in the AOSP webview on 5.0.x, so please elaborate if possible. Thanks.

Anyhow, speaking of modding PA GAPPs, which you shouldn't do, I did it earlier this week when 5.1 just came out. I'm wiping a beta again after I wipe cache, dalvik, and system.. I don't expect support for it, but I also expect not many issues. I can always wipe again.

As for the new Google Play Webview, I read that on the #chromium IRC channel on Freenode that Google has plans to coordinate webview patches with custom ROMs. They couldn't specify how, but they plan on doing so soon. Imagine what a headache it would cause for everyone, including developers and Google, if we had multiple webviews like on iOS. That would drive away development, including Play Store income. Don't think they want that.
[General Paranoid Android Discussion] mikeoswego:
If using the stock GApps package, it will delete the stock Launcher and replace it with the Google Now launcher (unless you say otherwise in .gapps-config). Then if you want certan Google Apps to not be installed:

Use your file manager and go to the same folder that you've placed the downloaded GApps installer

Create a new file in the folder named .gapps-config (make sure your file manager is set to show hidden files.)

Use the file manager editor to edit the .gapps-config file.

Put the following 3 lines in the .gapps-config file to not install the apps you listed:

Books

Music

Earth

Reboot to recovery and flash the PA-GApps installer.
[General Paranoid Android Discussion] TKruzze:
PA GApps Update Announcement

PA GAPPS - MARCH 15 UPDATE

MARCH 15, 2015 - 20150315

gapps-config now supports comments [Stock/Full/Mini/Micro/Nano/Pico]

- See ADVANCED FEATURES & OPTIONS for a more detailed explanation

- All characters following a '#' will be ignored until the end of that line

- Comments and empty lines will be removed from the gapps-config shown in pa_gapps_log.txt

- Both the original and processed gapps-config files will now be included in pa_gapps_debug_logs.tar.gz as gapps-config_original.txt and gapps-config_processed.txt

- Thanks to [MENTION=4746176]michelsberg[/MENTION] for BOTH the idea AND the code!

Google Play services updated to v7.0.96 (1785884-43x) [Stock/Full/Mini/Micro/Nano/Pico]

Google Play Store updated to v5.3.6 [Stock/Full/Mini/Micro/Nano/Pico]

Google Calendar no longer has the 'Clean Install' Requirement [Stock/Full/Mini/Micro]

- Requirement remains for Google Camera and Keyboard. See FAQ #3 for complete details

Google+ updated to v5.1.0.88070530 [Stock/Full/Mini]

Maps updated to v9.5.1 (#905100124) [Stock/Full/Mini]

Messenger updated to v1.2.036 (1773886-39) [Stock/Full]

Chrome Browser updated to v41.0.2272.92 [Stock/Full/Chrome Addon]

Google Drive updated to v2.2.083.22.36 [Stock/Full]

Google Play Books updated to v3.3.33 [Stock/Full]

Google Play Music updated to v5.8.1835R.1777180 [Stock/Full]

Cloud Print updated to v1.17b [Stock/Full]

Chrome Beta updated to v42.0.2311.38 [Chrome Beta Addon]
[General Paranoid Android Discussion] Deltadroid:
What version of smali do you use to deodex the nexus 6 Android 5.1 factory image? I've tried smali 2.0.5 and also the latest smali source code from github and my classes.dex files are still different than the ones you have inside the system apk files. I would like to try and reproduce it.
[General Paranoid Android Discussion] TKruzze:
You'll never be able to duplicate a hash. Even if you do it locally on your machine. I'm using an oat2dex.jar, based on smali 2.0.3, same as I used when deodexing the 5.0.x factory image.
[General Paranoid Android Discussion] xonelith:
So pleased with the addition of comments!! Thanks [MENTION=2777334]TKruzze[/MENTION]!

Sent from my Nexus 6.
[General Paranoid Android Discussion] Deltadroid:
AFAIK, the oat2dex.jar just searches for some magic numbers to separate out the dex files. The actual classes.dex is still generated by smali. I've tried using smali 2.0.3 and 2.0.5, but I keep getting "nop" codes where there should be actual opcode calls. The jar files in the framework are fine, but I cant seem to duplicate the classes.dex within some of the apk files, such as SetupWizard.apk from the N6 factory image. After I parse out the dex files from the oat files, I use baksmali and smali on them. I've noticed that there are bug reports on the smali homepage that are related to these same issues. I was just curious how you got the classes.dex to contain actual opcodes where mine has nop.

Example:

wrong deodexed output sample:

#disallowed odex opcode

#iput-wide-volatile v0, v1, Landroid/system/OsConstants;->CAP_AUDIT_CONTROL:I

nop

move v0, v0

Correct deodexed output sample:

invoke-virtual {v1}, Ldalvik/system/profiler/BinaryHprof$Tag;->ordinal()I
[General Paranoid Android Discussion] christiano88:
This was not the best decision, it would have been better if you used 7.0.86, starting 7.0.87 a bug was introduced by Google with "SystemUpdateService" that keeps your phone awake all the time.
[General Paranoid Android Discussion] reemar:
if i'll install ANDROID 5.1 gapps on 5.0.2 cm12 rom, it will cause problems?
[General Paranoid Android Discussion] dark'em:
If there wouldent be any problems we would have just one zip for 5.0 and 5.1, but if hte op put different links up there will be problems. Flash the one that is for the version you have, they are the same, the place they go when flashing them is probably different, but they are the same version :good:
[General Paranoid Android Discussion] :
"Error executing updater binary" Error code 20.
[General Paranoid Android Discussion] chewdaniel:
didn't read the FAQ, did u?
[General Paranoid Android Discussion] xeltos:
Nexus 4 (16 GB),TWRP 2.8.5.2, Euphoria Rom 8March2015

Having trouble with TWRP giving Error code 70 when I try to flash Current Gapps "pa_gapps-modular-full-5.0.1-20150315-signed" (366 MB) Or the "Stock" (437 MB) one.It says not enough space.

But I can flash The "pa_gapps-stock-5.0.1-RC3-20150201-signed" which is 427 MB. Why is this happening.

All my partitions are stock sized.

Also I formatted the /System /Data /Cache partition before flashing. So the system partition must have only ROM on it.

I have 6 GB free space in my internal SD.

Recovery and PA Gapps logs are attached with the post.

UPDATE: Appears to be issue with Euphoria Rom march 8 build for Nexus 4.
[General Paranoid Android Discussion] khanmein:
systemupdateservice still exist.
[General Paranoid Android Discussion] yodanutz01:
I just installed latest 5.1 stock gapps package over Rastapop 5.1 and after reboot i don't have any gapps installed! What's wrong ?

Using latest TWRP, and tried already 5 times. It says that installation was succesful but no gapps were installed.
[General Paranoid Android Discussion] Zeljko1234:
Have you flashed zero modular package instead of full, mini, micro, nano or pico? If yes, that's the feature of the smallest zero gapps, no gapps at all :laugh:
[General Paranoid Android Discussion] yodanutz01:
Very funny man :p Have you tried latest stock 5.1 package ?
[General Paranoid Android Discussion] Zeljko1234:
No, I'm trying to have less as possible gapps. Not zero as you but pico :D Unfortunately pico wasn't available when I needed so G Pad has now micro beta2.
[General Paranoid Android Discussion] adrman:
Post your PA log files for help. FWIW, PAGApps work fine on rastapop.
[General Paranoid Android Discussion] Deltadroid:
[MENTION=2777334]TKruzze[/MENTION] could I possibly test your version of oat2dex.jar to see if it solves my opcode issue with certain apks? I have a version of oat2dex.jar that was posted in the smali bug report section, but I have a feeling it's not the same as your version. Best regards.

Edit: either the problem is with oat2dex.jar or I need to apply the patch to the smali code for lollipop that was posted by _riddle https://code.google.com/p/smali/issues/detail?id=225

Is your version of smali patched or are you using an unchanged release version of smali?
[General Paranoid Android Discussion] bautrupp:
This problem exsists for some time and was brought up in this thread before.

- flash rastapop

- reboot

- go back to recovery

- wipe data

- flash gapps

Works for me.
[General Paranoid Android Discussion] dstrub93:
Gonna sound like a really silly question but I'm not exactly smart in this field with gapps, BUT, the links provided are for 5.0.1 and 5.1 respectively, what do I do with CM12 which is 5.0.2? :p
[General Paranoid Android Discussion] Rapier:
For both 5.0.1 and 5.0.2 ROMs flash the 5.0.1 GAPPS. For 5.1.x ROMs flash 5.1 GAPPS

Sent from nowhere over the air...
[General Paranoid Android Discussion] Razertje:
Thanks for the update!

Hopefully Google fixes this SystemUpdateService crap in the near future...
[General Paranoid Android Discussion] Deltadroid:
Script

Ive figured out what my problem was. First, I needed a newer version of oat2dex.jar from _riddle. Second, the reason why i did not have all the right opcodes is because I needed to first run oat2dex.jar on boot.oat and then point to the correct class path when deodexing the applications. Anyways, its working now. I thought I would post the script I made that I use with nautilus file explorer to just right click on a odex file and have it automatically fix it.

#!/bin/bash

FILE="$1"
NOEXT=${FILE%\.*}
OUTDEX=classes.dex

if [[ ! -f $NOEXT.apk ]] && [[ ! -f $NOEXT.jar ]]; then
echo "No suitable targets found. Exiting."
exit
fi

if [ ! -d dex ]; then
java -jar /usr/local/bin/oat2dex.jar boot boot.oat
fi

java -jar /usr/local/bin/oat2dex.jar "$FILE" ./dex

java -jar /usr/local/bin/baksmali.jar -a 22 -x "$NOEXT".dex -o deodex

#if [[ $NOEXT == *"classes2"* ]]; then
# OUTDEX=classes2.dex
#else
# OUTDEX=classes.dex
#fi

java -jar /usr/local/bin/smali.jar -a 22 deodex -o $OUTDEX

if [ -f $NOEXT.apk ]; then
7za u -tzip "$NOEXT".apk $OUTDEX
zipalign 4 "$NOEXT".apk "$NOEXT"-aligned.apk
mv "$NOEXT"-aligned.apk "$NOEXT".apk
echo
echo "$OUTDEX is successfully inserted into the target file"
elif [ -f $NOEXT.jar ]; then
7za u -tzip "$NOEXT".jar $OUTDEX
echo
echo "$OUTDEX is successfully inserted into the target file"
else
echo
echo "$OUTDEX was NOT inserted into the target file."
fi

rm -rf deodex
rm $OUTDEX
rm "$NOEXT".dex

#read -p "Press Enter Key to continue..."

Edit: forgot to add the classpath. fixed.

---------- Post added at 03:05 PM ---------- Previous post was at 02:28 PM ----------

@TKruzze

Since I am able to verify the procedure, Ive found a bug in your framework. There is a class path problem with one of the framework jars in your 5.1 gapps package and it probably has to do with smali.

diff -ru com.google.android.maps-out com.google.android.maps.pa-out
diff -ru com.google.android.maps-out/com/google/android/maps/InternalR$styleable.smali com.google.android.maps.pa-out/com/google/android/maps/InternalR$styleable.smali
--- com.google.android.maps-out/com/google/android/maps/InternalR$styleable.smali	2015-03-15 14:54:29.680986830 +0100
+++ com.google.android.maps.pa-out/com/google/android/maps/InternalR$styleable.smali	2015-03-15 15:00:45.712986537 +0100
@@ -56,7 +56,9 @@

check-cast v0, [I

- check-cast v0, [I
+ nop
+
+ nop

sput-object v0, Lcom/google/android/maps/InternalR$styleable;->MapView:[I

I know that the "nop" codes are incorrect on your version of com.google.android.maps.jar because I've compared them to a version that did not require deodexing.
[General Paranoid Android Discussion] ValentinFKZ:
Thank you

Thank you , i will install lolipop 5.1 and i needed gapps.
[General Paranoid Android Discussion] Darkmasterhk:
@ The people with no deep sleep at all (SystemUpdateService issue) try opening the google settings app,

wait 2sec and wipe it from recents. works for me on 2 devices, but sadly you must do it every reboot.
[General Paranoid Android Discussion] TKruzze:
You just don't get it, do you? These are Google's apps, not mine. These GApps will always includes the latest versions that Google has made available for public release. I have no plans to impose mine, or anyone else's preferences on what apps or versions are included.

Have you read the log? Everything you need to know is in there. I have also created an extensive FAQ that will answer almost any question you might have. Spend some time there as well.

No logs, No help. Read FAQ #4.

Huh? I just checked the OP and the links are named "ANDROID 5.1 DOWNLOAD LINKS" and "ANDROID 5.0.x DOWNLOAD LINKS". The little 'x' was intended to mean any number... 5.0.1, 5.0.2, etc.

No offense, but I did not receive a single error during the deodex process. I even did it twice to verify. I'm also still on Java 7. Half the problems people are having are related to Java 8, IMO. To be honest, there have been a couple of million downloads and installs of GApps prepared with the method I used to deodex. I really don't have the interest or time available to pursue this further,
[General Paranoid Android Discussion] Deltadroid:
I did not have any errors during the process either.I am also using the latest java 7. This is not a procedural error. It has to do with a problem with the tools used. If you are not interested in these findings, then that's fine. That's why I do my own.

Besides, if you don't believe me just compare your framework with the framework on the nexus 7 factory image that does not require any deodex processes. You can see yours is wrong.
[General Paranoid Android Discussion] curtdragon:
Anyone else getting Exchange errors with 5.1? I use Gmail and the account loads, my folders load but I don't receive any email. I also cannot clear data from the Gmail app at all. (not sure if that last bit is normal)
[General Paranoid Android Discussion] Deltadroid:
It probably has to do with the broken deodex process.
[General Paranoid Android Discussion] curtdragon:
Which part? Gmail or Exchange? I tried the earlier version of the 5.1 gapps and the latest release and it does the same with both
[General Paranoid Android Discussion] Deltadroid:
It's most likely a problem with exchange because that is new from the n6 factory image. Try replacing exchange with the latest version on apkmirror.com.
[General Paranoid Android Discussion] christiano88:
Whoa whoa! What's with the passive-aggressive stance? You should appreciate my feedback, really. I'm not making you do anything.
[General Paranoid Android Discussion] TKruzze:
I'd like to thank the both of you for helping me finalize a decision I've been debating for quite some time.

I have decided to shut down my threads here on XDA. I am going to spend the next few days settings things up on G+ and then I will close things down here.
[General Paranoid Android Discussion] Deltadroid:
Wow, ok. I was just trying to help you. Don't make me part of your decision process.
[General Paranoid Android Discussion] BriVG:
And calling him names is gonna make him move quicker. Thanks TKruzze for your efforts here, we really appreciate it!
[General Paranoid Android Discussion] aalupatti:
TKruzze.. Thank you for your great work, time and dedication . There are many thousands more here who are very grateful for your work.
[General Paranoid Android Discussion] :
Let's keep personal comments to pm's and out of the public threads. And keep things respectful in the forum or in pm's.

Thanks all!

Darth

Forum Moderator
[General Paranoid Android Discussion] Dan1234567890:
Sorry for OT or if this is obvious to somebody, but what are the benefits of moving to g+?

Because you have more control of the thread? You can ban users?

I've been following few communities on g+ that were before on xda, but I didn't fully understand the difference.... Except that now I have to use g+ app to follow some threads :D
[General Paranoid Android Discussion] Dkadr1:
Are you going to include Google WebView in your GApps? I don't know if it has any advantage installing it on system partition...
[General Paranoid Android Discussion] Giobio:
Downloading is so slow.... For nano's bank I'm taking 2/3 hours....
[General Paranoid Android Discussion] sanguinesaintly:
Have a look at the cm and slimrom posts on g+ and you'll wish you'd never left xda.

On g+ it's like children in a playground sometimes. At least here the majority are seriously interested in the product. But it's your decision and we'd be sad to see you move. Maybe just having active moderators to clean out the thread would help.
[General Paranoid Android Discussion] gsutton:
Thanks for everything you have done for us. Don't let a few control the many good things.
[General Paranoid Android Discussion] ANDR01DN00B:
.96 fixes that
[General Paranoid Android Discussion] drewski_1:
which mirror? Basketbuild was reasonably quick about an hour ago (3-4 MB/sec)
[General Paranoid Android Discussion] Giobio:
I'm using basketbuild too rising up to 15/20 kb/sec. Maybe is my line....
[General Paranoid Android Discussion] kofe:
Same thing for me... Phone won`t go into deep sleep using latest gapps and AICP rom.
[General Paranoid Android Discussion] kelbaez:
For me this made the trick. For now at least..

* Tasker and Root required

** tested and survives reboot

1. Create a profile based on "Event > System > Device Boot"

2. Add a "Run Shell" action with the command "pm enable com.google.android.gms/.update.SystemUpdateService" and tick the "Use Root" option

3. Add a "Run Shell" action with the command "pm disable com.google.android.gms/.update.SystemUpdateService" and tick the "Use Root" option

4. profit

deep sleep is working like a charm!﻿

Original post:

https://plus.google.com/112425488314892935797/posts/VqubRkcTpEE
[General Paranoid Android Discussion] jorceshaman:
I appreciate everything you've done for us. Just to clarify though, you'll still be updating them... Just on G+, right? (It's totally okay if you're not. I just want to re-enable G+ on my device and follow you if you are or find a new provider if you're not.)

Thanks,

Josh
[General Paranoid Android Discussion] munichsfinest:
There is an easier way provided by a user in the official CM12 thread: Go to settings, privacy, press the options button in the upper right corner, tick "show integrated apps", scroll to play services and untick wake up, keeping awake and auto start. No wakelock anymore. Definitely works.
[General Paranoid Android Discussion] Phazmos:
I always do this right after setting up the rom. Never had a wake lock issue
[General Paranoid Android Discussion] kofe:
But that is just a workaround... The problem should be fixed.

---------- Post added at 10:56 PM ---------- Previous post was at 10:55 PM ----------

Where did u get the gapps? I also cleaned flash of latest AICP and pico PA gapps, and the phone didn`t go into deep sleep...
[General Paranoid Android Discussion] gegabit:
Full vers for 5.1 - nexus 4 mako not install - error 70. Euphoria 5.1 beta rom.

On 5.0.1. it was install fine.

// mini install fine.
[General Paranoid Android Discussion] Dungeon47:
Running great after full wipe.

Tried flashing dirty from a homemade 5.0.2 build, but had fc festival.

Using Franco r72 and latest PA gapps.
[General Paranoid Android Discussion] spider623:
can you please give some more details what it does?
[General Paranoid Android Discussion] salomaoa:
Can't find a link to 5.1 Gapps.

Could someone please help me?
[General Paranoid Android Discussion] spider623:
p.s. any ideas if it will also work on kitkat?
[General Paranoid Android Discussion] aouerfelli:
They're in the OP under the 5.0.X links.
[General Paranoid Android Discussion] eurochild:
enables and then disables the SystemUpdateService from google play services that is responsible for preventing deep sleep in custom roms

the service is the same thus it should work
[General Paranoid Android Discussion] :
Thread re-opened and cleaned.

Members.....please take the squabbling to pm's and leave the thread clean.

That's two friendly cleanings today. Let's end the bickering here, now....please.

Next cleaning will involve consequences for the key players, as this is the second warning today.

If you have an issue with this thread or gapps package, move on. And instead of adding fuel to the flames, just report anymore drama and don't engage.

Alright folks, let's try again. I'm remaining subscribed for a bit. ;)

Thank you for your attention,

Darth

Forum Moderator
[General Paranoid Android Discussion] TKruzze:
Yes, you're right here. And, I have no doubt that your intentions at the beginning of all this were only to share your findings. However, I still find it completely inappropriate that you, never having particpated in this thread before, decided to take it upon yourself and begin to reply to users HERE, in this thread, that their problems were due to a bug in my GApps. That, IMHO, crossed the line and showed your intentions had changed and NOW you wanted to prove you were right and I was wrong. That is something I would never do to another dev and certainly NOT in their thread.

I'm going to ask a moderator to close this thread for a few days to let things cool off while I make some decisions about whether to continue on G+ or move on to something new.
[General Paranoid Android Discussion] Vinnom:
As everyone, my installation went fine =)