🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.mobile.android
1 messages
1 total messages Started by Maria Sophia Wed, 07 Oct 2026 05:41
Re: Eliminate Gemini from Android Phone?
#47
Author: Maria Sophia
Date: Wed, 07 Oct 2026 05:41
70 lines
4841 bytes
Carlos E. R. wrote:
>> But overall, my answer to Carlos' reasonable question is simply that ADB
>> exposes operations that the Android GUI may not expose, and lets us perform
>> them precisely, repeatedly, and on a specified user/profile.
> 
> Certainly. Just that not everybody is happy with such a powerful tool.

Hi Carlos,

I appreciate your questions, 'cuz Arno, for example, only complained that I 
used a figure of speech (thousands of times) that he objected to me using.

Anyway, adb is super powerful, and very useful, as I use it all day, every 
day. Just moments ago I had to use adb to fix my wife's PulseSMS which 
upgraded on Google Play to the latest version (which has advertisements!).
 adb install -d -r -i not.com.android.vending PulseSMS5.4.6.2816.apk

Normally that works because it does the following:
 -d means allow downgrades
 -r means replace w/o wiping out the data
 -i means say it's not coming from the Google Play Store 

Where adb allows me to check this information to make sure it stuck.
 adb shell dumpsys package xyz.klinker.messenger | findstr installerPackageName
  => installerPackageName=not.com.android.vending

But, apparently due to mismatches in versions, the downgrade kept crashing.
So I checked what the versions were using adb which is very useful to do.
 adb shell dumpsys package xyz.klinker.messenger | findstr "versionName versionCode"
  => versionCode=2816 minSdk=21 targetSdk=30
  => versionName=5.4.6.2816

But I had to check what SDK version her phone was set to (which is SDK 33)
 adb shell getprop ro.build.version.sdk
  => 33

And then I had to check which version the APK was set to NOT run on.
 aapt dump badging pulsesms_5.4.11.2831.apk | findstr /R "sdkVersion versionName versionCode"
  => package: name='xyz.klinker.messenger' versionCode='2831' 
  => versionName='5.4.11.2831' compileSdkVersion='30' compileSdkVersionCodename='11'
  => sdkVersion:'21'

It shouldn't have crashed, but it's probably a database schema mismatch.
Even though the database "appears" empty, adb shows me 26K messages.
 adb shell content query --uri content://sms/
Which is so huge, that I just got a quick summary of all 26K messages.
 adb shell content query --uri content://sms/ --projection _id
  => ... over twenty six thousand rows... 
  => ... ending with... 
  => Row: 26692 _id=34
  => Row: 26693 _id=33
  => Row: 26694 _id=32
  => Row: 26695 _id=31

So even though her PulseSMS downgrade can't read the database, it's there.
So, let's back up her pulseSMS sqlite database before I do anything else.
 adb backup -apk -shared -f pulsesms.ab xyz.klinker.messenger
 On the phone, it says:
 A full backup of all data to a connected desktop computer has been requested.
 Do you want to allow this to happen?
 If you wish to encrypt the full backup, enter a password below.
 => WARNING: adb backup is deprecated and may be removed in a future release
 => Now unlock your device and confirm the backup operation...
 On the phone, I tap the button "Back up my data"
 That takes a while, but the result should be all data allowed to be backed up.
  pulsesms.ab
 
It's still backing up but my point is that adb does everything we need!
-- 
On Usenet, kind-hearted experts combine their experiences to help others.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads