Skip to content

Commit

Permalink
M3K WoA Helper 1.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rxuglr committed Apr 4, 2024
1 parent 8b71ffd commit d8c5ad5
Show file tree
Hide file tree
Showing 26 changed files with 244 additions and 507 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
# M3K WoA Helper

> [!WARNING]
> We're not responsible for bricked devices, missing recovery partitions, dead microSD cards, dead cats or dogs, nuclear wars or you getting fired because you flash UEFI, provision modems or dump sensors from this app.
> We're not responsible for bricked devices, missing recovery partitions, dead microSD cards, dead
cats or dogs, nuclear wars or you getting fired because you flash UEFI, provision modems or dump
sensors from this app.

## Project status

Read requirements carefully.

#### Features

- [x] Backup Android Boot
- [x] Mount/Unmount Windows partition ```to view/modify Windows files from android```
- [x] Flash UEFI ```to use the UEFI flashing feature, you need to place the UEFI image to /sdcard/UEFI```
- [x] Flash
UEFI ```to use the UEFI flashing feature, you need to place the UEFI image to /sdcard/UEFI```
- [x] Provisioning Modem
- [x] Provisioning Sensors
- [x] Quick Boot to Windows ```to use the Quick Boot feature, you need to place the UEFI image to /sdcard/UEFI```
- [x] Quick Boot to
Windows ```to use the Quick Boot feature, you need to place the UEFI image to /sdcard/UEFI```

## Supported devices

[Poco X3 Pro](https://github.com/woa-vayu/Port-Windows-11-POCO-X3-Pro/)

[Xiaomi Pad 5](https://github.com/erdilS/Port-Windows-11-Xiaomi-Pad-5)
Expand All @@ -24,14 +30,16 @@ Read requirements carefully.

• Xiaomi Mi 9


## Requirements

<details>
<summary><strong>Requirements</strong></summary>

• Android 10 and up

• Any ROM with ntfs-3g support or [ntfs-3g module](https://github.com/woa-vayu/Port-Windows-11-POCO-X3-Pro/releases/ntfsdroid) installed.
• Any ROM with ntfs-3g support
or [ntfs-3g module](https://github.com/woa-vayu/Port-Windows-11-POCO-X3-Pro/releases/ntfsdroid)
installed.

• Rooted device

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ android {
minSdk = 29
targetSdk = 34
versionCode = 8
versionName = "1.3.5.2"
versionName = "1.3.6"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,17 @@
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>

<service
android:name=".qstiles.MountTile"
android:exported="true"
android:label="Mount Windows"
android:icon="@drawable/ic_folder"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>

</application>
</manifest>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,45 @@ import android.service.quicksettings.Tile.STATE_ACTIVE
import android.service.quicksettings.Tile.STATE_UNAVAILABLE
import android.service.quicksettings.TileService
import com.rxuglr.m3kwoahelper.R
import com.rxuglr.m3kwoahelper.util.Commands.mountstatus
import com.rxuglr.m3kwoahelper.util.Commands.mountwin
import com.rxuglr.m3kwoahelper.util.Commands.quickboot
import com.rxuglr.m3kwoahelper.util.Commands.umountwin
import com.rxuglr.m3kwoahelper.util.Variables.UEFIList
import com.rxuglr.m3kwoahelper.woahApp

class QuickBootTile : TileService() {
class MountTile : TileService() { // PoC

override fun onTileAdded() {
super.onTileAdded()
if (UEFIList.contains(99)) {
qsTile.state = STATE_UNAVAILABLE
qsTile.subtitle = woahApp.getString(
R.string.uefi_not_found_title
override fun onStartListening() {
super.onStartListening()
if (mountstatus()) {
qsTile.state = STATE_ACTIVE
qsTile.label = woahApp.getString(
R.string.mnt_question
)
qsTile.updateTile()
} else {
qsTile.state = STATE_ACTIVE; qsTile.subtitle = ""
qsTile.state = STATE_ACTIVE
qsTile.label = woahApp.getString(
R.string.umnt_question
)
}
}

override fun onStartListening() {
super.onStartListening()
if (UEFIList.contains(99)) {
qsTile.state = STATE_UNAVAILABLE
qsTile.subtitle = woahApp.getString(
R.string.uefi_not_found_title
)
qsTile.updateTile()
override fun onClick() {
super.onClick()
if (mountstatus()) {
mountwin()
} else {
qsTile.state = STATE_ACTIVE; qsTile.subtitle = ""
umountwin()
}
}

override fun onStopListening() {
super.onStopListening()
}

class QuickBootTile : TileService() {

override fun onStartListening() {
super.onStartListening()
if (UEFIList.contains(99)) {
qsTile.state = STATE_UNAVAILABLE
qsTile.subtitle = woahApp.getString(
Expand Down
Loading

0 comments on commit d8c5ad5

Please sign in to comment.