Initial push

This commit is contained in:
PizzaG 2026-07-24 16:32:02 -05:00
commit a01d3e7cc2
1993 changed files with 106354 additions and 0 deletions

108
scripts/A-Team-Magisk.sh Executable file
View file

@ -0,0 +1,108 @@
#!/system/bin/sh
#
# Copyright 2019-Present A-Team Digital Solutions
#
# A-Team Magisk Initial Setup Script
LOCK_FILE="/data/local/tmp/Lock.a-team"
LOCK_FILE_1="/data/local/tmp/Lock-1.a-team"
# If Lock File Exists, Exit (prevents re-running after first boot)
if [ -f "$LOCK_FILE" ]; then
exit
else
sleep 25
# Wait For Setup To Complete Before Proceeding
while [ "$(settings get global device_provisioned)" -ne 1 ]; do
sleep 5
done
while true; do
current_focus=$(dumpsys window | grep mCurrentFocus)
if echo "$current_focus" | grep -q -E 'Keyguard|StatusBar|NotificationShade|null'; then
echo "Still locked, waiting..."
sleep 1
else
echo "Device is unlocked!"
break
fi
done
# Set Screen Brightness
settings put system screen_brightness 255
su -c settings put system screen_brightness 255
settings put system screen_brightness 255
# Set Screen Timeout to 30 Minutes
settings put system screen_off_timeout 1800000
su -c settings put system screen_off_timeout 1800000
settings put system screen_off_timeout 1800000
# Install Nova Launcher
pm install -r "/system/A-Team/Apps/NovaLauncher.apk"
sleep 1
# Install Magisk Manager
pm install -r "/system/A-Team/Apps/Magisk.apk"
sleep 5
## Setup Magisk
# Spawn Magisk Manager
am start -n com.topjohnwu.magisk/com.topjohnwu.magisk.ui.MainActivity
sleep 15
# Allow Notifications
input keyevent 23
sleep 0.5
input keyevent 23
sleep 0.5
# Down To Cancel
input keyevent 20
sleep 0.5
# Enter To Cancel
input keyevent 23
sleep 0.5
# Enter To Hide Nag
input keyevent 23
sleep 0.5
# Enter To Install
input keyevent 23
sleep 0.5
# Down 2x To Direct Install
input keyevent 20
sleep 0.5
input keyevent 20
sleep 0.5
# Enter To Select Direct Install
input keyevent 23
sleep 0.5
# Right To Let's Go
input keyevent 22
sleep 0.5
# Enter To Flash
input keyevent 23
sleep 0.5
sleep 1
# Create Lock File So Script Doesn't Run Again
touch "$LOCK_FILE"
sleep 1
# Create Lock File So Script Runs
touch "$LOCK_FILE_1"
# Sleep 20 Seconds
sleep 20
# Auto Reboot
reboot
fi

27
scripts/A-Team-PostBoot.sh Executable file
View file

@ -0,0 +1,27 @@
#!/system/bin/sh
#
# Copyright 2019-Present A-Team Digital Solutions
#
# Moto Rom Post-Boot Script
sleep 10
# Set SeLinux Permissive
su -c setenforce 0
sleep 10
# A-Team Dynamic R/W
su -c mount --remount / -w
su -c mount -o remount,rw /product
su -c mount -o remount,rw /system_ext
su -c mount -o remount,rw /vendor
su -c remount
sleep 20
# A-Team USB MTP Boot Enabler
#svc usb setFunctions mtp
exit

166
scripts/A-Team-Setup.sh Executable file
View file

@ -0,0 +1,166 @@
#!/system/bin/sh
#
# Copyright 2019-Present A-Team Digital Solutions
#
# A-Team Custom Rom Setup Script
# A-Team Rom Setup Lock File
LOCK_FILE="/data/local/tmp/Lock-1.a-team"
# If Lock File Exists, Run Script, Otherwise Exit
if [ -f "$LOCK_FILE" ]; then
# ======= LOCK FILE FOUND, EXECUTING SCRIPT =======
sleep 15
while true; do
current_focus=$(dumpsys window | grep mCurrentFocus)
if echo "$current_focus" | grep -q -E 'Keyguard|StatusBar|NotificationShade|null'; then
echo "Still locked, waiting..."
sleep 1
else
echo "Device is unlocked!"
break
fi
done
sleep 5
# A-Team Start Notification
su -lp 2000 -c "cmd notification post -S bigtext -t 'A-Team Notification - Start' 'Tag' 'A-Team Setup Started, Please Be Patient...'"
sleep 10
## Setup Magisk - Part 1
# Spawn Magisk Manager
#am start -n com.topjohnwu.magisk/com.topjohnwu.magisk.ui.MainActivity
#sleep 7
# Exit Magisk
#am force-stop com.topjohnwu.magisk
#sleep 1
# A-Team App Installation
#pm install -r "/system/A-Team/Apps/Chrome.apk"
#sleep 1
pm install -r "/system/A-Team/Apps/OpenCamera.apk"
sleep 1
pm install -r "/system/A-Team/Apps/X-Plore.apk"
sleep 1
# Set 3 Button Navigation
su -c cmd overlay enable com.android.internal.systemui.navbar.threebutton
sleep 1
# Set Screen Timeout to 30 Minutes
#su -c settings put system screen_off_timeout 1800000
sleep 1
# A-Team App Internet Patch
su -c settings put global restricted_networking_mode 0
sleep 1
# A-Team Custom Device Settings
cmd uimode night yes
sleep 1
su -c settings put global mobile_data_always_on 1
sleep 1
su -c settings put global transition_animation_scale 0
sleep 1
su -c settings put global window_animation_scale 0
sleep 1
su -c settings put global animator_duration_scale 0
sleep 1
su -c settings put global force_gpu_rendering 1
sleep 1
su -c settings put global bluetooth_on 0
sleep 1
su -c settings put global zram_enabled 1
sleep 1
su -c settings put global package_verifier_enable 0
sleep 1
su -c settings put global package_verifier_user_consent 1
sleep 1
su -c settings put global show_zen_settings_suggestion 0
sleep 1
su -c settings put global audio_safe_volume_state 0
sleep 1
su -c settings put global set_install_location 1
sleep 1
su -c settings put global usb_mass_storage_enabled 1
sleep 1
su -c settings put global ambient_enabled 0
sleep 1
su -c settings put global ambient_tilt_to_wake 0
sleep 1
su -c settings put global ambient_touch_to_wake 0
sleep 1
su -c settings put system lift_to_wake 0
sleep 1
su -c settings put secure doze_quick_pickup_gesture 0
sleep 1
su -c settings put global wifi_scan_always_enabled 0
sleep 1
su -c settings put global wifi_networks_available_notification_on 0
sleep 1
su -c settings put global camera_double_tap_power_gesture_disabled 1
sleep 1
su -c settings put global wifi_on 0
sleep 1
su -c settings put secure dialer_default_application com.google.android.dialer
sleep 1
su -c settings put secure volume_hush_gesture 0
sleep 1
su -c settings put system sound_effects_enabled 0
sleep 1
su -c settings put system rotation 0
sleep 1
su -c settings put system vibrate_when_ringing 1
sleep 1
su -c settings put secure doze_enabled 0
sleep 1
# A-Team Tether Hack
su -c settings put global tether_dun_required 0
sleep 1
# A-Team Custom Wallpapers
su -c cp -r /system/A-Team/Wallpapers /storage/emulated/0/Pictures
sleep 1
# A-Team X-Plore File Manager Settings
am start -a android.intent.action.MAIN -n com.lonelycatgames.Xplore/com.lonelycatgames.Xplore.Browser
sleep 3
am force-stop com.lonelycatgames.Xplore
sleep 2
su -c cp -r /system/A-Team/config.xml /data/data/com.lonelycatgames.Xplore/shared_prefs/config.xml
su -c cp -r /system/A-Team/prefs.xml /data/data/com.lonelycatgames.Xplore/shared_prefs/prefs.xml
sleep 1
# Remove Lock File 2 So Script Won't Run'
rm -rf "$LOCK_FILE"
sleep 1
# A-Team End Notification
su -lp 2000 -c "cmd notification post -S bigtext -t 'A-Team Notification - End' 'Tag' 'A-Team Setup Complete! Please Reboot & Enjoy This Release...'"
exit
else
exit
fi