Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui: Add Magisk Manager Recovery CLI [1/2] #98

Open
wants to merge 1 commit into
base: android-12.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gui/theme/common/languages/en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,8 @@
<string name="MMR_btn">Magisk Manager</string>
<string name="MMR_text">Magisk Manager Recovery will be installed.</string>
<string name="MMR_confirm">Try to install it?</string>
<string name="MMRC_btn">Magisk Manager CLI</string>
<string name="MMRC_text">Magisk Manager Recovery CLI will be installed.</string>
<string name="Dm_Verity_btn">Dm Verity</string>
<string name="Dm_Verity_text">Dm Verity will be installed.</string>
<string name="Dm_Verity_confirm">Try to install it?</string>
Expand Down
17 changes: 17 additions & 0 deletions gui/theme/portrait_hdpi/extras.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,23 @@
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button_tools">
<placement x="56" y="1314" textplacementmain="3"/>
<icon resource="magisk"/>
<text>{@MMRC_btn=Magisk Manager CLI}</text>
<actions>
<action function="set">tw_back=tools</action>
<action function="set">tw_filename=/sdcard/PBRP/tools/magiskmanagerrecoverycli.zip</action>
<action function="set">tw_action=queuezip</action>
<action function="set">tw_has_action2=1</action>
<action function="set">tw_action2=flash</action>
<action function="set">tw_action2_param=flash_zip</action>
<action function="set">tw_text1={@MMRC_text=Magisk Manager Recovery CLI will be installed.}</action>
<action function="set">tw_text2={@MMR_confirm=Try to install it?}</action>
<action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button_tools">
<placement x="557" y="489" textplacementmain="3"/>
<icon resource="fingerprint"/>
Expand Down