From 01ac2825865614404cea6487f8c7f333ad6430d7 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Wed, 6 Jan 2021 20:51:54 +0000 Subject: [PATCH] sm6150-common: parts: Use all shared resources from devicesettings Change-Id: Icd7f381c574ea36eb4d797cefd60ba9f1a0941bd --- parts/Android.bp | 27 ++++++++ parts/Android.mk | 37 ---------- parts/res/color/switch_bar_bg.xml | 20 ------ parts/res/drawable/switchbar_background.xml | 20 ------ parts/res/layout/switch_bar.xml | 49 ------------- parts/res/values-night/colors.xml | 20 ------ parts/res/values/colors.xml | 21 ------ parts/res/values/styles.xml | 76 --------------------- 8 files changed, 27 insertions(+), 243 deletions(-) create mode 100644 parts/Android.bp delete mode 100644 parts/Android.mk delete mode 100644 parts/res/color/switch_bar_bg.xml delete mode 100644 parts/res/drawable/switchbar_background.xml delete mode 100644 parts/res/layout/switch_bar.xml delete mode 100644 parts/res/values-night/colors.xml delete mode 100644 parts/res/values/colors.xml delete mode 100644 parts/res/values/styles.xml diff --git a/parts/Android.bp b/parts/Android.bp new file mode 100644 index 0000000..56c6534 --- /dev/null +++ b/parts/Android.bp @@ -0,0 +1,27 @@ +// +// Copyright (C) 2017-2020 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +android_app { + name: "XiaomiParts", + + srcs: ["src/**/*.java"], + + certificate: "platform", + platform_apis: true, + privileged: true, + + static_libs: [ + "androidx.core_core", + "androidx.preference_preference", + "org.lineageos.settings.resources", + "vendor.xiaomi.hardware.motor-V1.0-java", + ], + + optimize: { + proguard_flags_files: ["proguard.flags"], + }, + +} diff --git a/parts/Android.mk b/parts/Android.mk deleted file mode 100644 index 6b23761..0000000 --- a/parts/Android.mk +++ /dev/null @@ -1,37 +0,0 @@ -# -# Copyright (C) 2017-2020 The LineageOS Project -# -# SPDX-License-Identifier: Apache-2.0 -# - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := optional - -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_PACKAGE_NAME := XiaomiParts -LOCAL_CERTIFICATE := platform -LOCAL_PRIVATE_PLATFORM_APIS := true -LOCAL_PRIVILEGED_MODULE := true - -LOCAL_USE_AAPT2 := true - -LOCAL_STATIC_ANDROID_LIBRARIES := \ - androidx.core_core \ - androidx.preference_preference - -LOCAL_STATIC_JAVA_LIBRARIES := \ - vendor.xiaomi.hardware.motor-V1.0-java - -LOCAL_RESOURCE_DIR := \ - $(LOCAL_PATH)/res \ - $(TOP)/packages/resources/devicesettings/res - -LOCAL_PROGUARD_FLAG_FILES := proguard.flags - -include frameworks/base/packages/SettingsLib/common.mk - -include $(BUILD_PACKAGE) diff --git a/parts/res/color/switch_bar_bg.xml b/parts/res/color/switch_bar_bg.xml deleted file mode 100644 index ca13e3c..0000000 --- a/parts/res/color/switch_bar_bg.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/parts/res/drawable/switchbar_background.xml b/parts/res/drawable/switchbar_background.xml deleted file mode 100644 index f210707..0000000 --- a/parts/res/drawable/switchbar_background.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - diff --git a/parts/res/layout/switch_bar.xml b/parts/res/layout/switch_bar.xml deleted file mode 100644 index 1bf6f6c..0000000 --- a/parts/res/layout/switch_bar.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - diff --git a/parts/res/values-night/colors.xml b/parts/res/values-night/colors.xml deleted file mode 100644 index 5aa9c8e..0000000 --- a/parts/res/values-night/colors.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - #82000000 - @android:color/black - diff --git a/parts/res/values/colors.xml b/parts/res/values/colors.xml deleted file mode 100644 index bb85f62..0000000 --- a/parts/res/values/colors.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - @*android:color/material_grey_600 - #BFFFFFFF - @android:color/white - diff --git a/parts/res/values/styles.xml b/parts/res/values/styles.xml deleted file mode 100644 index 73b3ea7..0000000 --- a/parts/res/values/styles.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -