-
Notifications
You must be signed in to change notification settings - Fork 768
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mount bind from different dir (fixes #46)
- Loading branch information
Showing
8 changed files
with
53 additions
and
26 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,15 @@ | ||
# A list of options for each patch. | ||
# This file does not contain all options by default. | ||
# Run the CLI with the "--list --with-options" flags to see all available options. | ||
# You can also run the CLI with the aforementioned flags and a patch name to see all available options for that patch. | ||
# To set an option, add a line with the format "option = value". | ||
# To remove or reset an option to its default value, delete the line. | ||
# To reset all options to their default values, delete this file. | ||
# | ||
# This file was generated by ReVanced Patcher version 4.3.0. | ||
|
||
['custom-branding'] | ||
appName = "YouTube ReVanced" | ||
|
||
[theme] | ||
theme = "Amoled" |
Binary file not shown.
Binary file not shown.
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 @@ | ||
# utils |
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
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,13 +1,14 @@ | ||
#!/system/bin/sh | ||
# shellcheck disable=SC2086 | ||
MODDIR=${0%/*} | ||
until [ "$(getprop sys.boot_completed)" = 1 ]; do | ||
sleep 1 | ||
done | ||
RVPATH=/data/local/tmp/__PKGNAME_rv.apk | ||
until [ "$(getprop sys.boot_completed)" = 1 ]; do sleep 1; done | ||
sleep __MNTDLY | ||
|
||
ln -f $MODDIR/base.apk $RVPATH | ||
BASEPATH=$(pm path __PKGNAME | grep base) | ||
BASEPATH=${BASEPATH#*:} | ||
if [ "$BASEPATH" ]; then | ||
chcon u:object_r:apk_data_file:s0 $MODDIR/base.apk | ||
su -Mc mount -o bind $MODDIR/base.apk $BASEPATH | ||
chcon u:object_r:apk_data_file:s0 $RVPATH | ||
su -Mc mount -o bind $RVPATH $BASEPATH | ||
fi |
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,2 @@ | ||
#!/system/bin/sh | ||
rm /data/local/tmp/__PKGNAME_rv.apk |
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