diff --git a/Android.bp b/Android.bp
index 4eb4110..a439960 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,5 @@
//
-// Copyright (C) 2023 The Evolution X Project
+// Copyright (C) 2023-2024 The Evolution X Project
// SPDX-License-Identifier: Apache-2.0
//
@@ -8,28 +8,20 @@ android_app {
defaults: [
"SettingsLibDefaults",
],
- srcs: [
- "src/**/*.java",
- "src/**/*.kt",
- ],
+
+ srcs: ["src/**/*.java"],
+ resource_dirs: ["res"],
certificate: "platform",
platform_apis: true,
system_ext_specific: true,
privileged: true,
+
static_libs: [
"androidx.core_core",
"androidx.preference_preference",
- "particles",
],
- resource_dirs: ["res"],
+
optimize: {
proguard_flags_files: ["proguard.flags"],
},
}
-
-java_import {
- name: "particles",
- jars: [
- "libs/LeonidsLib.jar",
- ],
-}
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index d46beb6..3765c9c 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,6 +1,6 @@
@@ -8,11 +8,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:sharedUserId="android.uid.system"
package="org.evolution.pixelparts"
- android:versionCode="1"
- android:versionName="1.0" >
-
-
-
+ android:versionCode="2"
+ android:versionName="2.0" >
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -58,87 +32,61 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PixelParts.png b/PixelParts.png
deleted file mode 100644
index ca18f95..0000000
Binary files a/PixelParts.png and /dev/null differ
diff --git a/README.md b/README.md
index 12130f7..df1f405 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-
+
## About the app
@@ -8,15 +8,12 @@ PixelParts began as a simple High Brightness Mode (HBM) tool. Since then, it has
| Category | Feature | Description | QS Tile | Required kernel changes |
| --- | --- | --- | --- | --- |
-| **Battery** | `Battery info` | View various battery information | N/A |N/A |
-| | `Start/Stop charging` | Start/stop charging at specific percentages | N/A | N/A |
-| **Display** | `High brightness mode (HBM)` | Enable peak luminance. | Yes | N/A |
-| | `Automatic HBM` | Enable peak luminance based on sunlight | Yes | N/A |
-| | `Saturation` | Control the saturation level of the display | N/A | N/A |
-| **Leds** | `Torch strength` | Adjust the brightness of the PixelParts flashlight QS-Tile | PixelParts Flashlight QS | N/A |
-| **Ui-Bench** | `Jitter` | Calculate rendering jitter. | N/A | N/A |
-| **USB** | `USB 2.0 fast charge` | Enable CDP mode for faster charging on USB 2.0 ports. | Yes | [Commit 1/1](https://github.com/Evolution-X-Devices/kernel_google_gs101/commit/dcbfcd76bdc5d72e16f85fd8a48de6afa8804b61) |
-
+| **Battery** | `Battery information` | View various battery information | Yes |N/A |
+| | `Charge control` | Start/stop charging at specific percentages | N/A | N/A |
+| | `Fast charge` | Enable CDP mode for faster charging on USB 2.0 ports. | Yes | [Commit 1/1](https://github.com/Evolution-X-Devices/kernel_google_gs101/commit/dcbfcd76bdc5d72e16f85fd8a48de6afa8804b61) |
+| **Display** | `Automatic high brightness mode (HBM)` | Enable peak luminance based on sunlight | Yes | N/A |
+| | `Saturation` | Control the saturation level of the display | Yes | N/A |
+| **Leds** | `Pixel torch` | Adjust the brightness of the PixelParts flashlight QS-Tile | PixelParts Flashlight QS | N/A |
## Including PixelParts
@@ -41,7 +38,7 @@ croot && git clone https://github.com/Evolution-X-Devices/packages_apps_PixelPar
include packages/apps/PixelParts/device.mk
```
-This line includes the [device.mk](https://github.com/Evolution-X-Devices/packages_apps_PixelParts/blob/tiramisu/device.mk) file from the PixelParts repository, which will add the PixelParts application, its initialization script (init.rc), and the necessary security policies (sepolicies) to your AOSP build during compilation.
+This line includes the [device.mk](https://github.com/Evolution-X-Devices/packages_apps_PixelParts/blob/udc/device.mk) file from the PixelParts repository, which will add the PixelParts application, its initialization script (init.rc), and the necessary security policies (sepolicies) to your AOSP build during compilation.
## Testing changes
@@ -54,19 +51,9 @@ m PixelParts
```
- This also assumes you are already running an AOSP build including PixelParts as a priv-app in /system_ext.
-## Screenshots
-
-
-
-
-
## Credits
-| Work | Author |
+| Work | Author |
| ----------------------------------------------------------- | --------------------------------------------------------------------------- |
-| Base preference fragment & CustomSeekBar preference | [Neobuddy89](https://forum.xda-developers.com/m/neobuddy89.3795148/) |
+| CustomSeekBar preference | [Neobuddy89](https://forum.xda-developers.com/m/neobuddy89.3795148/) |
| Original AutoHBMService | [Hikari no Tenshi](https://forum.xda-developers.com/m/hikari-no-tenshi.4337348/) & [maxwen](https://forum.xda-developers.com/m/maxwen.4683552/) |
-| ShakeUtils | [AmeChanRain](https://github.com/AmeChanRain) |
-| First launch warning dialog | [Ramyski](https://forum.xda-developers.com/m/ramyski.8538037/) |
-| Leonids particle system | [Plattysoft](https://github.com/plattysoft) |
-| Randomized color particle effect | [LorD ClockaN](https://forum.xda-developers.com/m/lord-clockan.1184673/) |
diff --git a/device.mk b/device.mk
index 0b8bd69..06475d8 100644
--- a/device.mk
+++ b/device.mk
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2023 The Evolution X Project
+# Copyright (C) 2023-2024 The Evolution X Project
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -12,5 +12,8 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
init.pixelparts.rc
+# PixelParts overlays
+DEVICE_PACKAGE_OVERLAYS += packages/apps/PixelParts/overlay
+
# PixelParts sepolicy
BOARD_SEPOLICY_DIRS += packages/apps/PixelParts/sepolicy
diff --git a/init/Android.bp b/init/Android.bp
index 8bdc6b5..0d22498 100644
--- a/init/Android.bp
+++ b/init/Android.bp
@@ -1,5 +1,5 @@
//
-// Copyright (C) 2023 The Evolution X Project
+// Copyright (C) 2023-2024 The Evolution X Project
// SPDX-License-Identifier: Apache-2.0
//
diff --git a/libs/LeonidsLib.jar b/libs/LeonidsLib.jar
deleted file mode 100644
index 2713755..0000000
Binary files a/libs/LeonidsLib.jar and /dev/null differ
diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml
new file mode 100644
index 0000000..39d3ddc
--- /dev/null
+++ b/overlay/packages/apps/Settings/res/values/config.xml
@@ -0,0 +1,10 @@
+
+
+
+
+ false
+
+
diff --git a/readme_resources/PixelParts.png b/readme_resources/PixelParts.png
new file mode 100644
index 0000000..cbdf862
Binary files /dev/null and b/readme_resources/PixelParts.png differ
diff --git a/res/drawable/easteregg.xml b/res/drawable/easteregg.xml
deleted file mode 100644
index 9c6860c..0000000
--- a/res/drawable/easteregg.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
diff --git a/res/drawable/ic_hbm_tile.xml b/res/drawable/ic_auto_hbm_tile.xml
similarity index 95%
rename from res/drawable/ic_hbm_tile.xml
rename to res/drawable/ic_auto_hbm_tile.xml
index 7fa0adc..bcab34d 100644
--- a/res/drawable/ic_hbm_tile.xml
+++ b/res/drawable/ic_auto_hbm_tile.xml
@@ -1,4 +1,4 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/res/drawable/ic_usb2_fc_tile.xml b/res/drawable/ic_fast_charge_tile.xml
similarity index 92%
rename from res/drawable/ic_usb2_fc_tile.xml
rename to res/drawable/ic_fast_charge_tile.xml
index fbbc8fa..021eb7c 100644
--- a/res/drawable/ic_usb2_fc_tile.xml
+++ b/res/drawable/ic_fast_charge_tile.xml
@@ -1,4 +1,4 @@
-
+
-
-
diff --git a/res/drawable/ic_pixel_parts_tile.xml b/res/drawable/ic_pixel_parts_tile.xml
deleted file mode 100644
index e0027df..0000000
--- a/res/drawable/ic_pixel_parts_tile.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
diff --git a/res/drawable/ic_pixeltorch_tile.xml b/res/drawable/ic_pixel_torch_tile.xml
similarity index 91%
rename from res/drawable/ic_pixeltorch_tile.xml
rename to res/drawable/ic_pixel_torch_tile.xml
index 920c9be..a30b372 100644
--- a/res/drawable/ic_pixeltorch_tile.xml
+++ b/res/drawable/ic_pixel_torch_tile.xml
@@ -1,4 +1,4 @@
-
+
-
-
diff --git a/res/layout/evolution_logo.xml b/res/layout/evolution_logo.xml
deleted file mode 100644
index ddfa56f..0000000
--- a/res/layout/evolution_logo.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
diff --git a/res/layout/rendering_jitter.xml b/res/layout/rendering_jitter.xml
deleted file mode 100644
index 5ed5f3b..0000000
--- a/res/layout/rendering_jitter.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/res/layout/saturation.xml b/res/layout/saturation.xml
index 660d7d0..aa8f98a 100644
--- a/res/layout/saturation.xml
+++ b/res/layout/saturation.xml
@@ -1,7 +1,7 @@
-