mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2026-08-19 13:55:51 +00:00
Add Instagram Piko patch
Closed https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/issues/127
This commit is contained in:
parent
67e4523cc7
commit
7b6074170a
7 changed files with 79 additions and 25 deletions
12
.github/workflows/manual-patch.yml
vendored
12
.github/workflows/manual-patch.yml
vendored
|
|
@ -316,6 +316,10 @@ jobs:
|
|||
patch_twitter_piko_stable:
|
||||
name: Patch Twitter Piko Stable
|
||||
if: ${{ github.event.inputs.org == 'Twitter Piko Stable' || inputs.org == 'Twitter Piko Stable' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
run: [1, 2]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -328,7 +332,7 @@ jobs:
|
|||
- name: Patch apk
|
||||
id: patch-piko-stable
|
||||
if: steps.check-gh-piko-stable.outputs.internet_error == '0'
|
||||
run: bash src/build/Piko.sh
|
||||
run: bash src/build/Piko.sh ${{ matrix.run }}
|
||||
- name: Releasing APK files
|
||||
id: release-piko-stable
|
||||
if: steps.check-gh-piko-stable.outputs.internet_error == '0'
|
||||
|
|
@ -336,6 +340,10 @@ jobs:
|
|||
patch_twitter_piko_beta:
|
||||
name: Patch Twitter Piko Beta
|
||||
if: ${{ github.event.inputs.org == 'Twitter Piko Beta' || inputs.org == 'Twitter Piko Beta' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
run: [1, 2]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -348,7 +356,7 @@ jobs:
|
|||
- name: Patch apk
|
||||
id: patch-piko-beta
|
||||
if: steps.check-gh-piko-beta.outputs.internet_error == '0'
|
||||
run: bash src/build/Piko-Beta.sh
|
||||
run: bash src/build/Piko-Beta.sh ${{ matrix.run }}
|
||||
- name: Releasing APK files
|
||||
id: release-piko-beta
|
||||
if: steps.check-gh-piko-beta.outputs.internet_error == '0'
|
||||
|
|
|
|||
|
|
@ -282,6 +282,13 @@ Download
|
|||
|
||||
### [Instagram:](https://play.google.com/store/apps/details?id=com.instagram.android)
|
||||
|
||||
### [Piko:](https://github.com/crimera/piko)
|
||||
|
||||
| [Stable version](https://github.com/crimera/piko/releases/latest) | [Beta version](https://github.com/crimera/piko/releases/) |
|
||||
| --------------------------------------------------------------------- | ---------------------------------------------------------------------------|
|
||||
| [Arm64-v8a](../../releases/download/all/instagram-arm64-v8a-piko.apk) | [Arm64-v8a](../../releases/download/all/instagram-beta-arm64-v8a-piko.apk) |
|
||||
|
||||
|
||||
### [Revanced:](https://github.com/revanced/revanced-patches)
|
||||
|
||||
| Stable version | Beta version |
|
||||
|
|
|
|||
|
|
@ -1,16 +1,34 @@
|
|||
#!/bin/bash
|
||||
# Twitter Piko
|
||||
source src/build/utils.sh
|
||||
piko_dl(){
|
||||
dl_gh "morphe-cli" "MorpheApp" "latest"
|
||||
dl_gh "piko" "crimera" "prerelease"
|
||||
}
|
||||
|
||||
dl_gh "morphe-cli" "MorpheApp" "latest"
|
||||
dl_gh "piko" "crimera" "prerelease"
|
||||
|
||||
# Patch Twitter Piko:
|
||||
get_patches_key "twitter-piko"
|
||||
get_apk "com.twitter.android" "twitter-beta" "twitter" "x-corp/twitter/x" "Bundle_extract"
|
||||
split_editor "twitter-beta" "twitter-beta"
|
||||
patch "twitter-beta" "piko" "morphe"
|
||||
# Patch Twitter Piko Arm64-v8a:
|
||||
get_patches_key "twitter-piko"
|
||||
split_editor "twitter-beta" "twitter-arm64-v8a-beta" "exclude" "split_config.armeabi_v7a split_config.x86 split_config.x86_64 split_config.mdpi split_config.hdpi split_config.xhdpi split_config.xxhdpi split_config.tvdpi"
|
||||
patch "twitter-arm64-v8a-beta" "piko" "morphe"
|
||||
1() {
|
||||
# Patch Twitter Piko:
|
||||
get_patches_key "twitter-piko"
|
||||
get_apk "com.twitter.android" "twitter-beta" "twitter" "x-corp/twitter/x" "Bundle_extract"
|
||||
split_editor "twitter-beta" "twitter-beta"
|
||||
patch "twitter-beta" "piko" "morphe"
|
||||
# Patch Twitter Piko Arm64-v8a:
|
||||
get_patches_key "twitter-piko"
|
||||
split_editor "twitter-beta" "twitter-arm64-v8a-beta" "exclude" "split_config.armeabi_v7a split_config.x86 split_config.x86_64 split_config.mdpi split_config.hdpi split_config.xhdpi split_config.xxhdpi split_config.tvdpi"
|
||||
patch "twitter-arm64-v8a-beta" "piko" "morphe"
|
||||
}
|
||||
2() {
|
||||
piko_dl
|
||||
# Patch Instagram
|
||||
get_patches_key "instagram-piko"
|
||||
get_apkpure "com.instagram.android" "instagram-beta-arm64-v8a" "instagram-android/com.instagram.android" "Bundle"
|
||||
patch "instagram-beta-arm64-v8a" "piko" "morphe"
|
||||
}
|
||||
case "$1" in
|
||||
1)
|
||||
1
|
||||
;;
|
||||
2)
|
||||
2
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -2,15 +2,35 @@
|
|||
# Twitter Piko
|
||||
source src/build/utils.sh
|
||||
|
||||
dl_gh "morphe-cli" "MorpheApp" "latest"
|
||||
dl_gh "piko" "crimera" "latest"
|
||||
piko_dl(){
|
||||
dl_gh "morphe-cli" "MorpheApp" "latest"
|
||||
dl_gh "piko" "crimera" "latest"
|
||||
}
|
||||
|
||||
# Patch Twitter Piko:
|
||||
get_patches_key "twitter-piko"
|
||||
get_apk "com.twitter.android" "twitter-stable" "twitter" "x-corp/twitter/x" "Bundle_extract"
|
||||
split_editor "twitter-stable" "twitter-stable"
|
||||
patch "twitter-stable" "piko" "morphe"
|
||||
# Patch Twitter Piko Arm64-v8a:
|
||||
get_patches_key "twitter-piko"
|
||||
split_editor "twitter-stable" "twitter-arm64-v8a-stable" "exclude" "split_config.armeabi_v7a split_config.x86 split_config.x86_64 split_config.mdpi split_config.hdpi split_config.xhdpi split_config.xxhdpi split_config.tvdpi"
|
||||
patch "twitter-arm64-v8a-stable" "piko" "morphe"
|
||||
1() {
|
||||
# Patch Twitter Piko:
|
||||
piko_dl
|
||||
get_patches_key "twitter-piko"
|
||||
get_apk "com.twitter.android" "twitter-stable" "twitter" "x-corp/twitter/x" "Bundle_extract"
|
||||
split_editor "twitter-stable" "twitter-stable"
|
||||
patch "twitter-stable" "piko" "morphe"
|
||||
# Patch Twitter Piko Arm64-v8a:
|
||||
get_patches_key "twitter-piko"
|
||||
split_editor "twitter-stable" "twitter-arm64-v8a-stable" "exclude" "split_config.armeabi_v7a split_config.x86 split_config.x86_64 split_config.mdpi split_config.hdpi split_config.xhdpi split_config.xxhdpi split_config.tvdpi"
|
||||
patch "twitter-arm64-v8a-stable" "piko" "morphe"
|
||||
}
|
||||
2() {
|
||||
piko_dl
|
||||
# Patch Instagram
|
||||
get_patches_key "instagram-piko"
|
||||
get_apkpure "com.instagram.android" "instagram-arm64-v8a" "instagram-android/com.instagram.android" "Bundle"
|
||||
patch "instagram-arm64-v8a" "piko" "morphe"
|
||||
}
|
||||
case "$1" in
|
||||
1)
|
||||
1
|
||||
;;
|
||||
2)
|
||||
2
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
1
src/options/piko.json
Normal file
1
src/options/piko.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
0
src/patches/instagram-piko/exclude-patches
Normal file
0
src/patches/instagram-piko/exclude-patches
Normal file
0
src/patches/instagram-piko/include-patches
Normal file
0
src/patches/instagram-piko/include-patches
Normal file
Loading…
Reference in a new issue