[Thinkpad Tablet General] capaficionado:
View attachment 4811061

this is tb-debloater.

a simple script to free your device of bloatware.

DISCLAIMER

I am not held responsible for any damages that might occur when using this script.

Just because it worked for me doesn't mean it will work for everyone else. Use at your own risk!​

What is tb-debloater?

tb-debloater is a well documented script that will easily disable all the bloatware that your Lenovo tablet would come pre-installed with.

Things that you should know before using this script:

This is a personalised script to suit myself (YoMarshMellow).

The script is easily editable to suit your needs.

YoMarshMellow's script uninstalls 36 bloatware applications.

This script only was tested on TB-8504F, could work on other TB models.

Script tested on Android 8.1.0, could work on Android 7.x.x

Root is not required for this script, but a Windows PC is required with ADB drivers installed.

This is a batch script, so it will only work for Windows.

The script has a troubleshooter guide to help you find the solution to the problem if the script fails.

This script has an easy to use UI. Nothing to be confused about here.

I AM NOT RESPONSIBLE FOR ANY DAMAGES THAT MIGHT OCCUR.

Downloads:

tb-debloater: http://www.mediafire.com/file/m8st4vn7px8u101/tb-debloater.zip/file

All the drivers have already been provided for you in the script folder. However you can download from here if it is outdated:

platform-tools: https://developer.android.com/studio/releases/platform-tools

usb-driver: https://developer.android.com/studio/run/win-usb

universal adb drivers: https://adb.clockworkmod.com

How to install the drivers:

Due to a limitation on XDA I cannot list all of the images needed to guide the installation of the drivers.

However, you can visit the troubleshooter.html file located in the base directory of the script folder.

What you need to do to ensure the script will be successful:

Make sure you only have ONE device connected to your PC.

If you are logged into a Lenovo Account, log out.

This is because this uninstalls the Lenovo ID APK and all of it's services, rendering the account infomation on your device useless.

On your device, go to Settings > System > About device > Build number || tap it 7 times until you get a toast message saying "You are now a developer!"

Go to Settings homepage, Settings > System > Developer Options > USB Debugging || turn it on, accept RSA fingerprints if prompted.

Make sure you have ADB drivers and ADB clients in the same folder of this script.

Simply start the batch file by double-clicking it. If a command prompt window opens and then closes straight away then follow the steps below:

1. In File Explorer, go to the folder destination of this script.

2. Press Shift + Right Click in an empty space to open the tools menu, and click on 'Open Command Prompt window here' or 'Open PowerShell window here'

If you have opened Command Prompt (CMD), type in 'tb-debloat.bat' || sit back and relax as the script frees your device of bloatware...

If you have opened Windows PowerShell, type in '.\tb-debloat.bat' || sit back and relax as the script frees your device of bloatware...

NOTE: You will have to accept the RSA fingerprints that will be prompted on your tablet during the process. You cannot continue without pressing OK.

NOTE: If you see any errors on the script, it is likely that the app is not installed on your device at all or your computer has lost connection to your device.

3. After script, go to Settings > Apps & notifications > See all 'xx' apps || check that all the listed apps in script are either disabled, uninstalled or both.

If not, disable/uninstall them.

NOTE: This script only disables the applications due to root limitations. You will need to uninstall some manually after, some can only be disabled.

NOTE: Some system apps may show up as 'Not installed for this user'. Do not ignore this, the application is still enabled, but only for other users. You should disable them.

Visit the troubleshooter.html file if your script has failed.

What you need to know before editing the script:

You must do your research on the package files and check if it is safe to remove before adding them to this list.

For example, adding 'com.android.phone' to this list will cause the tablet for force crash and boot into the recovery menu with a warning.

The only way to get out of this looped error is to factory reset. I learnt this the hard way...

I recommend using Notepad++ but you can use any text editor you want, as long it can read batch files (the stock notepad.exe will work too).

I seriously wouldn't edit or remove any other command other than 'adb shell pm uninstall -k --user 0 <com.package.name>', doing so can render the script useless.

Any command you shouldn't edit will be neatly annotated for you in the batch script.

Commands in the script that you SHOULD NOT edit:

'cd assets'

'disclaimer.vbs'

'adb devices'

'rsa-fingerprint.vbs'

'endscript_msg.vbs'

'troubleshooter.html'

Any other command in the script are perfectly fine to edit. You just have to make sure that the command has to follow the form of 'adb shell pm uninstall -k --user 0 <com.package.name>'

Something went wrong? Device not booting?

Try booting into recovery by making sure the device is turned off and then holding POWER + VOLUME UP until you boot into the recovery screen.

In the recovery menu, navigate to the Wipe data option with the volume buttons, and select with the power button, confirm 'Yes'.

Note: This will revert the script too if you were not rooted in the first place.

Still not working?

If your device's firmware is totally messed up, you can reflash it with Lenovo's LMSA app on Windows, it's easy to use and a lifesaver.

However, you can't downgrade back to Nougat for rooting purposes because it only provides you with the latest firmware.

Download Lenovo LMSA application: https://support.lenovo.com/gb/en/downloads/ds101291

MOD EDIT: CONTENT REMOVED

Per the forum rules, using XDA to promote social media is not allowed: