25

[Custom] [GApps] NikGApps [Android 10 - 12.1] [ARM64]

 1 year ago
source link: https://forum.xda-developers.com/t/custom-gapps-nikgapps-android-10-12-1-arm64.3915866/page-54#post-87147583
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[Custom] [GApps] NikGApps [Android 10 - 12.1] [ARM64]

Hello and thanks for this great project !
I've been running NikGapps with LOS 18.1 (Android 11) for a while on my Poco F3 but have recently had issues with Gboart (constantly crashing => I uninstalled it) and "Hey Google" feature (greyed out - not working anymore). I've also noticed that I can't find any "nikgapps.config" on my device (neither in /tmp, nor in /sdcard/NikGapps), but I do find scripts in /system/addon.d/ (cf picture). As suggested earlier on this thread, I wanted to delete 50-GBoard.sh and reflash LOS ROM but its located in a read-only partition so I can't execute the operation (the device is rooted but I am still not sure if it's a good idea to try and remount the partition in r/w to do that).
Is there a recommended way to reinstall in a proper way the gapps and maybe solve the "Hey Google" and GBoard problems?

It's hard to fix GBoard without clean flash once it is tempered. You can try this.

- Use latest available gboard addon
- Open the zip file and locate nikgapps.config in it
Set use_zip_config=1 (this will force the installer to use config from zip)
- Set GBoard=-1 in nikgapps.config
- Flash gboard addon (this should uninstall gboard)
- Delete /data/misc_de/*/apexdata/com.android.permission/runtime_permissions.xml
- Flash untouched gboard addon (different than the one that you modified)

Like I said before, it's hard to fix gboard once tempered, you should be able to install gboard with above method but I can't guarantee that you won't run into any issues after that.

If this is too much to do, just clean flash.

Seb_Lz

Member
Mar 25, 2010
It's hard to fix GBoard without clean flash once it is tempered. You can try this.

- Use latest available gboard addon
- Open the zip file and locate nikgapps.config in it
Set use_zip_config=1 (this will force the installer to use config from zip)
- Set GBoard=-1 in nikgapps.config
- Flash gboard addon (this should uninstall gboard)
- Delete /data/misc_de/*/apexdata/com.android.permission/runtime_permissions.xml
- Flash untouched gboard addon (different than the one that you modified)

Like I said before, it's hard to fix gboard once tempered, you should be able to install gboard with above method but I can't guarantee that you won't run into any issues after that.

If this is too much to do, just clean flash.

Dear Nikhil, thanks for taking the time to answer my question, it's really appreciated.
The steps you describe are clear and I see no difficulty executing them, but I understand this won't garantee the expected result. I guess it's probably time for me to start over clean again (and maybe take the opportunity to try Los19.1).
Small question: is it mandatory to flash with embedded cfg file and 'use_zip_config=1' when you have an A/B device? Or can I simply put the cfg in /sdcard/Nikgapps and flash the gapps zip after rom Ota update?

Dear Nikhil, thanks for taking the time to answer my question, it's really appreciated.
The steps you describe are clear and I see no difficulty executing them, but I understand this won't garantee the expected result. I guess it's probably time for me to start over clean again (and maybe take the opportunity to try Los19.1).
Small question: is it mandatory to flash with embedded cfg file and 'use_zip_config=1' when you have an A/B device? Or can I simply put the cfg in /sdcard/Nikgapps and flash the gapps zip after rom Ota update?

use_zip_config is only for those who are sideloading or have encrypted /data partition as in these cases chances are your recovery isn't going to be able to read /sdcard/NikGapps folder

More info on it here: https://nikgapps.com/misc/2022/02/2...e-sideloading-or-running-on-encrypted-storage

retry0001-coffee

Senior Member
Oct 21, 2019
Honestly you should be on LOS19 by now. There have been enough CVEs patched that unpatched 18 code is not a good idea. With that said, you can dirty flash from 18 to 19. I did it and have had no problems on my OP6T. I clean flashed my Moto G7 plus, but that was because I had to put the last stock ROM on it to get some sort of update that fixed problems on Tmob with registering as a device capable of using VoLTE and Wifi calling. Huge pain that was, but story for a different XDA thread .
Hi.
Can i dirty flash 12.1 gapps over 12 or i need to do a clean flash first?
Hi.
Can i dirty flash 12.1 gapps over 12 or i need to do a clean flash first?

Clean flash

Reactions: Doomguy6

Seb_Lz

Member
Mar 25, 2010
use_zip_config is only for those who are sideloading or have encrypted /data partition as in these cases chances are your recovery isn't going to be able to read /sdcard/NikGapps folder

More info on it here: https://nikgapps.com/misc/2022/02/2...e-sideloading-or-running-on-encrypted-storage

Just to give a feedback: I went to LOS 19.1 (clean flash) and installed nikgapps full package (I unticked some apps, but kept things like gboard, google assistant, chrome,...). Everything seems to be working great so far, even Hey/Ok Google feature, android auto, etc. Great job @Nikhil !

Reactions: Nikhil

lm089

Senior Member
Jun 26, 2011 Munich
Hi,
I'm running LOS19.1 on my OnePlus6, until yesterday with NikGapps Core build 20220421. When I originally installed NikGapps back in April I think there was no 12.1 version available so I installed the one for A12, which was working fine.
However there was this slightly annoying bug with the location indicator frequently showing up in status bar. Yesterday while I installed the latest LOS OTA (build 20220712) I found out that there was a new NikGapps version apparently addressing that bug, so I decided to go the "clean-flash-without-losing-my-data" way described in the FAQ section, and hey: that location indicator bug was gone, and everything else semmed to be working just fine.
Until today: I'm frequently using an outdoor app "oruxmaps" for GPS tracking while hiking or cycling; that app never let me down since I started using it many years ago.
This evening on a short cycling trip however I realized that the track recording would always stop ~1 second after I had started it.
I tried many things to repair that (delete Cache, even delete all data) but that didn't help.
On my way home I thought hard what had changed since I last used the app without problems (which was the day before yesterday), and the only to changed where NikGapps and LOS updates.

Back at home I ran the following 3 tests:
1. restored a Nandroid I had created just before updating LOS and NikGapps, so that I was back at LOS build 20220705 and NikGapps build 20220421 >> result: oruxmaps again worked fine, as usual, no problems with recording GPS tracks
2. staying at the older LOS build I again performed the NikGapps update the way described in the FAQs (yes, I uninstalled play store updates, deleted all "51-*" scripts, dirty flashed LOS 19.1 build 20220705, then the latest NikGapps, also rebotted to recovery in between etc); so now I was at LOS build 20220705 with NikGapps build 20220709 >> result: oruxmaps again would beheve strangely and would not record any track
3. repeat step 1 with the same positive result, then did another LOS OTA plus reboot so that now I am at LOS build 20220712 with NikGapps build 20220421 >> result: oruxmaps working fine as ever.

I know, that sounds extremely weird that NikGapps would be causing an app to malfunction but that is the only conclusion I can draw here.

Let me know If your interested in logs (although I wouldn't know which type of logs that would be)
Hi,
I'm running LOS19.1 on my OnePlus6, until yesterday with NikGapps Core build 20220421. When I originally installed NikGapps back in April I think there was no 12.1 version available so I installed the one for A12, which was working fine.
However there was this slightly annoying bug with the location indicator frequently showing up in status bar. Yesterday while I installed the latest LOS OTA (build 20220712) I found out that there was a new NikGapps version apparently addressing that bug, so I decided to go the "clean-flash-without-losing-my-data" way described in the FAQ section, and hey: that location indicator bug was gone, and everything else semmed to be working just fine.
Until today: I'm frequently using an outdoor app "oruxmaps" for GPS tracking while hiking or cycling; that app never let me down since I started using it many years ago.
This evening on a short cycling trip however I realized that the track recording would always stop ~1 second after I had started it.
I tried many things to repair that (delete Cache, even delete all data) but that didn't help.
On my way home I thought hard what had changed since I last used the app without problems (which was the day before yesterday), and the only to changed where NikGapps and LOS updates.

Back at home I ran the following 3 tests:
1. restored a Nandroid I had created just before updating LOS and NikGapps, so that I was back at LOS build 20220705 and NikGapps build 20220421 >> result: oruxmaps again worked fine, as usual, no problems with recording GPS tracks
2. staying at the older LOS build I again performed the NikGapps update the way described in the FAQs (yes, I uninstalled play store updates, deleted all "51-*" scripts, dirty flashed LOS 19.1 build 20220705, then the latest NikGapps, also rebotted to recovery in between etc); so now I was at LOS build 20220705 with NikGapps build 20220709 >> result: oruxmaps again would beheve strangely and would not record any track
3. repeat step 1 with the same positive result, then did another LOS OTA plus reboot so that now I am at LOS build 20220712 with NikGapps build 20220421 >> result: oruxmaps working fine as ever.

I know, that sounds extremely weird that NikGapps would be causing an app to malfunction but that is the only conclusion I can draw here.

Let me know If your interested in logs (although I wouldn't know which type of logs that would be)

Hi, can you ping me on Telegram? @inikhilmenghani

retry0001-coffee

Senior Member
Oct 21, 2019
Hey I have that location indicator thing going on too. I didn't think it had anything to do with NikGapps. Is it something to be concerned about? I mean it's not *that* annoying, unless it indicates excessive battery drain or actually leaking location when I have all location /gps stuff shut off.
Hey I have that location indicator thing going on too. I didn't think it had anything to do with NikGapps. Is it something to be concerned about? I mean it's not *that* annoying, unless it indicates excessive battery drain or actually leaking location when I have all location /gps stuff shut off.

As reported by some of the users, the fix relies on Rom side change too. Assuming you're on latest Los 19.1, you should not see the location indicator being accessed by phone services on latest NikGapps build, I've removed all the permissions which were previously set by default.

I do have mixed feedback, some of them say that it's fixed for them and some say that phone services is accessing location in the backend. I personally am not able to reproduce so it's kinda hard to actually confirm if the issue is at rom side or gapps.

I'd suggest you monitor your battery and the services consuming it to gauge if the issue persists.

retry0001-coffee

Senior Member
Oct 21, 2019
Well the location display in the upper right corner (little green icon) persists. I can't really tell if it's a battery drain or not. 19.1 seems to be a bit more of a drain than 18.1, but it could be my imagination or just my phone's battery has wear leveled some.
Well the location display in the upper right corner (little green icon) persists. I can't really tell if it's a battery drain or not. 19.1 seems to be a bit more of a drain than 18.1, but it could be my imagination or just my phone's battery has wear leveled some.

Oh you're on 18.1, I've made the changes only to Android 12.1, guess I'll have to back port to a11 too. Next release!

retry0001-coffee

Senior Member
Oct 21, 2019
No I am on 19.1 . I installed NikGapps when I flashed to 19.1 because I had been using openGapps but their project is a mess now. I'm using NikGapps core and LOS 19.1 . I am on the June 23rd build right now: https://download.lineageos.org/fajita I'll probably update to the next July release since it will include CVE patches.
No I am on 19.1 . I installed NikGapps when I flashed to 19.1 because I had been using openGapps but their project is a mess now. I'm using NikGapps core and LOS 19.1 . I am on the June 23rd build right now: https://download.lineageos.org/fajita I'll probably update to the next July release since it will include CVE patches.

Let me know if the issue still persists after you update your Rom and flash latest NikGapps build (9th July)

retry0001-coffee

Senior Member
Oct 21, 2019
Oh i had no intention of updating NikGapps. I mean I'm just doing OTA updates for LOS now. How would I go about flashing NikGapps? Can I do it after I update LOS and boot into it, or do I have to do it all from recovery before first boot?
Oh i had no intention of updating NikGapps. I mean I'm just doing OTA updates for LOS now. How would I go about flashing NikGapps? Can I do it after I update LOS and boot into it, or do I have to do it all from recovery before first boot?

The fix from gapps end came with 9th July NikGapps release. If you are on older build I highly doubt updating rom will auto fix for you.

Since the new release removes a lot of unnecessary stuff, dirty flashing it via recovery won't help.

You'd have to clean flash

Top Liked Posts

  • I followed that exact method.


    Thanks. I tried this method. It worked. Cheers. Thanks for the prompt replies. I request you to add the line 'if you are encrypted, it's best you make the installer use the config file from the zip' somewhere in the OP or on the #2 post. This is extremely crucial. Might help the next guy.

    Edit: Most apps are working except Play Store. It's crashing. Also, app name is being shown as 'Last Update'.
    These are the crash URLs:

    What did you do after uninstalling?

    Can I just say right here, that I'm very impressed with this project. While OpenGapps is still languishing away in endless beta development (or alpha really) with no ETA for android 12 support whatsoever, you Nikhil have been totally on the ball with a great offering for the android community. Over at LOS, they're pusing MindTheGapps which only comes in one, bloated flavor that you *can* customize to slim down, but that's a lot of extra steps. Core NikGapps is working brilliantly on both my phones (a Moto G7 Plus and a OnePlus 6T) with LOS. Kudos to you, sir.

    Thanks! Not everyone acknowledges that! The next update will be even better.

    Can I just say right here, that I'm very impressed with this project. While OpenGapps is still languishing away in endless beta development (or alpha really) with no ETA for android 12 support whatsoever, you Nikhil have been totally on the ball with a great offering for the android community. Over at LOS, they're pusing MindTheGapps which only comes in one, bloated flavor that you *can* customize to slim down, but that's a lot of extra steps. Core NikGapps is working brilliantly on both my phones (a Moto G7 Plus and a OnePlus 6T) with LOS. Kudos to you, sir.
    I was using opengapps with 18.1. But since they do not have their act together for 19.1, I switched to nikgapps core when I updated to 19.1 on my device (OnePlus 6T). I dirty flashed too, right over 18.1 and opengapps, only wiping cache. Been working A OK since. And sure it survives OTA updates.
    Will this particular gapps distribution work with LineageOS 19.1 and survive OTA updates via LineageOS' custom recovery? or should I stick with what is recommended by LineageOS which is MindTheGapps.

    Yes, it will work. I'd suggest you get started with NikGapps core.

    NikGapps offers a variety of customizations, you can create your own build for free in 30 mins too -> https://github.com/nikgapps/config
    With precisely the apps you need for your daily use.

    sdcard is same as storage/emulated/0/

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK