pipa: vendorsetup: add more source patches
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
This commit is contained in:
23
source-patches/update-switch-server-url.diff
Normal file
23
source-patches/update-switch-server-url.diff
Normal file
@@ -0,0 +1,23 @@
|
||||
From fd9fd7200814c3527e46b02e3c3232e275285312 Mon Sep 17 00:00:00 2001
|
||||
From: Abdulwahab Isam <abdoi94.iq@gmail.com>
|
||||
Date: Sat, 15 Mar 2025 09:29:02 +0300
|
||||
Subject: [PATCH] official_devices: switch to my repo
|
||||
|
||||
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
|
||||
---
|
||||
app/src/main/res/values/strings.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
|
||||
index 48b8a95..31fedea 100644
|
||||
--- a/app/src/main/res/values/strings.xml
|
||||
+++ b/app/src/main/res/values/strings.xml
|
||||
@@ -31,7 +31,7 @@
|
||||
{device} - Device name
|
||||
{variant} - Build variant
|
||||
-->
|
||||
- <string name="updater_server_url" translatable="false">https://raw.githubusercontent.com/AxionAOSP/official_devices/refs/heads/main/OTA/{variant}/{device}.json</string>
|
||||
+ <string name="updater_server_url" translatable="false">https://raw.githubusercontent.com/ai94iq/axion_official_devices/refs/heads/main/OTA/{variant}/{device}.json</string>
|
||||
|
||||
<string name="verification_failed_notification">Verification failed</string>
|
||||
<string name="verifying_download_notification">Verifying update</string>
|
||||
40
source-patches/vendor-enable-split-notifications.diff
Normal file
40
source-patches/vendor-enable-split-notifications.diff
Normal file
@@ -0,0 +1,40 @@
|
||||
From 583031a436f448e519c3a6fea79ede078242e86e Mon Sep 17 00:00:00 2001
|
||||
From: Abdulwahab Isam <abdoi94.iq@gmail.com>
|
||||
Date: Sat, 15 Mar 2025 09:27:30 +0300
|
||||
Subject: [PATCH] Revert "overlays: Disable split shade for tablets"
|
||||
|
||||
This reverts commit decf8b582ae4daedd7e5b6a8f2369a3b48082065.
|
||||
---
|
||||
.../res/values-sw600dp-land/config.xml | 23 -------------------
|
||||
1 file changed, 23 deletions(-)
|
||||
delete mode 100644 overlay/common/frameworks/base/packages/SystemUI/res/values-sw600dp-land/config.xml
|
||||
|
||||
diff --git a/overlay/common/frameworks/base/packages/SystemUI/res/values-sw600dp-land/config.xml b/overlay/common/frameworks/base/packages/SystemUI/res/values-sw600dp-land/config.xml
|
||||
deleted file mode 100644
|
||||
index 33b6a31319..0000000000
|
||||
--- a/overlay/common/frameworks/base/packages/SystemUI/res/values-sw600dp-land/config.xml
|
||||
+++ /dev/null
|
||||
@@ -1,23 +0,0 @@
|
||||
-<?xml version="1.0" encoding="utf-8"?>
|
||||
-<!--
|
||||
- Copyright (C) 2025 The AxionAOSP Project
|
||||
-
|
||||
- Licensed under the Apache License, Version 2.0 (the "License");
|
||||
- you may not use this file except in compliance with the License.
|
||||
- You may obtain a copy of the License at
|
||||
-
|
||||
- http://www.apache.org/licenses/LICENSE-2.0
|
||||
-
|
||||
- Unless required by applicable law or agreed to in writing, software
|
||||
- distributed under the License is distributed on an "AS IS" BASIS,
|
||||
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
- See the License for the specific language governing permissions and
|
||||
- limitations under the License.
|
||||
--->
|
||||
-
|
||||
-<!-- These resources are around just to allow their values to be customized
|
||||
- for different hardware and product builds. -->
|
||||
-<resources>
|
||||
- <!-- Whether to use the split 2-column notification shade -->
|
||||
- <bool name="config_use_split_notification_shade">false</bool>
|
||||
-</resources>
|
||||
@@ -26,7 +26,7 @@ clone_if_missing "https://github.com/ai94iq/cr-android_hardware_xiaomi" "15.0" "
|
||||
# Store the root directory and device paths
|
||||
ROOT_DIR="$(pwd)"
|
||||
DEVICE_PATH="${ROOT_DIR}/device/xiaomi/pipa"
|
||||
PATCH_PATH="${DEVICE_PATH}/atomic-recovery.diff"
|
||||
PATCH_PATH="${DEVICE_PATH}/source-patches/atomic-recovery.diff"
|
||||
|
||||
# Check if patch file exists
|
||||
if [ ! -f "$PATCH_PATH" ]; then
|
||||
@@ -52,3 +52,67 @@ clone_if_missing "https://github.com/ai94iq/cr-android_hardware_xiaomi" "15.0" "
|
||||
# Return to original directory
|
||||
cd "${ROOT_DIR}" || echo "Warning: Failed to return to original directory"
|
||||
)
|
||||
|
||||
# Apply update-switch-server-url patch
|
||||
(
|
||||
# Store the root directory and device paths
|
||||
ROOT_DIR="$(pwd)"
|
||||
DEVICE_PATH="${ROOT_DIR}/device/xiaomi/pipa"
|
||||
PATCH_PATH="${DEVICE_PATH}/source-patches/update-switch-server-url.diff"
|
||||
|
||||
# Check if patch file exists
|
||||
if [ ! -f "$PATCH_PATH" ]; then
|
||||
echo "Error: Patch file not found at ${PATCH_PATH}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Enter Updater directory
|
||||
cd packages/apps/Updater || {
|
||||
echo "Error: Could not change to packages/apps/Updater directory"
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "Applying update-switch-server-url patch from ${PATCH_PATH}..."
|
||||
if git am "${PATCH_PATH}"; then
|
||||
echo "Patch applied successfully"
|
||||
else
|
||||
echo "Patch failed to apply, cleaning up..."
|
||||
git am --abort
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Return to original directory
|
||||
cd "${ROOT_DIR}" || echo "Warning: Failed to return to original directory"
|
||||
)
|
||||
|
||||
# Apply vendor-enable-split-notifications patch
|
||||
(
|
||||
# Store the root directory and device paths
|
||||
ROOT_DIR="$(pwd)"
|
||||
DEVICE_PATH="${ROOT_DIR}/device/xiaomi/pipa"
|
||||
PATCH_PATH="${DEVICE_PATH}/source-patches/vendor-enable-split-notifications.diff"
|
||||
|
||||
# Check if patch file exists
|
||||
if [ ! -f "$PATCH_PATH" ]; then
|
||||
echo "Error: Patch file not found at ${PATCH_PATH}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Enter vendor/lineage directory
|
||||
cd vendor/lineage || {
|
||||
echo "Error: Could not change to vendor/lineage directory"
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "Applying vendor-enable-split-notifications patch from ${PATCH_PATH}..."
|
||||
if git am "${PATCH_PATH}"; then
|
||||
echo "Patch applied successfully"
|
||||
else
|
||||
echo "Patch failed to apply, cleaning up..."
|
||||
git am --abort
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Return to original directory
|
||||
cd "${ROOT_DIR}" || echo "Warning: Failed to return to original directory"
|
||||
)
|
||||
Reference in New Issue
Block a user