-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[移除] 结束对 Android 11/12 的支持 && 提升 min sdk 为 33 && 移除部分仅旧版 Andr…
…oid 设备支持的功能"
- Loading branch information
Showing
73 changed files
with
965 additions
and
183 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,89 @@ | ||
name: Android-R CI | ||
|
||
on: | ||
push: | ||
branches: [ "Android_R" ] | ||
pull_request: | ||
branches: [ "Android_R" ] | ||
paths-ignore: | ||
- ".github/**" | ||
- "!.github/workflows/**" | ||
- ".idea/" | ||
- "doc/*" | ||
- "*.md" | ||
- ".github/workflows/crowdin.yml" | ||
- "crowdin.yml" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build App | ||
steps: | ||
- name: Checkout Git Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
|
||
- name: Set up JDK 20 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '20' | ||
distribution: 'temurin' | ||
cache: gradle | ||
|
||
- name: Create Sign File | ||
run: | | ||
touch signing.properties | ||
echo storePassword=${{ secrets.KEY_STORE_PASSWORD }} >> signing.properties | ||
echo keyAlias=${{ secrets.ALIAS }} >> signing.properties | ||
echo keyPassword='${{ secrets.KEY_STORE_PASSWORD }}' >> signing.properties | ||
echo storeFile=key.jks >> signing.properties | ||
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > key.jks | ||
- name: Build with Gradle | ||
if: contains(github.event.head_commit.message, '[skip]') == false | ||
shell: bash | ||
run: ./gradlew assembleCanary | ||
|
||
- name: Find APKs | ||
if: contains(github.event.head_commit.message, '[skip]') == false | ||
run: | | ||
echo "APK_FILE_CANARY=$(find app/build/outputs/apk/canary -name '*.apk')" >> $GITHUB_ENV | ||
- name: Show APKs SHA256 | ||
if: success() && contains(github.event.head_commit.message, '[skip]') == false | ||
run: | | ||
echo "### Build Success" >> $GITHUB_STEP_SUMMARY | ||
echo "|Artifact|SHA256|" >> $GITHUB_STEP_SUMMARY | ||
echo "|:--------:|:----------|" >> $GITHUB_STEP_SUMMARY | ||
canary=($(sha256sum '${{ env.APK_FILE_CANARY }}')) | ||
echo "|Canary|$canary" >> $GITHUB_STEP_SUMMARY | ||
- name: Upload Canary APK | ||
if: contains(github.event.head_commit.message, '[upload]') == true | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Cemiler Canary | ||
path: ${{ env.APK_FILE_CANARY }} | ||
|
||
- name: Post to Android R/S Channel | ||
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.ref_type != 'tag' && contains(github.event.head_commit.message, '[skip post]') == false && contains(github.event.head_commit.message, 's#') == false }} | ||
shell: bash | ||
env: | ||
CHANNEL_ID: ${{ secrets.CHANNEL_ID }} | ||
BOT_TOKEN: ${{ secrets.BOT_TOKEN_TWO }} | ||
CANARY: ${{ env.APK_FILE_CANARY }} | ||
run: | | ||
mkdir -p ${{ github.workspace }}/git_clone | ||
git clone ${{ github.event.repository.url }} ${{ github.workspace }}/git_clone -b ${{ github.ref_name }} | ||
cd ${{ github.workspace }}/git_clone | ||
{ | ||
echo -e "Github Action for Android_R\n"; | ||
git log ${{ github.event.before }}..${{ github.event.after }} --pretty=format:"%h %s"; | ||
echo -e " (by ${{ github.event.head_commit.author.name }})"; | ||
} > ${{ github.workspace }}/git_log | ||
ESCAPED="$(cat ${{ github.workspace }}/git_log | gawk '{gsub(/[_*[\]()~`>#+=\|{}.!-]/,"\\\\\\\\&")}1' | sed -e 's|"|\\"|g' -e 's|^[0-9a-z]\+|__&__|' | hexdump -v -e '/1 "%02X"' | sed 's/\(..\)/%\1/g')" | ||
cd ${{ github.workspace }} | ||
curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22%3A%22document%22%2C%20%22media%22%3A%22attach%3A%2F%2Fcanary%22%2C%22parse_mode%22%3A%22MarkdownV2%22%2C%22caption%22%3A%22${ESCAPED}%22%7D%5D" -F canary="@${CANARY}" |
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
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
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
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
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
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
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
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
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/sevtinge/hyperceiler/module/hook/home/other/FixAndroidRS.kt
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,18 @@ | ||
package com.sevtinge.hyperceiler.module.hook.home.other | ||
|
||
import com.sevtinge.hyperceiler.module.base.BaseHook | ||
import de.robv.android.xposed.XC_MethodReplacement | ||
import de.robv.android.xposed.XposedHelpers | ||
|
||
object FixAndroidRS : BaseHook() { | ||
override fun init() { | ||
val globalSearchUtilClass = "com.miui.home.launcher.GlobalSearchUtil" | ||
XposedHelpers.findAndHookMethod(globalSearchUtilClass, lpparam.classLoader, | ||
"isSupportPullDownSearch", object : XC_MethodReplacement() { | ||
override fun replaceHookedMethod(param: MethodHookParam?): Any { | ||
return false | ||
} | ||
}) | ||
|
||
} | ||
} |
Oops, something went wrong.