mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Allow editing APNs, patch from GrapheneOS
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
4f6e21d7f9
commit
baa0252c6b
@ -27,7 +27,10 @@ source "$DOS_SCRIPTS_COMMON/Shell.sh";
|
||||
|
||||
echo "Changing default settings...";
|
||||
|
||||
#if enter "frameworks/base"; then
|
||||
if enter "frameworks/base"; then
|
||||
sed -i 's/KEY_SHOW_APN_SETTING_CDMA_BOOL, false);/KEY_SHOW_APN_SETTING_CDMA_BOOL, true);/' telephony/java/android/telephony/CarrierConfigManager.java &>/dev/null || true; #Always show APN settings on CDMA carriers (GrapheneOS)
|
||||
sed -i 's/KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {"dun"})/KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {""});/' telephony/java/android/telephony/CarrierConfigManager.java &>/dev/null || true; #Do not mark dun APN types as read only (GrapheneOS)
|
||||
sed -i 's/KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false);/KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, true);/' telephony/java/android/telephony/CarrierConfigManager.java &>/dev/null || true; #Always show ICCID (GrapheneOS)
|
||||
#14.1
|
||||
#sed -i 's/CMPRIVACY_GUARD_NOTIFICATION, 1/CMPRIVACY_GUARD_NOTIFICATION, 0/' services/core/java/com/android/server/am/ActivityStack.java &>/dev/null || true;
|
||||
#sed -i 's/VOLBTN_MUSIC_CONTROLS, 1/VOLBTN_MUSIC_CONTROLS, 0/' services/core/java/com/android/server/policy/PhoneWindowManager.java &>/dev/null || true; #FIXME
|
||||
@ -36,7 +39,7 @@ echo "Changing default settings...";
|
||||
#sed -i 's/TORCH_LONG_PRESS_POWER_TIMEOUT, 0/TORCH_LONG_PRESS_POWER_TIMEOUT, 120/' services/core/java/com/android/server/policy/PhoneWindowManager.java &>/dev/null || true; #FIXME
|
||||
#sed -i 's/CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 0/CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 1/' services/core/java/com/android/server/GestureLauncherService.java &>/dev/null || true; #FIXME
|
||||
#sed -i 's/NAVIGATION_BAR_MENU_ARROW_KEYS, 0/NAVIGATION_BAR_MENU_ARROW_KEYS, 1/' packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java &>/dev/null || true; #FIXME
|
||||
#fi;
|
||||
fi;
|
||||
|
||||
if enter "packages/apps/Dialer"; then
|
||||
#14.1
|
||||
|
Loading…
Reference in New Issue
Block a user