yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Deltadroid:
That line of code had been used since kitkat, but I will run some tests to make sure it's working correctly.

Thanks!

Edit: the reason it does not start with "$" is because we are testing true or false on a function, not a variable.

If the function returns more than one word or it is being compared to another value, then it would be quoted like this:

"$(func arg)"

But, if we are just testing true or false, then it doesn't need to be quoted.

if func arg && [[ $foo -eq 1 ]]; then echo TRUE; else echo FALSE; fi

Basically, the function is "if 0" or "if 1", which doesn't require quotes since it's only returning a single value of 0 or 1. If the function returns two or more values like "1 2" then we would need quotes around it.
[Android Software Development] ettore88:
Hi guys!!!Great work!!!I ask you just a question...I have installed all addons...I have found the apps organized in this way:[/IMG]

Why? What real change?Hw can i fix it?THX in advance!!!;);)
[Android Software Development] Deltadroid:
The latest version of Google Search changes the behavior of the drawer in Google Now launcher. The scrolling in the drawer is now vertical instead of horizontal, and the top five most used apps are now located at the top of the drawer. If you like the old drawer, you can install the previous version of Google Search.

It's the new look for Android M.
[Android Software Development] LeftyGR:
Long press home screen. You'll get this:

See those three dots? Click on them. Under drawer you can change the layout.

Granted, this is with Trebuchet. Not positive about gnow launcher...
[Android Software Development] zan.:
For those who have already installed older packages, do you recommend installing the new packages with the proper permissions or this is optional?
[Android Software Development] Deltadroid:
Its optional, but you can flash this directly on top of the previous version without having to reinstall anything else. You dont have to flash your ROM again.
[Android Software Development] ettore88:
Many thx 4 ur support!!!I have google now launcher...Hw can i fix it?Thx again!!!:)
[Android Software Development] LeftyGR:
Next time you do a ROM flash, clean or dirty, load your gapps without gnow launcher. Once set up, change that setting in Trebuchet. Then try flashing the gnow launcher and see if the setting sticks. It did for me when I tried it. I'm using aicp recent nightly.
[Android Software Development] LeftyGR:
[MENTION=5227588]Deltadroid[/MENTION]

I looked at the updater scripts for your packages, and a quick search thru the thread. I couldn't find if installing any of your modules would remove app updates (from /data/app). Could you shed some light on this? Thank you, sir!
[Android Software Development] Deltadroid:
The add-ons don't remove any app updates from /data/app, but lollipop has a built in upgrade feature that will automatically remove app updates from /data/app if the version of the app on the system partition is newer.

Kitkat doesn't automatically remove app updates from /data/app/, only lollipop does.
[Android Software Development] ohannguyent:
Can I do wipe cache /data before flash the update of qapps?
[Android Software Development] Beyaz66:
Sorry for my bad. And thanks for these explanations.

Currently this is not working as it should:

[COLOR="DarkRed"]good_ffc_device() {
if [ -f /sdcard/.forcefaceunlock ]; then
return 0
fi
if cat /proc/cpuinfo |grep -q Victory; then
return 1
fi
if cat /proc/cpuinfo |grep -q herring; then
return 1
fi
if cat /proc/cpuinfo |grep -q sun4i; then
return 1
fi
return 0
}[/COLOR]

No matter the case in which we are, it always do an exit 0 and make "if good_ffc_device" true. Deleting the last return didn't changed anything. And there's not the choice for the user to not install face detection wrote by this way.

So, the script would(/WILL) work when (as 0=successful execution and 1or> =failed execution):

[COLOR="Olive"]good_ffc_device() {
if [ -f /sdcard/.forcefaceunlock ]; then
return 1
elif cat /proc/cpuinfo | grep -qE 'Victory|herring|sun4i'; then
return 1
else
return 0
fi
}[/COLOR]

Now face detection will be installed unless the user indicates to not install or have a cpu with one of the features (A quick googling didn't told me why it's not installed for them. If someone knows...)

Then things can be simplified:

[COLOR="SeaGreen"]force="/sdcard/.forcefaceunlock"
cpu=$(cat /proc/cpuinfo | grep -E 'Victory|herring|sun4i')
perm="/system/etc/permissions/android.hardware.camera.front.xml"

if [ ! "$cpu" ] && [ ! -f $force ] && [ -e $perm ]; then
echo "Installing face detection support"
cp -a /tmp/face/* /system/
else
rm -rf /system/vendor/pittpatt/
rm -f /system/app/FaceLock.apk
rm -f /system/lib/{libfacelock_jni.so,libfilterpack_facedetect.so}
rm -f /system/addon.d/71-gapps-faceunlock.sh
fi
rm -rf /tmp/face[/COLOR]

You could also give the user the choice to put the .forcefacelock file where he wants on sdcard with:

# search for file and use first occurrence
[COLOR="SandyBrown"]force=$(find /sdcard/ -name .forcefaceunlock -maxdepth 4 -size 0b 2>/dev/null | sed 1q)[/COLOR]

Personally, i prefere to do not install the face detection unless the user wants to and if it's possible:

[COLOR="MediumTurquoise"]force=$(find /sdcard/ -name .forcefaceunlock -maxdepth 4 -size 0b 2>/dev/null | sed 1q)
cpu=$(cat /proc/cpuinfo | grep -E 'Victory|herring|sun4i')
perm="/system/etc/permissions/android.hardware.camera.front.xml"

if [ ! "$cpu" ] && [ $force ] && [ -e $perm ]; then
echo "Installing face detection support"
cp -a /tmp/face/* /system/
else
rm -rf /system/vendor/pittpatt/
rm -f /system/app/FaceLock.apk
rm -f /system/lib/{libfacelock_jni.so,libfilterpack_facedetect.so}
rm -f /system/addon.d/71-gapps-faceunlock.sh
fi
rm -rf /tmp/face[/COLOR]

Could you make the change with this last one if it suits everybody's needs?
[Android Software Development] Deltadroid:
I see what you mean. It is always returning 0. Thanks for your code. I will fix it in next release. Good catch!
[Android Software Development] PriteshChauhan:
Hi,

I upgraded (dirty flashed) gapps base package, upgraded google search addon and again flashed google home addon (gnow launcher) but I am not getting the top row (5 recent apps) in the drawer.

Any reasons or work arounds?
[Android Software Development] Deltadroid:
There are some options in Google Search that tell Google Search what it can search for on your device. Maybe that is related.
[Android Software Development] PriteshChauhan:
yup all options are checked... still not getting the top recent app row..
[Android Software Development] Deltadroid:
Is your drawer horizontal or vertical scrolling?
[Android Software Development] PriteshChauhan:
Vertical scrolling...
[Android Software Development] PriteshChauhan:
Here's the screenshot...

Edit: I tried clearing twice the cache & data of Google App and Now Launcher... However I have not tried the full cache / dalvik reset after upgrade...
[Android Software Development] Deltadroid:
It could be a rom issue as well. I noticed that your drawer has also letters on the left side. My screen is different because my device is a different dpi

.
[Android Software Development] :
This is really excellent being able to replace the stock CM apps individually, it's exactly what I've been looking for, but I would also love to have a single package that replaces all the stock CM apps, in case I want to do a clean OS install.

Thank you so much for your work!

CyanogenMod 12.1 + Delta Gapps (AudioFX disabled)
[Android Software Development] PriteshChauhan:
Yes it could be.. I am on a CM12.1 based RR. However I think the Android M gnow launcher has the same lettering on left hand side as seen in the XDA review of Android M preview.

Nevertheless you have put in great things into working.. Thanks a lot... I am still happy and will be happier with the top row.. ;)
[Android Software Development] galen2:
Today have been updated google calendar 5.2.1-94626333, google chromecast 1.11.11, google camera 2.5.050 (1972983-30) with native lolippop support, google keyboard 4.1.22063.1974169, google hangouts 3.3.94322993, google play newsstand 3.4.1, google photos 1.0.1.94954577, google play store 5.6.8...

Deltadroid they want give work to you hehe.
[Android Software Development] galen2:
Deltadroid do u recomend me to install Android System Webview to use with aosp system webview or its better left aosp one alone?
[Android Software Development] Deltadroid:
The webview add-on does not remove the stock aosp webview. Google webview and stock webview can now work together. If your Rom is patched for Google webview, both will be used. If your Rom is not patched, then Google webview will just take up space on the system partition, but it should not cause problems with stock webview.
[Android Software Development] cuberio1:
Hello Deltadroid and ty for your work!

I have installed your previous lollipop base gapps and also previous messenger and keyboard addons. Is it recommended to update all of it with your new releases or not really "necessary"?

And in case one wants to update its base gapps and addons, should one just dirty flash it or better wipe system before ?

Sorry for the noob question (did try to search first )
[Android Software Development] csk1jw:
Deleted.

I had a mistake on my side.

Google Webview cannot replace the in-built system webview.

I ended up following http://xdaforums.com/showpost.php?p=60759013&postcount=2 to patch my ROM so that I can removed the obsolete in-ROM webview.
[Android Software Development] Deltadroid:
You can update each packages individually. The packages on the OP are not dependent on each other. No wiping cache necessary. Just flash package on top of previous version to update or downgrade.
[Android Software Development] Deltadroid:
If your ROM is patched to use Google webview, the stock webview just won't be used any more. It would cause some people trouble if it was removed and it's only about 2MB, so leaving stock webview won't harm anything.
[Android Software Development] ts_mpls:
It should also be mentioned that if you're using xposed there's a module (I believe called GoogleWebView) that'll force that behavior in all AOSP-based LP ROMs.
[Android Software Development] rockvoid:
HI!

why is facelock included in base package?

regards
[Android Software Development] Deltadroid:
The base package includes everything that is extracted from the nexus factory image that can not be installed from the play store. Facelock provides extra options for smart lock that are normally available for all nexus factory images.
[Android Software Development] arielgalula:
Hello, I want to ask an question, is there any benefit from using the others apps packages instead of installing from the play?
[Android Software Development] Deltadroid:
Only that you save space by installing to system partition. Also, when you factory reset, your apps will remain updated.
[Android Software Development] ASHURiCAN:
New Hangouts... ^^
[Android Software Development] zephyrus17:
Still triggering play store update.
[Android Software Development] Deltadroid:
I think we need to build a multi dpi installer for YouTube, but first I will need all the files for the various dpi devices (160, 240, 320, 480, 640, universal).

The version I packaged was the universal dpi version, which the version ends in 30.
[Android Software Development] galen2:
here u have youtube 10.21.57 (102157134)

http://www.apkmirror.com/apk/google-inc/youtube/youtube-10-21-57-2-android-apk-download/

damm google with specific dpi versions

Edited: And here u have 10.21.57 (102157131)

http://www.apkmirror.com/apk/google-inc/youtube/youtube-10-21-57-3-android-apk-download/
[Android Software Development] PriteshChauhan:
[MENTION=5227588]Deltadroid[/MENTION]

Yesterday I installed / clean flashed the same ROM with your updated gapps. and now i do have a recent apps row in the new GNow launcher drawer.

However, I now face one difficulty. The "ok google" is not working on the home screen which it did on other gapps packages. I could not report this on your gapps with previous installations, as I assumed that dirty flashing had broken something when i upgraded google search (for vertical launcher). It works only when i tap the mic icon and it starts listening. Earlier it automatically popped up when I used to say "Ok Google"
[Android Software Development] Matx13:
hello, thank you for your work, but OK Google -> FC.
[Android Software Development] fluffi444:
If we don't want to install FaceLock would it be OK just to remove folder "face" out of gapps.zip? Or will script run into error?

Or any other clean way not to let FaceLock install from the beginning?

Thx for your work!
[Android Software Development] Deltadroid:
Try the previous version of Google Search. The current Android M preview version could still have bugs.
[Android Software Development] Deltadroid:
Next release, I'll add an option to not install facelock. But if you don't want it, you can also just disable it. It will remain disabled on updates.
[Android Software Development] fluffi444:
Thanks. That would be nice. Disabling is not an option for me because I need the space on SYSTEM partition. And especially FaceLock eat lots of it.

Searched some time to find a new "gapps home"!

Finally I found you and this thread! Again: Good work! :good:
[Android Software Development] Deltadroid:
I just realized that the latest Google search app does not work with ok Google detection on cm 12.1. It probably only works with Android M. I always disable that, so that is why I did not notice. Going back to current release fixes it.

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

This can be flashed over the other release to downgrade. No wiping necessary.
[Android Software Development] d.casper.b:
OK Google not working on KitKat. Just gives an error (app has stopped or something). Using on Mokee KK.

Sent from my Motorola RAZR Maxx (XT910)
[Android Software Development] galen2:
google search on latest build for android M does not know for me (using spanish-spain), no ok google on cm 12.1 how deltadroid said. I flashed "old current official" version and now works "fine", i showed how works to my father... "ok google"... "call father" and search said... "what father?" lol
[Android Software Development] Deltadroid:
Since "OK Google" detection isnt working with Android "M" version of Google Search on Kitkat and Lollipop, I changed the links for the Google Search addons on the OP back to the latest stable version (20150519-1). The Android "M" version of Google Search is still available for download and testing a few posts back.
[Android Software Development] Andrw0830:
AOSP Keyboard FC

I was just wondering, was testing the last few versions on my Galaxy S5 and the AOSP will FC after typing a few characters. Sometimes it won't FC but most often they do. I tried 2 different roms so don't think that is the full cause. I am running 5.1.1, anyone else have that issue?
[Android Software Development] Phazmos:
Never, at least not on my n5. But I only use it for initial setup. After that Swype - a real keyboard - gets installed.

Try this

http://xdaforums.com/showpost.php?p=60786190&postcount=3743
[Android Software Development] Deltadroid:
The base gapps package installs /system/lib/libjni_latinimegoogle.so which adds gesture typing support to stock keyboard. This additional libary does not replace any already existing files. If you think this additional library is causing trouble with your keyboard, you could try removing it and rebooting. Although, it should not cause any problems with the keyboard to have that additional library since no files were overwritten.

Also, you could try replacing the stock AOSP keyboard with Google Keyboard and see if there are still FC's.
[Android Software Development] murlidhar85:
Google Play Services is getting FC all the time while location service is switched on. anyway I can stop this FC thingy?
[Android Software Development] Deltadroid:
It is an issue with ROMs that are built with specific toolchains.

Ask your ROM developer to patch libcore.
[Android Software Development] fluffi444:
This is a temporary fix. Read post before install....

http://xdaforums.com/showpost.php?p=61034998&postcount=230
[Android Software Development] d.casper.b:
Opera browser is force closing. I'm wondering if it's not related to the GApps. I say this because I tried a fresh install with Open GApps and it worked, except now Google keyboard didn't work (and I didn't flash the GApps' Google keyboard). Keyboard working fine using your GApps, and I also didn't flash the keyboard add-on.

I'll give a list shortly of all GApps I flashed..

Sent from my Motorola RAZR Maxx (XT910)
[Android Software Development] Deltadroid:
Opera fc is unrelated to gapps.
[Android Software Development] murlidhar85:
will that temporary fix work for lollipop devices too?

edit : manually deleting the gms folder seems to have worked as of now. no FCs. probably will delete it everytime i reboot the phone until a fix is released.

thanks a ton :)
[Android Software Development] fluffi444:
Or just do it like I wrote....

The init.d scripts deletes the files in cache and set the folder itself to chmod 444....

Then you do not have to delete it after boot. Furthermore it came out that after a while fc returns if you only clear cache or delete cache folder....
[Android Software Development] shahid.taak:
[MENTION=4090785]deltra[/MENTION]droid

Thanks for the updated installation script for Gapps , Google services get installed now on phones independent of DPI. I am currently using Kitkat Base Gapps package for 4.4.4: gapps-444-base-20150605-1-signed.zip. my mobile do not get into deep sleep until an unless i CLEAR ALL DATA of Google services but deep sleep issue reappear as soon as i reboot my mobile :( , this is very annoying , any solution ..... . .

My phone : Motorola xt907 , CM11 'M12'.
[Android Software Development] Deltadroid:
[MENTION=396053]shahid.taak[/MENTION]

CM11 M12 is too old to contain the wakelock bugfix. Check if a newer version is available (ie; nightly build).
[Android Software Development] galen2:
CM11 and CM12 had a bug with latest play services that creates no deep sleep, i know was fixed on cm12 but no idea about cm11. Until my rom was updated i fixed that disabling 2 permises, but i dont remember which, search it and im sure u will find which of them have to be disabled

Edited: i searched a bit and u have to go privacy on setting and disable permises "keep away" and "auto start", with that bug is gone, but is better if u upgrade your rom, patch was merged 23 mar how u can see here https://jira.cyanogenmod.org/browse/CYAN-6438
[Android Software Development] Deltadroid:
The wakelock bug with google play services is fixed in the latest cm11 and cm12.1 nightly builds.

Edit: I think CM 11 M12 is too old to have the wakelock bug fix included. Check if a newer version is available.
[Android Software Development] ettore88:
Hi guys!!!My question to you.I have installed google chrome beta...It's doesn't work..."Unfortunately,Chrome Beta has stopped."Hw can i fix it?Thx in advance!!!
[Android Software Development] galen2:
New Maps 9.10.0

Again we have to find multidpi and specific dpi versions (again damm google)

Version 9.10.0 (910010223) here 9100102xx means 64bits true?

Version: 9.10.0 (910010124) here
[Android Software Development] randa-76:
YouTube update

[MENTION=5227588]Deltadroid[/MENTION]

YouTube has been updated. It can be downloaded from here :good:
[Android Software Development] MauroRTR:
here's two more

YouTube_10.21.58_102158132 from my phone

YouTube_10.21.58_102158130 from my tablet
[Android Software Development] ettore88:
Hi!!!My question to you about YouTube addon...I extract the contents of YouTube addon(7zip)Where do I put (folder)the Youtube apk updated?THX in advance!!!;)
[Android Software Development] Deltadroid:
You flash the zip in the recovery. Don't manually extract it.
[Android Software Development] galen2:
Youtube 10.21.58 (102158133) here

Only YouTube_10.21.58_102158131 left but i remember deltadroid u own a 180 dpi device sure? update had rolled to play store for all my devices, i hope for u too.
[Android Software Development] Deltadroid:
Excellent. I'll package it this evening.
[Android Software Development] LeftyGR:
On behalf of Delta and the rest of us who use his gapps packages, I want to thank everyone for pitching in to help get all the pieces for his multi-dpi packages. This is what XDA is all about, sharing, helping, and working together. You all get a gold star!

[emoji294]
[Android Software Development] zephyrus17:
[MENTION=5227588]Deltadroid[/MENTION]

There's an update for Inbox here. Thank you.
[Android Software Development] randa-76:
Chrome Dev seems to be broken

I updated Chrome Dev (delta) and it FCs. However, when uninstalling (delta) it and installing it again (but from Google Play) it works fine
[Android Software Development] Deltadroid:
I just checked the chrome dev zip and it seems to be packaged correctly and the files are correct. The problem could be related to replacing the stock web browser on your ROM, but I have not had any issues when replacing the stock web browser so far.

Try clearing the data and cache for the stock web browser (Settings --> Apps --> All) before going to the recovery and replacing the stock web browser with Chrome Dev on the system partition. If you remove the data and cache of an app before you replace it, there wont be any orphans left over in the data partition for the app that is replaced.
[Android Software Development] randa-76:
Thanks a lot [MENTION=5227588]Deltadroid[/MENTION] for your quick response :good:

To be honest, I have never had an issue with Chrome Dev before. I prefer to wait until next update to install it again on system partition :cool:

Now it is working well but as a user app :D
[Android Software Development] aamadorj:
Same issue with latest Chrome add-on. Previous version was fine.

I already tried to fix it clearing Chrome data, but it didn't work.
[Android Software Development] DFault:
I use the latest Chrome and have not had a single problem with it.
[Android Software Development] galen2:
Android System WebView 44.0.2403.39 here

Camera 2.5.051 (1993596-30) here
[Android Software Development] Deltadroid:
I have just tested chrome and chrome beta add-ons with CM11 and CM12.1, but I can't reproduce any problems.

Edit:

I found the problem . It is fixed now.
[Android Software Development] aamadorj:
I tried some other ways to fix this issue and when I gave up I decided to remove Chrome from the system partition, wiping this partition, installing ROM and every add-on I use but Chrome and wiping Dalvik Cache. I also deleted a folder related to Chrome at data/data and I checked data/app for the same.

For my surprise, when my device booted up Chrome was at the app drawer. So I proceed to uninstalled from wherever place it was located, went back to recovery and installed latest [MENTION=5227588]Deltadroid[/MENTION] Chrome add-on. This time, newest Chrome is working just fine from system partition.

I just don't know what the heck happened before.
[Android Software Development] Phazmos:
Mmmm ....... How did you boot up after wiping system partition?

The os resides on system partition. Wiping system = wiping the os.
[Android Software Development] aamadorj:
Of course I installed ROM after wiping system partition. I modified my previous post to state this explicitly.