-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3bea67a
Showing
16 changed files
with
617 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,6 @@ | ||
* text=auto eol=lf | ||
*.bat text eol=crlf | ||
*.png binary | ||
*.webp binary | ||
*.jar binary | ||
*.jks binary |
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,105 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/build.yml' | ||
- 'app/**' | ||
- 'gradle/**' | ||
- '*.gradle' | ||
- '*.properties' | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: 'Release' | ||
type: boolean | ||
required: true | ||
default: false | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches/ | ||
~/.gradle/wrapper/ | ||
key: ${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
|
||
- name: Set environments | ||
run: | | ||
{ | ||
echo "version=v$(grep versionName app/build.gradle | awk '{print $2}' | tr -d \")" | ||
echo "commit=$(echo ${{ github.sha }} | cut -c-7)" | ||
echo "repo=$(echo ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/})" | ||
} >> $GITHUB_ENV | ||
- name: Check tag exists | ||
uses: mukunku/[email protected] | ||
if: github.event.inputs.release == 'true' | ||
id: check-tag | ||
with: | ||
tag: "${{ env.version }}" | ||
|
||
- name: Release check | ||
if: github.event.inputs.release == 'true' | ||
run: | | ||
if [[ "${{ secrets.STORE_FILE }}" == "" ]]; then | ||
echo -e "\nERROR!\nリリースするには、 署名鍵を設定する必要があります。\n" | ||
echo "STORE_FILE: JKS形式の署名鍵をBase64でエンコードした文字列" | ||
echo "STORE_PASSWORD: キーストアのパスワード" | ||
echo "KEY_ALIAS: 署名のエイリアス" | ||
echo "KEY_PASSWORD: 署名のパスワード" | ||
echo "" | ||
exit 1 | ||
fi | ||
if [[ "${{ steps.check-tag.outputs.exists }}" == "true" ]]; then | ||
echo -e "\nERROR!\n既に同じタグが存在します。\n" | ||
echo "build.gradle の versionName を変更してください" | ||
echo "" | ||
exit 1 | ||
fi | ||
- name: Build with Gradle | ||
run: | | ||
if [[ "${{ inputs.release }}" == "true" ]]; then | ||
echo "${{ secrets.STORE_FILE }}" | base64 -d > app/release.jks | ||
export STORE_PASSWORD="${{ secrets.STORE_PASSWORD }}" | ||
export KEY_ALIAS="${{ secrets.KEY_ALIAS }}" | ||
export KEY_PASSWORD="${{ secrets.KEY_PASSWORD }}" | ||
./gradlew aR --no-daemon | ||
cp -f app/build/outputs/apk/release/app-release.apk ${{ env.repo }}-${{ env.version }}.apk | ||
else | ||
./gradlew asD --no-daemon | ||
fi | ||
- name: Upload APK | ||
uses: actions/upload-artifact@v4 | ||
if: github.event.inputs.release != 'true' | ||
with: | ||
name: ${{ env.repo }}(${{ env.version }}@${{ env.commit }}) | ||
path: app/build/outputs/apk/debug/app-debug.apk | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: github.event.inputs.release == 'true' | ||
with: | ||
tag_name: ${{ env.version }} | ||
draft: false | ||
prerelease: false | ||
files: ${{ env.repo }}-${{ env.version }}.apk |
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,13 @@ | ||
# Gradle | ||
/.gradle/ | ||
# Android SDK | ||
/local.properties | ||
# IntelliJ | ||
/.idea/ | ||
# Gradle Build | ||
/app/build/ | ||
# Android Studio Signing APK | ||
/app/debug/ | ||
/app/release/ | ||
# Visual Studio Code | ||
/.vscode/ |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2016 Patryk Małek | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 @@ | ||
#### Bypass MPA Root Check | ||
SSIA |
Binary file not shown.
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,53 @@ | ||
plugins { | ||
id 'com.android.application' | ||
} | ||
|
||
android { | ||
namespace 'org.soralis_0912.mpa.bypass' | ||
compileSdk 33 | ||
|
||
defaultConfig { | ||
minSdk 26 | ||
targetSdk 33 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
signingConfigs { | ||
android { | ||
storeFile file('android.jks') | ||
storePassword 'android' | ||
keyAlias 'android' | ||
keyPassword 'android' | ||
} | ||
release { | ||
storeFile file('release.jks') | ||
storePassword System.getenv('STORE_PASSWORD') | ||
keyAlias System.getenv('KEY_ALIAS') | ||
keyPassword System.getenv('KEY_PASSWORD') | ||
} | ||
} | ||
buildTypes { | ||
debug { | ||
minifyEnabled false | ||
proguardFiles += 'proguard-rules.pro' | ||
signingConfig signingConfigs.android | ||
} | ||
release { | ||
minifyEnabled false | ||
proguardFiles += 'proguard-rules.pro' | ||
if (file('release.jks').exists()) { | ||
signingConfig signingConfigs.release | ||
} | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_17 | ||
targetCompatibility JavaVersion.VERSION_17 | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly 'de.robv.android.xposed:api:82' | ||
compileOnly 'de.robv.android.xposed:api:82:sources' | ||
} |
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 @@ | ||
-keep de.robv.android.xposed.** |
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,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<application android:label="MPA bypass"> | ||
<meta-data | ||
android:name="xposedmodule" | ||
android:value="true" /> | ||
<meta-data | ||
android:name="xposeddescription" | ||
android:value="MPA root bypass" /> | ||
<meta-data | ||
android:name="xposedminversion" | ||
android:value="53" /> | ||
<meta-data | ||
android:name="xposedscope" | ||
android:value="jp.go.cas.mpa" /> | ||
</application> | ||
|
||
</manifest> |
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 @@ | ||
org.soralis_0912.mpa.bypass.Main |
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,29 @@ | ||
package org.soralis_0912.mpa.bypass; | ||
|
||
import de.robv.android.xposed.IXposedHookLoadPackage; | ||
import de.robv.android.xposed.XC_MethodHook; | ||
import de.robv.android.xposed.XposedHelpers; | ||
import de.robv.android.xposed.callbacks.XC_LoadPackage; | ||
import de.robv.android.xposed.XposedBridge; | ||
|
||
import android.os.Build; | ||
import android.app.Application; | ||
|
||
|
||
public class Main implements IXposedHookLoadPackage { | ||
@Override | ||
public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Throwable { | ||
if (!lpparam.packageName.equals("jp.go.cas.mpa")) { | ||
return; | ||
} | ||
|
||
XposedHelpers.findAndHookMethod("j.a.a.a.b.a", lpparam.classLoader, "l", new XC_MethodHook() { | ||
|
||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
param.setResult(true); | ||
} | ||
}); | ||
|
||
} | ||
} |
Binary file not shown.
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,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.