yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Nikhil:
do you have the recovery logs or addonlogs from /sdcard/NikGapps?

ExtraFiles are additional files required for Gapps to be functional.

You can backup those folders by creating your own addon.d script and listing all the files in list_files function. Refer any of the 10-**.sh script for example.
[Android Software Development] osm0sis:
Pretty much.

- nexus.xml is needed (it's basically experience 2016).

- pixel_experience_2017.xml is needed.

- pixel_experience_2018.xml, pixel_experience_2019.xml and pixel_experience_2019_midyear.xml are harmless if included, so test away there.

- definitely remove anything after that.
[Android Software Development] Nikhil:
Done! new hotfix release is up. It removes all the files that we discussed (2018+). Google Photos should be able to edit the images now. :)
[Android Software Development] osm0sis:
One final bug for now.. 😛

Android System Intelligence seems unable to download language packs.

Settings > System > Languages and input > On-device recognition > Add a language

Then you'll see it just spins and never downloads. If you stop the download and tell it to try again then you'll get a "Download failed" notification.

It's like it's missing a network/WiFi/data access permission or something. 🤔
[Android Software Development] Nikhil:
It is happening because the service intent responsible for downloading the language model (

com.google.android.as.oss/com.google.android.apps.miphone.astrea.grpc.AstreaGrpcService)

does not exist on the ASI that is updated through playstore.

We ship the pixel version of ASI but that doesn't have On-device recognition by default. The option appears as soon as it is updated through playstore only this time, the updated app is on a non-pixel version of the app.

You can confirm this by noting the current version of ASI app and then uninstalling the playstore updates. Current version is playstore one and shipped version is sysimg.

This is the fundamental approach of differentiating pixel features from non-pixel device and the only way out is to make the playstore believe its a pixel device.

So here are our options

- Use Pixelify Magisk module to spoof the device into pixel (that solves a lot of problems)

- Fetch the updated ASI from pixel device (not image as it ships older version) and try that - at the same time, ensure it doesn't update via playstore.

I will investigate more to see if there is another way out. (y)
[Android Software Development] osm0sis:
Ah good, so it's not just from me f'ing around with xml files and package configs! 😆

Yeah I'll check APK mirror to see if they've got a Pixel version that can update language packs correctly. 🤞
[Android Software Development] osm0sis:
Nope. They all fail. 🫤

Tried various pixel# builds, oemfull and a newer sysimg.
[Android Software Development] kundifon:
I repeated process to provide all possible logs. https://drive.google.com/file/d/1SoDAT1UrW6pUXgTN-O01OaIO-1ws-X4G/view?usp=share_link

Initial install - all is as aspected, noticed NO errors.

update - seems that debloter delete only folders. Single files left. As said Effect_Tick.ogg wasn't deleted.
[Android Software Development] osm0sis:
This was the first time I'd attempted an OTA while being on NikGapps 13, and welp, looks like addon.d for NikGapps (at least for some packages?) may currently have some issues.

I flashed the latest weekly OTA of Lineage 20 over the previous on my OnePlus 9 Pro and when I rebooted Play Store became uninstallable, which is, uh, a bad sign, and Play services was crashing constantly, also bad.

Back in recovery I tried reflashing NikGapps to hopefully resolve the issues using a dirty flash, but it seems the size calculations are broken so Core got skipped with "insufficient space", and Velvet and GBoard all got skipped due to "no space left"... This should be impossible with a dirty flash of the same config, so my guess is that NikGapps must not be tallying its own files correctly? :cry:
[Android Software Development] retry0001-coffee:
oh damn. I'm scared to do my first OTA update now o_O
[Android Software Development] osm0sis:
Luckily we have a working TWRP and I did a fresh backup before attempting the OTA... ;)

Easiest way to salvage it from there was to flash untouched boot.img to get Lineage Recovery back, then use it to flash the ROM zip again, then reboot to Lineage Recovery on the new slot, and "clean" flash NikGapps using my config again, so it's all there again, then flash TWRP again to reflash Magisk and restore my /data backup.
[Android Software Development] retry0001-coffee:
which NikGapps are you using? Sounds like you're doing custom config too. I just use core. I like simple/minimal.
[Android Software Development] osm0sis:
Full, and custom config but only slightly modified to remove PixelLauncher and GoogleWallpaper.
[Android Software Development] Nikhil:
Yes, the size calculations are for clean flash to avoid flashing few files and then running into issues.

If the system has 100 mb left and we have two apps to install (say worth 120 + 60 mb), it's safe to install the second app (60 mb) than to copy over 100 mb of first and leave out 20 mb that it still needs to work.

You're right, It's actually impacting dirty flash too, where it's not able to differentiate the size of the gapps which will anyway be overwritten.

So I could fix up the calculations by taking that into account or as a quick fix, delete the Google app files first and then do the calculations, so it frees up the space and then checks if it has enough space to install the app (then it should always find space)

About the ota update, it is strange that you ran into crashes. Do you see addonlogs folder generated in /sdcard/NikGapps folder? It should still be there unless you formatted the /data.
[Android Software Development] Nikhil:
Core doesn't run into issues due to storage space. Which is usually the case behind failed addon.d execution.
[Android Software Development] Nikhil:
I just performed an OTA update on my oneplus 7 pro with NikGapps Full. It worked fine. Attaching the screenrecord. :unsure:

What I suspect that is happening here is - while restoring, the system is not finding enough space to restore all the apps and GMS and Playstore (without which we'd see a lot of crashes) restores after many other apps (such as Android Auto, DPS, GBoard) which comes alphabetically before GMS.

I will make necessary changes to index them such that the restoring happens in the order of the installation.

so changes in the space calculation will allow dirty flashing and changes in index will avoid crashes in the case when system is out of space while restoring.
[Android Software Development] casouzaj:
I also perform OTA updates on my Xperia XZ2 phone, running LineageOS 20.0, Nikgapps Full and latest Magisk Delta Canary (with some modules). Everything runs flawlessly.
[Android Software Development] osm0sis:
Thanks for looking into the space calculation issues, that'll be great to have dirty flashing fixed.

But how could it all fit in my subsequent actually clean flash, where the addon.d restore apparently ran out of space? There either is space or there isn't, no? Suggests maybe the addon.d scripts aren't removing something they should, as well.
[Android Software Development] Nikhil:
The space calculation issue should be fixed with this. I am checking how long the indexing in addon.d script's name will take. if it takes long, I will make a hotfix release with this change and implement indexing later.

Usually, its the mounting/unmounting of partitions that can result into failure of the addon.d execution or the order of the scripts execution. Storage space should most likely not cause an issue as you're playing around same amount of space that was previously allocated when you clean flashed. Unless dynamic partitions behave differently.

Could you please check your /sdcard/NikGapps folder to see if you have addonlogs folder in it? would be great if you could share the files.
[Android Software Development] Nikhil:
Absolutely, mine has a lot of apps deleted. I think the restore part ran into issues between Drive and Gboard. Which is why we don't have any deletions logged after DocumentsUI. This means, if GMS was executed before we ran into the error, we'd still have play services functional.

The next time you clean flash, can you try an ota update with NikGapps basic? If that works fine, then most likely it is a storage issue.

Meahwhile I will change the name of the addon.d scripts to have core apps executed above others.
[Android Software Development] Nikhil:
Next Release will have this working! :)
[Android Software Development] Nikhil:
@osm0sis can you try the latest build and confirm if following changes are reflecting?

- Fixed the select text issue with Pixel Launcher

- Fixed Live Captions (ability to download languages and detect captions)

- Fixed At a Glance widget not showing up weather in Pixel Launcher

The variant definition is changed, trying to keep stock as close to pixel as possible so you may wanna check the downloads page on NikGapps website to get more details on the current definition.
[Android Software Development] osm0sis:
I use Lawnchair, so hopefully someone else can confirm the PixelLauncher parts, but downloading now to try things out with a dirty flash. 🤞

Edit: @Nikhil, will the dirty flash handle the migration of the addon.d scripts from 10-* to the new numbering?
[Android Software Development] casouzaj:
I dirty-flashed today's full build. Weather icon is showing in Pixel Launcher. Thank you! Xperia XZ2 here, running LineageOS 20.0.
[Android Software Development] Nikhil:
Yes, it will.
[Android Software Development] osm0sis:
From a dirty flash so far I'm seeing Live Captions still can't download or enable, same toast notification error as before.

More concerning, I've now lost Screen Attention (was shown under Display > Screen Timeout), which actually worked previously, and On Device Recognition is now entirely missing from System > Languages And Input, where it was shown but downloads not working previously. Accessing Transcription Language from Recorder, or Add A Language from Speech Services shows an infinite spinner when attempting to download, like before.

Maybe having it working might be a clean flash only thing? Still bummed about Screen Attention though... 😬
[Android Software Development] Nikhil:
Yes, those who dirty flashed, did not get the features working. After clean flash, they got it working.

You can try clearing gms, ais, tts data and uninstall playstore updates of private compute services and Settings Services.

If it's too much hassle, best is to clean flash.
[Android Software Development] osm0sis:
Hmm and do you think Screen Attention will also come back with those apps wiped and/or clean flash? It was a super cool feature to have working. 😯

Edit: Wiping apps didn't do the trick unfortunately. 🫤

Edit 2: Also, I'd like to suggest you include leading 0's for your new numbering so that they don't get lumped in with ones at 50s and 90s.
[Android Software Development] Nikhil:
Okay, that makes sense. I will do a hotfix release with this change and you can just dirty flash it. For now, just manually rename the files or rename the other ones so those are sorted properly.

About the screen attention, I have it working in the latest build that I have so if you clean flash, I think you'll have it too.
[Android Software Development] osm0sis:
Slight regression I just noticed with the installer: org.lineageos.eleven Music remained at /product/priv-app/Eleven even though NikGapps Full installed YouTubeMusic.
[Android Software Development] Nikhil:
YouTube music is removed from full, it's now a separate addon. Did you clean flash? It's not supposed to install youtube music.

Could you send me the installation logs?
[Android Software Development] osm0sis:
Ahh, no you're right. YouTubeMusic is now a user app after the "clean dirty" flash (clean system flash over dirty data) and I hadn't realized. Thanks, wasn't sure what had changed with the package lists.
[Android Software Development] Nikhil:
So just to confirm, is everything working as expected now?
[Android Software Development] osm0sis:
I'll need to do a real clean flash to try and get Screen Attention back, and Live Caption, etc. working. No time for that tonight unfortunately. I'll let you know once I do try that though!
[Android Software Development] Nikhil:
Thanks, take your time, With last release, I've implemented the 'uninstall' part before installing, NikGapps installer now removes all the traces of installed apps first and then installs a fresh new ones. That is how the addon.d files were also replaced.

So all that is causing issues is data, I believe wiping that will bring those features. (y)
[Android Software Development] osm0sis:
Could it also run the uninstall if it detects the NikGapps prop for an app not currently selected in the config? That would allow for cleanly changing to fewer apps within a given NikGapps package config on-the-fly without reflashing ROM, which would be kinda badass. 😯
[Android Software Development] osm0sis:
Tried an OTA again with 0309 for fun before clean flashing, and the stock removals from at least /product definitely aren't occurring; Stock Lineage Etar, ExactCalculator, Gallery2, Jelly, LatinIME, messaging, webview, etc. are all back. That would also explain why my previous OTA attempt ran out of space on restore. 🤔

addon.d logs look the same as my last, but with the improved order.

Anything you would like me to grab before I wipe?

Edit: @Nikhil, I grabbed the output of `find /product /system /system_ext | sort` so that you could see what things restored and what didn't, and zipped up my addon.d directory for you to inspect the scripts. Hopefully can figure out the issue, I think you've been doing amazing work here to make the only truly robust GApps solution around right now. 😁🤞

Edit 2: Ignore the disabled/missing SetupWizard in the config/addon.d, that was just an extra test I was doing. :p

My plan is to set it =2 now to keep LineageSetupWizard since I think it's messing up a couple things like SeedVault and Gestures when that's not present on proper Lineage.
[Android Software Development] phaleg:
Thanks NikG,

Of course I find it useful and I am planning to use your package on next flash I do. At the same time, I would like to ask you for a couple of details, please check above my notes on your quoted message :highfive: (I know you wrote it in beginning, but I wanted to be sure it applies to all of them)

Do they work on all ROMs?
[Android Software Development] Nikhil:
I checked and found that find my device option comes from Google Play services and it is dependent on find my device app on play store. You need to install that app for the feature to work however find my device option is not dependent on the app. It stays in settings irrespective of the app being installed.

I will provide an add-on zip to remove digital well-being. Are you familiar with add-ons that I provide? If not, check out [MENTION=8381388]NikGA[/MENTION]pps group on telegram. I haven't found time to update XDA thread in a while.

Yeah, I can create that, pm me if you have a specific app in your mind that you want to debloat.

Thanks for the feedback :)

At the moment, it doesn't work on Omni ROM for some reason. I will check that out once I'm free, it works on all other ROMs. I haven't had any report of NikGapps not working on any other ROM :)

Check out [MENTION=8381388]NikGA[/MENTION]pps telegram group for latest builds.
[Android Software Development] Dims_Camper:
Sorry for making request without further searching, I've found the debloater zip spreaded over XDA. Thanks!
[Android Software Development] khan_frd2002:
[MENTION=4867515]Nikhil[/MENTION] if you are going to use omni name atleast make it work on omni

add this permission please, getting bootloops because of missing permission

tested basic and omni gapps both works with this permission cant say about other gapps

E System : java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.google.android.apps.wellbeing: android.permission.SUSPEND_APPS, com.android.vending: android.permission.CHANGE_OVERLAY_PACKAGES, com.google.android.dialer: android.permission.MODIFY_AUDIO_ROUTING, com.google.android.gms: android.permission.ALLOCATE_AGGRESSIVE, com.google.android.apps.wellbeing: android.permission.OBSERVE_APP_USAGE, com.google.android.dialer: android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS, com.google.android.ext.services: android.permission.PROVIDE_RESOLVER_RANKER_SERVICE, com.google.android.apps.wellbeing: android.permission.PACKAGE_USAGE_STATS, com.google.android.apps.wellbeing: android.permission.WRITE_SECURE_SETTINGS, com.google.android.apps.wellbeing: android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME, com.google.android.dialer: android.permission.CAPTURE_AUDIO_OUTPUT, com.google.android.dialer: android.permission.READ_PRIVILEGED_PHONE_STATE, com.google.android.apps.wellbeing: android.permission.CONTROL_DISPLAY_SATURATION, com.android.vending: android.permission.READ_RUNTIME_PROFILES, com.google.android.googlequicksearchbox: android.permission.PACKAGE_USAGE_STATS}
[Android Software Development] Nikhil:
I have the fix for the bootloop for all the versions of NikGapps :)

Next build will have it.

Thanks for sharing the permissions list :)
[Android Software Development] raikko5:
Hi.. can we get Addon Packages - Remove AOSP Contact.. - i'm prefer Google Contact (cause it have block number function).. really great if can combine AOSP Dialer (got recording function) + Google Contact (got block number function)... its like what we had in miui rom...
[Android Software Development] Nikhil:
Update!

Changelog

» Support Priv-app Whitelist (Fixed boot loop on Roms like Omni)

» Separated the Addon.d script for individual packages (Fixed addon.d override issue)

» Introducing nikgapps.config (control the installation as you need now)

» Revamped the NikGapps implementation method

» Reduced the zip size (implemented compression - core - 66.2 mb only)

» Moved the addon packages to single zip (configuration will allow you to control the installation)

» Beautified the installer and addon.d restoring process now shows the progress

» Latest Google Apps (12th Sept)

Download nikgapps.config from the attachments. The instructions are present in the file itself, if you have questions on it, let me now.

Download links for Gapps are in OP

Join Telegram Group for quick support

Enjoy! :)

P.S. gapps for Q is in works!
[Android Software Development] bayad:
Many thanks for this update but what is nikgapps.config and how should I use it ?
[Android Software Development] Nikhil:
You need to place it in /sdcard/NikGapps folder

The installer will read the file from /sdcard/NikGapps/nikgapps.config and install all the packages except for the ones that you mark as 0 in the config file.

The package list is already present in config file, set the value to 0 accordingly. :)
[Android Software Development] asifzbaig:
Does Lawnchair comes bundled with its Recents implementation as well?
[Android Software Development] Nikhil:
No it doesn't, you need to flash the magisk module.
[Android Software Development] Martensite:
Thanks man. I always hate that google setup garbage.
[Android Software Development] e2vinay:
[MENTION=4867515]Nikhil[/MENTION]

does Addon package include google calander sync adapter?

would you mind adding ?

Thanks for your work.

following your Gapps packages since MIDO
[Android Software Development] Nikhil:
I can add an addon. No problem with that. But core package already has google calendar sync, why not use that?
[Android Software Development] e2vinay:
Thanks

I can use which is available in core package
[Android Software Development] Abirdey@2011:
Hey can I flash it over opengapps cuz i need face unlock which was not installed cuz i used pico gapps. Also mention which of ur packages have faceunlock.
[Android Software Development] Nikhil:
Just flash this.

https://androidfilehost.com/?fid=6006931924117937402
[Android Software Development] e2vinay:
[MENTION=4867515]Nikhil[/MENTION]

Google Cal sync adapter is missing on latest core package

NikGapps-core-arm64-9-20191014-signed
[Android Software Development] Nikhil:
Here you go!

https://sourceforge.net/projects/ni...kGapps-addon-CalendarSync-signed.zip/download
[Android Software Development] GlennMax:
do you mean we need to put the config file inside the zip of nikGapps.zip?
[Android Software Development] Nikhil:
yes, that can be implemented, only thing is, the apps that are updated from playstore, will remain installed, so apps that function only when they are system/priv-apps might start crashing. For e.g. AIS - it gets updated and will not work just being data app. It's fine when user just wants to get rid of it, then he can just uninstall the playstore updates to stop the crashes.

Also, there are apps like GoogleChrome (which comes with WebView and TriChromeLibrary), uninstalling those will cause issues (may be bootloop in some cases) since it replaces the aosp counterpart and system needs at least one of the provider to function.

All this can be achieved if executed in the right way. That is why we advise following this. In this, instead of setting 0 to the package in nikgapps.config, we can set -1 and the zip will uninstall it. Reflashing the rom fills any missing piece that is left with uninstalling.
[Android Software Development] Nikhil:
Thank you :) means a lot!

I think the culprit might be this. It's assuming that /product is symlinked to /system/product and by deleting

"/postinstall$S/$i"

we're deleting the ones that are part of /product too. Apparently, that's not enough.

I think I need to add

"/postinstall/$i"

so it removes /postinstall/product/<app>/<foldername> too.

unfortunately, I cannot test on op7 pro, I will make the changes and release a new build with above changes.

Thank you for sharing the logs, helps a lot! :)
[Android Software Development] Nikhil:
HI, Thanks for sharing the logs, I've found the root cause, fix coming up with next release. (y)
[Android Software Development] GRAM333:
hi where is the basic NikGApps android 13 down load..???..when i try download i get the full ....thanks
[Android Software Development] Nikhil:
https://sourceforge.net/projects/nikgapps/files/Releases/NikGapps-T/09-Mar-2023/NikGapps-basic-arm64-13-20230309-signed.zip/download
[Android Software Development] GRAM333:
great,,,thanks for the link
[Android Software Development] Nihuya ne rabotayet:
I tried installing the Core and Basic packages, the installation is successful, but the Play Market is not installed

(Samsung Galaxy A52s5G, LinageOS 20 Android 13)
[Android Software Development] Nikhil:
Send the installation logs, you'll find it in /sdcard/NikGapps folder
[Android Software Development] Nikhil:
You don't have enough space left for gapps after you flashed gsi.
[Android Software Development] Nihuya ne rabotayet:
I have enough space on my phone. Can I somehow expand the section for gapps?
[Android Software Development] Nikhil:
It's best if you check with your Rom developer and ask him to increase the partition size.
[Android Software Development] Nikhil:
@osm0sis just checking if you flashed the latest build and/or facing any issues?
[Android Software Development] osm0sis:
Just discovered your 0311 GApps build last night and flashed it in prep of doing the 0314 Lineage OTA. I plan to do a backup and give it a try tonight or tomorrow. 🤞

One odd thing from my last clean flash though, it did bring back Screen Attention successfully, and ASI language downloads looked like they were going to work from a quick test without my Google account, but then either logging in with my Google account or the Google Restore of app data seemed to have broken it again so it's back to only spinning and failure toasts. 😕
[Android Software Development] Nikhil:
I just tried adding a new account and it worked fine so I think it's the data restore that must have caused the problem.

I also cleared ASI data - which removes the downloaded languages and tried adding again, works fine and fresh downloads the languages.

I suggest you try deleting data of ASI and retry downloading the languages. (y)