mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
added adb setup + uad setup (#592)
* added dev tools * added adb setup and uad setup * fix * Update core/tabs/applications-setup/android-debloat.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/android-debloat.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/android-debloat.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/android-debloat.sh Co-authored-by: Nyx <144965845+nnyyxxxx@users.noreply.github.com> * Update core/tabs/applications-setup/android-debloat.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update android-debloat.sh * Update android-debloat.sh --------- Co-authored-by: Adam Perkowski <adas1per@protonmail.com> Co-authored-by: Nyx <144965845+nnyyxxxx@users.noreply.github.com>
This commit is contained in:
parent
72eb865c63
commit
03ffe59b70
45
core/tabs/applications-setup/android-debloat.sh
Normal file
45
core/tabs/applications-setup/android-debloat.sh
Normal file
|
@ -0,0 +1,45 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
. ../common-script.sh
|
||||
|
||||
install_adb() {
|
||||
if ! command_exists adb ; then
|
||||
printf "%b\n" "${YELLOW}Installing ADB...${RC}."
|
||||
case "$PACKAGER" in
|
||||
apt-get|nala)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y android-sdk-platform-tools
|
||||
;;
|
||||
zypper)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install android-tools
|
||||
;;
|
||||
pacman)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm android-tools
|
||||
;;
|
||||
dnf)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y android-tools
|
||||
;;
|
||||
*)
|
||||
printf "%b\n" "${RED}Unsupported package manager: "$PACKAGER"${RC}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
else
|
||||
printf "%b\n" "${GREEN}ADB is already installed.${RC}"
|
||||
fi
|
||||
}
|
||||
|
||||
install_universal_android_debloater() {
|
||||
if ! command_exists uad; then
|
||||
printf "%b\n" "${YELLOW}Installing Universal Android Debloater...${RC}."
|
||||
curl -sSLo "${HOME}/uad" "https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/releases/download/v1.1.0/uad-ng-linux"
|
||||
"$ESCALATION_TOOL" chmod +x "${HOME}/uad"
|
||||
"$ESCALATION_TOOL" mv "${HOME}/uad" /usr/local/bin/uad
|
||||
else
|
||||
printf "%b\n" "${GREEN}Universal Android Debloater is already installed. Run 'uad' command to execute.${RC}"
|
||||
fi
|
||||
}
|
||||
|
||||
checkEnv
|
||||
checkEscalationTool
|
||||
install_adb
|
||||
install_universal_android_debloater
|
|
@ -43,6 +43,11 @@ name = "Alacritty"
|
|||
description = "Alacritty is a modern terminal emulator that comes with sensible defaults, but allows for extensive configuration. By integrating with other applications, rather than reimplementing their functionality, it manages to provide a flexible set of features with high performance. The supported platforms currently consist of BSD, Linux, macOS and Windows.\nThis command installs and condifures alacritty terminal emulator."
|
||||
script = "alacritty-setup.sh"
|
||||
|
||||
[[data]]
|
||||
name = "Android Debloater"
|
||||
description = "Universal Android Debloater (UAD) is a tool designed to help users remove bloatware and unnecessary pre-installed applications from Android devices, enhancing performance and user experience."
|
||||
script = "android-debloat.sh"
|
||||
|
||||
[[data]]
|
||||
name = "Bash Prompt"
|
||||
description = "The .bashrc file is a script that runs every time a new terminal session is started in Unix-like operating systems.\nIt is used to configure the shell session, set up aliases, define functions, and more, making the terminal easier to use and more powerful.\nThis command configures the key sections and functionalities defined in the .bashrc file from CTT's mybash repository.\nhttps://github.com/ChrisTitusTech/mybash"
|
||||
|
|
Loading…
Reference in New Issue
Block a user