Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tehcneko committed Aug 7, 2024
0 parents commit 2b88809
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

URL="https://www.apkmirror.com/wp-content/themes/APKMirror/download.php?id=5651327&key=2b380061515891115fb886f15a6982c7a791daaf"
SHA_256="0315b788bb6de18c55addff9043c8a8a0fa7ea4cc4bca98ad8d84ccd02340362"

file_name="module/system/product/priv-app/MIUIEsimLPA/MIUIEsimLPA.apk"
wget -O "$file_name" "$URL" --user-agent="$USER_AGENT"
downloaded_sha256=$(sha256sum "$file_name" | awk '{ print $1 }')

if [ "$downloaded_sha256" != "$SHA_256" ]; then
echo "SHA-256 checksum verification failed!"
exit 1
fi
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Run a one-line script
env:
USER_AGENT: ${{ secrets.USER_AGENT }}
run: .github/workflows/build.sh

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: XiaomiEsimLPA
path: module
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Xiaomi eSIM LPA

A Magisk/KernelSU module trying to add native eSIM management support for Xiaomi CN/IN variant devices with MIUI and Xiaomi HyperOS.

![screenshot](https://github.com/user-attachments/assets/6065297c-ea7d-4b3b-ba03-9b6462a29186)

## Tested devices

- diting (Xiaomi 12T Pro/Redmi K50 Ultra)

## Tested SIMs

- 5ber
- eSIM.me
- eSTK.me
6 changes: 6 additions & 0 deletions module/module.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
id=XiaomiEsimLPA
name=Xiaomi eSIM LPA
author=tehcneko
version=v1
versionCode=1
description=Native eSIM management support for Xiaomi devices with MIUI and Xiaomi HyperOS.
1 change: 1 addition & 0 deletions module/system.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ro.vendor.miui.support_esim=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 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.
-->

<!-- Feature for devices with an eUICC. -->
<permissions>
<feature name="android.hardware.telephony.euicc" />
</permissions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<privapp-permissions package="com.miui.euicc">
<permission name="android.permission.MODIFY_PHONE_STATE" />
<permission name="android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS" />
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
<permission name="android.permission.WRITE_SECURE_SETTINGS" />
<permission name="android.permission.SECURE_ELEMENT_PRIVILEGED_OPERATION" />
</privapp-permissions>
</permissions>
1 change: 1 addition & 0 deletions module/system/product/priv-app/MIUIEsimLPA/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.apk

0 comments on commit 2b88809

Please sign in to comment.