Skip to content

Commit

Permalink
improve magisk install command
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Sep 4, 2024
1 parent 48acde9 commit 937fdec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useModFS.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface ModFS {

export const INITIAL_MOD_CONF: ModFS = {
//cli
MSUINI: '<ADB>/magisk/magisk32 --install-module "<ZIPFILE>"',
MSUINI: 'command -v <ADB>/magisk/magisk64 && <ADB>/magisk/magisk64 --install-module "<ZIPFILE>" || <ADB>/magisk/magisk32 --install-module "<ZIPFILE>"',
KSUINI: '<ADB>/ksu/bin/ksud module install "<ZIPFILE>"',
ASUINI: '<ADB>/ap/bin/apd module install "<ZIPFILE>"',

Expand Down Expand Up @@ -116,7 +116,7 @@ export const useModFS = () => {
};

export const ModFSProvider = (props: React.PropsWithChildren) => {
const [modFS, setModFS] = useNativeFileStorage("/data/adb/mmrl/modfs.v5.json", INITIAL_MOD_CONF, { loader: "json" });
const [modFS, setModFS] = useNativeFileStorage("/data/adb/mmrl/modfs.v6.json", INITIAL_MOD_CONF, { loader: "json" });

const pmodFS = React.useMemo(() => new PModFS(defaultComposer(INITIAL_MOD_CONF, modFS)), [modFS]);

Expand Down

0 comments on commit 937fdec

Please sign in to comment.