Skip to content

Commit

Permalink
Relink adf_test; upload adf_test
Browse files Browse the repository at this point in the history
  • Loading branch information
xunmod committed Aug 27, 2024
1 parent da8cd92 commit 0f42623
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/by511.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
mka -j$(nproc --all) recoveryimage
export twrp_version=$(cat bootable/recovery/variables.h | grep "define TW_MAIN_VERSION_STR" | cut -d '"' -f2)
cp out/target/product/sl8521e_1h10ll_sw761/recovery.img ../twrp-${twrp_version}_0-sl8521e_1h10ll_sw761.img
cp $(find out -name adf_test | xargs) ../ || true
lunch omni_sl8521e_1h10ll_sw763-eng
mka -j$(nproc --all) recoveryimage
cp out/target/product/sl8521e_1h10ll_sw763/recovery.img ../twrp-${twrp_version}_0-sl8521e_1h10ll_sw763.img
Expand All @@ -67,3 +68,7 @@ jobs:
with:
name: TWRP Image for MiKids6x
path: 'twrp-*_sw771.img'
- uses: actions/upload-artifact@v3
with:
name: adf_test
path: 'adf_test'
17 changes: 15 additions & 2 deletions sl8521e_1h10ll-common/0001-Add-adf_test.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From f075046e0f3de5036bd42c78346bb5ecfefb3009 Mon Sep 17 00:00:00 2001
From 4d99d56d1e31ebcb76c55a10777c40f34ce91f2d Mon Sep 17 00:00:00 2001
From: xunmod <[email protected]>
Date: Tue, 27 Aug 2024 14:24:24 +0800
Subject: [PATCH] Add adf_test
Expand All @@ -7,7 +7,8 @@ Subject: [PATCH] Add adf_test
Android.mk | 2 +
adf_test/Android.mk | 28 +++
adf_test/adf_test.c | 405 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 435 insertions(+)
prebuilt/Android.mk | 1 +
4 files changed, 436 insertions(+)
create mode 100644 adf_test/Android.mk
create mode 100644 adf_test/adf_test.c

Expand Down Expand Up @@ -476,6 +477,18 @@ index 0000000..4ac4c5f
+ teardown();
+ return 0;
+}
diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk
index 17636ae..ee9b36e 100644
--- a/prebuilt/Android.mk
+++ b/prebuilt/Android.mk
@@ -11,6 +11,7 @@ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin

# Manage list
+RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/adf_test
RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dump_image
RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/flash_image
RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/erase_image
--
2.46.0

0 comments on commit 0f42623

Please sign in to comment.