Skip to content

Commit

Permalink
pixel-additional: Update TurboAdapter_NoBatt inclusion
Browse files Browse the repository at this point in the history
* TARGET_NOT_SUPPORTS_GOOGLE_BATTERY -> TARGET_SUPPORTS_GOOGLE_BATTERY := false to include

Change-Id: I7856a85e5f512eb59cfe8a59ace2f24680e330ec
  • Loading branch information
someone5678 committed May 11, 2024
1 parent 5ff0c55 commit 3bbc950
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $(call inherit-product-if-exists, vendor/google/pixel-additional/config.mk)
This repo also includes several additional GApps packages, such as
* `TARGET_INCLUDE_CAMERA_GO`: Camera from Google (Formerly, Camera Go or GCam Go)
* `TARGET_SUPPORTS_LILY_EXPERIENCE`: Enabling Android (Go Edition) device specific features
* `TARGET_NOT_SUPPORTS_GOOGLE_BATTERY`: Build TurboAdapter with dummy GoogleBatteryService
* `TARGET_SUPPORTS_GOOGLE_BATTERY`: Build TurboAdapter with dummy GoogleBatteryService wheh flag is false
* `TARGET_GBOARD_KEY_HEIGHT`: Resize GBoard ime key height to `TARGET_GBOARD_KEY_HEIGHT` (Must be float. e.g. 1.2)

## Credits
Expand Down
4 changes: 2 additions & 2 deletions products/gms.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ endif
ifneq ($(WITH_GMS),false)

# Include TurboAdapter without Google Battery support
ifeq ($(TARGET_NOT_SUPPORTS_GOOGLE_BATTERY),true)
ifeq ($(TARGET_SUPPORTS_GOOGLE_BATTERY),false)
PRODUCT_PACKAGES += \
TurboAdapter_NoBatt

Expand All @@ -46,7 +46,7 @@ PRODUCT_COPY_FILES += \

PRODUCT_PACKAGES += \
LibPowerStatsSymLink_NoBatt
endif
endif #TARGET_SUPPORTS_GOOGLE_BATTERY

# Resize GBoard ime key height to TARGET_GBOARD_KEY_HEIGHT
# Value must be float e.g. 1.2
Expand Down
2 changes: 1 addition & 1 deletion products/gms/LibPowerStatsSymLink_NoBatt/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LOCAL_UNINSTALLABLE_MODULE := true
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_SRC_FILES := /dev/null

ifeq ($(TARGET_NOT_SUPPORTS_GOOGLE_BATTERY),true)
ifeq ($(TARGET_SUPPORTS_GOOGLE_BATTERY),false)
LIBPOWERSTATS_SYMLINK := $(TARGET_OUT_SYSTEM_EXT)/priv-app/TurboAdapter_NoBatt/lib/arm64/libpowerstatshaldataprovider.so
$(LIBPOWERSTATS_SYMLINK): $(LOCAL_INSTALLED_MODULE)
@echo "libpowerstatshaldataprovider link: $@"
Expand Down

0 comments on commit 3bbc950

Please sign in to comment.