Search This thread

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,664
35,412
Halifax
GT-i9250
Google Nexus 4
New Release is up - Android 10-13 (29th May 2023)

Changelog:
  • Fixed the incorrect calculation of space after the installation was finished
  • Delete stuff before restoring the files to make space for gapps during OTA
  • Install the apps with largest size first - After Core/CoreGo is installed
  • Fixed Velvet/GoogleClock/AndroidAuto/Gboard/GoogleSounds not restoring after OTA update
  • Log file details when copied over OTA update

Download

Note:
Make sure to backup your data before updating to the latest version.

Happy flashing!
Dirty flashed flawlessly! Brilliant job!
 

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,664
35,412
Halifax
GT-i9250
Google Nexus 4
Okay, one thing after the OTA I just took... 😘

Phone (Dialer) suddenly gets the "-downloadable" version from the Play Store and I lose Call Screen (which I had enabled in phenotype db), so suggests something went wonky, though it's still not a user app.

I had recently noticed this just before the 0529 GApps release and the dirty flash actually fixed it and brought the correct version and features back, and suspect another dirty flash will do the same.

Edit: Yep, a dirty flash immediately triggered a Play Store update to the better Phone app variant. So there's something to be fixed in addon.d I guess! Perhaps the addon.d script numbering might need to be made to match the new size-based ordering in the installer? Not sure if that could cause this somehow.
 

Attachments

  • Logs-OnePlus9Pro-NikGapps-full-arm64-13-20230529.tar.gz
    1.7 MB · Views: 4
  • NikGapps_addon_2023_05_30.log
    33.5 KB · Views: 5
Last edited:
  • Like
Reactions: Nikhil

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,664
35,412
Halifax
GT-i9250
Google Nexus 4
Here's the log from the latest dirty flash which fixed things again, for comparison.

So both log zips are 0529 fixing the Phone app after it had broken from addon.d, and then that's the latest addon log where it breaks things. 👍
 

Attachments

  • Logs-OnePlus9Pro-NikGapps-full-arm64-13-20230529.tar.gz
    113.1 KB · Views: 5
Last edited:
  • Like
Reactions: Nikhil

Nikhil

Senior Member
Sep 26, 2012
1,752
2,760
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
Okay, one thing after the OTA I just took... 😘

Phone (Dialer) suddenly gets the "-downloadable" version from the Play Store and I lose Call Screen (which I had enabled in phenotype db), so suggests something went wonky, though it's still not a user app.

I had recently noticed this just before the 0529 GApps release and the dirty flash actually fixed it and brought the correct version and features back, and suspect another dirty flash will do the same.

Edit: Yep, a dirty flash immediately triggered a Play Store update to the better Phone app variant. So there's something to be fixed in addon.d I guess! Perhaps the addon.d script numbering might need to be made to match the new size-based ordering in the installer? Not sure if that could cause this somehow.

Here's the log from the latest dirty flash which fixed things again, for comparison.

So both log zips are 0529 fixing the Phone app after it had broken from addon.d, and then that's the latest addon log. 👍

I went through the logs and noticed that we're copying the GoogleDialerOverlay.apk to both /system/overlay and /system/product/overlay with OTA update. This probably happened due to shuffling of GoogleDialer apk (and the overlay with it) at some point with multiple dirty flashes - looking for space to install.

Since the overlay is present in both the locations, it is picking the one in /system, whereas the apk resides in /product.

Code:
list_files() {
cat <<EOF
product/priv-app/GoogleDialer/GoogleDialer.apk
product/overlay/GoogleDialerOverlay.apk
product/framework/com.google.android.dialer.support.jar
product/etc/permissions/com.google.android.dialer.xml
etc/permissions/GoogleDialer.prop

--following lines are duplicates pointing to system--
priv-app/GoogleDialer/GoogleDialer.apk
overlay/GoogleDialerOverlay.apk
framework/com.google.android.dialer.support.jar
etc/permissions/com.google.android.dialer.xml

EOF
}

When you perform an OTA update the next time, can you try removing the highlighted lines pointing to system from 09-GoogleDialer.sh and see if you still run into the issue?

My plan to address this with dirty flash is to run a clean up function at the end of every package installation so it doesn't have duplicate entries of same file with different partitions in list_files function. As a long term fix, I will also ensure, the package doesn't move the partitions on dirty flash to prevent duplicates in the first place. 👍
 
Last edited:

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,664
35,412
Halifax
GT-i9250
Google Nexus 4
I went through the logs and noticed that we're copying the GoogleDialerOverlay.apk to both /system/overlay and /system/product/overlay with OTA update. This probably happened due to shuffling of GoogleDialer apk (and the overlay with it) at some point with multiple dirty flashes - looking for space to install.

Since the overlay is present in both the locations, it is picking the one in /system, whereas the apk resides in /product.

Code:
list_files() {
cat <<EOF
product/priv-app/GoogleDialer/GoogleDialer.apk
product/overlay/GoogleDialerOverlay.apk
product/framework/com.google.android.dialer.support.jar
product/etc/permissions/com.google.android.dialer.xml
etc/permissions/GoogleDialer.prop

--following lines are duplicates pointing to system--
priv-app/GoogleDialer/GoogleDialer.apk
overlay/GoogleDialerOverlay.apk
framework/com.google.android.dialer.support.jar
etc/permissions/com.google.android.dialer.xml

EOF
}

When you perform an OTA update the next time, can you try removing the highlighted lines pointing to system from 09-GoogleDialer.sh and see if you still run into the issue?

My plan to address this with dirty flash is to run a clean up function at the end of every package installation so it doesn't have duplicate entries of same file with different partitions in list_files function. As a long term fix, I will also ensure, the package doesn't move the partitions on dirty flash to prevent duplicates in the first place. 👍

Will do! Also, I'd say let's try just the cleanup function first, since the shuffling could still be useful and harmless in most cases.

Edit: @Nikhil I noticed a number of other apps seem to have the duplicate entries and also duplicate files in the different install locations, though only Dialer is showing a problem at the moment. Will be interesting to see what happens after it all gets cleaned up. 🤔
 
Last edited:
  • Like
Reactions: Nikhil

Nikhil

Senior Member
Sep 26, 2012
1,752
2,760
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
Will do! Also, I'd say let's try just the cleanup function first, since the shuffling could still be useful and harmless in most cases.

Edit: @Nikhil I noticed a number of other apps seem to have the duplicate entries and also duplicate files in the different install locations, though only Dialer is showing a problem at the moment. Will be interesting to see what happens after it all gets cleaned up. 🤔
yes, it's because of the same reason. I hope the other apps don't cause as much issue as google dialer. Although, dirty flashing is a workaround for now.
 
  • Like
Reactions: osm0sis

Nikhil

Senior Member
Sep 26, 2012
1,752
2,760
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
Will do! Also, I'd say let's try just the cleanup function first, since the shuffling could still be useful and harmless in most cases.

Edit: @Nikhil I noticed a number of other apps seem to have the duplicate entries and also duplicate files in the different install locations, though only Dialer is showing a problem at the moment. Will be interesting to see what happens after it all gets cleaned up. 🤔
hey, can you dirty flash this addon and confirm if the generated addon.d file (09-GoogleDialer.sh) is updated with unique files?
 

Attachments

  • NikGapps-Addon-13-GoogleDialer-20230602.zip
    28.7 MB · Views: 19
  • Like
Reactions: osm0sis

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,664
35,412
Halifax
GT-i9250
Google Nexus 4
hey, can you dirty flash this addon and confirm if the generated addon.d file (09-GoogleDialer.sh) is updated with unique files?
Hmm doesn't look good.

Plus I still see the overlay .apk actually present in both product and system, so it's either not uninstalling, or still installing it to both locations.
 

Attachments

  • Logs-OnePlus9Pro-NikGapps-Addon-13-GoogleDialer-20230602.tar.gz
    83.6 KB · Views: 3
  • 09-GoogleDialer.sh.zip
    1.9 KB · Views: 3
  • GoogleDialer.prop.zip
    303 bytes · Views: 2
  • Like
Reactions: Nikhil

Nikhil

Senior Member
Sep 26, 2012
1,752
2,760
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
Hmm doesn't look good.

Plus I still see the overlay .apk actually present in both product and system, so it's either not uninstalling, or still installing it to both locations.
Thank you for testing! apparently, the quick fix didn't work in all scenarios.

I am attaching a new file with more robust solution, it resets the install indicators before installing the files.This will not delete the duplicate overlays, however, the duplicate entries in addon.d file will be removed so the next OTA update will remove the duplicate overlay on its own. :)

Please test this at your convenience! hopefully, this will work as expected.
 

Attachments

  • NikGapps-Addon-13-GoogleDialer-20230603.zip
    28.7 MB · Views: 9
  • Like
Reactions: osm0sis

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,664
35,412
Halifax
GT-i9250
Google Nexus 4
Thank you for testing! apparently, the quick fix didn't work in all scenarios.

I am attaching a new file with more robust solution, it resets the install indicators before installing the files.This will not delete the duplicate overlays, however, the duplicate entries in addon.d file will be removed so the next OTA update will remove the duplicate overlay on its own. :)

Please test this at your convenience! hopefully, this will work as expected.
This one looks good! Nice job! 😁
 

Attachments

  • 09-GoogleDialer.sh.zip
    1.9 KB · Views: 3
  • GoogleDialer.prop.zip
    290 bytes · Views: 3
  • Logs-OnePlus9Pro-NikGapps-Addon-13-GoogleDialer-20230603.tar.gz
    83.6 KB · Views: 7
  • Love
Reactions: Nikhil

flaxx187

Senior Member
Jun 23, 2013
154
5
Google Pixel 6a
Hey I have some issues with google play Services

After a quit time my apps are crashimg or i dont get notifications.

After deleting caches, everything works fine ( for a quit time )

Sadly I have a nice configuration and don't want to reflash lineage, so I would deinstall play store and play service. After it I would to install the play store.


Any experience? Is that a good way?

Wish you a great day
 

Nikhil

Senior Member
Sep 26, 2012
1,752
2,760
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
Hey I have some issues with google play Services

After a quit time my apps are crashimg or i dont get notifications.

After deleting caches, everything works fine ( for a quit time )

Sadly I have a nice configuration and don't want to reflash lineage, so I would deinstall play store and play service. After it I would to install the play store.


Any experience? Is that a good way?

Wish you a great day
yes, you should uninstall the playstore and playservices updates and reboot, it should be fine.
 

wttc

Member
May 20, 2023
6
0
I'm on Lineage OS 20 (Android 13) & mistakenly installed nikgapps Android 12 version

now I can't add another Google account in Play Store.

I want to install nikgapps Android 13 version.

Do I need to uninstall nikgapps Android 12 version first & then install nikgapps Android 13 version?

.... Or , can I just install nikgapps Android 13 version??
 

Nikhil

Senior Member
Sep 26, 2012
1,752
2,760
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
I'm on Lineage OS 20 (Android 13) & mistakenly installed nikgapps Android 12 version

now I can't add another Google account in Play Store.

I want to install nikgapps Android 13 version.

Do I need to uninstall nikgapps Android 12 version first & then install nikgapps Android 13 version?

.... Or , can I just install nikgapps Android 13 version??
Yes, you need to uninstall nikgapps 12 and install nikgapps 13
aah not going fine, I uninstalled playstore reboot it uninstalled google service, clear caches and reboot my device -> it is now in bootloop



the apk files I have from apkmirror
You didn't flash nikgapps? If you install the apk from apkmirror, they aren't going to be a system app and you'll definitely run into issues.

I suggest you dirty flash Nikgapps core
 
  • Like
Reactions: wttc

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,664
35,412
Halifax
GT-i9250
Google Nexus 4
Thank you for testing! apparently, the quick fix didn't work in all scenarios.

I am attaching a new file with more robust solution, it resets the install indicators before installing the files.This will not delete the duplicate overlays, however, the duplicate entries in addon.d file will be removed so the next OTA update will remove the duplicate overlay on its own. :)

Please test this at your convenience! hopefully, this will work as expected.
After the OTA it seems the one the ROM wanted got removed, so now the -downloadable Phone version came from the Play Store again and I lost Call Screen. 😯

Edit: Dirty flashing 0529 got it all working again even though the Dialer addon.d sh and prop entries remained the correct shorter lists. 🤯🤷‍♂️

Must be something still missing from addon.d for that transition to fewer entries/files to fail? Something which registers/activates the overlay perhaps?

Edit 2: Looking through the addon.d files only GmsCore, GooglePlayStore, GoogleServicesFramework, DevicePersonalizationServices, DigitalWellbeing, Gmail, GoogleCalendar, GoogleMaps, GoogleMessages, GooglePhotos, GoogleRecorder, GoogleTTS, PrivateComputeServices, TrichromeLibrary, and WebViewGoogle have the duplicate entries.

Of these most were actually installed to product only; Gmail, Photos and TTS were actually installed to system only; and Trichrome and WebView were actually installed to both, suggesting a problem there. system overlays contained duplicate files for most that aren't actually in system, suggesting another problem there.

I also noticed that AndroidAuto, GBoard, and GoogleClock create extra prop files in product, though they're empty, unlike their system counterparts.

I cleaned up all the entries and files manually, and have dirty flashed directly after to keep things working, and I went with the default product location for the complete duplicate Trichrome and WebView files.
 
Last edited:
  • Like
Reactions: Nikhil

Nikhil

Senior Member
Sep 26, 2012
1,752
2,760
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
After the OTA it seems the one the ROM wanted got removed, so now the -downloadable Phone version came from the Play Store again and I lost Call Screen. 😯

Edit: Dirty flashing 0529 got it all working again even though the Dialer addon.d sh and prop entries remained the correct shorter lists. 🤯🤷‍♂️

Must be something still missing from addon.d for that transition to fewer entries/files to fail? Something which registers/activates the overlay perhaps?

Edit 2: Looking through the addon.d files only GmsCore, GooglePlayStore, GoogleServicesFramework, DevicePersonalizationServices, DigitalWellbeing, Gmail, GoogleCalendar, GoogleMaps, GoogleMessages, GooglePhotos, GoogleRecorder, GoogleTTS, PrivateComputeServices, TrichromeLibrary, and WebViewGoogle have the duplicate entries.

Of these most were actually installed to product only; Gmail, Photos and TTS were actually installed to system only; and Trichrome and WebView were actually installed to both, suggesting a problem there. system overlays contained duplicate files for most that aren't actually in system, suggesting another problem there.

I also noticed that AndroidAuto, GBoard, and GoogleClock create extra prop files in product, though they're empty, unlike their system counterparts.

I cleaned up all the entries and files manually, and have dirty flashed directly after to keep things working, and I went with the default product location for the complete duplicate Trichrome and WebView files.
Can you please share the addon.d logs?

The Dialer entries remained as is because the install location of apk did not change.

The listed apps that have duplicates, it'll be resolved once you dirty flash the newer build (which I will share shortly). After which, the overlays will be either in system or product.

AA, GBoard and Google Clock have empty prop files from an older implemented which are left in the system as residue. With the build I will share with you (also is a candidate for next release), it will remove those prop entries from addon.d and those will not survive the next OTA update.

I still have following on my todo list:
- prevent relocating of apps once they are installed.
- install all the overlays to /product/overlay only, I don't see overlay folder present in system or system_ext on my pixel 7 pro and that's a standard.
 
  • Like
Reactions: osm0sis

Nikhil

Senior Member
Sep 26, 2012
1,752
2,760
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
Why did the Dialer overlay stop working until I dirty flashed though, if it only reinstalled to the same place? That's the most confusing part to me right now.
yeah, even I am confused, can you share the installation logs from the dirty flashing?

the logs have list of files before and after installation under partitions folder, I can compare and see if there was any difference related to GoogleDialer apk and overlay.
 
  • Like
Reactions: osm0sis

Top Liked Posts

  • 2
    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.
    okay, so I've made a few changes/improvements.

    Generate the addon scripts in the order of their installation
    Fix the size not printing correctly in addonlog
    Installer: sort it by file name rather than file size

    This will generate the addon file in below format
    05-index-GmsCore.sh
    05-index-Phonesky.sh
    09-index-Velvet.sh
    09-index-WebViewGoogle.sh
    09-index-GoogleChrome.sh

    index will match the constant (05, 09 which are defined by default) and increment by 1 with every new app being installed.

    so above file will have following actual names
    05-01-GmsCore.sh
    05-02-Phonesky.sh
    09-01-Velvet.sh
    09-02-WebViewGoogle.sh
    09-03-GoogleChrome.sh

    This gives us control if we want to enforce the order of a particular app (say if I want Velvet to execute in the end), I can just make a release with setting 10 as constant and the next time you flash the addon, you will get 10-01-Velvet.sh which will obviously execute after 09 scripts.

    otherwise, the indexes will determine the order of execution and will increment with every new installation.

    Dirty flashing will not keep incrementing the number so if 09-01-Velvet.sh already exists, it won't make it 09-02-Velvet.sh

    Not simple to understand, but it should work. I will trigger a new elite build for you tomorrow and you can dirty flash to see this into effect. hope this solves the issue otherwise, I'll have to find a new solution.
    1
    a-z would be good fun and look a little less wild, though a lot harder to iterate through in script. 😛

    Ready for the build. 🤘
    It's up :)

    If this works, we can take a call what to do next.
    1
    Dirty flashing will not keep incrementing the number so if 09-01-Velvet.sh already exists, it won't make it 09-02-Velvet.sh

    This part seems like it might not be working yet... I dirty flashed 0930 over itself to test and got the following:
    Code:
    --- before/all_files.txt	2023-09-30 23:14:00.000000000 -0300
    +++ after/all_files.txt	2023-09-30 23:17:16.000000000 -0300
    @@ -739,7 +739,6 @@
     /system/addon.d
     /system/addon.d/04-01-Debloater.sh
     /system/addon.d/05-01-GmsCore.sh
    -/system/addon.d/05-02-GooglePlayStore.sh
     /system/addon.d/05-03-GoogleServicesFramework.sh
     /system/addon.d/05-04-ExtraFiles.sh
     /system/addon.d/05-05-GoogleCalendarSyncAdapter.sh
    @@ -746,7 +745,5 @@
     /system/addon.d/05-06-GoogleContactsSyncAdapter.sh
    -/system/addon.d/09-01-Velvet.sh
    -/system/addon.d/09-02-GBoard.sh
    -/system/addon.d/09-03-DevicePersonalizationServices.sh
    +/system/addon.d/05-07-GooglePlayStore.sh
     /system/addon.d/09-04-PrivateComputeServices.sh
     /system/addon.d/09-05-SettingsServices.sh
     /system/addon.d/09-06-QuickAccessWallet.sh
    @@ -753,4 +750,3 @@
    -/system/addon.d/09-07-GooglePhotos.sh
     /system/addon.d/09-08-TrichromeLibrary.sh
     /system/addon.d/09-09-WebViewGoogle.sh
     /system/addon.d/09-10-GoogleChrome.sh
    @@ -757,8 +753,5 @@
    -/system/addon.d/09-11-Gmail.sh
    -/system/addon.d/09-12-GoogleMessages.sh
     /system/addon.d/09-13-GoogleMaps.sh
     /system/addon.d/09-14-GoogleTTS.sh
    -/system/addon.d/09-15-GoogleRecorder.sh
     /system/addon.d/09-16-GoogleDialer.sh
     /system/addon.d/09-17-Drive.sh
     /system/addon.d/09-18-GoogleCalendar.sh
    @@ -780,6 +773,13 @@
     /system/addon.d/09-34-GooglePartnerSetup.sh
     /system/addon.d/09-35-GoogleFeedback.sh
     /system/addon.d/09-36-GoogleLocationHistory.sh
    +/system/addon.d/09-37-Velvet.sh
    +/system/addon.d/09-38-GBoard.sh
    +/system/addon.d/09-39-DevicePersonalizationServices.sh
    +/system/addon.d/09-40-GooglePhotos.sh
    +/system/addon.d/09-41-Gmail.sh
    +/system/addon.d/09-42-GoogleMessages.sh
    +/system/addon.d/09-43-GoogleRecorder.sh
     /system/addon.d/50-lineage.sh
     /system/addon.d/97-dumpimages-custom.sh
     /system/addon.d/98-twrp_ab.sh

    All the -f code in the addon.d scripts themselves also looks not prepared for the new numbering system. E.g.

    Code:
    if [ "$execute_config" = "0" ]; then
      if [ -f "$S/addon.d/09-Velvet.sh" ]; then
        ui_print "- Deleting up Velvet.sh"
        rm -rf $S/addon.d/09-Velvet.sh
        rm -rf $T/addon.d/09-Velvet.sh
      fi
      exit 1
    fi
     
    if [ ! -f "$S/addon.d/09-Velvet.sh" ]; then
      test "$execute_config" = "1" && CopyFile "$0" "$S/addon.d/09-Velvet.sh"
    fi

    I put them back to their old secondary numbers, and I'll wait on these issues before trying an OTA. 👍
  • 2
    8) What does it mean "A/B devices" vs. "A-only devices", please?

    A simple way to check whether your device is A/B or A-only is to install and run the Treble Check app from Play Store. This reports on several things: whether the device supports Project Treble, whether it supports "Seamless System Updates", what its CPU Architecture is, and whether it's System-as-Root.

    If Treble Check says your device supports "Seamless System Updates", it's an A/B device. Otherwise, it's A-only.

    For a detailed explanation of the difference, see How A/B Partitions and Seamless Updates Affect Custom Development on XDA.
    2
    You know.. I believe in "measure twice, cut once" and all, but at some point you also just need to "flash and find out".. 😘
    2
    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?
    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.
    2
    6) Ok, understand. But it is obvious that with LOS recovery I will be kind of limited (no back up function, etc.). Do you know something about how to replace LOS recovery with the TWRP one after the LOS installation with LOS recovery?

    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.
    2
    Wellllll I think we have our answer!

    Code:
    --- before/all_files_with_sizes_fixed.txt	2023-09-21 23:45:06.112999838 -0300
    +++ after/all_files_with_sizes_fixed.txt	2023-09-21 23:45:24.556999831 -0300
    @@ -57,7 +57,7 @@
     /product/etc/permissions/com.google.android.as.oss.xml 4.0K
     /product/etc/permissions/com.google.android.as.xml 8.0K
     /product/etc/permissions/com.google.android.dialer.support.xml 4.0K
    -/product/etc/permissions/com.google.android.googlequicksearchbox.xml 0
    +/product/etc/permissions/com.google.android.googlequicksearchbox.xml 12.0K
     /product/etc/permissions/com.google.android.gsf.xml 8.0K
     /product/etc/permissions/com.google.android.keep.xml 4.0K
     /product/etc/permissions/com.google.android.maps.xml 4.0K
    @@ -512,7 +512,7 @@
     /product/overlay/TrebuchetOverlay.apk 12.0K
     /product/overlay/TrebuchetQuickStep__auto_generated_rro_product.apk 12.0K
     /product/overlay/Updater__auto_generated_rro_product.apk 12.0K
    -/product/overlay/VelvetOverlay.apk 0
    +/product/overlay/VelvetOverlay.apk 4.0K
     /product/overlay/WifiResCommon.apk 16.0K
     /product/overlay/framework-res__auto_generated_rro_product.apk 2.4M
     /product/overlay/org.lineageos.platform-res__auto_generated_rro_product.apk 12.0K
    @@ -538,7 +538,7 @@
     /product/priv-app/SettingsIntelligence/oat/arm64/SettingsIntelligence.odex 32.0K
     /product/priv-app/SettingsIntelligence/oat/arm64/SettingsIntelligence.vdex 32.0K
     /product/priv-app/SettingsIntelligenceGooglePrebuilt/SettingsIntelligenceGooglePrebuilt.apk 7.9M
    -/product/priv-app/Velvet/Velvet.apk 209.1M
    +/product/priv-app/Velvet/Velvet.apk 385.9M
     /product/usr/keylayout/Vendor_045e_Product_0719.kl 4.0K
     /product/usr/share/ime/google/d3_lms/ko_2018030706.zip 4.3M
     /product/usr/share/ime/google/d3_lms/mozc.data 8.6M

    Code:
    2023_09_21_23_06_26: - Restoring Velvet
    2023_09_21_23_06_27: - /system/product/priv-app/Velvet/Velvet.apk copied, Size: 386M
    2023_09_21_23_06_27: - /system/product/overlay/VelvetOverlay.apk copied, Size: 4.0K
    2023_09_21_23_06_27: - /system/product/etc/permissions/com.google.android.googlequicksearchbox.xml copied, Size: 12K
    2023_09_21_23_06_27: - /system/etc/permissions/Velvet.prop copied, Size: 4.0K
    2023_09_21_23_06_27: - Searching for build.prop in /postinstall/product /postinstall/system
    2023_09_21_23_06_28: - Setting Property ro.opa.eligible_device to true in /postinstall/product/etc/build.prop
    2023_09_21_23_06_28: - Adding ro.opa.eligible_device to true in /postinstall/product/etc/build.prop
    2023_09_21_23_06_28:  
    2023_09_21_23_06_28: - Restoring WebViewGoogle
    2023_09_21_23_06_28: - Deleting aosp app product/app/webview
    2023_09_21_23_06_28: - Checking if /postinstall/system/product/app/webview exists
    2023_09_21_23_06_29: - Checking if /postinstall/product/app/webview exists
    2023_09_21_23_06_29: - Found, deleting /postinstall/product/app/webview
    2023_09_21_23_06_29: - Checking if /system/product/app/webview exists
    2023_09_21_23_06_29: - Checking if /product/app/webview exists
    2023_09_21_23_06_29: - Force Deleting webview
    2023_09_21_23_06_29: - /system/app/WebViewGoogle/WebViewGoogle.apk.gz copied, Size: 41M
    2023_09_21_23_06_29: - /system/product/overlay/GoogleWebViewOverlay.apk copied, Size: 24K
    2023_09_21_23_06_29: - /system/app/WebViewGoogle-Stub/WebViewGoogle-Stub.apk copied, Size: 16K
    2023_09_21_23_06_29: - /system/etc/permissions/WebViewGoogle.prop copied, Size: 4.0K

    Looks like your hunch was correct and it ran out of space while restoring Velvet.apk, so the next 2 files end up zero-sized. Then Webview must have cleared out the space needed in product so Velvet could be dirty flashed after the OTA. Oddly your addon.d log still doesn't show an issue.. maybe it should log the sizes of both the source file before copy then the destination file after copy?

    Connecting the dots from all of our conversation, I bet this is the new one-at-a-time addon.d-v3 behavior biting us in the ass, and you likely need to implement something to do all the removals during pre-restore like I hypothesized!
  • 249
    R5WEmSK.png


    Hi Everyone,

    Here I'd like to Introduce you with my custom Gapps package that I use on day to day basis when I flash a new Rom. As I've observed many people struggling with finding the correct version of gapps to flash, I decided to build a package of my own which lets you flash stable google apps with a lot of variants so you can decide for yourself which package suits you.

    What is NikGapps?
    • NikGapps project started with the goal to provide custom gapps packages that suits everyone's needs. A package that a user needs but cannot find and ends up setting up the device installing more apps and removing unwanted apps manually.
    • NikGapps is a gapps package built from my own device. As my device is always updated with latest version of Google Apps, every time I build a new package, I am on latest and stable version of Google Apps
    • NikGapps also comes with Android Go package for low end devices.
    • NikGapps is a bit different than other Gapps packages (written from scratch, it isn't a port of OpenGapps). It focuses on providing apps that most of the people uses but can't find it in other Gapps packages and ends up installing the apps manually
    • NikGapps supports split-apks
    • NikGapps also comes with nikgapps.config and debloater.config which allows you to control your installation and debloat unnecessary stuff from your Rom respectively.
    • NikGapps is built on a different architecture, the installation method is completely different (Every Package comes with installer.sh that installs itself). Also, it installs the gapps to /product partition instead of /system partition
    • NikGapps also allows you to configure the installation, it can be installed to any partition (be it /system or /product or any other partition which may get added in future)
    • NikGapps also allows you to keep the aosp counterpart of google app if you want (just by using nikgapps.config you can choose whether to remove the aosp counterpart or remove it)
    • NikGapps allows you to dirty flash it anytime you want, it also supports installing on top of Roms with Gapps (except for the pixel flavored Roms)
    • NikGapps also comes with addon packages (useful ones) so that users don't have to flash the whole gapps package just to have the app installed.
    • NikGapps supports the Privileged Permission Whitelisting, providing the necessary permissions to the privileged apps.
    • It supports addon.d so you need not flash the package again and again after every nightly flash
    • NikGapps addon.d functionality is built from scratch which allows you to completely control which app you want to backup/restore on dirty flash.
    • It also allows optimizing Google Play Services (when you turn off Find My Device) so that you can sleep with peace without having to worry about Google play services eating your battery. (Requires support from Rom too in order to work)
    Also, since these are custom build, I can include as many packages as I want (which I do, you can pm me if you want that package)

    NikGapps comes with following packages
    » Core
    » Basic
    » Omni
    » Stock
    » Full
    » Go (for low end devices)

    Although these packages cover a large user base, there are few users who like things differently that is where NikGapps Addons Comes into picture. These Addon packages are separate and meant to flash over NikGapps original packages.

    Everything about NikGapps

    How to create your own custom NikGapps packages!

    Flashing Instructions for A/B devices (Clean Flash is recommended)

    • Flash Rom in Slot A, Flash twrp, reboot to recovery
    • Flash Rom in Slot B, Flash twrp, reboot to recovery
    • Flash NikGapps
    • Flash Debloater (Optional)
    • Reboot

    Flashing Instructions for A-only devices (Clean Flash is recommended)
    • Flash Rom
    • Flash NikGapps
    • Flash Debloater (Optional)
    • Reboot
    How to clean flash NikGapps update without losing data?
    • Delete /system/addon.d folder
    • Dirty flash Rom
    • Flash newer version of NikGapps
    How to remove/uninstall an Addon or Package?

    Here's how

    Enjoy the package! hope it helps you somewhat!

    Downloads
    44
    Credits
    » osm0sis (for the shell scripting template)
    » Arya (for logo and his suggestions and help)
    » Vanced Team (for YouTube Vanced)
    » maartenfonville, nezorflame for creating and maintaining opengapps
    » Lawnchair Team (for Lawnchair)
    » HootanParsa (for MixPlorer)
    » xXx (for his NoLimits module - Amazing work!)

    Frequently Asked Questions

    ChangeLog
    10
    Downloads
    NikGapps Basic
    NikGapps Stock

    Changelog:

    -Fixed FC with Face Unlock
    -Added Google Sounds
    -Added Pixel Launcher
    -Updated YouTube Vanced to latest
    -Updated Google Camera to latest
    -Latest Google Apps (25th June)

    I've created Telegram Release channel for NikGapps. Those who find this useful can get the builds there faster.

    Enjoy! :)
    9
    Hey can we have a package which will replace the default ROMs aosp apps like Google calendar, Google clock, Google dailer, Google contact, google message, google calculator, google gboard, youtube vanced, pixel launcher and wallpaper, Latest Gcam with all the goodies like playground ar sticker included if you cant provide it in a single zip then provide gcam all in one zip separately. Rest all other apps can be downloaded but these apps are needed as default apps in the ROM.

    +1 to this but without the pixel launcher because I like the built launcher
    I'll create one tomorrow. I'll exclude pixel launcher as we can install it separately and there are ported versions available which are preferred over stock.
    As for ar sticker in Google camera, I'll create a separate addon zip as the file size will increase tremendously and not everyone wants to install it.
    9
    Time for another Q update! (12-Jan-2020)

    Changelog

    - Fixed NikGapps installation issues with config values not reflecting in installation
    - Added a nikgapps.config value "2" to retain aosp apps (set the value to 2 if you don't want the installer to delete the aosp counter part of Google app)
    - Aosp Dialer is now deleted by default starting omni package to maintain the uniformity.

    Note: set Dialer=2 in nikgapps.config before flashing if you want the gapps to skip removing aosp Dialer, the installer will remove the Dialer by default.

    Full Changelog and download links are in OP

    Thank you for choosing NikGapps!