-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5ad5cd
commit 5de4131
Showing
7 changed files
with
102 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
SKIPMOUNT=false | ||
PROPFILE=false | ||
POSTFSDATA=false | ||
LATESTARTSERVICE=false | ||
|
||
print_modname() { | ||
ui_print " __ ______ ____ " | ||
ui_print " \ \ / | _ \| _ \ " | ||
ui_print " \ \ /\ / /| |_) | | | |" | ||
ui_print " \ V V / | __/| |_| |" | ||
ui_print " \_/\_/ |_| |____/ " | ||
} | ||
|
||
on_install() { | ||
ui_print "- Extracting module files" | ||
unzip -qq -o "$ZIPFILE" 'system/*' -d $MODPATH >&2 | ||
[ -d "$MODPATH/system/bin/" ] || mkdir -p "$MODPATH/system/bin/" | ||
} | ||
|
||
set_permissions() { | ||
# The following is the default rule, DO NOT remove | ||
set_perm_recursive $MODPATH 0 0 0755 0644 | ||
set_perm $MODPATH/system/bin/wpd 0 0 0755 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
id=mmrl_wpd | ||
name=WiFi Password Viewer for MMRL | ||
version=2.1.1 | ||
versionCode=211 | ||
version=2.2.1 | ||
versionCode=221 | ||
author=Der_Googler, veez21 @ xda-developers | ||
description=View all your WiFi passwords inside MMRL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/system/bin/sh | ||
|
||
[ "$(whoami)" != "root" ] && { echo "root required"; exit 1; } | ||
configs=( /data/misc/wifi/WifiConfigStore.xml /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml ) | ||
for z in ${configs[@]}; do | ||
if [ -f $z ]; then | ||
config=$z | ||
break | ||
fi | ||
done | ||
SSID=($(grep 'name="SSID"' $config | sed "s/.*>"//;s/".*//;s/ /-_-/g")) | ||
PSK=($(grep 'name="PreSharedKey"' $config | sed "s/<null.*/\e[01;30mNONE\e[00;37;40m/;s/.*>"/\e[01;32m/;s/".*/\e[00;37;40m/;s/ /-_-/g")) | ||
|
||
echo "WiFi Password Viewer" | ||
echo "veez21 @ xda-developers\n" | ||
|
||
for i in ${!SSID[@]}; do | ||
echo "\e[01;37m${SSID[$i]}\e[00;37;40m - ${PSK[$i]}" | sed "s/-_-/ /g" | ||
done |
19 changes: 0 additions & 19 deletions
19
system/usr/share/mmrl/config/mmrl_wpd/components/CenterBox.jsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
system/usr/share/mmrl/config/mmrl_wpd/hooks/useBackHandler.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { useActivity, useConfirm } from "@mmrl/hooks"; | ||
|
||
export default () => { | ||
const { context } = useActivity(); | ||
const confirm = useConfirm(); | ||
|
||
return (e) => { | ||
confirm({ | ||
title: "Leaving?", | ||
description: "Are you sure that you want leave this config?", | ||
confirmationText: "Yes", | ||
cancellationText: "No", | ||
}) | ||
.then(() => { | ||
if (typeof e.callParentHandler === "function") { | ||
e.callParentHandler(); | ||
} else { | ||
context.popPage(); | ||
} | ||
}) | ||
.catch(() => {}); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters