yashsingh1/xdaforums huggingface dataset:
[Android Software Development] MJPollard:
You'd be better off asking that question in the forums for your particular device. Flashing TWRP isn't as straightforward as it used to be these days, plus this really isn't the thread to continue discussing the topic anyway.
[Android Software Development] Nikhil:
2. Please find the answer below

Calendar, Drive, Docs, Translator, Gmail, Maps, YouTube and Earth - You can install these from playstore/aurora store.

Tabs - not sure which app this is

2.1. I don't freeze apps so I'm not sure, you're going to have to try this yourself.

5.1. yes, your understanding is correct

a/b/c/d) - correct

5.3. No, only the ones you flashed via recovery.
[Android Software Development] Nikhil:
did you flash the gapps after first boot?

I noticed you have youtube vanced, meaning you also have microg, can you try uninstalling it? it might be conflicting with gms.

if wallet is the only app that is not recognizing your account then try providing it contacts permissions.
[Android Software Development] Markus0911:
Yes I've installed the Gapps after first boot.

Now I noticed something strange. Wallet works fine when I open it through the Google settings in settings. When I want to open it through the app drawer, it is again searching for the Google account.

I also gave it permission to contacts. Indeed it is the only app that's not recognizing my account. But just when I open it through the app drawer or home screen.
[Android Software Development] lpedia:
Treble Info also reports on Seamless Update capability, so it would do the same job as Treble Check. Both Treble Check and Treble Info are FOSS, with source available on GitHub.

All Google Pixel phones released since 2016 have been A/B, and by now many recent phones from other manufacturers, especially flagships, probably also are A/B - with the notable exception of Samsung. This XDA article listed the A/B phones available in April 2018: https://www.xda-developers.com/list-android-devices-seamless-updates/.

Samsung has been unwilling to go along with Google's intention to make A/B mandatory. “Seamless updates” is a great Android feature that the Samsung Galaxy S21 Ultra still doesn’t have | gsmarena.com, dated January 2021, says that the Galaxy S21 was not A/B. Even now, Samsung phones aren't yet A/B: Samsung could finally implement seamless updates with the One UI 6 and Android 14 | samlover.com.
[Android Software Development] osm0sis:
@Nikhil Not sure when this happened, but just noticed /product/overlay/VelvetOverlay.apk, /product/overlay/GoogleTTSOverlay.apk and /product/overlay/SettingsServicesOverlay.apk have become 0-size, presumably after an OTA/addon.d. 😯

All other overlays are fine. Anybody else see that?

Edit: And I can confirm they're back to normal sizes after a NikGapps dirty flash. I'll have to see if they go back to 0 bytes after next week's OTA.
[Android Software Development] micky387:
Hi.

Is it possible to flash NikGapps on an virtual A/B device ?

thx in advance
[Android Software Development] osm0sis:
My OnePlus 9 Pro is Virtual A/B (super partition with dynamic logical partitions for odm, product, system, system_ext, vendor and vendor_dlkm) and NikGapps works very well.

Maybe post your log with your issue so @Nikhil or others may take a look.
[Android Software Development] micky387:
thx for your reply.

Then probably and device tree issue .

Do you have an repo to compare please ?
[Android Software Development] micky387:
i've found this

GitHub - TeamWin/android_device_oneplus_lemonadep

Contribute to TeamWin/android_device_oneplus_lemonadep development by creating an account on GitHub.

github.com
[Android Software Development] osm0sis:
I'm using @der_akinator's TWRP (hopefully to be official soon), and official LOS as my ROM.

https://xdaforums.com/t/recovery-3-...twrp-with-a12-a13-encryption-support.4523857/
[Android Software Development] micky387:
Fixed my issue

https://gerrit.omnirom.org/c/android_device_asus_zenfone9/+/43809
[Android Software Development] ayus2003:
Hi guys I don't know what is the problem but with NikGapps my gps won't work I tried with different custom ROMs and still getting the same result. Is this some bug ?? If so it needs to be urgently fixed !!!
[Android Software Development] Bhargav97:
I'm using MindTheGapps but it is missing Digital Wellbeing, can I flash Digital Wellbeing add-on (Nikgapps) to get this functionality? I know I could just switch to Nikgapps entirely but I don't want to do it without a data wipe and data wipe is something I'm holding off for now.
[Android Software Development] Nikhil:
It is working fine for me, which device do you have? is there anyone else facing this issue? did you flash the gapps before first time?

yes you can flash the addon.
[Android Software Development] Nikhil:
it looks like /product was full that's why the files were not successfully copied (rather with 0 size). The product partition is at 99% size even with dirty flash.

is there anything that can be deleted from product to make space? so the next time there is an ota update, it won't run into such issue.
[Android Software Development] osm0sis:
There's 18mb free in product after the dirty flash, so the 8kb overlays shouldn't really have ever been a problem...
[Android Software Development] Nikhil:
Yeah, that's logical, I'm wondering if ota update is introducing new (Rom) files in product or ota updater app is keeping a window of few MBs before copying the file over.

From the script perspective, failed one works just as it would work for successful ones (the files that correctly copied over). :unsure:
[Android Software Development] eleWator:
Think i messed up. Upgraded LOS from 19.1 (with NikGapps core) to 20 according to LOS howto.

Sideloaded NikGapps T Basic without reading https://nikgapps.com/misc/2023/03/04/Flash-NikGapps.html

I was supposed to uninstall updates in playstore and do a bunch of other things, uninstall Nikgaps plus modify the new NikGapps zip which i didn't.

Only made a adb full backup prior Version upgrade which i dont even know is actually going to restore correctly on this non rooted device.

Is there a way to remedy my NikGapps now without full reinstall of everything?
[Android Software Development] Nikhil:
So what is your current state? Are you able to boot into Los 20 and experiencing crashes?
[Android Software Development] osm0sis:
Happened on my wife's 8T on Lineage as well, and her /product has 169mb free... So definitely something to fix in the script somewhere, and seems readily reproducible. 👍
[Android Software Development] Nikhil:
Did it happen for the same set of apps?
[Android Software Development] osm0sis:
Yeah, SettingsServicesOverlay again.
[Android Software Development] Nikhil:
Okay, I will try to reproduce it myself and look for root cause.
[Android Software Development] osm0sis:
Noticed a few things were added back in the post-addon.d dirty flash after/all_files.txt, which might be related as a bit of a regression on that.
[Android Software Development] eleWator:
it boots up and i see differences in the new OS, a test call worked, most apps worked but later on i found the clock ap[p is not oppening

It is reinstall time and thanks for the Gapps
[Android Software Development] ayus2003:
Device is Xiaomi Redmi 8

Codename: olive

Chipset: Qualcomm SDM439

Rom: Lineageos 20 (Android 13) (I also tried on other custom ROMs like ArrowOS and some other vanilla ROMs so it's not specific to lineageos only)

Yeah I read posts where people are facing similar issue here here and here

Note: All permissions to play services were granted from my side.

Also note that for those who couldn't grant sms and location permissions to play services it's because you didn't flash NikGapps at the time of flashing custom rom and booted your rom atleast once to fix that dirty flash your rom and then immediately flash NikGapps it will solve the issue.

Note: After flashing BitGapps (core) gps is working fine so it seems it has definitely something to do with NikGapps.

(Anyways I am out of this cuz my problem is fixed if someone else is having the same issue you can refer to this post)
[Android Software Development] osm0sis:
Can confirm back to 0 after the latest OTA on my device, same files. Similar diff. 🤔
[Android Software Development] Nikhil:
Thank you for the logs, looking into the issue(y)
[Android Software Development] Nikhil:
in addition to overlays, I noticed, there are few apps that did not successfully restore (the ones we can see in diff file). The addon script logs the file as 'copied' assuming if the restore function failed it wouldn't proceed ahead with logging. I've updated the script to check if the file exists before logging it as 'copied'.

Log only if the file is restored and exists · nikgapps/project@fbbd6cb

Contribute to nikgapps/project development by creating an account on GitHub.

github.com

the reason why those files did not successfully copy is still unknown, I believe it ran out of space, otherwise if there was an issue with the scripts malfunctioning, we wouldn't see mentions of those apps in addon logs.

can you try reshuffling apps that are relatively larger in size from product to system? for e.g. Gmail - 104 Mb,

GoogleMessages - 81 Mb?

the easiest way to do that is to edit 09-Gmail.sh and update list_files function to remove product/ from

product/app/PrebuiltGmail/PrebuiltGmail.apk. Same with GoogleMessages. This will copy the file to /system/app/PrebuiltGmail/PrebuiltGmail.apk instead of /system/product/app/PrebuiltGmail/PrebuiltGmail.apk.

if this works, then it is definitely a space issue.

I will also create a new elite build for you with above changes so you can flash dirty it before your next ota update and we get expected logs.
[Android Software Development] osm0sis:
But they're installed no problem with the dirty flash, so there must be space for them... 🤔

I mean, I'll try whatever you want to help troubleshoot (as long as it won't kill my daily driver), but I'm just saying it doesn't make sense.

Logically it must be a regression from the last few builds, since we had things flawlessly identical 2 or 3 back. Would going back to an older build to confirm likely break things since it would be going from QPR3 GApps back to QPR2?
[Android Software Development] osm0sis:
Did a clean-dirty flash by doing `fastboot wipe-super super_empty.img` then using Lineage Recovery to flash my latest Lineage ROM zip and NikGapps Elite build, which had some weird side effects like DocumentsUIGoogle disappearing, but then dirty installing NikGapps from TWRP got everything working again.

So then I did a booted local install of my current Lineage ROM zip to see how addon.d would work and now the before and after all_files.txt are identical again. 🤯

One weird thing is still occurring however, all my overlays now restore fine except for one: VelvetOverlay, which gets zeroed likes the others used to. product has 36mb free. 🤷‍♂️
[Android Software Development] Nikhil:
Sorry, I missed your post. 27th June 2023 was the last release when you confirmed there were no changes in before/after. After that, we've only had 1 public release that is 27th July. I checked the code for that and I don't see any code changes that could be messing it up. I will run some tests on my secondary device and try to find the root cause (y)

It's great to know that we don't have many shufflings now after clean-dirty flash. VelvetOverlay is mysterious but I'm glad others copied over successfully. Your daily driver isn't messed up.

Is there any chance you can dirty flash latest los build from recovery (instead of updating through updater app) and see if the VelvetOverlay.apk again behaves the same? if it does then at least we're repeatedly able to reproduce - which makes things easy for me.
[Android Software Development] osm0sis:
addon.d-v2 doesn't work in recovery, so doing that would break/remove all GApps installed.

I can booted local install again and make sure only VelvetOverlay is still effected if you like.
[Android Software Development] osm0sis:
What about moving all delete_in_system operations to pre-restore so that they complete for all scripts before the restore for any begins? That should ensure no weird space issues.
[Android Software Development] Nikhil:
yes, local install will also confirm!

android_vendor_lineage/prebuilt/common/bin/backuptool_ab.sh at lineage-20.0 · LineageOS/android_vendor_lineage

Contribute to LineageOS/android_vendor_lineage development by creating an account on GitHub.

github.com

addon.d v3 performs all the restore steps per script now. so that would mean, 09-Velvet.sh pre-restore, restore and post-restore would execute before 09-Webview.sh pre-restore, restore and post-restore. if there was any storage issue, we'd see that even with deleting everything with pre-restore operation.
[Android Software Development] alefmm:
Hi!

I installed NikGapps Omni on my device, works fine. Then I needed to use Android Auto and it isn't pre built on this version.

I know that we need a clean install to change Gapps but I was traveling and can't stay with AA. This problem was solved, Android Auto works as well.

My issue: some Google Apps (Gmail, Gnow, Gassistant) can't connect/sync on internet. When I open one of this apps, appers a icon (🌎 crossed). It means some firewall deny for apps.

Another: can't do OTA or adb sideload updates.

Spoiler content hidden.

Is there a way to solve this without format data (and restore a massive backup)?

Thanks in advance.

Device: POCO F3 / Alioth

ROM: LOS 20 20230708

Gapps: NikGapps-full-arm64-13-20230716-signed.zip

Kernel: Baalam 5.1 + KSU
[Android Software Development] osm0sis:
A second Local Install OTA had the same result: only VelvetOverlay is zeroed. So whatever it is that's happening, whenever it happens on a device, it's consistent in which files are affected. 👍

After the subsequent NikGapps dirty flash to restore the VelvetOverlay, the all_files.txt logs remain identical, which is also good news; weird that my old installation "changed" over time and started showing differences again, however... 😯

Ah wasn't aware addon.d-v3 changed that behavior... Makes having all the packages split a little more tricky... You could get wild and have the first run script of the installed packages call all the others, to clear all the space in advance, then create a file as a flag so this doesn't happen multiple times. 🤔

Edit: Can you add logging of file sizes to all_files.txt and addon.d logs? Might help see what's going on.
[Android Software Development] Nikhil:
Thanks for the details! Yes, I'll log the sizes to further improve logging. (y)
[Android Software Development] Nikhil:
I've never come across this issue myself, it's probably hidden under your settings - may be check if network access is provided to Google Play Services and Google Play Store?

you can also try uninstalling NikGapps - https://nikgapps.com/misc/2023/03/04/Uninstall-NikGapps.html and then install again by updating your nikgapps.config and setting WipeRuntimePermissions=1

uninstall will remove all the traces

updating the nikgapps.config and setting WipeRuntimePermissions=1 will wipe the necessary file which will make the followed up install close to clean flash.

If I don't make any more significant changes by the end of the day, I will trigger another Elite build for you with below changes and you can then flash them and capture size logs. :)

Capture file sizes along-side list when installing

Capture file sizes along-side list during OTA update
[Android Software Development] osm0sis:
For the installer output I think you'll want to switch the order so it doesn't end sorted by file size:

find /product /system /system_ext -type f -exec du -ah {} + | awk '{print $2, $1}' | sort

(instead of $1, $2 make it $2, $1)

Anyway, the first GApps dirty flash over the 0802 Elite build was flawless. Now to the messier stuff... 🤘🤠
[Android Software Development] Nikhil:
So here are our options:

Option 1 - quickest fix

change the order of Velvet to restore before other packages do so we don't run into a situation where we need 386 Mb at a stretch available. This would be renaming 09-Velvet.sh to 05-Velvet.sh (or 06 to do it after core).

Option 2 - quicker fix

Add 01-pre-restore-Velvet.sh, 01-pre-restore-Webview.sh, etc and only execute them while restore step to delete the aosp apps. this way "pre-restore" files altogether will execute in sequence and rest of the files will execute as usual.

this change introduced the new behavior of restoring at once - to support addon.d v2 along side v3. Should have just executed all the restore options for addon.d v2 scripts first in loop and then v3 together instead of executing pre-restore, restore and post-restore at once for all the scripts (kind of makes it redundant, we can achieve the restore just by configuring "restore" case and execution order)

Option 3 -

Go back to older version of apks (smaller in size) so it fits partition size.

Option 4 -

Start building magisk modules for apps that are larger in size (not sure if that takes up space from system - never built one)
[Android Software Development] osm0sis:
Option 5 -

Add "# NikGapps" to the headers of all packages' addon.d scripts.

Put removals in their own "removal" case option in each package script.

Make a new 04-Removals.sh script always be installed, and have its restore case do a for loop through all the addon.d scripts checking for "# NikGapps" and if found then running that script with the removal argument.

(put dummy removal #Stub cases in 04-Debloater and 04-Removals so they don't need special logic)

That'll more closely mimic the initial install where everything fits, which should be the goal for addon.d here so there aren't any more surprises over time.

🤘😛
[Android Software Development] Nikhil:
haha, yes, I will try this out. I had a similar implementation with NikGapps before where I had a master file controlling execution of rest of the files - that ran into an issue where it was conflicting with other scripts (iirc it was conflicting with Magisk) so in between of executing the scripts, Magisk script started executing. I don't remember how I solved that but yeah, this is worth giving a shot again. (y)
[Android Software Development] osm0sis:
Magisk's would only start if what you were doing was executed non-blocking (using a terminating &) which would give the magisk script the chance to run. By having 04-Removals use the restore case and have it run first and complete everything before magisk gets run for post-restore all should be fine.
[Android Software Development] mrRysko:
Hello, i´m a bit confused with the guide to uninstall nikapps, i´m using it via adb sideload, how can i uninstall the whole package? i followed this https://nikgapps.com/misc/2023/03/04/Uninstall-NikGapps.html#uninstall-by-sideloading-the-zip but how do i edit the text file?
[Android Software Development] Nikhil:
You need to open the zip file and edit the text file contents (double click on zip_name.txt and open via visual code or notepad++), make changes and save it and when asked to update the zip due to external changes, click yes. Then close the zip.

Modern tools now repack the zip automatically once you save the file so you don't need to extract all the zip contents, modify text file and repack everything again.
[Android Software Development] mrRysko:
Thank you, with normal notepad i couldnt save it and when i unpacked the folder edited the zipped with win11 then tried to sideload i got error wrong zip format, ill try with notepad++
[Android Software Development] mrRysko:
I installed Notepad++, but I cant edit the text file
[Android Software Development] Nikhil:
In that case, extract zip_name.txt, edit and repack into the zip.
[Android Software Development] mrRysko:
perfect, thanks it worked with my old trusted winrar
[Android Software Development] mrRysko:
@Nikhil I have another question in the guide it says

Flash Rom

Flash NikGapps

Wipe /data

Reboot

wipe /data does this mean factory reset in twrp or wipe data partition?
[Android Software Development] Nikhil:
Wipe /data partition
[Android Software Development] mrRysko:
i am installing the full package now via sideload and some apps are getting skipped and it says no space left, but my phone is empty. and when I boot it all gapps give notification cant run without google services
[Android Software Development] fatdog1:
I tried installing all versions one by one from scratch, but I got the "google play store is stopped" error in all of them. I tried 4 different roms but the result did not change.

device : Samsung A205F

try it : LineageOs,Cdroid, I tried a few other roms with the Eura kernel.

install link : https://sourceforge.net/projects/nikgapps/files/Releases/NikGapps-T/16-Jul-2023/
[Android Software Development] pmgying:
Using the newest Nikgapps core (T) with crDroid, I am not able to find he "precise/approximate location" toggle.

Did anybody encounter this issue before? Or is it just my device's (ginko) issue? Or is it just my issue? Thanks!
[Android Software Development] Nikhil:
It's not the sdcard that matters but the space in system partitions

What are the steps that you are following? Are you flashing gapps after first boot? Is there anyone in your device forum that has the same problem?

Yes, this is known and I'm yet to figure out why that is happening. I noticed google search app has precise location but others don't. Can you check and confirm if Google search app is fine for you?
[Android Software Development] co-moi:
Hi how to get Google lens working?
[Android Software Development] osm0sis:
Might need Location History added like the Go arm test.
[Android Software Development] Nikhil:
Do you see that precise location option in your op9 pro on apps like playstore, gms?
[Android Software Development] osm0sis:
GMS is listed as a location provider and has All The Time by default, no mention of precise, and Play Store only requests approximate I believe. Everything looks normal on mine however; apps that request Precise like Android Auto, Chrome, Fit, Search, Home, Keep, Maps, Messages, Phone and Settings Services all have it.
[Android Software Development] osm0sis:
Oh, by the way, I modded Velvet's addon.d script to be 10- instead of 09- and that's got it working for me for now as a workaround at least. 🙂
[Android Software Development] Nikhil:
Oh really! I thought executing it in the end will fail, I guess after all the other operations finished, Velvet had enough to get installed. :)

Rethinking on the options, you think it's still a good idea to debloat aosp stuff in the beginning? I was thinking if all the aosp apps are deleted, and their counterpart is not correctly restored (for any reason). The device may result into bootloop. Which is worse than couple of apps failing.

I could just define Velvet to execute in the end by allocating 10- and if the problem persists, we can apply a generic fix. Thoughts?
[Android Software Development] osm0sis:
Nah it worked, and makes sense it would since the subsequent reflash in recovery worked.

This time it happens to be Velvet for me, but last time it was TTS and Settings Services, so some kind of long-term solution will be needed to make it more predictable/reproducible and make addon.d more similar to the initial install so that this can't happen over time.
[Android Software Development] pmgying:
Hi Nikhil, thanks for the reply! Google search works correctly, and so does Google map. I'm just not getting the toggle to use approx location though. (As shown in the attached file).