-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload tree use correct BOARD_SUPER_PARTITION_SIZE from misc_info removed sym_link updated TARGET_KERNEL_ARCH removed unnecessarymount points Accommodate changes from stab Delete init.recovery.samsung.rc Delete recovery.fstab added github actions Update recovery.yml Update recovery.yml Update recovery.yml Update recovery.yml revert back to mka $TARGET chmod mkbootimg fixed typo in DT_PATH Update README.md improved multidisabler changed to ubuntu 20.04 removed not present packages Revert "removed not present packages" This reverts commit b2e9f07. Revert "changed to ubuntu 20.04" This reverts commit 7f2c283. Update bootimg.mk release tar not zip Revert "improved multidisabler" This reverts commit 86a21f3. Create b-r.yml GitHub actions (#2) * publish suc builds * fixed path? * Update recovery.yml * Update recovery.yml * pwd dir * fixed path??? * Update recovery.yml * Update recovery.yml * Update recovery.yml * Update recovery.yml * renamed artifact * actions build release * Update build-release.yml * Update build-release.yml * Update build-release.yml * Delete build-release.yml * Create build-release.yml * Delete build-release.yml
- Loading branch information
0 parents
commit 03c15bb
Showing
22 changed files
with
938 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: build release | ||
|
||
on: | ||
# release: | ||
# types: [published] | ||
# push: | ||
# branches: | ||
# - master | ||
# paths: | ||
# - '.config' | ||
# schedule: | ||
# - cron: 0 8 * * 5 | ||
workflow_dispatch: | ||
|
||
env: | ||
MANIFEST: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11 | ||
DEVICE: a22x | ||
DT_LINK: https://github.com/aHVzY2g/android-device-samsung-a22x/ | ||
DT_REPO_NAME: android-device-samsung-a22x | ||
DT_PATH: device/samsung/a22x | ||
TARGET: recoveryimage | ||
OUTPUT: recovery.tar | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
|
||
- name: Initializing environment | ||
run: | | ||
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d | ||
docker rmi `docker images -q` | ||
sudo apt-get remove account-plugin-facebook account-plugin-flickr account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo aisleriot brltty duplicity empathy empathy-common example-content gnome-accessibility-themes gnome-contacts gnome-mahjongg gnome-mines gnome-orca gnome-screensaver gnome-sudoku gnome-video-effects gnomine landscape-common libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-style-galaxy libreoffice-style-human libreoffice-writer libsane libsane-common mcp-account-manager-uoa python3-uno rhythmbox rhythmbox-plugins rhythmbox-plugin-zeitgeist sane-utils shotwell shotwell-common telepathy-gabble telepathy-haze telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 telepathy-salut totem totem-common totem-plugins printer-driver-brlaser printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-m2300w printer-driver-ptouch printer-driver-splix | ||
git config --global user.name "" | ||
git config --global user.email "" | ||
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php* | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
sudo -E apt-get clean | ||
sudo -E apt-get -qq update | ||
sudo -E apt-get -qq install bc build-essential zip curl libstdc++6 git wget python gcc clang libssl-dev repo rsync flex curl bison aria2 | ||
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo | ||
sudo chmod a+rx /usr/local/bin/repo | ||
#- uses: webfactory/[email protected] | ||
# with: | ||
# ssh-private-key: | | ||
# ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
|
||
- name: Sync recovery source and device tree | ||
run: | | ||
mkdir work | ||
cd work | ||
repo init -u $MANIFEST --depth=1 | ||
repo sync -c -j4 --force-sync --no-clone-bundle --no-tags | ||
git clone $DT_LINK --depth=1 --single-branch $DT_PATH | ||
sudo chmod a+rx $DT_PATH/mkbootimg | ||
- name: Build | ||
run: | | ||
cd work | ||
. build/envsetup.sh &&lunch twrp_$DEVICE-eng &&export ALLOW_MISSING_DEPENDENCIES=true && mka $TARGET | ||
- name: Save | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: twrp-recovery | ||
path: /home/runner/work/android-device-samsung-a22x/android-device-samsung-a22x/work/out/target/product/a22x/recovery.tar | ||
retention-days: 5 | ||
|
||
- name: Create release | ||
uses: actions/create-release@v1 | ||
id: create_release | ||
with: | ||
draft: true | ||
prerelease: true | ||
release_name: ${{ steps.version.outputs.version }} alpha | ||
tag_name: v${{ steps.version.outputs.version }} | ||
body: | | ||
Autogenerated by github action, developer should edit as required before publishing... | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Add bins to release | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: /home/runner/work/android-device-samsung-a22x/android-device-samsung-a22x/work/out/target/product/a22x/recovery.tar | ||
asset_name: recovery.tar | ||
asset_content_type: application/x-tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Building recovery | ||
|
||
on: | ||
# release: | ||
# types: [published] | ||
# push: | ||
# branches: | ||
# - master | ||
# paths: | ||
# - '.config' | ||
# schedule: | ||
# - cron: 0 8 * * 5 | ||
workflow_dispatch: | ||
|
||
env: | ||
MANIFEST: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11 | ||
DEVICE: a22x | ||
DT_LINK: https://github.com/aHVzY2g/android-device-samsung-a22x/ | ||
DT_REPO_NAME: android-device-samsung-a22x | ||
DT_PATH: device/samsung/a22x | ||
TARGET: recoveryimage | ||
OUTPUT: recovery.tar | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
|
||
- name: Initializing environment | ||
run: | | ||
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d | ||
docker rmi `docker images -q` | ||
sudo apt-get remove account-plugin-facebook account-plugin-flickr account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo aisleriot brltty duplicity empathy empathy-common example-content gnome-accessibility-themes gnome-contacts gnome-mahjongg gnome-mines gnome-orca gnome-screensaver gnome-sudoku gnome-video-effects gnomine landscape-common libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-style-galaxy libreoffice-style-human libreoffice-writer libsane libsane-common mcp-account-manager-uoa python3-uno rhythmbox rhythmbox-plugins rhythmbox-plugin-zeitgeist sane-utils shotwell shotwell-common telepathy-gabble telepathy-haze telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 telepathy-salut totem totem-common totem-plugins printer-driver-brlaser printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-m2300w printer-driver-ptouch printer-driver-splix | ||
git config --global user.name "" | ||
git config --global user.email "" | ||
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php* | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
sudo -E apt-get clean | ||
sudo -E apt-get -qq update | ||
sudo -E apt-get -qq install bc build-essential zip curl libstdc++6 git wget python gcc clang libssl-dev repo rsync flex curl bison aria2 | ||
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo | ||
sudo chmod a+rx /usr/local/bin/repo | ||
#- uses: webfactory/[email protected] | ||
# with: | ||
# ssh-private-key: | | ||
# ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
|
||
- name: Sync recovery source and device tree | ||
run: | | ||
mkdir work | ||
cd work | ||
repo init -u $MANIFEST --depth=1 | ||
repo sync -c -j4 --force-sync --no-clone-bundle --no-tags | ||
git clone $DT_LINK --depth=1 --single-branch $DT_PATH | ||
sudo chmod a+rx $DT_PATH/mkbootimg | ||
- name: Build | ||
run: | | ||
cd work | ||
. build/envsetup.sh &&lunch twrp_$DEVICE-eng &&export ALLOW_MISSING_DEPENDENCIES=true && mka $TARGET | ||
- name: Save | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: twrp-recovery | ||
path: /home/runner/work/android-device-samsung-a22x/android-device-samsung-a22x/work/out/target/product/a22x/recovery.tar | ||
retention-days: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source 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. | ||
# | ||
|
||
ifneq ($(filter a22x, $(TARGET_DEVICE)),) | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(call all-makefiles-under,$(LOCAL_PATH)) | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source 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. | ||
# | ||
|
||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/twrp_a22x.mk | ||
|
||
COMMON_LUNCH_CHOICES := twrp_a22x-eng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source 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. | ||
# | ||
|
||
# Bootloader | ||
BOARD_VENDOR := samsung | ||
TARGET_SOC := S96801AA1 | ||
TARGET_BOOTLOADER_BOARD_NAME := SRPTL28A004 | ||
TARGET_NO_BOOTLOADER := true | ||
TARGET_NO_RADIOIMAGE := true | ||
TARGET_USES_UEFI := true | ||
|
||
# Architecture | ||
TARGET_ARCH := arm64 | ||
TARGET_ARCH_VARIANT := armv8-2a | ||
TARGET_CPU_ABI := arm64-v8a | ||
TARGET_CPU_ABI2 := | ||
TARGET_CPU_VARIANT := generic | ||
TARGET_CPU_VARIANT_RUNTIME := cortex-a78 | ||
|
||
TARGET_2ND_ARCH := arm | ||
TARGET_2ND_ARCH_VARIANT := armv8-2a | ||
TARGET_2ND_CPU_ABI := armeabi-v7a | ||
TARGET_2ND_CPU_ABI2 := armeabi | ||
TARGET_2ND_CPU_VARIANT := cortex-a55 | ||
TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a55 | ||
|
||
TARGET_USES_64_BIT_BINDER := true | ||
|
||
TARGET_CPU_SMP := true | ||
ENABLE_CPUSETS := true | ||
ENABLE_SCHEDBOOST := true | ||
|
||
ALLOW_MISSING_DEPENDENCIES := true | ||
|
||
# File systems | ||
TARGET_USERIMAGES_USE_EXT4 := true | ||
TARGET_USERIMAGES_USE_F2FS := true | ||
|
||
# Platform | ||
TARGET_BOARD_PLATFORM := mt6833 | ||
TARGET_BOARD_PLATFORM_GPU := mali-g57 | ||
|
||
# Kernel | ||
TARGET_PREBUILT_KERNEL := device/samsung/a22x/prebuilt/Image.gz | ||
TARGET_PREBUILT_DTB := device/samsung/a22x/prebuilt/dtb.img | ||
BOARD_PREBUILT_DTBOIMAGE := device/samsung/a22x/prebuilt/dtbo.img | ||
#BOARD_INCLUDE_DTB_IN_BOOTIMG := true | ||
BOARD_INCLUDE_RECOVERY_DTBO := true | ||
TARGET_KERNEL_ARCH := arm64 | ||
|
||
# Boot | ||
BOARD_BOOT_HEADER_VERSION := 2 | ||
BOARD_KERNEL_BASE := 0x40078000 | ||
BOARD_KERNEL_CMDLINE := bootopt=64S3,32N2,64N2 androidboot.selinux=permissive | ||
BOARD_KERNEL_IMAGE_NAME := Image.gz | ||
BOARD_KERNEL_PAGESIZE := 2048 | ||
BOARD_KERNEL_OFFSET := 0x00008000 | ||
BOARD_RAMDISK_OFFSET := 0x11088000 | ||
BOARD_KERNEL_SECOND_OFFSET := 0xffffffffbff88000 | ||
BOARD_KERNEL_TAGS_OFFSET := 0x07c08000 | ||
BOARD_MKBOOTIMG_ARGS := --kernel_offset $(BOARD_KERNEL_OFFSET) | ||
BOARD_MKBOOTIMG_ARGS += --ramdisk_offset $(BOARD_RAMDISK_OFFSET) | ||
BOARD_MKBOOTIMG_ARGS += --second_offset $(BOARD_KERNEL_SECOND_OFFSET) | ||
BOARD_MKBOOTIMG_ARGS += --tags_offset $(BOARD_KERNEL_TAGS_OFFSET) | ||
BOARD_MKBOOTIMG_ARGS += --dtb $(TARGET_PREBUILT_DTB) | ||
BOARD_MKBOOTIMG_ARGS += --board SRPTL28A004 | ||
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION) | ||
BOARD_MKBOOTIMG_ARGS += --pagesize $(BOARD_KERNEL_PAGESIZE) | ||
BOARD_CUSTOM_BOOTIMG_MK := device/samsung/a22x/bootimg.mk | ||
|
||
# Recovery | ||
BOARD_HAS_LARGE_FILESYSTEM := true | ||
BOARD_HAS_NO_SELECT_BUTTON := true | ||
|
||
# Partitions | ||
BOARD_FLASH_BLOCK_SIZE := 131072 | ||
BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432 | ||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 41943040 | ||
|
||
# Dynamic Partitions | ||
BOARD_SUPER_PARTITION_SIZE := 7239368704 | ||
BOARD_SUPER_PARTITION_GROUPS := samsung_dynamic_partitions | ||
BOARD_SAMSUNG_DYNAMIC_PARTITIONS_SIZE := 7239368704 | ||
BOARD_SAMSUNG_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor product odm | ||
|
||
# System as root | ||
BOARD_ROOT_EXTRA_FOLDERS := cache carrier data_mirror efs keyrefuge linkerconfig metadata omr optics prism spu | ||
BOARD_SUPPRESS_SECURE_ERASE := true | ||
|
||
# Workaround for error copying vendor files to recovery ramdisk | ||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
TARGET_COPY_OUT_VENDOR := vendor | ||
|
||
AB_OTA_UPDATER := false | ||
|
||
# Android Verified Boot | ||
BOARD_AVB_ENABLE := true | ||
BOARD_AVB_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) | ||
BOARD_AVB_RECOVERY_KEY_PATH := external/avb/test/data/testkey_rsa4096.pem | ||
BOARD_AVB_RECOVERY_ALGORITHM := SHA256_RSA4096 | ||
BOARD_AVB_RECOVERY_ROLLBACK_INDEX := 1 | ||
BOARD_AVB_RECOVERY_ROLLBACK_INDEX_LOCATION := 1 | ||
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flag 2 | ||
|
||
# Crypto | ||
PLATFORM_SECURITY_PATCH := 2025-12-31 | ||
VENDOR_SECURITY_PATCH := 2025-12-31 | ||
PLATFORM_VERSION := 11 | ||
TW_INCLUDE_CRYPTO := false | ||
TW_INCLUDE_CRYPTO_FBE := false | ||
TW_INCLUDE_FBE_METADATA_DECRYPT := false | ||
BOARD_USES_METADATA_PARTITION := true | ||
|
||
# TWRP specific build flags | ||
TW_DEVICE_VERSION := a22x_alpha | ||
TW_THEME := portrait_hdpi | ||
RECOVERY_SDCARD_ON_DATA := true | ||
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888" | ||
TW_BRIGHTNESS_PATH := "/sys/class/backlight/panel/brightness" | ||
TW_MAX_BRIGHTNESS := 306 | ||
TW_DEFAULT_BRIGHTNESS := 200 | ||
TW_Y_OFFSET := 50 | ||
TW_H_OFFSET := -50 | ||
TW_NO_REBOOT_BOOTLOADER := true | ||
TW_HAS_DOWNLOAD_MODE := true | ||
TW_INCLUDE_NTFS_3G := true | ||
TW_USE_NEW_MINADBD := true | ||
TW_INPUT_BLACKLIST := "hbtp_vm" | ||
TW_EXCLUDE_DEFAULT_USB_INIT := true | ||
TW_USE_TOOLBOX := true | ||
TARGET_USES_MKE2FS := true | ||
TW_NO_LEGACY_PROPS := true | ||
TW_NO_BIND_SYSTEM := true | ||
TW_NO_SCREEN_BLANK := true | ||
TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true | ||
# my additions | ||
TWRP_INCLUDE_LOGCAT := true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TWRP Device Tree for the Samsung Galaxy A22X 5G | ||
|
||
[![Building recovery](https://github.com/aHVzY2g/android-device-samsung-a22x/actions/workflows/recovery.yml/badge.svg)](https://github.com/aHVzY2g/android-device-samsung-a22x/actions/workflows/recovery.yml) |
Oops, something went wrong.