-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Version bump (24.09) - Added "packagelist" file check before checking for custom launcher - Improved readability and consistency of scripts by replacing $args[1]/$1 with variable names with meaning $app/option throughout all scripts - Debloat script now requires an option to run instead of automatically debloating - Simplified/sped up PowerShell debloat script by formatting Debloat.txt instead of every string it outputs into the array - Formatting fixes - Created install script for all platforms that installs dependencies and adds Fire Tools to start/app menu - Updated Gapps README links - Added note about no affiliation with [Datastream33's Amazon Fire Toolbox](https://xdaforums.com/t/windows-linux-tool-fire-toolbox-v36-1.3889604/) to README - Updated scripts README with info about install script - Updated screenshot
- Loading branch information
Showing
13 changed files
with
156 additions
and
69 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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
## Updated main.py, requirements.txt, version, appinstaller.sh, appinstaller.ps1 08/21/2024 | ||
- Version bump (24.08) | ||
- Added Fire TV Channels (com.amazon.hedwig) to debloat list | ||
- Added space between changelog and "Updating: module" text during update process | ||
- Updated Packaging and Requests version in requirements.txt | ||
- Fixed update tool endlessly having updates available | ||
- LauncherHijack will now only be installed if you don't have it | ||
## Updated: appinstaller, debloat, install, main, version | Date: 09/15/2024 | ||
- Version bump (24.09) | ||
- Added "packagelist" file check before checking for custom launcher to reduce errors | ||
- Improved readability and consistency of scripts by replacing $args[1]/$1 variables with $app/option throughout all scripts | ||
- Debloat script now requires an option to run instead of automatically debloating | ||
- Simplified/sped up PowerShell debloat script by formatting Debloat.txt instead of every string it outputs into the array (to match Linux/macOS) | ||
- Formatting fixes | ||
- Created install script for all platforms that installs dependencies and adds Fire Tools to start/app menu |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Terms | ||
Fire-Tools does not provide you with any license for Google’s APKs included in the releases. Packages are included to provide a convenient way to sideload APKs to your device. Included apps are as follows: | ||
- [Google Play Store 40.6.28-23.apkm](https://www.apkmirror.com/apk/google-inc/google-play-store/google-play-store-40-6-28-release/google-play-store-40-6-28-23-0-pr-625422852-4-android-apk-download/) | ||
- [Google Play Services 24.13.19.apkm](https://www.apkmirror.com/apk/google-inc/google-play-services/google-play-services-24-13-19-release/google-play-services-24-13-19-040400-626168189-android-apk-download/) | ||
- [Google Play Store 42.6.23-23.apkm](https://www.apkmirror.com/apk/google-inc/google-play-store/google-play-store-42-6-23-release/google-play-store-42-6-23-23-0-pr-670678617-2-android-apk-download/) | ||
- [Google Play Services 24.35.30.apkm](https://www.apkmirror.com/apk/google-inc/google-play-services/google-play-services-24-35-30-release/google-play-services-24-35-30-040400-668017056-2-android-apk-download/) | ||
- [Google Services Framework 9-6957767.apk](https://www.apkmirror.com/apk/google-inc/google-services-framework/google-services-framework-9-6957767-release/google-services-framework-9-6957767-android-apk-download/) | ||
- [Google Services Framework 10-6494331.apk](https://www.apkmirror.com/apk/google-inc/google-services-framework/google-services-framework-10-6494331-release/google-services-framework-10-6494331-android-apk-download/) |
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 |
---|---|---|
@@ -1,25 +1,29 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Export Package List to Compare After Installation | ||
# Set Variables & Export Package List | ||
app="$1" | ||
option="$2" | ||
adb shell pm list packages -3 > packagelist | ||
|
||
# Change Application Installation Method Based on Filetype | ||
printf "%s\n" "Installing: $1" | ||
case "$1" in | ||
printf "%s\n" "Installing: $app" | ||
case "$app" in | ||
*.apk) | ||
adb install -g "$1" >/dev/null 2>&1;; | ||
adb install -g "$app" >/dev/null 2>&1;; | ||
*.apkm) | ||
unzip "$1" -d ./Split >/dev/null | ||
unzip "$app" -d ./Split >/dev/null | ||
adb install-multiple -r -g ./Split/*.apk >/dev/null 2>&1 | ||
rm -rf ./Split;; | ||
esac | ||
[ "$?" = 0 ] && printf "%s\n\n" "Success" || printf "%s\n\n" "Fail" | ||
|
||
# Grant Launcher Appwidget Permission & Attempt to Disable Fire Launcher. If Failed, Install LauncherHijack | ||
if [ "$2" = "Launcher" ]; then | ||
if [ "$option" = "Launcher" ]; then | ||
adb shell pm list packages -3 > packagelist.new | ||
launcher=$(diff packagelist* | grep -E -o "[a-z0-9]*(\.[a-z0-9]+)+[a-z0-9]") | ||
[ -n "$launcher" ] && adb shell appwidget grantbind --package "$launcher" | ||
if [ -s packagelist ]; then | ||
launcher=$(diff packagelist* | grep -E -o "[a-z0-9]*(\.[a-z0-9]+)+[a-z0-9]") | ||
[ -n "$launcher" ] && adb shell appwidget grantbind --package "$launcher" | ||
fi | ||
adb shell pm disable-user -k com.amazon.firelauncher >/dev/null 2>&1 || | ||
grep -q "com.baronkiko.launcherhijack" ./packagelist || ./Scripts/Posix/appinstaller.sh LauncherHijackV403.apk | ||
fi |
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
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,42 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Install Brew Without Interaction | ||
install_brew() { | ||
yes | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
(echo; echo "eval \"\$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)\"") >> "$HOME/.bashrc" | ||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | ||
} | ||
|
||
# Download & Unzip Fire Tools | ||
curl -LO https://github.com/mrhaydendp/fire-tools/releases/latest/download/Fire-Tools.zip | ||
unzip -o Fire-Tools.zip -d "$HOME" | ||
rm Fire-Tools.zip | ||
|
||
# Install Dependencies with Respective Package Manager | ||
if [ -f /etc/os-release ]; then | ||
. /etc/os-release | ||
case "$ID_LIKE" in | ||
*debian*) | ||
sudo apt install -y adb python3 python3-tk python3-pip;; | ||
*arch*) | ||
sudo pacman -S --noconfirm android-tools tk python-pip;; | ||
*fedora*) | ||
sudo dnf install -y android-tools python3-tkinter python3-pip;; | ||
*) | ||
echo "Unknown/Unsupported OS" | ||
exit 1;; | ||
esac | ||
else | ||
command -v brew >/dev/null 2>&1 || install_brew | ||
yes | brew install android-platform-tools python-tk | ||
fi | ||
|
||
# Download Latest Requirements File & Install with Pip | ||
curl -L "https://raw.githubusercontent.com/mrhaydendp/Fire-Tools/main/Fire-Tools/requirements.txt" -o "$HOME/Fire-Tools/requirements.txt" | ||
pip install -r "$HOME/Fire-Tools/requirements.txt" | ||
|
||
# Create .Desktop File | ||
if [ -d "$HOME/.local/share/applications" ]; then | ||
printf "[Desktop Entry]\nName=Fire Tools\nExec=python3 %s/Fire-Tools/main.py\nTerminal=true\nType=Application\nCategories=Utility" "$HOME" > "$HOME/.local/share/applications/Fire-Tools.desktop" | ||
chmod +x "$HOME/.local/share/applications/Fire-Tools.desktop" | ||
fi |
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
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
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,37 @@ | ||
# Download, Extract to AppData\Roaming, then Delete Fire-Tools.zip | ||
Start-BitsTransfer -Source "https://github.com/mrhaydendp/fire-tools/releases/latest/download/Fire-Tools.zip" | ||
Expand-Archive -Path .\Fire-Tools.zip -Destination "$env:APPDATA" -Force | ||
Remove-Item -Path .\Fire-Tools.zip | ||
|
||
# Add Shortcut to Start Menu | ||
$WshShell = New-Object -COMObject WScript.Shell | ||
$Shortcut = $WshShell.CreateShortcut("$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Fire Tools.lnk") | ||
$Shortcut.TargetPath = "$env:APPDATA\Fire-Tools\main.py" | ||
$Shortcut.WorkingDirectory = "$env:APPDATA\Fire-Tools" | ||
$Shortcut.Save() | ||
|
||
# Check / Install Python & Requirements | ||
if (!(Select-String -Pattern "Python" -InputObject "$env:PATH" -Quiet)) { | ||
if (Get-Command winget) { | ||
winget install -s winget "Python.Python.3.12" --force | ||
} else { | ||
# Find Latest Python Version by Scraping Page & Install | ||
$latest = (Invoke-WebRequest -Uri "https://www.python.org/downloads/").Links.href -like "*.exe" | ||
Start-BitsTransfer -Source "$latest" -Destination .\python-latest.exe | ||
.\python-latest.exe /passive PrependPath=1 | ||
while (!(Get-Package -Name "*Python*" -ErrorAction SilentlyContinue)) {} | ||
Remove-Item -Path .\python-latest.exe | ||
} | ||
Start-BitsTransfer -Source "https://raw.githubusercontent.com/mrhaydendp/Fire-Tools/main/Fire-Tools/requirements.txt" -Destination "$env:APPDATA\Fire-Tools" | ||
pip install -r "$env:APPDATA\Fire-Tools\requirements.txt" | ||
} | ||
|
||
# Check / Install ADB (Download, Extract, Backup & Set Environment Variable) | ||
if (!(Select-String -Pattern "platform-tools" -InputObject "$env:PATH" -Quiet)) { | ||
Start-BitsTransfer -Source "https://dl.google.com/android/repository/platform-tools-latest-windows.zip" | ||
Expand-Archive -Path .\platform-tools-latest-windows.zip -Destination "$HOME" -Force | ||
Remove-Item -Path .\platform-tools-latest-windows.zip | ||
[Environment]::SetEnvironmentVariable("PATH_BACKUP","$env:PATH","User") | ||
Set-Item -Path Env:\PATH -Value ("$env:PATH;$HOME\platform-tools") | ||
[Environment]::SetEnvironmentVariable("Path","$env:PATH","User") | ||
} |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
## Scripts | ||
Backend scripts that make the tool function: | ||
- Debloat: Handles debloat/undo function & accepts input to disable/enable selected packages. | ||
- Debloat: Handles debloat/undo functions & accepts input to disable/enable selected packages. | ||
- AppInstaller: Handles app installations of multiple file types (.apk/.apkm) & sets launcher specific options. | ||
- Identify: Identifies device name by using model number & Amazon developer page. | ||
- Identify: Identifies device name by using model number & matching with [Amazon developer page](https://developer.amazon.com/docs/fire-tablets/ft-identifying-tablet-devices.html). | ||
- Install: Downloads and sets up required dependencies for Fire Tools & adds it to start/app menu |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
24.08 | ||
24.09 |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.