-
Notifications
You must be signed in to change notification settings - Fork 4
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
0 parents
commit c9d4a52
Showing
9 changed files
with
1,086 additions
and
0 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,2 @@ | ||
## v1.0.0 - 2024-03-19 | ||
- Initial release |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
#!/sbin/sh | ||
|
||
TMPDIR=/dev/tmp | ||
MOUNTPATH=/dev/magisk_img | ||
|
||
# Default permissions | ||
umask 022 | ||
|
||
# Initial cleanup | ||
rm -rf $TMPDIR 2>/dev/null | ||
mkdir -p $TMPDIR | ||
|
||
# echo before loading util_functions | ||
ui_print() { echo "$1"; } | ||
|
||
require_new_magisk() { | ||
ui_print "***********************************" | ||
ui_print " Please install the latest Magisk! " | ||
ui_print "***********************************" | ||
exit 1 | ||
} | ||
|
||
imageless_magisk() { | ||
[ $MAGISK_VER_CODE -gt 18100 ] | ||
return $? | ||
} | ||
|
||
########################################################################################## | ||
# Environment | ||
########################################################################################## | ||
|
||
OUTFD=$2 | ||
ZIPFILE=$3 | ||
|
||
mount /data 2>/dev/null | ||
|
||
# Load utility functions | ||
if [ -f /data/adb/magisk/util_functions.sh ]; then | ||
. /data/adb/magisk/util_functions.sh | ||
NVBASE=/data/adb | ||
else | ||
require_new_magisk | ||
fi | ||
|
||
# Preperation for flashable zips | ||
setup_flashable | ||
|
||
# Mount partitions | ||
mount_partitions | ||
|
||
# Detect version and architecture | ||
api_level_arch_detect | ||
|
||
# Setup busybox and binaries | ||
$BOOTMODE && boot_actions || recovery_actions | ||
|
||
########################################################################################## | ||
# Preparation | ||
########################################################################################## | ||
|
||
# Extract common files | ||
unzip -oj "$ZIPFILE" module.prop install.sh uninstall.sh 'common/*' -d $TMPDIR >&2 | ||
|
||
[ ! -f $TMPDIR/install.sh ] && abort "! Unable to extract zip file!" | ||
# Load install script | ||
. $TMPDIR/install.sh | ||
|
||
if imageless_magisk; then | ||
$BOOTMODE && MODDIRNAME=modules_update || MODDIRNAME=modules | ||
MODULEROOT=$NVBASE/$MODDIRNAME | ||
else | ||
$BOOTMODE && IMGNAME=magisk_merge.img || IMGNAME=magisk.img | ||
IMG=$NVBASE/$IMGNAME | ||
request_zip_size_check "$ZIPFILE" | ||
mount_magisk_img | ||
MODULEROOT=$MOUNTPATH | ||
fi | ||
|
||
MODID=`grep_prop id $TMPDIR/module.prop` | ||
MODPATH=$MODULEROOT/$MODID | ||
|
||
print_modname | ||
|
||
ui_print "******************************" | ||
ui_print "Powered by Magisk (@topjohnwu)" | ||
ui_print "******************************" | ||
|
||
########################################################################################## | ||
# Install | ||
########################################################################################## | ||
|
||
# Create mod paths | ||
rm -rf $MODPATH 2>/dev/null | ||
mkdir -p $MODPATH | ||
|
||
on_install | ||
|
||
# Remove placeholder | ||
rm -f $MODPATH/system/placeholder 2>/dev/null | ||
|
||
# Custom uninstaller | ||
[ -f $TMPDIR/uninstall.sh ] && cp -af $TMPDIR/uninstall.sh $MODPATH/uninstall.sh | ||
|
||
# Auto Mount | ||
if imageless_magisk; then | ||
$SKIPMOUNT && touch $MODPATH/skip_mount | ||
else | ||
$SKIPMOUNT || touch $MODPATH/auto_mount | ||
fi | ||
|
||
# prop files | ||
$PROPFILE && cp -af $TMPDIR/system.prop $MODPATH/system.prop | ||
|
||
# Module info | ||
cp -af $TMPDIR/module.prop $MODPATH/module.prop | ||
if $BOOTMODE; then | ||
# Update info for Magisk Manager | ||
if imageless_magisk; then | ||
mktouch $NVBASE/modules/$MODID/update | ||
cp -af $TMPDIR/module.prop $NVBASE/modules/$MODID/module.prop | ||
else | ||
mktouch /sbin/.magisk/img/$MODID/update | ||
cp -af $TMPDIR/module.prop /sbin/.magisk/img/$MODID/module.prop | ||
fi | ||
fi | ||
|
||
# post-fs-data mode scripts | ||
$POSTFSDATA && cp -af $TMPDIR/post-fs-data.sh $MODPATH/post-fs-data.sh | ||
|
||
# service mode scripts | ||
$LATESTARTSERVICE && cp -af $TMPDIR/service.sh $MODPATH/service.sh | ||
|
||
# Handle replace folders | ||
for TARGET in $REPLACE; do | ||
mktouch $MODPATH$TARGET/.replace | ||
done | ||
|
||
ui_print "- Setting permissions" | ||
set_permissions | ||
|
||
########################################################################################## | ||
# Finalizing | ||
########################################################################################## | ||
|
||
cd / | ||
imageless_magisk || unmount_magisk_img | ||
$BOOTMODE || recovery_cleanup | ||
rm -rf $TMPDIR $MOUNTPATH | ||
|
||
ui_print "- Done" | ||
exit 0 |
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 @@ | ||
#MAGISK |
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,40 @@ | ||
# Pixel VoLTE, VoWIFI & 5G Enabler | ||
|
||
A Magisk Module to enable VoLTE, VoWIFI & 5G for Google Pixel, in countries not officially supported by Google. | ||
|
||
Only tested on Google Pixels. Maybe could work on other devices. Who knows. | ||
|
||
## Features | ||
|
||
On [unsupported countries](https://pixel.withgoogle.com/5G/) for the Google Pixel, this module enables and gives you: | ||
|
||
- VoLTE | ||
- VoWIFI (Wifi Calling) | ||
- 5G (SA+NSA) | ||
|
||
## Requirements | ||
|
||
- Google Pixel 6 or higher (Google Silicon) | ||
- Rooted with Magisk or Kitsune Magisk v26.4 or higher | ||
- A brain | ||
|
||
## Installation | ||
|
||
Download the zip from the [release page](https://github.com/TCattd/Pixel-VoLTE-VoWIFI-5G-Enabler/releases) and flash it using Magisk. | ||
|
||
Reboot your phone. | ||
|
||
You're done! | ||
|
||
Remember to enable VoLTE, VoWIFI & 5G in your device settings. | ||
|
||
## License | ||
This project is licensed under the [GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.en.html) license. | ||
|
||
## Contact | ||
|
||
esteban (at) attitude.cl | ||
|
||
## Disclaimer | ||
|
||
This module is provided as is, without any warranty. You are responsible for any damage caused by using this module. Use at your own risk. |
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,48 @@ | ||
# Debug Options | ||
persist.dbg.ims_volte_enable=1 | ||
persist.dbg.volte_avail_ovr=1 | ||
persist.dbg.vt_avail_ovr=1 | ||
persist.dbg.wfc_avail_ovr=1 | ||
|
||
# Radio Options | ||
persist.radio.volte.dan_support=true | ||
persist.radio.rat_on=combine | ||
persist.radio.data_ltd_sys_ind=1 | ||
persist.radio.data_con_rprt=1 | ||
persist.radio.calls.on.ims=1 | ||
persist.radio.VT_ENABLE=1 | ||
persist.radio.dynamic_sar=false | ||
persist.radio.force_on_dc=true | ||
persist.radio.NO_STAPA=1 | ||
persist.radio.rat_on=combine | ||
persist.radio.VT_HYBRID_ENABLE=1 | ||
persist.sys.cust.lte_config=true | ||
persist.rcs.supported=1 | ||
|
||
# Data | ||
persist.data.iwlan=1 | ||
persist.data.iwlan.enable=true | ||
persist.data.iwlan.ipsec.ap=1 | ||
|
||
# 5G | ||
persist.vendor.radio.5g=1 | ||
persist.vendor.radio.5g_mode_pref=1 | ||
persist.vendor.radio.5g_mode_pref_0=1 | ||
persist.vendor.radio.5g_mode_pref_1=1 | ||
persist.vendor.radio.calls.on.ims=1 | ||
persist.vendor.radio.data_con_rprt=1 | ||
persist.vendor.radio.data_ltd_sys_ind=1 | ||
persist.vendor.radio.enable_temp_dds=true | ||
persist.vendor.radio.force_ltd_sys_ind=1 | ||
persist.vendor.radio.force_on_dc=true | ||
persist.vendor.radio.manual_nw_rej_ct=1 | ||
persist.vendor.radio.mbn_load_flag=3 | ||
persist.vendor.radio.mbn_wait_s=60 | ||
persist.vendor.radio.redir_party_num=1 | ||
|
||
# Others | ||
ril.subscription.types=RUIM | ||
# RO: 0 no support - 1 nsa - 2 sa - 3 nsa+sa | ||
ro.vendor.radio.5g=3 | ||
ro.nubia.nr.support=1 | ||
ro.telephony.default_cdma_sub=0 |
Oops, something went wrong.