Commit Graph

428 Commits

Author SHA1 Message Date
silvzr 30ccaf46f2 manager: Reset search filter after moving from SuperUser destination (#2204)
By default there's an annoying behaviour for which the manager leaves
the search filter after changing destination without even showing the
search bar anymore. Fix that and reset the list to the top instead of
leaving it at the searched app's height


https://github.com/user-attachments/assets/268672af-ced9-4293-81df-4e1c7ef33489
original behaviour



https://github.com/user-attachments/assets/b9b318cf-273a-4130-b199-712e99f6ed72
changed behaviour

Tested-by: backslashxx
[118538522+backslashxx@users.noreply.github.com](mailto:118538522+backslashxx@users.noreply.github.com)
2024-11-11 20:51:13 +08:00
Rissu a47499686c manager: Fix not refreshing after action button was pressed (#2201)
- This commit fix issue #2171


Tested-by: backslashxx <118538522+backslashxx@users.noreply.github.com>

---------

Signed-off-by: rsuntk <rissu.ntk@gmail.com>
2024-11-11 19:11:34 +08:00
Light_summer 0d7c23a91b manager: Fix save log (#2170)
https://github.com/user-attachments/assets/69467e00-0af9-4d46-add8-e24e767462bd

Use `ContextCompat` in `DownloadListener`
Bump ksp to `2.0.21-1.0.26`
Misc changes (See the
[commit](https://github.com/tiann/KernelSU/commit/1fb49d918a1f5bb76d1e70eb848ede36b2292cd9)
directly)
2024-10-31 18:06:11 +08:00
Weblate (bot) 5322fa5840 Translations update from Hosted Weblate (#2065)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: SchweGELBin <abramjannikmichael06@gmail.com>
Co-authored-by: Karl Schrader <pokemetti@gmail.com>
Co-authored-by: Dawid2849 <dawid2849@gmail.com>
Co-authored-by: Iker García Calviño <72529208+ikergcalvino@users.noreply.github.com>
Co-authored-by: Madis Otenurm <robotkoer@gmail.com>
Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: rehork <cooky@e.email>
2024-10-29 14:00:29 +08:00
铃柒柒 a051154c06 manager: Add action.sh for user to manually trigger modules' functionality from manager (#2156)
Commits:
- manager: Add `action.sh` for user to manually trigger modules'
functionality from manager
- manager: Optimize ModuleItem
- manager: uninstall button: TextButton -> FilledTonalButton
- Optimize `run_action` function

Commit Author & Thank:
- @lightsummer233
- @lingqiqi5211
- [APatch](https://github.com/bmax121/APatch)

Demo Show:

![image](https://github.com/user-attachments/assets/a5778a86-fa60-485f-ac49-2b581711f60e)

---------

Co-authored-by: Light summer <93428659+lightsummer233@users.noreply.github.com>
2024-10-27 10:07:13 +01:00
Light_summer 8752cdfa4d manager: Bump dependencies, Adjust pull refresh UI, Add transitions back (#2139)
Bump dependencies


| Add transitions back for predictive back | Fix SnackBar overlap on FAB
& Make SnackBar can dismiss
| :-- | :-- |
|
![Screenshot_20241016-235706](https://github.com/user-attachments/assets/f2718523-9800-42ff-ad2f-ad8583c56be7)
|
![Screenshot_20241018-220552](https://github.com/user-attachments/assets/ed53338b-1ac4-4d0a-a5fb-7056f81cac18)
|

Use `androidx.compose.material3.pulltorefresh.PullToRefreshBox` instead
of `androidx.compose.material.pullrefresh.*`
| Before | After |
| --: | --: |
|
![Screenshot_20241016-234930](https://github.com/user-attachments/assets/6b9dbb87-627b-4a02-8f77-9f9f81ae1b4a)
|
![Screenshot_20241016-235336](https://github.com/user-attachments/assets/9134dde4-93c8-4f85-8540-56a7c5a1b0af)
|

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-19 08:40:02 +08:00
Shatyuka b8722bc47b manager: detect init_boot with Android version in uname (#2142)
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the
baseline/kernel target version is Android 12.

```
# getprop | grep api_level
[ro.board.api_level]: [31]
[ro.board.first_api_level]: [31]
[ro.product.first_api_level]: [33]
[ro.vendor.api_level]: [31]
# uname -a
Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 #1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox
```

Maybe we should use `ro.board.first_api_level` instead of
`ro.product.first_api_level`, or the minimum value. But anyway, it's
better to be consistent with ksud.

https://github.com/tiann/KernelSU/blob/390bfa9825394bc79b3dd91f9b50336da0f1b6da/userspace/ksud/src/boot_patch.rs#L407
2024-10-17 19:46:25 +08:00
Light_summer 02bb03a94a manager: Refactor the click logic of ModuleItem (#2105)
Drop `com.google.accompanist` that we needn't it

Remove unused metadata, abi

Optimize app icon (No visual changes)

Update Gradle to 8.10.2

Enable per app language support

Optimize `SwitchItem`


https://github.com/user-attachments/assets/777729e6-5108-4060-91a7-28b5b9d98441

Refactor the click logic of `ModuleItem`


https://github.com/user-attachments/assets/e61da54a-6c1c-45d7-bf27-52b452134b7e

Use compose's Text in AboutCard to support dynamicColor


![Screenshot_20241001-094116](https://github.com/user-attachments/assets/9882a4c1-719d-4622-a316-063cf349a753)

Add scroll behavior for TopAppBar


![Screenshot_20241001-133657.png](https://github.com/user-attachments/assets/1a884648-bc91-4f8a-9940-f2a5f0b8f6da)

![Screenshot_20241001-133645.png](https://github.com/user-attachments/assets/cd4712d3-a2c7-47f1-bba4-4312b779f6b1)

Fix padding for BottomNavigationBar
2024-10-01 20:40:16 +08:00
Light_summer a3d20a1dea manager: Insets stuffs for Android 15 (#2100)
Fix insets on Android 15
Bump dependencies
Migrate Compose Destination to v2

Ready for review now
2024-09-29 15:45:52 +08:00
Whale Choi 7a3bf4441c api: spawn CallbackList use UiThreadHandler::runAndWait executor (#2096)
![jsexception](https://github.com/user-attachments/assets/e8a4744d-bd0a-40bf-869c-def915b66075)

Because the exit callback in js cleans up the ChildProcess, when the
last callback of stdout is executed after the exit callback, an error
like “emitData ReferenceError: spawn_callback_1727358276092_68 is not
defined” will occur.
2024-09-29 13:31:06 +08:00
sus 07b719aaca js: add moduleInfo method (#2057)
Add a `ksu.moduleInfo()` in JS.
resolves https://github.com/tiann/KernelSU/issues/1571

test module's index.html

![image](https://github.com/user-attachments/assets/39920606-452c-4b19-abca-967c25146d6a)

The test module:

[moduleInfo_test.zip](https://github.com/user-attachments/files/17001977/moduleInfo_test.zip)

test module's result:

![image](https://github.com/user-attachments/assets/9dbbd2e8-f7ea-418f-b545-66d33ce1b3ae)
2024-09-14 21:52:11 +08:00
Weblate (bot) a8f368fb48 Translations update from Hosted Weblate (#2008)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: charlotte <charlotterose@duck.com>
Co-authored-by: rehork <cooky@e.email>
Co-authored-by: Peter Noël Muller <pm563838@gmail.com>
Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: Fede2782 <78815152+Fede2782@users.noreply.github.com>
Co-authored-by: _wais <cikomo.game@gmail.com>
Co-authored-by: Shadow <duxing130@gmail.com>
Co-authored-by: Kazuki Nakashima <flukfik41@gmail.com>
Co-authored-by: Karl Schrader <pokemetti@gmail.com>
Co-authored-by: crusader1328 <Crusader1328@users.noreply.hosted.weblate.org>
Co-authored-by: SchweGELBin <abramjannikmichael06@gmail.com>
2024-09-14 09:51:54 +08:00
LoveSy 6b045c9051 Upgrade gradle (#1866) 2024-07-08 22:49:18 +08:00
Weblate (bot) 5277ce7e18 Translations update from Hosted Weblate (#1734)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: Pierre GRASSER <pierre.grasser@proton.me>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: WikiBayer <Software@florian-rossmann.de>
Co-authored-by: weishu <twsxtd@gmail.com>
2024-06-17 13:43:13 +08:00
igor 9b32a7bfae manager: improve grammar in english (#1814)
Improved the grammar and fixed some typos. Feel free to let me know if
there are any mistakes.

A question. Why is the Profile App not translatable? Would it be
possible to make it translatable?
2024-06-17 10:36:15 +08:00
TinyHai 026eb40f7d manager: fix update no response when changelog is empty (#1786) 2024-06-05 01:14:40 +08:00
WenHao2130 70bfe74780 manager: fix translation errors in zh_CN (#1790) 2024-06-01 22:07:16 +08:00
Caner Karaca 5769178859 Update Dependencies and Migrate to Kotlin 2 (#1765)
Corrections/edits and reviews always welcomed.

Migrate to Kotlin 2
Updated dependencies
Refreshed lock files
2024-05-25 11:07:27 +08:00
Alex 7dc3c17e68 Added a feature to save logs to local storage (#1741)
- Added export logs to local storage
[1664](https://github.com/tiann/KernelSU/issues/1664)

---------

Co-authored-by: weishu <twsxtd@gmail.com>
2024-05-23 10:46:44 +08:00
Alex 6a1a240e40 Refactor checkNewVersion function to use LatestVersionInfo data class (#1733)
- Updated the checkNewVersion function to return a LatestVersionInfo
data class instead of a Triple.
- Defined default null value for LatestVersionInfo in case of failure.
- Improved readability and maintainability by replacing the Triple with
a data class.
- Included version code, download URL, and changelog in the
LatestVersionInfo data class.

---------

Co-authored-by: weishu <twsxtd@gmail.com>
2024-05-16 15:35:14 +08:00
Weblate (bot) 136e11f715 Translations update from Hosted Weblate (#1662)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: Fede2782 <78815152+Fede2782@users.noreply.github.com>
Co-authored-by: Ričards L <ricards.lacis18@gmail.com>
Co-authored-by: Pierre GRASSER <pierre.grasser@proton.me>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: AndroPlus <hosigumayuugi@gmail.com>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: Igor Sorocean <sorocean.igor@gmail.com>
2024-05-08 16:02:12 +08:00
Light_summer c0b7ab5d42 manager: Make SwitchItem can be click like preference (#1697)
Use `AutoMirrored` icon
Drop some deprecated methods
Remove unused imports
Add bottom padding for AppProfileTemplateScreen to avoid display content
behind fab
2024-05-04 20:41:05 +08:00
fsxitutu 618a97df1b Add magiskboot to kernelsu working directory (#1684)
Add the magiskboot binary to the /data/adb/ksu/bin directory so that
scripts/programs can call magiskboot to patch the boot/init_boot image.

---------

Co-authored-by: weishu <twsxtd@gmail.com>
2024-05-01 09:48:59 +08:00
weishu ccf3193d93 manager: Fix select kmi not working 2024-04-24 00:29:43 +08:00
weishu cd61835fd3 manager: extract flashWithIO 2024-04-23 15:51:04 +08:00
weishu 733b681bfb manager: hide "uninstall temporary" temporarily. 2024-04-23 15:38:18 +08:00
weishu 3da7c0fdc3 manager: Add UI for uninstall permanently 2024-04-23 15:37:42 +08:00
Weblate (bot) db0f01b9b7 Translations update from Hosted Weblate (#1635)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: Igor Sorocean <sorocean.igor@gmail.com>
Co-authored-by: Ali Beyaz <alipolatbeyaz@gmail.com>
Co-authored-by: rehork <cooky@e.email>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: Bilchuk Radomyr <bilchuk.radomyr@gmail.com>
Co-authored-by: Nostalgia <2455367098@qq.com>
Co-authored-by: Kazuki Nakashima <flukfik41@gmail.com>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: ngocanhtve <ngocanh.tve@gmail.com>
Co-authored-by: _wais <cikomo.game@gmail.com>
2024-04-20 22:30:50 +08:00
TinyHai 60a88da33c fix grant root failed #1559 (#1633) 2024-04-16 22:02:55 +08:00
weishu cf06d4cde8 manager: Allow to use other su to install 2024-04-15 12:32:29 +08:00
Weblate (bot) 2d85800704 Translations update from Hosted Weblate (#1617)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Skallr2 <pm563838@gmail.com>
Co-authored-by: Oğuz Han <h4n.3545@gmail.com>
Co-authored-by: _wais <cikomo.game@gmail.com>
Co-authored-by: rehork <cooky@e.email>
Co-authored-by: Bilchuk Radomyr <bilchuk.radomyr@gmail.com>
Co-authored-by: Muhammad Bahaa <muhammad.bahaa1@gmail.com>
Co-authored-by: Nostalgia <2455367098@qq.com>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Co-authored-by: Fede2782 <78815152+Fede2782@users.noreply.github.com>
Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: sus <jeffpeng2012@gmail.com>
Co-authored-by: Ali Beyaz <alipolatbeyaz@gmail.com>
2024-04-15 11:56:04 +08:00
5ec1cff 2c2c1b2b45 ksud: backup stock image and use it when restore (#1619) 2024-04-14 00:45:06 +08:00
Wang Han 94386b22e4 Register receiver with RECEIVER_EXPORTED (#1620) 2024-04-13 18:48:29 +08:00
Caner Karaca bdec5117ed Update (#1618) 2024-04-13 16:43:45 +08:00
weishu 76a514db4a manager: Add uninstall ui 2024-04-13 12:49:54 +08:00
Weblate (bot) 3dfc54a0e1 Translations update from Hosted Weblate (#1578)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Skallr2 <pm563838@gmail.com>
Co-authored-by: Oğuz Han <h4n.3545@gmail.com>
Co-authored-by: _wais <cikomo.game@gmail.com>
Co-authored-by: rehork <cooky@e.email>
Co-authored-by: Bilchuk Radomyr <bilchuk.radomyr@gmail.com>
2024-04-12 22:11:26 +08:00
ice 38f2169e40 manager: Use AM instead of Monkey to start the app. (#1614)
Using Monkey will unlock the rotation, and possibly more unintended
behavior.
link: [ADB shell monkey command changing device orientation
lock](https://stackoverflow.com/q/56684778)
2024-04-11 13:30:06 +08:00
Wang Han e2926d4736 Exclude minidump.gz when collecting xiaomi logs (#1592)
Saves about ~80MB space.
2024-04-06 12:30:33 +08:00
Weblate (bot) 74fa675aa2 Translations update from Hosted Weblate (#1567)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: Igor Sorocean <sorocean.igor@gmail.com>
Co-authored-by: Ali Beyaz <alipolatbeyaz@gmail.com>
Co-authored-by: weishu tian <twsxtd@gmail.com>
Co-authored-by: _wais <cikomo.game@gmail.com>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Skallr2 <pm563838@gmail.com>
Co-authored-by: Kazuki Nakashima <flukfik41@gmail.com>
Co-authored-by: sus <jeffpeng2012@gmail.com>
Co-authored-by: Dawid2849 <dawid2849@gmail.com>
Co-authored-by: Dawid2849 <dawiddziewa24@gmail.com>
Co-authored-by: Federico Lombardo <fede2782@users.noreply.hosted.weblate.org>
Co-authored-by: Tebbe Ubben <kontakt@tebbeubben.de>
Co-authored-by: Fede2782 <78815152+Fede2782@users.noreply.github.com>
2024-04-02 23:02:48 +08:00
weishu 1ab07d1639 manager: Create new root shell for time consuming task 2024-04-01 12:34:42 +08:00
weishu c4c864ff11 manager: Add module shrink to settings. close #1572 2024-04-01 12:23:41 +08:00
Weblate (bot) f0f5202a91 Translations update from Hosted Weblate (#1548)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: Igor Sorocean <sorocean.igor@gmail.com>
Co-authored-by: Ali Beyaz <alipolatbeyaz@gmail.com>
Co-authored-by: weishu tian <twsxtd@gmail.com>
Co-authored-by: _wais <cikomo.game@gmail.com>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Skallr2 <pm563838@gmail.com>
Co-authored-by: Kazuki Nakashima <flukfik41@gmail.com>
Co-authored-by: sus <jeffpeng2012@gmail.com>
Co-authored-by: Dawid2849 <dawid2849@gmail.com>
Co-authored-by: Dawid2849 <dawiddziewa24@gmail.com>
Co-authored-by: Federico Lombardo <fede2782@users.noreply.hosted.weblate.org>
Co-authored-by: Tebbe Ubben <kontakt@tebbeubben.de>
2024-03-31 00:40:40 +08:00
Light_summer 525856fed8 manager: Fix round corner for Module Info Card (#1565)
| Before | After |
| :----- | :----- |
|
![Screenshot_20240330-183552](https://github.com/tiann/KernelSU/assets/93428659/b42b2e90-2d52-4d0f-964a-2288aeec3d8a)
|
![Screenshot_20240330-183539](https://github.com/tiann/KernelSU/assets/93428659/8272cd5e-6bfc-4444-9bac-19d95cc4b9cb)
|
2024-03-30 21:00:44 +08:00
Weblate (bot) 1437f99793 Translations update from Hosted Weblate (#1523)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: Igor Sorocean <sorocean.igor@gmail.com>
Co-authored-by: Ali Beyaz <alipolatbeyaz@gmail.com>
Co-authored-by: weishu tian <twsxtd@gmail.com>
Co-authored-by: _wais <cikomo.game@gmail.com>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Skallr2 <pm563838@gmail.com>
Co-authored-by: Kazuki Nakashima <flukfik41@gmail.com>
Co-authored-by: sus <jeffpeng2012@gmail.com>
2024-03-28 11:16:15 +08:00
weishu c22ea24d15 manager: Fix template escape 2024-03-27 14:17:39 +08:00
5ec1cff 2cf3311aa8 manager: refine webui (#1535) 2024-03-26 17:16:01 +08:00
5ec1cff 2ba8839644 manager: open webui in single task (#1531) 2024-03-26 08:55:34 +08:00
5ec1cff 031999eed5 manager: splash screen follows system dark mode (#1515) 2024-03-24 11:19:44 +08:00
weishu 25e93982b6 manager: make some shell op suspend 2024-03-23 15:12:34 +08:00
weishu 84091ee6c0 manager: support choose kmi manually. close #1496 2024-03-23 12:30:27 +08:00