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

Keep /sdcard clean #21

Open
wants to merge 1 commit into
base: master
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Usage: ep [options...]
> e.g., ep -b example.com new.example.com www.example.com
-B, --blacklist
>> Add the domains in blacklist file to hosts.
>> blacklist file in /sdcard/EnergizedProtection directory.
>> blacklist file in /sdcard/Documents/EnergizedProtection directory.
> e.g., ep -B
-c, --clear
>> Clear the hosts file and revert back to stock.
Expand Down Expand Up @@ -127,7 +127,7 @@ Usage: ep [options...]
ep -p blu -e regional social
-r, --redirect
>> Redirect the domains in redirectlist file to specific IPV4/V6.
>> redirectlist file in /sdcard/EnergizedProtection directory.
>> redirectlist file in /sdcard/Documents/EnergizedProtection directory.
> e.g., ep -r
-u, --update
>> Update currently applied hosts pack and extension(s).
Expand All @@ -139,7 +139,7 @@ Usage: ep [options...]
> e.g., ep -w example.com new.example.com www.example.com
-W, --whitelist
>> Whitelist the domains in whitelist file to hosts.
>> whitelist file in /sdcard/EnergizedProtection directory.
>> whitelist file in /sdcard/Documents/EnergizedProtection directory.
> e.g., ep -W
-bp, --backup
>> Backup the current hosts setup.
Expand Down
4 changes: 2 additions & 2 deletions system/bin/energized
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ alias awk="$busybox awk"
# ----------------------------------------
# Define Energized Protection directory
# ----------------------------------------
directory="/sdcard/EnergizedProtection"
directory="/sdcard/Documents/EnergizedProtection"
# Create directory
if [ ! -d $directory ]; then
mkdir -p $directory;
Expand Down Expand Up @@ -2022,7 +2022,7 @@ uninstall(){
# Restore stock settings
restoreStockSettings;
# Uninstall
rm -rf '/system/bin/energized' '/system/bin/ENERGIZED' '/data/adb/modules/energizedprotection' '/sbin/.magisk/modules/energizedprotection' '/sdcard/EnergizedProtection' > /dev/null 2>&1;
rm -rf '/system/bin/energized' '/system/bin/ENERGIZED' '/data/adb/modules/energizedprotection' '/sbin/.magisk/modules/energizedprotection' '/sdcard/Documents/EnergizedProtection' > /dev/null 2>&1;
clear
echo -e "$W""\nIt's sad to see you go!""$N"
echo -e "$W""But ""$N""$Y""https://energized.pro""$N""$W"" is always there for you!""$N"
Expand Down
6 changes: 3 additions & 3 deletions system/bin/strings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ printHelp() {
echo " > e.g., $sym -b abc.com x.abc.com"
echo -e $Y" -B, --blacklist"$N
echo " >> Add the domains in blacklist file to hosts."
echo " >> blacklist file in \n /sdcard/Energized Protection directory."
echo " >> blacklist file in \n /sdcard/Documents/EnergizedProtection directory."
echo " > e.g., $sym -B"
echo -e $Y" -c, --clear"$N
echo " >> Clear the hosts file and revert back to stock."
Expand Down Expand Up @@ -76,7 +76,7 @@ printHelp() {
echo " $sym -p blu -e regional social"
echo -e $Y" -r, --redirect"$N
echo " >> Redirect the domains in \n redirectlist file to specific IPV4/V6."
echo " >> redirectlist file in \n /sdcard/EnergizedProtection directory."
echo " >> redirectlist file in \n /sdcard/Documents/EnergizedProtection directory."
echo " > e.g., $sym -r"
echo -e $Y" -u, --update"$N
echo " >> Update currently applied hosts and \n extensions. Also whitelist, blacklist and \n redirect domains to current IP."
Expand All @@ -86,7 +86,7 @@ printHelp() {
echo " > e.g., $sym -w abc.com x.abc.com"
echo -e $Y" -W, --whitelist"$N
echo " >> Whitelist the domains in \n whitelist file to hosts."
echo " >> whitelist file in \n /sdcard/EnergizedProtection directory."
echo " >> whitelist file in \n /sdcard/Documents/EnergizedProtection directory."
echo " > e.g., $sym -W"
echo -e $Y" -bp, --backup"$N
echo " >> Backup the current hosts setup."
Expand Down