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

Add action.sh so that user can run modules' scripts manually from app #7975

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yujincheng08
Copy link
Collaborator

No description provided.

@@ -63,6 +65,11 @@ data class LocalModule(
}
}

fun executeAction() {
// su to clear exported environment variables
Runtime.getRuntime().exec(arrayOf("su", "-c", "cd $path; ASH_STANDALONE=1 /data/adb/magisk/busybox sh action.sh"))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not very familiar with Magisk app so I hardcoded /data/adb/magisk/busybox here. There may be a better way to obtain this NVBASE.

@yujincheng08 yujincheng08 deleted the action branch April 5, 2024 18:47
@yujincheng08 yujincheng08 restored the action branch April 7, 2024 03:03
@yujincheng08 yujincheng08 reopened this Apr 7, 2024
@topjohnwu topjohnwu force-pushed the master branch 4 times, most recently from ec54aed to f61827c Compare May 9, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant