[Xperia Z3 Compact Q&A, Help & Troubleshooting] BobbyHenceMcGee:
Hey guys, to the best of my abilities I couldn't find a thread regarding this specific usage of ADB for the Xperia Z range so here I am!

With a little incite from the lovely gentleman that posted this thread I decided to expand on that knowledge to apply to any system app that bothers people.

First of all the disclaimer:

If you don't know what you're doing, do not try this.

If you screw your phone up then it's on you pal!

I am not responsible for things that you do, nor am I responsible for kicking your dog or killing your gold fish.

Anyway the worst possible case scenario would make you need to flash a new FTF using Androxyde Flash Tool, so no biggy :P

Prerequisites

Grab the basic ADB package from here

Or here (mirror)

Go to this thread and install the Universal ADB Drivers

If you need help installing the Universal ADB Drivers:

Go to that thread and ask for help.

Keep comments in this thread on topic please.

Unlock the developer options on your phone, by going to settings > about > tap the build number section about 10 times until it says "Congratulations you're a developer!"

Now go back to the main settings page, and open up the new Developer Options section.

Go down to Debugging tab and check "USB debugging"

Now connect your phone via USB connection to your computer

In this section anything with 'quotes' should be typed without quotes, the quotes are just there for readability.

Open CMD (admin privileges) CD to the location of the ADB.exe file you recently extracted (RIGHT?) and (with device connected with Debugging mode enabled via USB connection) type 'adb usb'.

That'll start ADB via usb connection mode.. For interests sake: to list all the ADB commands type 'adb help'

Once started adb in usb mode type 'adb shell' (that'll effectively open a direct terminal connection with your phone).

While inside the shell you can type 'pm' to list all the Package Manager commands.

Pretty simply really, but unless you have root don't bother trying to uninstall system apps... It won't work. Instead just use the 'block' command which effectively does the same thing except it doesn't remove it.

Basic commands I've been using:

pm - lists all commands available for use regarding the package manager built into ADB.

pm list packages -s - lists all system packages

pm list packages -s 'name' - lists system packages with a filter of 'name' (don't use quotes)

pm block 'packagename' - self explanatory

pm unblock 'packagename' - self explanatory

To try and find a specific package name that can't be found using the name filter (some are tricky believe me) use google to the best of your abilities, otherwise simply use very inaccurate filter search results such as listing all of the sony packages..

Ie.. pm list packages -s sony then take your sweet time trying to take a shot at which one it is (make sure to unblock the ones you block that aren't the one you were after)

After you've blocked the ones you were after, type exit

That'll launch you out of the adb shell, then type adb reboot

that will force the phone to reboot. ALL DONE!

If you need help then post in this thread, I'll do my best to help out but I have a life (now anyway) so I'm hoping some kind gents that browse this thread will help you when I'm busy :highfive:

Plus I have instant email notification turned on, so it's by far the fastest way to contact me :P

Best of luck guys: Keep in mind that if you aren't sure what a package does then please do your best to Google it and find out what it does before blocking it and blowing up Jupiter or destroying earth's orbit.

I kind of like Earth, it's been good to me! But if you block the wrong thing, always keep in mind you can simply UNBLOCK the package. So yeah..

Hit thanks if you're awesome! :D