yashsingh1/xdaforums huggingface dataset:
[General Paranoid Android Discussion] mad_syon:
Moto G 4.4.2 (TESCO) + PA-GAPPS -> Home Button broken

Hi,

thanks for this package. Flashed this on my 4.4.2 Moto G (Tesco.GB), but have had strange issues since. Most annoyingly, the (soft) Home button does not work anymore. Also installed separate KK launcher, same problem. Vanilla kernel, unlocked bootloads.

Anyone got any pointers? Would be much appreciated.
[General Paranoid Android Discussion] chewdaniel:
yup. thing is sony's partitioning is a bit messed up there i tried putting the file everywhere and changing the script to all those places i could think of.
[General Paranoid Android Discussion] TKruzze:
Actually, it's working as it's supposed to. The problem is that the memory calculation takes place BEFORE the removal of any system apps.

To explain what I mean, the first time you install the Google Stock GApps package, the installer will remove your browser, SMS, launcher, and keyboard BEFORE it installs anything. This actually creates a lot of extra room for the installer to use for the GApps install. In fact, on a CM ROM, the CM modded keyboard is over 40MB by itself! That's why the old GApps packages 'seem' to work fine.

The real problems begin when you flash an update to your ROM. Now, all those apps we removed during the install are back in the system partition. Then, the GApps restore process begins and all that space we created during the initial install is completely gone and you're left with 40-60MB LESS system space (potentially) than when you did the initial install. This is why I've had numerous reports of GApps problems after a ROM update and GApps restore. It's not until AFTER the GApps have been restored that the script goes through, again, and deletes those apps.

I will readily admit that my space calculation algorithms are not perfect. If you have suggestions on calculating the space for the files that are removed, I'd be anxious to see what you might have. I'm definitely NOT the Shell Script Guru that you are. However, at this time, I'm far more comfortable preventing an install that could lead to problems down the road than I am allowing an install that could lead to problems.

As you found out, Galaxy Nexus users are right on the cusp of being able to use Google Stock GApps. If you have less than 50-60MB of system partition space left after you've set up your device, then you're very close to having space issues during the ROM and GApps installation process

FOLLOW UP: I should be able to change the addon.d script to perform the removals 'pre-restore' instead of 'post-restore' as most every GApps package is today. If I can just come up with a way to calculate the space of the files being removed, I might be able to perfect the space calculation algorithms.

This feature has NEVER been announced. Just ignore its existence.

Use Modular Full GApps instead.

Ask in your ROM thread. This is NOT a GApps issue.

If you find more info on this, let me know. I figured there might be some non-standard devices.
[General Paranoid Android Discussion] chewdaniel:
tks :D

this is what i found:-

/sdcard/ and /mnt/storage/sdcard0/

both point to /storage/emulated/legacy

however, in cwm /sdcard/ is simply... /sdcard/ and /storage/emulated/legacy has become /sdcard/0 in cwm...

i'll try to get more info as this is currently all i have

Xperia ZR on CM11 FXP here

EDIT:// i just tried with /storage/sdcard1 which doesn't seem to be pointing anywhere and the same path in CWM but no go too... :( changed the paths in the script as well... oh well i guess i'll try manual then
[General Paranoid Android Discussion] osm0sis:
I guess you could mount system and grab the sizes of the files the package will remove? Honestly the whole thing is starting to feel like it'd be better entirely in shell script rather than partially in EDIFY. It's getting pretty complicated. :p

If you want some tips/methods for the best way to do that check out my Nexus BootUnlocker, Xposed Framework Installer, and Nexus Louder Install zip update-binary files (since they ARE the monster shell scripts). Nexus Louder was my most recent and most thorough (including SELinux policy fixing a la Chainfire's SuperSU update-binary shell script).
[General Paranoid Android Discussion] TKruzze:
Once again you've given me inspiration. Using the 'du -k' command in a For loop, I can calculate the exact space I'll be freeing up with my deletions. Using that info I should be able to get very accurate space calculations.

Also, I think I like using the edify - shell combination. It keeps things a bit more modular and easier for my feeble mind to understand.:p
[General Paranoid Android Discussion] Petert87:
Great pack, but is it possible to have the full pack without replacing the stock keyboard? Would be great!
[General Paranoid Android Discussion] damccull:
Nephilim, no need to be rude about it. This is exactly what I did, although because I'm not experienced in how these gapps packages work, I wasn't aware this was possible until now.

Also, TKruzze, thanks for the information about the alternate package, but I rather like the fact that the stock package removes certain apps so I don't have to manually, and I don't really want to flash 4 different files either ;)
[General Paranoid Android Discussion] PANNICau:
Don't know if this has happened for anyone else (I'm hoping it's an easy fix) but youtube videos won't play at all on my N7.

The app launches fine and I can see all my subbed channels but when I go to watch the vid it just hangs on the load screen.
[General Paranoid Android Discussion] gsfores:
tnx,:good:

But i think there is a bug on clean install the pack thinks i don't have enough space on my gnex. though i could update from the previous Google stock package and I have enough free space.
[General Paranoid Android Discussion] iXNyNe:
Wouldn't you be able to use space calculations to only install the right number of apps in the space available?

Example: cm11 ROMs take more space than omni ROMs so you could install fewer apps on cm11 based on free space.

With that in mind all you would have to do is place all the apps in a priority list and maintain one package (rather than stock/full/mini) and maybe some add on modules.

Only thing then would be one package that DOES remove stock apps and replaced them, and one that DOES NOT remove stock apps, and then apps like chrome and hangouts would be placed lower on the priority list and only installed if there is space. The addons could all replace their respective stock app at that point.

Just thinking out loud.
[General Paranoid Android Discussion] christ17:
Me too. And can't found any *.TXT files in Sdcard on my GN. CM0118
[General Paranoid Android Discussion] soder:
I just updated my PA Gapps mini modular to the latest version. It says it will use and older version of Google Services, and then automatic force an update to 4.1.32.

How is that force update done? When I check my Google Service direct after boot, I got version 4.1.32 as system app. How is that done during the flash?

/Söder
[General Paranoid Android Discussion] LeroViten:
As far as I remember, Google Services (GmsCore) are device and DPI related. At least I always get them updated on first boot even if I have the same version in Gapps included. They are smaller in size but actually just the same.
[General Paranoid Android Discussion] TKruzze:
Full Modular GApps does NOT replace the keyboard.

Not a GApps issue.

I've already posted in detail why this is happening. It's not a bug, though. I have, however, significantly improved the storage space calculation algorithms and will be posting an update in the next day or two.

EDIT: The reason you can flash an updated pack is that the space calculation can ONLY take place on a clean flash with no GApps installed. I don't see my installers EVER being able to calculate storage requirements when flashing an updated GApps package.

I've been thinking along the same lines. It won't happen immediately, but perhaps in a future update.

It actually occurs once the device is booted and connected to the internet. Google always updates Google Play Service on its own and in the background.
[General Paranoid Android Discussion] soder:
But how does that explain me having the latest version as system app? An update from Google Play wouldn't do that?

Edit: It just looked like it was there as a system app, since in settings/app there was no "uninstall updates" for that app. Never mind then. :)

/Söder
[General Paranoid Android Discussion] Petert87:
Thn but I've notiched that one. But I wanna replace all the GApps exept the stock keyboard. Is there a way to do that?
[General Paranoid Android Discussion] jdogzilla:
Is Hangouts themeable? All other apps seem to be themeable, for ex. made dark, except Hangouts. Any workaround for this?
[General Paranoid Android Discussion] provolinoo:
I think the same, it would be a smarter way to install GApps based on space available.

The biggest problem here would be the priority list, since every user has his own priority in mind.

For example, you said to place Hangouts lower in the list while for me Hangouts is a must should be at the first place since it's the official Google chat/sms app and it's the messaging app I use most.

On Chrome I agree, since I us Chrome beta so I always disable Chrome Stable and install Beta from the market.

I'd place lower apps like Talkback, Wallet, QuickOffice, Earth.

For me a good compromise could be to put apps that replace AOSP apps first, since the stock package has been built with that as one of main features, then all the rest.

The priority list could be different in modular one.
[General Paranoid Android Discussion] lambofgod13:
How about just use root explorer and delete the apps you don't want. I do it all the time and never get an issue from gapps.
[General Paranoid Android Discussion] provolinoo:
We are talking about installation, not about what you can do after the installation is complete and you are up and running :P
[General Paranoid Android Discussion] the_real_fosgate:
Hello,

I have a question.

I installed the newest Purity Rom for my nexus 10 tablet. http://xdaforums.com/showthread.php?t=2336101

After flashing the rom, I tried to flash GOOGLE STOCK PACKAGE (pa_gapps-stock-4.4.2-20140117-signed.zip)

But I get the following error message:

Mounting system ...

Android 4.4.x Rom detected

Insufficient storage space available in

System partition. You may want to use a

smaller GApps

Can anybody help me, what the problem is?

Bye

Robert
[General Paranoid Android Discussion] Nephilim:
I agree with Hangouts being one of the high priority apps to keep. I actually delete the mms.apk out of every rom I use before flashing. For me the low priority apps would be earth, magazines, books, wallet, and play games. I am still able to download games and login for leaderboards and achievements through play store with play games not installed so I see no point in this app.

Sent from my Android 4.4.2 Galaxy Nexus
[General Paranoid Android Discussion] iXNyNe:
to both replies above

i agree hangouts is important, the point of the post i made was to say that there could be two gapps packages, one that DOES remove stock apps and one that DOES NOT remove stock apps. both of these packages would have different priority lists because if you ARE removing stock apps then it's a high priority to replace them with a gapp, but if you're NOT removing stock apps then hangouts and chrome might be less important because you will have the stock mms and browser.

so to explain this more clearly i'll actually type out a (fake) priority list

these operations would happen in order and im not including everything just a rough explanation (so don't hang me if i forgot an app, this is just an example)

one important note about BOTH of these packages is they will include ALL the gapps of the full stock google package, but they will only install as many as can fit on the available space on YOUR device (some have more free space than others based on how they were manufactured and what rom you're using)

so even though ALL the gapps are included in the package you might only get half of them because you may not have enough free space for ALL of them. of course the installer (ideally) would tell you what apps you did and didn't get (and probably also leave that information in the txt file on your sdcard)

the last piece of the puzzle is the addons. they will all replace whatever stock app with the gapp equivalent. the logic here is you wont need the addons if you were using the first package (all the replacing happens in the first package anyway) but rather you could use it with the second package to get hangouts but not chrome for example. you may already have these apps installed anyway with the second package (depending on if you had enough free space), however it would be alongside their stock counterparts rather than in place of them, so installing the addon would just remove the stock app. in other cases where someone has a smaller system partition and used the second package they might not have had hangouts installed (not enough free space) and so the addon would remove stock mms and install hangouts in its place.

the logic on the addon install would be

calculate free space

backup stock app to /sdcard/ (if this step fails, abort! otherwise you may end up with no stock app and no gapp)

remove stock app from /system/

recalculate free space (to know the difference)

IF there is enough free space to install the gapp then do so

IF there is not enough free space for the gapp, restore the backed up stock app from /sdcard/

[MENTION=2777334]TKruzze[/MENTION] i actually know a decent amount about edify and bash (shell scripts) but never really combined the knowledge like you have in your installs (i was quite impressed when i opened them up and looked at them!) so even if it's just to bounce ideas i'd love to help if i can in any way!
[General Paranoid Android Discussion] vipShark:
RE..

sorry about last post... :) :good:

before this i'm using CM10.2...thay why i'm asking what is the best choice before i change my ROM to CM11...but i want simple and easy to use...
[General Paranoid Android Discussion] tsatomas:
Another way to flash the apps according to user will combinated with the free space could be the aroma installer. I have seen it working but I don't know how easy could be to create and maintain the aroma installer. I know that it can give the ability to choose the apps that someone wants to use for update or install in recovery with user friendly interface.
[General Paranoid Android Discussion] iXNyNe:
not to sound like a naysayer, but then you could just use the aroma gapps and the aroma dismantler and not use PA gapps

space calculation would be a good thing for the aroma gapps to take into consideration though, but i think their mentality thus far is "know your ****, use at your own risk" whereas the idea with the space calculation in this thread is "there is no such thing as too stupid, just pick A or B and flash and you'll be safe either way"

this makes things easier on TK to maintain because the only difference between the two packages would be the install scripts.

they would both contain all the same files, but the order of operations would be different.
[General Paranoid Android Discussion] gsfores:
I have found the real /sdcard folder for my gnex, its in /data/media - media is pointing to \sdcard in cwm. there i found pa_gapps.txt and placed the .forcenophotosphere file.

all working good.:good::good::good:
[General Paranoid Android Discussion] MikeStorm78:
Read the second post: http://xdaforums.com/showthread.php?p=44417529

Post the contents of the text file the installer generates.

It's likely though you'll have to use the modular package instead of the stock one.
[General Paranoid Android Discussion] privatedoodle:
Yep. Easiest way for just about any device is to install gapps, search for pa_gapps.txt in file explorer, then put the .forcephotosphere in the same folder. When you reinstall gapps photosphere should be there.

FYI the .forcephotosphere method installed fine on my GS3, but none of the versions are working.
[General Paranoid Android Discussion] hozjacz:
WOW, Great job. Is it although a clumsy provisional solution, but is working. Thanks. Very thanks...
[General Paranoid Android Discussion] 75markus:
yeah, it´s a kinda strange workaround, but better than nothing till google fixes the bug :p
[General Paranoid Android Discussion] *child:
Actually the Google Keyboard isn't so bad. You can use the ?123 key like a shift key, which makes accessing alternate characters pretty quick.
[General Paranoid Android Discussion] apatal:
I love Google keyboard. You can say all you want about other third party ones, but the former simply meets the requirement it says in its About section: "typing, just easier" :)
[General Paranoid Android Discussion] TKruzze:
Keyboards are an emotional topic, especially since we're all attached to one or another.

We're going to continue to include the Google Keyboard in the 'Complete GApps' package. However, everyone should use whatever they're comfortable using. SwiftKey is actually my keyboard of choice.

Sent from my ΠΣΧỤŞ 7² tablet
[General Paranoid Android Discussion] TKruzze:
New 'Mini GApps' Poll Is Up - Place your vote TODAY!

I'm getting ready to launch our first Modular GApps packages. As part of this, I'll be adding a Mini-GApps module that will include only the Core (non-Play Store) apps and a few basic Play Store apps.

I've created a poll at the top of this thread where you can vote on the apps you think should be included in the Mini GApps package. Please place your vote in the next couple of days to have your say on what Play Store apps are included in Mini GApps.

Keep in mind that our 'Full' GApps package will not be changing, this will be a new option for those that prefer smaller GApps packages or would rather download from the Play Store on their own.
[General Paranoid Android Discussion] lorolouis:
Very good idea!!!

TKruzze, if you are good with java / C codding, as you are perfect in re-packing :) + scripting for it, can you make some kind of pa-gapps-tkruzze-manager.apk that once included into Mini-GApps module it will offer a simple UI with the only function to list and choices to "get from play", "make system", "delete"

Something like a table with all names pre-loaded with showing current status (System, User, Not-Installed) so anyone can choose what to add, test, move to system, or remove.

Such PA gapps core + manager will have big success I believe.

Thanks for supporting PA_GAPPS anyway!
[General Paranoid Android Discussion] occtec:
[MENTION=2777334]TKruzze[/MENTION] there is already an update on play store for Google+ and keyboard. If using your gapps is it advisable to update through play store or wait for your gapps update. Cheers

NEXUS 4 | PA3.99 | FAUX
[General Paranoid Android Discussion] benjdm:
Oops. I voted before I read this. Please subtract one vote for option 1 + option 2 + Youtube. (I don't think I'll be using the mini-Gapps.)
[General Paranoid Android Discussion] TKruzze:
Go right ahead and update. See Question 4 for complete details.

Sent from my ΠΣΧỤŞ 7² tablet
[General Paranoid Android Discussion] lorolouis:
FYI

Just one side note about "Google Keyboard" update in question.

I tried to move the update from play, which works fine, to the system by using TB as well as by manual replacement of existing apk there - same name, chmod and so on.

Cleaned cache etc...

This way usually works, but this time something went wrong. The moved to system keyboard update hangs.

So I reverted back and left the update as "normal" from Play.

Tested on PA 3.97 and 3.99. Probably I am missing something, libraries, renaming or so.

Otherwise, as normal play update, everything works fine.

Just the integration into system looks a bit tricky.

Regards.

Update:

Figured out ... the .so file has to be separated from the apk and and put to the /lib .

To lazy to repack/resign the apk to make it system ... or even flashable add-on.

Leaving the work to TKruzze :) for next PA Gapps release.
[General Paranoid Android Discussion] TKruzze:
As you found out, 'Integrating Updates into ROM' from Titanium Backup does not work well on applications that use sharable libraries. I've completely stopped using that function in TB because it causes more problems than it solves. The same is true if you're manually moving the apk file.

Even if you update the app from Play Store, the next GApps update will take care of the integration AND it will be done properly.
[General Paranoid Android Discussion] lorolouis:
Yep, I made it system by going on safer side - by TWRP, instead of trying on working system itself.

I first got the Play update installed / working on /data partition confirmed,

then rebooted to recovery, mounted the /system and copied the 2 files .so and .apk to their places / names to the system.

But I found some TWRP s***t not working properly, BTW. (sorry a bit OT)

I recently went back from TWRP 2.6.1.0 to 2.6.0.0 because some people reported the newest one has issues with radio flashing,

but I found the Terminal command "ls" at /system/lib gave me "segmentation fault" - I think this is some busybox or so glitch.

No problems or any damage however.

In addition TWRP 2.6.1.0 has no such "segmentation fault" there (tested).

I'll go maybe even to TWRP 2.5.0.0 ... or just stop playing and wait next full Gapps package :)
[General Paranoid Android Discussion] UnitedOceanic:
I've made a custom gapps package for my self on android 4.2

You just have to take the libs from the apks (open as zip) and copy them to system/lib with 644 permission.

An easier way to do this for example for the g+ update is to go to /data/data/com.Google.abndroid.apps.plus/lib an copy the libs from there.

Apps extract the libs when you install them, this is good to know because some apps have libs for different CPU types.

Unfortunately I haven't found any app / script that can automate this procedure. Titanium backup can only push the apks from /data/app to system/app same is true for system cleanup. How everver system cleanup shows which apps have libs.

If I may suggest an even more complete gapps package?

with translate, drive, skymap and perhaps even ingress?
[General Paranoid Android Discussion] TKruzze:
If you're pulling the apk's from my GApps package, be careful. To save space, I remove the lib folder from the GApps apk's since they're not used in the system partition.

Also, the philosophy of our GApps package is to provide the original Nexus GApps that come on a stock Nexus device. We had to draw the line somewhere. :D

EDIT: Only future releases of PA GApps will have the apk changes referenced above. I've been testing this for the past 10 days locally.

EDIT 2: Wrong again. The 0822 GApps does have lib folders removed from system apk's.

Sent from my ΠΣΧỤŞ 7² tablet
[General Paranoid Android Discussion] UnitedOceanic:
you are right with the nexus experience.

Are you planing to bring back the thinkfree or quickoffice app? they are included in the nexus images :o

I did once remove all lib folders from apks i pushed to system, i found that some app like titanium will not work as they should.
[General Paranoid Android Discussion] halomaster:
Is this compatible with other devices, or is it only compatible on the Nexus 4?
[General Paranoid Android Discussion] napster113:
Yes it is compatible.

Sent from my Nexus 7 2013 running Pa with Tapatalk HD
[General Paranoid Android Discussion] 75markus:
just a quick heads up for those who have some photospheres without geotags because of the bug :

get the free app "GeoTag" from google play, you can add the geoinformation to your existing (photosphere) pics and upload them successfully to maps without changing system language ...

:cool:
[General Paranoid Android Discussion] joefso:
hooray for mini gapps poll! Will there also be the current keyboard used in PA GApps in the mini? Also the current browser used in paranoid android, is that part of the PA GAPPS or part of the PA rom? The browser is awesome!

voted for option 1 and 2