[Android Software Development] landry314:
I tried to convert the nano gapps package @razorloves has released for Android 11 into a pico package by creating a gapps-config.txt file with only the text "PicoGApps" in it but this did not work.

I studied the installer.sh file inside the zip file to find out why it didn't work. Here are the relevant parts of the script:

--------------------------------------------

# Locate gapps-config (if used)

for i in "$TMP/aroma/.gapps-config"\

"$zip_folder/.gapps-config"\

"$zip_folder/.gapps-config-$device_name"\

"$zip_folder/.gapps-config-$device_name.txt"\

"$zip_folder/.gapps-config.txt"\

"$zip_folder/gapps-config-$device_name.txt"\

"$zip_folder/gapps-config.txt"\

"/data/.gapps-config"\

"/data/.gapps-config-$device_name"\

"/data/.gapps-config-$device_name.txt"\

"/data/.gapps-config.txt"\

"/data/gapps-config-$device_name.txt"\

"/data/gapps-config.txt"\

"/persist/.gapps-config"\

"/persist/.gapps-config-$device_name"\

"/persist/.gapps-config-$device_name.txt"\

"/persist/.gapps-config.txt"\

"/persist/gapps-config-$device_name.txt"\

"/persist/gapps-config.txt"\

"/sdcard/.gapps-config"\

"/sdcard/.gapps-config-$device_name"\

"/sdcard/.gapps-config-$device_name.txt"\

"/sdcard/.gapps-config.txt"\

"/sdcard/gapps-config-$device_name.txt"\

"/sdcard/gapps-config.txt"\

"/sdcard/Open-GApps/.gapps-config"\

"/sdcard/Open-GApps/.gapps-config-$device_name"\

"/sdcard/Open-GApps/.gapps-config-$device_name.txt"\

"/sdcard/Open-GApps/.gapps-config.txt"\

"/sdcard/Open-GApps/gapps-config-$device_name.txt"\

"/sdcard/Open-GApps/gapps-config.txt"\

"/tmp/install/.gapps-config"\

"/tmp/install/.gapps-config-$device_name"\

"/tmp/install/.gapps-config-$device_name.txt"\

"/tmp/install/.gapps-config.txt"\

"/tmp/install/gapps-config-$device_name.txt"\

"/tmp/install/gapps-config.txt"; do

if [ -r "$i" ]; then

g_conf="$i"

--------------------------------------------

if ( grep -qiE "^${pkg}gapps\$" "$g_conf" ); then # user has selected a 'preset' install

gapps_type=$pkg

sed -i "/ro.addon.open_type/c\ro.addon.open_type=$pkg" "$TMP/g.prop" # modify g.prop to new package type

--------------------------------------------

It really seems like it should work as I put the file at "/sdcard/gapps-config.txt" and I also tried it at "/sdcard/Open-GApps/gapps-config.txt". $ grep -i makes it case-insenstive so it shouldn't be the issue as long as the case-insitivity continues when the $pkg gets fed into the installer.

I also tried deleting the /system/addon.d/ directory first but that didn't work either.

I also tried disabling encryption (Screen lock = None) in case it couldn't read the config file but that didn't work either.

I then noticed that log files were not being created even though it says on the screen during installation that it created a log file at /sdcard/. It's not there.

Then I saw this code in installer.sh:

if [ "$zip_folder" = "/sideload" ]; then

log_folder=/sdcard

so I am thinking maybe the fact that I am sideloading the zip is the reason. I am on a Pixel 3 blueline and installing LineageOS 18.1 from @razorloves by sideloading from the LineageOS recovery. I am sideloading all zips.

Here are some relevant links:

This is where I got the idea to add the string "PicoGApps" in the config file:

Advanced Features and Options

The main repository of the Open GApps Project. Contribute to opengapps/opengapps development by creating an account on GitHub.

github.com

This is where I got the installer for the nano package:

https://xdaforums.com/t/rom-11-unofficial-lineage-18-1-for-pixel-3-xl-blueline-crosshatch.4185847/

By the way, there is a note in the manual for the gapps config that has never been completed: **[TODO: Add here whether or not you can still use other entries in the config file after downsizing] **. Maybe this could use some updating.

Thank you for opengapps!