Uninstalling Android Apps via ADB

For decades, PC makers like Dell, HP and Lenovo have allowed third-parties to install trials and demos on new PCs. It’s all about money: the margin on most consumer computers is razor-thin… so if Symantec is willing to pay an OEM $5 per PC to install a Norton Antivirus trial, most PC builders are only happy to oblige. While an annoyance, this isn’t a big deal. After all, most of the time it’s easy to uninstall this junk, or wipe the hard drive and install a fresh copy of Windows without the bloat.

But it’s much more difficult to get rid of this sort of thing on smartphones. In some cases (looking at you, Facebook), you can’t really uninstall the software; the best you can do is disable it. But sometimes you can’t even do that. This is especially irritating since phones tend to have much less storage than a PC, and resetting your phone only brings all those apps back, with no way to uninstall them.

Or is there?

You can use ADB to uninstall most any app on your phone. It requires a couple of apps and some command-prompt work… but it can be done.

But before we get into the how of it, it’s important to know what you can uninstall. To be honest, I played around with alternate ROMs and rooting and all that stuff, but it’s been several years. But back then, the “rules” were this:

1) If the app you want to uninstall was available on the Google Play store, you can absolutely delete it… because you can always reinstall it from the store if need be.

2) Some apps – like the built-in email, calendar and SMS apps – should be left alone or, at most, disabled. This is because some third-party apps use parts of the default apps, and by uninstalling them, you can break the third-party app. Here’s a weird example: I owned a phone where the Samsung SMS app controlled the settings for Amber (and other) alerts. Since I prefer Google’s SMS app, I deleted the Samsung SMS app from my phone without thinking, and thus could no longer control those types of messages. I looked hither and yon on the Internet for a legit version of the original Samsung SMS app, but couldn’t find it. Thus, in order to get the app back I’d have to reset the phone and start all over again.

3) Lastly, if you don’t know what an app does, leave it alone. Deleting “Facebook” or “Google Slides” or “Dropbox” is a no-brainer; deleting “Android Services Library” is just asking for trouble.

So, having said that… how do you delete this junk off your phone?

The first thing you need is to download and install an app called App Inspector from the Play Store (be sure to get the linked one, by a company called Projectoria, not the identically named one by a company called UBQsoft).

Once installed, open it; it will scan all the apps on your phone. Tap each app you want to uninstall and note the “package name”:

App Inspector Chrome
(click to embiggen)

So, the package name for Chrome is com.android.chrome. Scroll through App Inspector and get the package names for the apps you want to uninstall.

Once you have a list of what you want to uninstall, you need to enable Developer Mode on your phone if it hasn’t been enabled already. To do this, go to Settings > System > About Phone. Rapidly tap “Build Number” 7 times – you’ll know you’re getting close when your phone starts saying “only 4 more taps to developer mode”.

The next step is to install Android Debug Bridge, commonly known as ADB. If you’re running most any version of Windows, you can watch this video for the complete how-to:

Here’s the webpage mentioned in the video, with written directions and the ADB link.

One last prep step on your phone: enable USB debugging. Go to Settings > System > Developer Options and enable USB debugging. BE SURE to turn this option OFF when you’re done.

So… you finally ready to uninstall this junk? Cool! Connect a USB cable to your computer, then connect your phone to the cable. The first time you do this you will probably have to wait a few seconds while Windows installs the driver for your phone. You will also get a prompt on your phone asking if you want to allow USB debugging. Tap “Always allow from this computer” (if you wish), then tap “OK”:

Allow USB Debugging

If you don’t see this prompt, check the notification area. If you still don’t see it, disconnect and reconnect your phone a couple times until you do.

Now, open a command-prompt in your ADB directory. In the YouTube video this was C:\ADB; on my computer it’s C:\Program Files (x86)\Minimal ADB and Fastboot. Once the command-prompt is open, type ADB shell. You should get a different prompt, like this:

ADB Uninstall 01

Type the following at the prompt EXACTLY as shown below:

pm uninstall -k --user 0 [package name]

then press ENTER. So, like this:

ADB Uninstall 02

You should get a SUCCESS message if the removal was successful. The above pic is from me trying to remove the Kindle Special Offers app from an Amazon tablet.

Here’s the command-prompt from when I (successfully) deleted a bunch of junk off my old Samsung phone:

ADB Uninstall 03

Note that in this case, instead of entering ADB Shell and typing the uninstall commands, I did both at the same time… which is something you can do if you prefer:

adb shell pm uninstall -k --user 0 [package name]

If you’re curious, the apps I uninstalled are (from top to bottom):

– the Samsung web browser

– Google Docs

– Google Duo

– Facebook

– Samsung App Store

– Google Play Movies & TV

– Samsung SMS app

– a Tracfone downloader (which allows you to download the service-specific app, like Total Wireless or Straight Talk)

– Google Photos

When you’re done, just unplug your phone from your computer, close the command-prompt on your PC, then turn USB debugging OFF on your phone. I always reboot for good measure, but this isn’t 100% required.

I finally left Virgin Mobile!

Ah, the ZTE Max XL… the phone they should have named the “ZTE Max RD”, ‘cos you need to reboot it daily! Gather ‘round children, and let me tell you the story of the phone that was so bad it finally made me quit Virgin Mobile!

I got the ZTE Max XL last Christmas. And it seemed pretty awesome at the time – a Qualcomm Snapdragon 435 octa-core processor, a 6” 1080×1920 screen, a 13 MP camera, a 3990 mAh battery, a fingerprint sensor on the back, all wrapped up in some Nougat 7.1 deliciousness! And the thing was only $125 on Virgin’s site! Sounds killer, right? What’s not to like?

ZTE Max XL
(pic via Virgin Mobile)

Well, plenty.

For one thing, the screen is glitchy. Do you remember when a VGA cable would get loose or start to die, and if you brushed against it with your foot, you’d get weird streaks or other artifacts on the screen for a second or two? Yeah, the ZTE Max would often do that when playing YouTube videos, or when I’d play my slot machine games. It wasn’t especially bad – maybe 1 or 2 very short glitches during 30 minutes of game play or video watching – but it was certainly enough to make me worry.

And speaking of “worry”, the entire time I owned this phone I worried constantly about the battery. I’ve never owned a device that ate battery quite like this phone. After charging overnight on my nightstand, I’d wake up, unplug it and spend 15 minutes or so checking my email, catching up on headlines, and seeing what was going on with Reddit. And it wasn’t uncommon for that short usage to drain the phone to 92% or so. Yes, the phone used 8% of a charge just by using Outlook for Android, Google News and Weather and Relay for Reddit for 15 minutes. But that’s better than what I got doing chores: I like listening to music while doing dishes, and 35 minutes of Spotify + Bluetooth headphones could easily eat 20% of a charge. It got to the point where I’d eat dinner and let the phone charge back up to 100%. Then I’d do the dishes, only to watch the battery drain from 100% to 79% in a mere 35-45 minutes. It also didn’t help that the phone had the battery percentage RIGHT THERE on the notification bar, with no obvious way to disable that feature. It was almost like it was taunting me: “You want to listen to the new Sylvan Esso album? Hahaha! That’ll cost you 10% of this charge!”

You might have noticed I said “Outlook for Android” in the previous paragraph. That’s because almost anything Google-related on the ZTE Max did not work once the phone reached a certain amount of uptime.

Continue reading “I finally left Virgin Mobile!”

NICE SERVICE: USPS Informed Delivery

To me, one of the “genius” things about technology is when it fixes a problem you didn’t even know you had. Several years ago, my cable company started offering an Android app that lets you schedule DVR recordings remotely. That might sound kinda pointless at first, but I never realized how often I’d be outside my home – at a family gathering, or at the pub with friends – and someone would mention a show they thought we might be interested in. With the app, I can just whip out my phone, and with a few taps set up a recording. Or – and I know this has happened to most guys at least a few times – you’d be out running  few errands with the missus before a big football game… the one that she promised you’d be home in time to watch. But you’re running behind, and there’s no way you’ll make it home before kickoff. No worries – just use the app to record the game, and marital bliss continues!

Well, there’s a free service from the United States Post Office that’s the same level of genius: it’s called Informed Delivery. Once you sign up for the service, you’ll start receiving daily emails that contain scans of the mail that will be delivered to your home that day (if you don’t want emails, you can log in to the USPS site, or use the Android or iOS app). Here’s a screen cap from their website:

USPS Informed Delivery
(click to enlarge)

Informed Delivery also automatically keeps track of packages headed to your home, and you can use the service to leave directions for the driver (“leave at neighbor’s house”, if you’ll be out of town, for example). You can also use it to reschedule delivery of any missed packages.

There are a few caveats, though. Informed Delivery only tracks “letter-sized” items; it only scans larger items like magazines and catalogs if the sender pays extra for it (and few do). It also only scans mail with your name on it (letters addressed to “Resident” or “Occupant” aren’t scanned). It also doesn’t scan the weekly bundles of ads, like the Red Plum ads we get every week. And while package tracking is automatic, it’s only for packages with a USPS tracking number or Indicia ID; packages from overseas, for instance, aren’t tracked. On the plus side, creating an Informed Delivery account also creates a regular USPS account in your name too, so if you’ve been meaning to set up a USPS account to buy stamps or set up online shipping, you now have one more reason to do so.

In any case, Informed Delivery won’t change your life, but it does make things just a tiny bit easier. For one thing, I live in a townhome that has a “community mailbox”. If I don’t get the daily email from the USPS, I know there’s no mail, so no need to walk to the mailbox. And there have been times (when I had a horrible cold, for one) where I saw that that day’s mail was mostly junk, so skipped getting it that day. And there was one time recently where my missus was looking for something important in the mail, and it was late… to the point where she was thinking of calling the company. I saw what looked like the item in my daily USPS email and forwarded it to her – she was relieved that the item had arrived, and wouldn’t have to spend an hour on hold with the company.

Lastly, let me address (hah!) one thing. I learned about Informed Delivery from one of the message boards I frequent. It seemed like half the posters thought the idea was cool, while the other half thought it was crazy to opt into, since “Homeland Security will know what mail I’m getting!”

Well, first of all, if you’re the type of person who would be of interest to Homeland Security, they’re probably already looking at your mail anyway. Secondly, while I don’t know this for a fact, I’d be surprised if the USPS wasn’t already scanning the mail anyway. The USPS has been scanning the mail for ages – you didn’t think the post office sorted 506 million pieces of mail every day by hand, did you? In other words, I think with Informed Delivery you’re just getting access to the scanned images they already use internally; it’s not like they’re only scanning the mail of Informed Delivery users.

At least, I’m 99.2% sure that’s the case.

Moving Pidgin’s Settings

I’m thinking about buying a new desktop computer during the upcoming Black Friday sales. Because of this, I’ve been thinking about moving my data from one computer to another. Most of my really important things are already backed up to an external hard drive every morning, or are kept in my OneDrive folder (or both).

One exception to this are my Pidgin logs and settings. Pidgin is a multi-protocol chat application. I use it to connect to private instant messaging servers I’ve set up at my client sites, so employees can message me when they need help. I often refer to Pidgin’s chat logs for billing purposes, or for troubleshooting, or even for covering my butt when things go sideways. Thing is, though, all of Pidgin’s settings (including the logs) are contained in an AppData folder; that location is hardcoded in the app and can’t be changed. But you can use symlinks to move the folder wherever you want:

1) Completely shut down Pidgin.

2) Go to C:\Users\[username]\AppData\Roaming and cut the .purple folder (substituting the appropriate username, obviously).

3) Paste the .purple folder wherever you’d like. I used a “Pidgin” folder I created in my Documents folder. So Documents > Pidgin > .purple.

4) Open an elevated command-prompt, type the following command on one line, replacing username with your username, and press ENTER when you’re sure it’s been entered correctly:

mklink /D "C:\Users\username\AppData\Roaming\.purple" "C:\Users\username\OneDrive\Documents\Pidgin\.purple"

The above command (mklink) creates (/D) a symlink in my AppData\Roaming folder called .purple, which points to a folder (also called .purple) in a folder called Pidgin in my Documents folder. Exit the command-prompt when done.

After running this command, all of your Pidgin settings and chat logs will be in your documents folder, but Pidgin will think they’re still in the original location. In my case, the Pidgin data files also be copied to my OneDrive cloud. Since you can create a link anywhere on your drive you want, you could just as easily create a link in your Dropbox or Google Drive folders instead.

The “Random Command Prompt Flash” Issue

If you’re using Windows 10 and Office 365, you might have noticed a strange issue: for the past six weeks or so, some users have reported command-prompt windows popping up for a fraction of a second, seemingly at random. This issue may affect computers running Windows 7 or 8.x and\or Office 2016, but so far I have only seen the issue on computers running Windows 10 and Office 365.

I noticed the issue on my own computer a couple weeks ago, after the latest Office 365 update. But the random command-prompt pop-ups didn’t happen immediately after the update, so I failed to connect the two. At first, I thought it might be some kind of malware, so ran scans using multiple products… which came back clean. I checked Event Viewer, but there were no obvious issues there. I looked at Task Scheduler, but nothing appeared to be amiss there, either.

Stumped, I downloaded and installed Open Broadcaster Software (OBS), an open source video capture tool. I closed all open apps, except for a single Chrome window, which I left open on a maximized nearly blank page. I set OBS to record my screen for two hours and walked away. I returned later and played the video back on my second monitor in VLC, with the playback speed cranked up to 4x. Sure enough, I eventually saw the command-prompt flash:

Office Handler window

If you can’t make out what title bar says, it’s

C:\Program Files (x86)\Microsoft Office\root\Office16\officebackgroundtaskhandler.exe

If you’re having this issue, you should be able to make the pop-up happen any time you want to by opening Task Scheduler and going to Library > Microsoft > Office, right-clicking on

OfficeBackgroundTaskHandlerRegistration

and choosing “Run”.

I don’t know how to “fix” this issue, and I assume Microsoft will address it in an upcoming Office 365 update. However, there is a workaround to prevent that damn command-prompt window from popping-up: right-click on the task and choose “Properties”. Click the “Change User or Group” button and change the user from “Users” to “System”. It’s not the most elegant solution (especially from a security perspective), but it works.

Outlook 2016’s “Unsafe Rules”

Microsoft Outlook has a robust system of rules that you can use to move, copy, delete (or alert you) when you receive an email based on a number of conditions.

One option I use quite a bit is “when I receive an email with x in the subject line, run a script”. Here’s why: I have an app that downloads files to a specific folder that cannot be changed. When the downloads are complete, I want to move those file(s) to a shared network folder. So I have Outlook set up to where if I send an email to myself with a certain string of letters and numbers, a script runs that moves the file(s) from one folder to the other (I often want to do this while away from the computer, hence the need for the Outlook rule and script).

However, it would appear that December’s updates for Office 365 removed the “run a script” option from the rules, along with a couple other “unsafe rules”. Thankfully, it appears that Microsoft didn’t remove the options, it just hid them. If, like me, you use the “run a script” option, here’s how you can re-enable it:

  1. Close Outlook, if running.
  2. Open Regedit.
  3. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Security 
  4. Right-click on an empty space in the right pane and choose New > DWORD Value. Name the new value EnableUnsafeClientMailRules and set its value to 1.
  5. Close Regedit; open Outlook.

At this point, go to the “Rules & Alerts” applet. You should see that the “(error)” message next to any existing “run a script” rules is gone, although you might have to check the box to actually enable the rule again.

A Virgin Mobile Tip

Whether you’re considering becoming a Virgin Mobile customer, or if you’re an existing customer looking to upgrade your phone, consider looking at Virgin Mobile phones on Amazon first.

I bought a Samsung Galaxy Ring back in 2014. I hated it: it locked up, rebooted, and stock apps crashed all the time. Virgin Mobile replaced it four times, but after the last time I said enough was enough.

I bought an LG Tribute ($79.99 on Virgin’s site) as a temporary fix until I could switch carriers, or until Virgin got some better phones. But I ended up liking the Tribute. It had an awful camera and a mere 4GB of space, of which only 1.1GB was available to the user. But other than that, the phone just worked. It never once locked-up or rebooted, and was generally everything you could hope for in a $79.99 Android phone.

But then my girlfriend accidentally dropped it in a parking lot, creating a huge crack in the screen. She offered to buy me a new one, so I thought I’d check Amazon to see if they had a better deal. They did: $39.95!

I got the upgrade bug in December 2015 and saw that Virgin had the LG Stylo. But it was $199… not super expensive, but a bit too much for an impulse buy, especially at Christmas. I checked Amazon and saw that it was $109.99. Toss in a $25 Amazon gift card I’d gotten and the total dropped to $85.99 – 58% less than Virgin was selling it for.

A couple weeks ago I was running some errands and the Stylo’s screen starting acting weird. It was “wavy”, like an LCD monitor with a bad capacitor. Amazon to the rescue again: the LG Stylo 2 – $179.99 on Virgin Mobile’s site – was only $69.95 at Amazon! That’s 61% less than Virgin Mobile’s price! (Virgin has since put the phone on Black Friday sale for $129.99 while Amazon has raised their price to $99, so it’s not nearly the deal it once was.)

If you’re wondering, all the phones I’ve purchased from Amazon have been brand new in sealed Virgin retail packaging. Virgin does have refurbished phones they send as warranty replacements. These come in generic white boxes with no graphics. The Amazon phones are not refurbs.

Also, these kind of deals don’t last long, so you have to move quickly. These deals mostly apply to Virgin’s middle-of-the-road ($129-$249) phones. You won’t see Virgin Mobile iPhones or Samsung Galaxy S phones with such discounts. You can find Virgin’s low-end phones on Amazon, but there won’t be much of a discount: the Alcatel DAWN is currently on sale for $39.99 on Virgin’s site but $74.80 at Amazon (a slight discount off Virgin’s regular $79.99 price).

Exporting LG’s Quick Memos

Many LG phones come with Quick Memo, a pre-installed note taking app. It’s not as good as OneNote or Evernote, but since it can’t be uninstalled, I thought I’d give it a try rather than waste precious storage space on duplicate apps. Come to find out, it handles my basic note-taking needs pretty well.

One downside, however, is that there’s no Quick Memo app for Windows. Thus, you can long-press on a note to share it with yourself (or others) via Gmail, but once you save the attachment, there’s no way to open it on your desktop or laptop. Nice.

However, after futzing with a sample file for a while, I found that the exported LQM files are just zip files, and can be opened with most compression apps. I’m a big fan of WinRAR, so here’s what a note looks like when opened in that app:

Quick Memo

As you might guess, any audio or video files saved in a memo will be located in their respective folders. Image files are saved in the “Images” folder, while text (or drawings) captured by stylus input will be saved in the “Drawings” folder:

Quick Memo Drawing

If you’d like, you can right-click an LQM file in Windows and choose Open With > WinRAR and check the “Always use this app to open these files” box to have Windows always use WinRAR (or WinZip or 7-Zip) to open the Quick Memo files.

Open a Command Prompt from File Explorer

Most power users know this already, but I’ve noticed that a surprising number of “Average Joes” do not: if you’re using File Explorer (or Windows Explorer, as it’s known in older versions of Windows) and you want to open a command prompt at that particular location, all you have to do is type CMD+Enter in the address bar:

cmd_shortcut_01
File Explorer, open at C:\adb

 

cmd_shortcut_02
Type CMD in the address bar and press ENTER.

 

cmd_shortcut_03
Command Prompt opens to the current folder

Thanks, Spotify!

One of the big draws of Spotify Premium is that the service allows you to download music for offline listening. So if you’re going somewhere where LTE or Wi-Fi might not be available (camping) or might be expensive or slow (most airports and flights), you can save tunes to your device and listen offline. Hell, even if LTE or Wi-Fi is available, you might want to download a song anyway: if you’re one of those people who plays a track on repeat, it’s better to download a song once over Wi-Fi than use your precious data to download the same bits over and over again.

Spotify Premium allows you to download music to (up to) 3 devices. Like most software with such limits, you can log in to your account and revoke permissions for a device… in case one of your devices is lost, stolen or broken and you order a replacement. But Spotify’s UI isn’t that helpful:

Spotify WTF

I have Spotify installed on an LG G Stylo (phone), Asus ZenPad (tablet) and Amazon Fire (tablet). But I can’t tell which device is which, because Spotify’s programmers can’t be bothered to add a few lines of code to their app.

Thanks, Spotify!