Skip to content

Commit

Permalink
updates and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PizzaG committed Dec 29, 2023
1 parent ba375b1 commit 1128505
Show file tree
Hide file tree
Showing 39 changed files with 233 additions and 106 deletions.
3 changes: 3 additions & 0 deletions Bot-ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ Add Bot ability to spawn messages to Telegram group subchannels(Topics)...
—Release Updates v0.03—
add seperate bot for each device...

—Release Updates v0.04—
fix error on line 44 of bots, add bot message ability...

2 changes: 1 addition & 1 deletion Changelog/Changelog.txt.Amogus
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ A-Team Custom ChangeLog

#####################

🍬 December-17-2023 - v0.01 🍬: Initial Android 14 Rom Release...
🍬 December-28-2023 - v0.04 🍬: fix Chrome, fix play store signin...
2 changes: 1 addition & 1 deletion Changelog/Changelog.txt.Borneo
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ A-Team Custom ChangeLog

#####################

🍬 December-17-2023 - v0.01 🍬: Initial Android 14 Rom Release...
🍬 December-28-2023 - v0.04 🍬: fix Chrome, fix play store signin...
2 changes: 1 addition & 1 deletion Changelog/Changelog.txt.Guamna
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ A-Team Custom ChangeLog

#####################

🍬 December-17-2023 - v0.01 🍬: Initial Android 14 Rom Release...
🍬 December-28-2023 - v0.04 🍬: fix Chrome, fix play store signin...
2 changes: 1 addition & 1 deletion Changelog/Changelog.txt.Milanf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ A-Team Custom ChangeLog

#####################

🍬 December-17-2023 - v0.01 🍬: Initial Android 14 Rom Release...
🍬 December-28-2023 - v0.04 🍬: fix Chrome, fix play store signin...
2 changes: 1 addition & 1 deletion Changelog/Changelog.txt.Osaka
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ A-Team Custom ChangeLog

#####################

🍬 December-17-2023 - v0.01 🍬: Initial Android 14 Rom Release...
🍬 December-27-2023 - v0.01 🍬: Initial Android 14 Rom Release...
8 changes: 5 additions & 3 deletions Moto-Common-Setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ echo ""
echo "A-Team Moto-Common Setup Script"
echo ""
echo ""
echo "Setup Version: 0.11"
echo "Setup Update: 12-22-2023"
echo "Setup Version: 0.12"
echo "Setup Update: 12-28-2023"
echo ""
echo ""
echo "Current Date: $date"
Expand Down Expand Up @@ -176,9 +176,11 @@ cp -r $A_TEAM_PACKAGE_LOCATION/device/motorola/A-Team device/motorola
sleep 5
echo "Copying A-Team Telegram Bot Folder To Rom Root..."
echo ""
echo "1/1..."
echo "1/2..."
echo ""
mkdir Telegram_Bots
echo "2/2..."
echo ""
cp -r $A_TEAM_PACKAGE_LOCATION/Telegram_Bots/* Telegram_Bots
sleep 5
## Patch CommonConfig.mk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
fetch="https://github.com/AOSPA/" />
<remote name="aospa-vendor"
fetch="https://github.com/ThankYouMario/" />
<!-- CLO -->
<remote name="clo-la"
fetch="https://git.codelinaro.org/clo/la"
sync-c="true"
sync-tags="false" />

<!-- Device Trees -->
<project path="device/motorola/common" name="android_device_motorola_common"
Expand Down Expand Up @@ -94,7 +99,6 @@
remote="moto-common" revision="master" />
<project path="device/motorola/okinawa" name="android_device_motorola_okinawa"
remote="moto-common" revision="14" />

<!-- Vendor Trees -->
<project path="vendor/motorola/common" name="android_vendor_motorola_common"
remote="moto-common" revision="14" />
Expand Down Expand Up @@ -177,8 +181,16 @@
remote="moto-common" revision="master" />
<project path="hardware/qcom/bootctrl" name="platform_hardware_qcom_bootctrl"
remote="moto-common" revision="master" />
<project path="hardware/samsung/nfc" name="platform_hardware_samsung_nfc"
remote="moto-common" revision="master" />
<project path="hardware/nxp/nfc" name="platform_hardware_nxp_nfc"
remote="moto-common" revision="14" />
<project path="hardware/st/nfc" name="platform_hardware_st_nfc"
remote="moto-common" revision="master" />
<project path="vendor/qcom/opensource/recovery-ext" name="platform_vendor_qcom_opensource_recovery-ext"
remote="moto-common" revision="master" />
<project remote="clo-la" name="platform/vendor/qcom-opensource/healthd-ext" path="vendor/qcom/opensource/healthd-ext" revision="18028fe2c6bb3ef65ccb90639e15b74132a28a50" upstream="refs/heads/android-core.lnx.13.0.r1-rel"/>

<!-- Misc -->
<project path="device/qcom/qssi" name="android_device_qcom_qssi"
remote="aospa" revision="uvite" />
Expand All @@ -194,6 +206,8 @@
remote="moto-common" revision="master" />
<project path="vendor/goodix" name="platform_vendor_goodix"
remote="moto-common" revision="master" />
<project path="vendor/egistec/interfaces" name="platform_vendor_egistec_interfaces"
remote="moto-common" revision="master" />
<project path="vendor/qcom/opensource/thermal-engine" name="platform_vendor_qcom_opensource_thermal-engine"
remote="moto-common" revision="master" />
<project path="vendor/qcom/opensource/thermal" name="platform_vendor_qcom_opensource_thermal"
Expand Down
3 changes: 3 additions & 0 deletions Moto-Common-Tools/Repo_Manifest_Creator_A14/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ Add fm Radio to manifest, update python script to newest, manifest formatting fi

—Release Updates v0.06 - 11-22-2023—
remove FM Radio since it's not ready yet for Android 14

—Release Updates v0.07 - 12-25-2023—
update against newest revision
3 changes: 3 additions & 0 deletions Setup-ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ add 3rd changelog location option that we hijack for custom changelogs...

—Release Updates v0.11—
add setup for copying bot folder...

—Release Updates v0.12—
add setup for copying bot message script...
71 changes: 71 additions & 0 deletions Telegram_Bots/Bot_Message.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/bash

#
# Copyright 2019-Present A-Team Digital Solutions
#
# A-Team Moto-Common Bot Message
#

expect - <<_END_EXPECT
spawn sudo ./Telegram_Bots/Telegram_Bot-$DEVICE_NAME.sh "
Hello A-Team Users,
A New Custom Rom Has Been Released On SourceForge📱👍😁
$ROM_ZIP_NAME $MAJOR_VERSION.$MINOR_VERSION | UNOFFICIAL
📱 Moto-Common Device Codename: $DEVICE_NAME
📅 Build Date: $BUILD_DATE
🔄 Android: $ANDROID_VERSION
📀 Build Type: $ROM_BUILD_TYPE
🔐 SeLinux: Permissive | Enforcing
📀 A-Team Version: $INTERNAL_VERSION
👨‍💻 Maintainer: @PizzaG
• Uses A-Team Custom Rom Installer
-Option To Disable Encryption
-Recovery Install
-Linux Install
-Windows Install
• Rom Installation
*WILL WIPE DATA*
-Flash Rom Zip From Recovery
OR
-Extract Rom Zip
-Run .sh file To Flash Device - Linux
OR
-Run .bat File To Flash Device - Windows
-After A-Team Installation Finishes In Rom,
Open Magisk Manager and Select Magisk Direct Install
-🥸Done!!👍😁
• Rom Download Link
- https://sourceforge.net/projects/a-team-rom-downloads/files/$DEVICE_NAME/$ROM_NAME.zip
• A-Team Changelog:
-$CHANGELOG
• Navigation Bar Spacing WorkAround
-Open Settings
-Select System
-Select Gestures
-Select Navigation Mode
-Select Gesture Navigation
-Select 3-Button Navigation
-Go Back To Home/Desktop
-NavBar Spacing Should Be Fixed Now
• Known Bugs:
-$BUGS
• Bug Tracker For Moto-Common Devices
- https://github.com/moto-common/bug_tracker
"
expect "Pass*"
send "$pass\r"
set timeout -1 ; # no timeout
expect eof
_END_EXPECT
17 changes: 11 additions & 6 deletions Telegram_Bots/Telegram_Bot-Amogus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@
#
# A-Team Moto-Common Telegram Notification Bot Addon
#
# Bot Version: 0.03"
# Bot Update Date: 12-22-2023"
# Bot Version: 0.05"
# Bot Update Date: 12-28-2023"
#


# Telegram Bot Variables - **User Adaptable**
export CHANNEL_ID=' '
export BOT_TOKEN=' '
export CHANNEL_ID_1=''
export CHANNEL_ID_2=''
export BOT_TOKEN=''


# Device Specific Thread Topic Variables - **User Adaptable**
export AMOGUS_THREAD_ID=' '
export AMOGUS_THREAD_ID_1=''


# if the first argument is "-h" for help.
Expand All @@ -41,4 +42,8 @@ fi
# send a POST request to Telegram's API
# The '-s' = "silent" mode
# redirect outputs to /dev/null
curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID" --data "message_thread_id=$AMOGUS_THREAD_ID" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot & get token to access the HTTP API.
curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID_1" --data "message_thread_id=$AMOGUS_THREAD_ID_1" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot and get token to access the HTTP API.

curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID_2" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot and get token to access the HTTP API.


18 changes: 12 additions & 6 deletions Telegram_Bots/Telegram_Bot-Borneo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@
#
# A-Team Moto-Common Telegram Notification Bot Addon
#
# Bot Version: 0.03"
# Bot Update Date: 12-22-2023"
# Bot Version: 0.05"
# Bot Update Date: 12-28-2023"
#


# Telegram Bot Variables - **User Adaptable**
export CHANNEL_ID=' '
export BOT_TOKEN=' '
export CHANNEL_ID_1=''
export CHANNEL_ID_2=''
export CHANNEL_ID_3=''
export BOT_TOKEN=''


# Device Specific Thread Topic Variables - **User Adaptable**
export BORNEO_THREAD_ID=' '
export BORNEO_THREAD_ID_1=''


# if the first argument is "-h" for help.
Expand All @@ -41,4 +43,8 @@ fi
# send a POST request to Telegram's API
# The '-s' = "silent" mode
# redirect outputs to /dev/null
curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID" --data "message_thread_id=$BORNEO_THREAD_ID" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot & get token to access the HTTP API.
curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID_1" --data "message_thread_id=$BORNEO_THREAD_ID_1" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot and get token to access the HTTP API.

curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID_2" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot and get token to access the HTTP API.

curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID_3" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot and get token to access the HTTP API.
15 changes: 9 additions & 6 deletions Telegram_Bots/Telegram_Bot-Guamna.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@
#
# A-Team Moto-Common Telegram Notification Bot Addon
#
# Bot Version: 0.03"
# Bot Update Date: 12-22-2023"
# Bot Version: 0.05"
# Bot Update Date: 12-28-2023"
#


# Telegram Bot Variables - **User Adaptable**
export CHANNEL_ID=' '
export BOT_TOKEN=' '
export CHANNEL_ID_1=''
export CHANNEL_ID_2=''
export BOT_TOKEN=''


# Device Specific Thread Topic Variables - **User Adaptable**
export GUAMNA_THREAD_ID=' '
export GUAMNA_THREAD_ID_1=''


# if the first argument is "-h" for help.
Expand All @@ -41,4 +42,6 @@ fi
# send a POST request to Telegram's API
# The '-s' = "silent" mode
# redirect outputs to /dev/null
curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID" --data "message_thread_id=$GUAMNA_THREAD_ID" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot & get token to access the HTTP API.
curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID_1" --data "message_thread_id=$GUAMNA_THREAD_ID_1" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot and get token to access the HTTP API.

curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID_2" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot and get token to access the HTTP API.
12 changes: 6 additions & 6 deletions Telegram_Bots/Telegram_Bot-Milanf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
#
# A-Team Moto-Common Telegram Notification Bot Addon
#
# Bot Version: 0.03"
# Bot Update Date: 12-22-2023"
# Bot Version: 0.05"
# Bot Update Date: 12-28-2023"
#


# Telegram Bot Variables - **User Adaptable**
export CHANNEL_ID=' '
export BOT_TOKEN=' '
export CHANNEL_ID=''
export BOT_TOKEN=''


# Device Specific Thread Topic Variables - **User Adaptable**
export MILANF_THREAD_ID=' '
export MILANF_THREAD_ID=''


# if the first argument is "-h" for help.
Expand All @@ -41,4 +41,4 @@ fi
# send a POST request to Telegram's API
# The '-s' = "silent" mode
# redirect outputs to /dev/null
curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID" --data "message_thread_id=$MILANF_THREAD_ID" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot & get token to access the HTTP API.
curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID" --data "message_thread_id=$MILANF_THREAD_ID" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot and get token to access the HTTP API.
12 changes: 6 additions & 6 deletions Telegram_Bots/Telegram_Bot-Osaka.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
#
# A-Team Moto-Common Telegram Notification Bot Addon
#
# Bot Version: 0.03"
# Bot Update Date: 12-22-2023"
# Bot Version: 0.05"
# Bot Update Date: 12-28-2023"
#


# Telegram Bot Variables - **User Adaptable**
export CHANNEL_ID=' '
export BOT_TOKEN=' '
export CHANNEL_ID=''
export BOT_TOKEN=''


# Device Specific Thread Topic Variables - **User Adaptable**
export OSAKA_THREAD_ID=' '
export OSAKA_THREAD_ID=''


# if the first argument is "-h" for help.
Expand All @@ -41,4 +41,4 @@ fi
# send a POST request to Telegram's API
# The '-s' = "silent" mode
# redirect outputs to /dev/null
curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID" --data "message_thread_id=$OSAKA_THREAD_ID" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot & get token to access the HTTP API.
curl -s --data "text=$1" --data "chat_id=$CHANNEL_ID" --data "message_thread_id=$OSAKA_THREAD_ID" 'https://api.telegram.org/bot'$BOT_TOKEN'/sendMessage' > /dev/null. follow instructions to create bot and get token to access the HTTP API.
Binary file added device/motorola/A-Team/Final_Zip/A-Team/tee.exe
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
@echo off

del /f Windows-log.txt
IF EXIST Windows_log.txt (
del Windows_log.txt
)

%~d0
cd %~dp0\A-Team

echo:
.\WINDOWS.bat | ../Tee-Object Windows_log.txt
cmd /c .\WINDOWS.bat 2>&1 | tee ../Windows_log.txt 2>&1



Loading

0 comments on commit 1128505

Please sign in to comment.