[PR #74] [CLOSED] Added LibPatcher module straight into the app #260

Closed
opened 2026-03-02 12:40:21 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/kavishdevar/librepods/pull/74
Author: @th01c
Created: 3/2/2025
Status: Closed

Base: mainHead: main


📝 Commits (5)

  • 2ff6757 Changed some theme problems,and added a root check screen
  • 1197768 Added LibPatcher straight into the app,now the app auto flashes the required modules for the bluetooth lib to work without the user manual input,also the module dissapear when user uninstalls the app after an reboot
  • d354508 Added LibPatcher straight into the app,now the app auto flashes the required modules for the bluetooth lib to work without the user manual input,also the module dissapear when user uninstalls the app after an reboot
  • 3ed609a Changed some UI
  • 1dcb72a Changed some UI text

📊 Changes

15 files changed (+2484 additions, -19 deletions)

View changed files

📝 android/app/build.gradle.kts (+2 -1)
android/app/src/main/assets/btl2capfix/META-INF/com/google/android/update-binary (+33 -0)
android/app/src/main/assets/btl2capfix/META-INF/com/google/android/updater-script (+1 -0)
android/app/src/main/assets/btl2capfix/busybox/busybox-arm64 (+0 -0)
android/app/src/main/assets/btl2capfix/busybox/xz (+3 -0)
android/app/src/main/assets/btl2capfix/customize.sh (+190 -0)
android/app/src/main/assets/btl2capfix/module.prop (+7 -0)
android/app/src/main/assets/btl2capfix/post-fs-data.sh (+15 -0)
📝 android/app/src/main/java/me/kavishdevar/aln/MainActivity.kt (+45 -16)
android/app/src/main/java/me/kavishdevar/aln/screens/NoRootScreen.kt (+60 -0)
android/app/src/main/java/me/kavishdevar/aln/utils/LibPatcher.kt (+81 -0)
android/app/src/main/java/me/kavishdevar/aln/utils/RootChecker.kt (+30 -0)
android/app/src/main/res/drawable/ic_root_required.xml (+2013 -0)
📝 android/app/src/main/res/values/themes.xml (+1 -1)
📝 android/gradle/libs.versions.toml (+3 -1)

📄 Description

feat: Implement dark mode for permission request screen and root check

This commit introduces the following changes:

  • Added dark mode support to the permission request screen by:
    • Setting the background color of the permission request Column based on the system's dark mode setting.
    • Centering the content both vertically and horizontally.
    • Ensuring text visibility by setting text color to MaterialTheme.colorScheme.onSurface.
  • Integrated root detection using RootChecker.hasRootAccess() and implemented NoRootScreen:
    • Added RootChecker.kt (in me.kavishdevar.aln.services or me.kavishdevar.aln) to check for root access.
    • Added NoRootScreen.kt (in me.kavishdevar.aln.screens) to display a message if root access is not detected.
    • Modified MainActivity.kt to check for root access on startup and display NoRootScreen if needed.
  • Minor code cleanup and formatting improvements.

//03 march 2025
feat: Integrate LibPatcher and clean MainActivity.kt

  • Modified MainActivity.kt to remove redundant code, improving readability and maintainability.
  • Integrated LibPatcher directly into the application, enabling automatic module installation. This eliminates the need for manual user interaction, streamlining the module installation process and improving user experience.

Date:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/kavishdevar/librepods/pull/74 **Author:** [@th01c](https://github.com/th01c) **Created:** 3/2/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (5) - [`2ff6757`](https://github.com/kavishdevar/librepods/commit/2ff67577bb861a4d6da89d1c1b445d9b65eab2e3) Changed some theme problems,and added a root check screen - [`1197768`](https://github.com/kavishdevar/librepods/commit/119776885b1877cccb631419753f1aa3075e2eb9) Added LibPatcher straight into the app,now the app auto flashes the required modules for the bluetooth lib to work without the user manual input,also the module dissapear when user uninstalls the app after an reboot - [`d354508`](https://github.com/kavishdevar/librepods/commit/d35450862093f8a8966a7baf8622674d4a608542) Added LibPatcher straight into the app,now the app auto flashes the required modules for the bluetooth lib to work without the user manual input,also the module dissapear when user uninstalls the app after an reboot - [`3ed609a`](https://github.com/kavishdevar/librepods/commit/3ed609a668e4fb7f7ca60865b969351f25c7365c) Changed some UI - [`1dcb72a`](https://github.com/kavishdevar/librepods/commit/1dcb72aff0049a561d8861e8f53b34a2d35bcbcc) Changed some UI text ### 📊 Changes **15 files changed** (+2484 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `android/app/build.gradle.kts` (+2 -1) ➕ `android/app/src/main/assets/btl2capfix/META-INF/com/google/android/update-binary` (+33 -0) ➕ `android/app/src/main/assets/btl2capfix/META-INF/com/google/android/updater-script` (+1 -0) ➕ `android/app/src/main/assets/btl2capfix/busybox/busybox-arm64` (+0 -0) ➕ `android/app/src/main/assets/btl2capfix/busybox/xz` (+3 -0) ➕ `android/app/src/main/assets/btl2capfix/customize.sh` (+190 -0) ➕ `android/app/src/main/assets/btl2capfix/module.prop` (+7 -0) ➕ `android/app/src/main/assets/btl2capfix/post-fs-data.sh` (+15 -0) 📝 `android/app/src/main/java/me/kavishdevar/aln/MainActivity.kt` (+45 -16) ➕ `android/app/src/main/java/me/kavishdevar/aln/screens/NoRootScreen.kt` (+60 -0) ➕ `android/app/src/main/java/me/kavishdevar/aln/utils/LibPatcher.kt` (+81 -0) ➕ `android/app/src/main/java/me/kavishdevar/aln/utils/RootChecker.kt` (+30 -0) ➕ `android/app/src/main/res/drawable/ic_root_required.xml` (+2013 -0) 📝 `android/app/src/main/res/values/themes.xml` (+1 -1) 📝 `android/gradle/libs.versions.toml` (+3 -1) </details> ### 📄 Description feat: Implement dark mode for permission request screen and root check This commit introduces the following changes: - Added dark mode support to the permission request screen by: - Setting the background color of the permission request Column based on the system's dark mode setting. - Centering the content both vertically and horizontally. - Ensuring text visibility by setting text color to MaterialTheme.colorScheme.onSurface. - Integrated root detection using RootChecker.hasRootAccess() and implemented NoRootScreen: - Added RootChecker.kt (in me.kavishdevar.aln.services or me.kavishdevar.aln) to check for root access. - Added NoRootScreen.kt (in me.kavishdevar.aln.screens) to display a message if root access is not detected. - Modified MainActivity.kt to check for root access on startup and display NoRootScreen if needed. - Minor code cleanup and formatting improvements. //03 march 2025 feat: Integrate LibPatcher and clean MainActivity.kt * Modified MainActivity.kt to remove redundant code, improving readability and maintainability. * Integrated LibPatcher directly into the application, enabling automatic module installation. This eliminates the need for manual user interaction, streamlining the module installation process and improving user experience. Date: --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 12:40:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librepods#260
No description provided.