Search This thread

Nikhil

Senior Member
Sep 26, 2012
1,703
2,681
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
Will someone point me to step-by-step documentation for how to change which packages are installed via NikGapps? I've read All about NikGapps.config carefully several times and still don't understand. While I am very well versed in *nix desktop and server system administration, I am just getting into Android and obviously don't have enough contextual knowledge to understand specifically what to do from the link.

My philosophy is to always start minimal and install things as needed rather than install the world and try to cut back. So I installed LineageOS 20 and NikGapps Core (specifically NikGapps-core-arm64-13-20230218-signed.zip) and they are working. I'd like to now modify which packages are installed.

If I understand correctly, I need to create a directory at /sdcard1/NikGapps and install (and modify) nikgapps.config. I'm then supposed to reflash the zip I used originally (the one specified above I believe). The commands I original used are
Code:
$ adb reboot sideload
$ adb sideload lineage-20.0-20230223-nightly-fajita-signed.zip
$ adb sideload NikGapps-core-arm64-13-20230218-signed.zip
then rebooted from the bootloader. Do I need to repeat the first and last steps in order to reflash after I've set up nikgaps.config?
Code:
$ adb reboot sideload
$ adb sideload NikGapps-core-arm64-13-20230218-signed.zip
Yes that is correct. More details on how to install NikGapps can be found here.

I hope you know you don't specifically need to keep nikgapps.config in /sdcard1/NikGapps. It's one of many locations that you can choose based on your preference.

Once you define your config for daily use, you can also use the same config to create your own build by following this.
 

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,448
35,000
Halifax
GT-i9250
Google Nexus 4
I decided to grab a logcat for us to see what the exact issue is. It reads kinda interesting, kinda confusing, like something wrong with the download itself: "Unknown source", permissions issue somehow still?
Yeah it's like I said, something with the Google account appdata restore seemed to break it for me. Haven't clean flashed again yet since the last one I reported on (0309), just dirty flashed 0311 and now 0319, and poking around to see what I can get working. GBoard is enabled in my config yeah, I just missed srec in there when looking through. 👍
I figured it out! 🤯

The Google account appdata restore brought over system settings which disabled WiFi/Mobile data access permissions for Private Compute Services, Settings Services, Speech Services by Google, and Recorder. Flipping it on for them got language packs downloads instantly working! 🥳😁

Not sure if there's a way to guard against this for all users with a permissions xml or something, but glad I've got everything functional finally. Thanks for bearing with my troubleshooting. 😛

Edit: It got Live Caption working too! 🤘
 
Last edited:

Nikhil

Senior Member
Sep 26, 2012
1,703
2,681
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
I figured it out! 🤯

The Google account appdata restore brought over system settings which disabled WiFi/Mobile data access permissions for Private Compute Services, Settings Services, Speech Services by Google, and Recorder. Flipping it on for them got language packs downloads instantly working! 🥳😁

Not sure if there's a way to guard against this for all users with a permissions xml or something, but glad I've got everything functional finally. Thanks for bearing with my troubleshooting. 😛

Edit: It got Live Caption working too! 🤘
That's great news! Now on to the next challenge, QPR2 :D
 

Maverickiller

Member
Feb 11, 2023
9
0
Thanks for reporting, I will take a closer look at Pixel Launcher after I update my op7 pro with next LineageOS 20 build which is due in next 2 days. Meanwhile, can you screenrecord and show how it is behaving?
Same problem here.
Wallpaper and style doesn't work,too.
 

Attachments

  • Screenshot_20230328-064617_Chrome.png
    Screenshot_20230328-064617_Chrome.png
    146.8 KB · Views: 28
  • Screenshot_20230328-064625_Chrome.png
    Screenshot_20230328-064625_Chrome.png
    142.4 KB · Views: 26
  • Screenshot_20230328-065047_Pixel Launcher.png
    Screenshot_20230328-065047_Pixel Launcher.png
    346.9 KB · Views: 28

Nikhil

Senior Member
Sep 26, 2012
1,703
2,681
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
Same problem here.
Wallpaper and style doesn't work,too.
Dirty Flash? I'm going to release a canary build with updated apks that fixes the random crashes I got after dirty flashing, those were fixed with clean flash so it seems, March Security Update cannot be upgraded without clean flash.

Recents is still broken, still working on the fix. Avoid flashing Pixel Launcher meanwhile.
 

Maverickiller

Member
Feb 11, 2023
9
0
Dirty Flash? I'm going to release a canary build with updated apks that fixes the random crashes I got after dirty flashing, those were fixed with clean flash so it seems, March Security Update cannot be upgraded without clean flash.

Recents is still broken, still working on the fix. Avoid flashing Pixel Launcher meanwhile.
Clean flash,always.
Thanks for your hardworking, looking forward to the next update.
 

Extreme_Ninja2099

Senior Member
Jan 1, 2017
603
282
OnePlus 3
OnePlus 6T
New Stable Release is up - 19th Mar 2023 (Android 10-13)

Changelog:
- Fixed the incorrect naming convention of addonlogs
- Fixed the debloater not surviving OTA update in some scenarios
- Enable pixel launcher animations
- Update the Go apps to latest available versions
- Update NikGapps Logo in recovery
- Minor Script Improvements

Note:
- Clean flash is recommended!

Happy Flashing!
Would the 20230319 nikgapps version debloater work for ROMs with March patch/QPR2?
 

ephemunch

Senior Member
Oct 16, 2017
71
8
I've read through the FAQ several times now, but I still don't get it (was Gapps user).

So I have LineageOS 20 with the core variant. Flashed normally via fastboot. I have done nothing with nikgapps.config.
Let's say I want to install later for example Android Auto or other Google Apps. The installation via Google Play Store is not recommended and I would have to make additional Google Apps always manually via nikgapps.config or even must reflash?
 

netra3441

Senior Member
Sep 24, 2022
146
74
60
Germany
Hello @Nikhil ,

here writes you netra3441, I am a normal user from Germany, not a programmer or technician.

I have a Samsung Galaxy S7 Exynos, and I'm using LineageOS from 18.1.

Of course, always with NikGapps so far - and I take the opportunity to thank you very much for your honorable and valuable work!

Under LOS 20 (Android 13) there are now more problems with the battery, the Samsung Galaxy S7 consumes far too much power even in idle mode, and now it has been said that it could be due to NikGapps, there have been more problems with it lately.

Could you please comment on that @NiKhiL ?

Because apparently you are the only gApps provider who also offers for Android 13, and since I have only had good experiences with NikGapps so far, I would also be grateful for your opinion.

Thanks in advance and best regards
netra3441
 

Nikhil

Senior Member
Sep 26, 2012
1,703
2,681
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
I've read through the FAQ several times now, but I still don't get it (was Gapps user).

So I have LineageOS 20 with the core variant. Flashed normally via fastboot. I have done nothing with nikgapps.config.
Let's say I want to install later for example Android Auto or other Google Apps. The installation via Google Play Store is not recommended and I would have to make additional Google Apps always manually via nikgapps.config or even must reflash?
You have two three options.

1. Flash core, Flash Android Auto aur whichever addon you need. There are addons available on Sourceforge.net.
2. Flash the variant that covers all the apps you need and disable the ones you don't need using nikgapps.config - simply by setting the value of the unwanted package to 0
3. Create your own custom build that has NikGapps core + Android auto and you can call it whatever you want - recommended

Let me know if you need more details on any of the approach
 

Nikhil

Senior Member
Sep 26, 2012
1,703
2,681
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
Hello @Nikhil ,

here writes you netra3441, I am a normal user from Germany, not a programmer or technician.

I have a Samsung Galaxy S7 Exynos, and I'm using LineageOS from 18.1.

Of course, always with NikGapps so far - and I take the opportunity to thank you very much for your honorable and valuable work!

Under LOS 20 (Android 13) there are now more problems with the battery, the Samsung Galaxy S7 consumes far too much power even in idle mode, and now it has been said that it could be due to NikGapps, there have been more problems with it lately.

Could you please comment on that @NiKhiL ?

Because apparently you are the only gApps provider who also offers for Android 13, and since I have only had good experiences with NikGapps so far, I would also be grateful for your opinion.

Thanks in advance and best regards
netra3441
Hi,

There are plenty of reasons which can be responsible for battery drain. To name a few

1. Spoofing your device to make it look like pixel leads to battery drain as it makes google execute processes that are exclusive for pixel and ends up failing because your device is not pixel
2. Any app that acquires wake lock continuously drains the battery, sometimes it's the kernel that's responsible behind it.
3. A lot of location accessing apps - they run in the background and eat up the juice and we keep wondering what's going on.

To summarize, one cannot hold any gapps package to be responsible for battery drain without evidence (logcat showing gapps spamming that doesn't happen with any other gapps)

I suggest, you flash the smallest package - NikGapps core and observe your experience with no mods and just basic apps.

The over time, keep on adding stuff and determine the root cause.
 
  • Like
Reactions: netra3441

netra3441

Senior Member
Sep 24, 2022
146
74
60
Germany
Hi,

There are plenty of reasons which can be responsible for battery drain. To name a few

1. Spoofing your device to make it look like pixel leads to battery drain as it makes google execute processes that are exclusive for pixel and ends up failing because your device is not pixel
2. Any app that acquires wake lock continuously drains the battery, sometimes it's the kernel that's responsible behind it.
3. A lot of location accessing apps - they run in the background and eat up the juice and we keep wondering what's going on.

To summarize, one cannot hold any gapps package to be responsible for battery drain without evidence (logcat showing gapps spamming that doesn't happen with any other gapps)

I suggest, you flash the smallest package - NikGapps core and observe your experience with no mods and just basic apps.

The over time, keep on adding stuff and determine the root cause.
Thank you @Nilkhil

I had tried today a few Gapps with LOS 19.1 and 20 - only your NikGapps could be installed without errors and without trouble later during setting up my Samsung Galaxy S7 with LOS.

I have installed NikGApps Core.

In fact I have installed a navigation app - have now switched of its location accessing, and only will use it, when sit in a car.
 

Nikhil

Senior Member
Sep 26, 2012
1,703
2,681
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro
Well I meant that the debloater/Nikgapps restore should work like normal even with any changes done by QPR2.
From Last Dec QPR1, it changed things and Nikgapps didn't work as well for ROM OTA updates
The last remaining issue with debloater ota update is resolved and will be part of next release. I suggest you wait for the next release and all should be good.
 
  • Like
Reactions: ipdev and osm0sis

Afarsiman

Member
Mar 27, 2023
5
0
Hi,
I installed lineageos 20 in my s8 with nikapps full for Android 13. Now I can't update Google chrome because after download finish in play store in installing will stop and says: can't install and see error.
Please help me
 

Nikhil

Senior Member
Sep 26, 2012
1,703
2,681
Ahmedabad
OnePlus 7 Pro
Xiaomi Poco X3 Pro

Attachments

  • NikGapps-Addon-13-PixelLauncher-20230330.zip
    66 MB · Views: 286

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    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!
    3
    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!
    2
    unfortunately not. I tried it today and i have again no sound after updating Speech Services.
    Downloading Speech files fails with no error message
    Here's me figuring out what sounds like the same problem you're seeing: https://forum.xda-developers.com/t/android-13-gapps-nikgapps-arm64.3915866/page-72#post-88333731

    Ensure all the apps I listed have their "App info" > "Mobile data & WiFi" > "Allow network access" enabled. And make sure you have GBoard enabled in your config, since it contains the speech files, and just to be safe uninstall updates on Speech Services and clear data+cache on the Play Store to make sure it's downloading the correct Speech Services.

    Also I'd recommend you dirty flash to the 0503 test build Nik uploaded a few posts back, since it's the most stable recent build until he releases a new official stable.
    2
    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. 👍
    1
    I did not install GBoard as i used Swiftkey. Maybe this is the problem. I will try, thank you (y)
  • 241
    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!