Andy Burnelli
2023-04-01 17:24:31 UTC
How to use "local" adb wireless-debugging ladb to spoof a PC connection.
<Loading Image...> Local adb runs on Android
<Loading Image...> ladb eliminates the PC
The topic came up how to uninstall Google apps without being rooted
where the simplest solution is to delete them from Android using a PC.
*Remove Google Apps from Android?*
<https://groups.google.com/g/comp.mobile.android/c/7qLXTRuzHCU>
Where, one solution to that problem set is to use adb over Wi-Fi or
over USB between the Android phone and the PC (Windows, MacOS or Linux).
C:> adb shell
pm disable-user --user 0 com.package.name (disables named package)
pm enable --user 0 com.package.name (enables prior disabled package)
pm uninstall --user 0 com.package.name (wipes out package data/cache)
pm uninstall -k --user 0 com.package.name (keeps package data/cache)
cmd package install-existing com.package.name (re-installs package)
For example, this uninstalls for the non-root user these Google packages:
C:\> adb shell pm list packages | findstr /i com.google.android
C:\> adb shell pm uninstall --user 0 com.google.android.chrome
C:\> adb shell pm uninstall --user 0 com.google.android.youtube
C:\> adb shell pm uninstall --user 0 com.google.android.gm
C:\> adb shell pm uninstall --user 0 com.google.android.apps.maps
C:\> adb shell pm uninstall --user 0 com.android.vending
etc.
Perhaps after replacing the uninstalled apps with their FOSS replacements.
1. A far better YouTube FOSS replacement is *NewPipe* by Schabi
<https://newpipe.net/>
2. Chrome FOSS replacements are *Bromite*, *Chromium* or *Ungoogled Chromium*
<https://github.com/bromite/bromite/releases>
<https://www.bromite.org/chromium>
<https://github.com/ungoogled-software/ungoogled-chromium-android>
3. A Google Maps offline FOSS adjunct might be OSMAnd+ (aka OSMAND~)
<https://f-droid.org/en/packages/net.osmand.plus/>
4. A GMail FOSS MUA replacement might be FairEmail or Mozilla K-9 Mail
<https://email.faircode.eu/>
<https://k9mail.app/>
5. A far better Google Play Store FOSS replacement client is Aurora
<https://auroraoss.com/>
etc.
But some people don't have adb running on their PC (I'm not sure why as
adb provides sound and screen mirroring with use of the keyboard & mouse).
Others might not even have a PC.
Luckily, there is a "hack" that works, albeit it's a bit buggy in my
humble opinion - but it does work and it has been improving since
Android 9 where it relies on spoofing the wireless connection of a PC.
Local adb (ladb, by Tyler Nijmeh, aka tytydraco) uses "wireless debugging"
to put you at Android to a local adb shell prompt of "adb shell"
(without needing to establish a real connection of a PC via adb to Android).
<Loading Image...> App purchase N/A anonymously
<Loading Image...> Github LADB v2.2.1 build avail
<Loading Image...> Wireless debugging pairing code
<Loading Image...> LADB is a bit flaky at times
<Loading Image...> This is the debugging process
<Loading Image...> LADB will eventually work
Since I care greatly about interoperability between platforms, I've read
almost everything on the Internet about ladb, but most people have not.
Hence I will first warn you that it may seem like you can't get a bona-fide
free version of the APK if all you look at is the Google Play Store offering.
*LADB* Local ADB Shell by tytydraco (aka Tyler Nijmeh)
$3, ad free, requires gsf, 3.7star, 683 reviews, 10K+Downloads
<https://play.google.com/store/apps/details?id=com.draco.ladb>
While the code is FOSS, the developer has "made a side deal" with us that
he will provide the source but not a build of the APK, at least not directly.
<https://github.com/tytydraco/LADB>
If you read the XDA-Developers' thread authored by Tyler Nijmeh, you'll
see that he has provided a way to get it, for free, from Google Play Store,
but I won't say more about that here (you'll have to read what he says).
Of course, this being Android, you can certainly get it from the many
unofficial APK archives, but most of us shy away from them if possible.
<https://m.apkpure.com/local-adb-android-11/com.draco.ladb.free>
<https://aapks.com/apk/ladb/version/59594160/>
<https://drive.google.com/file/d/1PS_YONimWguXNkaHcJbFCyBhfXlIY7A7/view>
But often these are not timely builds (the latest release being v2.2.1).
And, given it's FOSS software, anyone can (and people do) build APKs.
<https://dlsharefile.com/file/2018065248>
<https://dlupload.com/FileDetail/2018065248>
But sometimes, as shown above, they make it hard to find the download.
Luckily, kind-hearted people make timely builds available such as this one.
<https://github.com/hyperio546/ladb-builds>
<https://github.com/hyperio546/ladb-builds/releases/tag/v2.2.1>
In summary, the official ladb can legitimately be obtained for free
by a variety of sanctioned & unsanctioned methods, which, since I happen
to know some of them, my kind-hearted soul wants others to benefit from
my hard-earned knowledge.
One bit of hard-earned experience, by the way, was learned because I
do not have a Google Account on my Android devices, and yet I have no
problem downloading, saving, installing & updating _free_ APKs without
ever needing to use the Google Play Store repository (I use a better
client to the exact same Google Play Store repository instead).
My point of view is that if you're intelligent, there will never
(or almost never for most people but never for me) be a need to pay
for software on any adult OS platform, whether it's Windows or Android.
However...
A minor problem I found out was you can't use anonymous accounts for
Google Play Store client payware, which has never, in all my years
using Android, stymied me but it's a point to note since many people
also have their no-rooted phones set up for privacy like I do
(which almost always means there is no Google Account set up on it).
<Loading Image...> Works better w/o Google
<Loading Image...> No need for a Google Account
<https://i.postimg.cc/cL55tfvF/ladb01.jpg> App purchase N/A anonymously
REFERENCES:
<https://www.androidpolice.com/2020/12/23/this-app-gives-you-a-local-adb-shell-no-need-for-root/>
<https://groups.google.com/g/comp.mobile.android/c/udGDxJVcvxo/m/V3Vs_sjXBQAJ>
<https://groups.google.com/g/comp.mobile.android/c/5-nzRG-xM4E/m/FORkwNFDCAAJ>
<https://www.xda-developers.com/debloat-your-phone-run-adb-shell-commands-no-root-no-pc/>
<https://forum.xda-developers.com/t/say-hello-to-ladb-a-local-adb-shell-without-needing-root-or-a-computer.4204855/>
<https://forum.xda-developers.com/t/psa-using-the-new-android-12-tile-for-developer-options-wireless-debugging-to-establish-adb-connection-over-wi-fi-without-usb.4469339/#post-87250539>
<https://krispitech.com/how-to-use-adb-command-on-your-smartphone-without-a-pc/>
For example, here are the krispitech instructions from that last URL.
a. After we open up LADB, bring the recent page to your smartphone.
b. Tap on the LADB icon at the top and enable split screen mode.
c. Then, tap on the settings application and open it at the bottom
in the split screen mode.
d. In the settings app, scroll down to the bottom and navigate
to developer options.
e. In developer options, scroll down and navigate for the
wireless debugging option.
f. By default the wireless debugging option is disabled.
Tap on the toggle next to it to enable the option.
g. Tap on the Wireless debugging option to open a new window
where we can find the Pair device with pairing code option.
h. Tap on Pair device with pairing code option to see the
pairing code, IP address, and port number.
i. Just type the WI-Fi pairing code on the LADB window in
the box where it says pairing code.
j. Next, type the port number in the LADB window.
The Port number is the number after the colon below the
IP address in the wireless debugging option and tap on
Okay in the LADB window.
<Loading Image...> Local adb runs on Android
<Loading Image...> ladb eliminates the PC
The topic came up how to uninstall Google apps without being rooted
where the simplest solution is to delete them from Android using a PC.
*Remove Google Apps from Android?*
<https://groups.google.com/g/comp.mobile.android/c/7qLXTRuzHCU>
Where, one solution to that problem set is to use adb over Wi-Fi or
over USB between the Android phone and the PC (Windows, MacOS or Linux).
C:> adb shell
pm disable-user --user 0 com.package.name (disables named package)
pm enable --user 0 com.package.name (enables prior disabled package)
pm uninstall --user 0 com.package.name (wipes out package data/cache)
pm uninstall -k --user 0 com.package.name (keeps package data/cache)
cmd package install-existing com.package.name (re-installs package)
For example, this uninstalls for the non-root user these Google packages:
C:\> adb shell pm list packages | findstr /i com.google.android
C:\> adb shell pm uninstall --user 0 com.google.android.chrome
C:\> adb shell pm uninstall --user 0 com.google.android.youtube
C:\> adb shell pm uninstall --user 0 com.google.android.gm
C:\> adb shell pm uninstall --user 0 com.google.android.apps.maps
C:\> adb shell pm uninstall --user 0 com.android.vending
etc.
Perhaps after replacing the uninstalled apps with their FOSS replacements.
1. A far better YouTube FOSS replacement is *NewPipe* by Schabi
<https://newpipe.net/>
2. Chrome FOSS replacements are *Bromite*, *Chromium* or *Ungoogled Chromium*
<https://github.com/bromite/bromite/releases>
<https://www.bromite.org/chromium>
<https://github.com/ungoogled-software/ungoogled-chromium-android>
3. A Google Maps offline FOSS adjunct might be OSMAnd+ (aka OSMAND~)
<https://f-droid.org/en/packages/net.osmand.plus/>
4. A GMail FOSS MUA replacement might be FairEmail or Mozilla K-9 Mail
<https://email.faircode.eu/>
<https://k9mail.app/>
5. A far better Google Play Store FOSS replacement client is Aurora
<https://auroraoss.com/>
etc.
But some people don't have adb running on their PC (I'm not sure why as
adb provides sound and screen mirroring with use of the keyboard & mouse).
Others might not even have a PC.
Luckily, there is a "hack" that works, albeit it's a bit buggy in my
humble opinion - but it does work and it has been improving since
Android 9 where it relies on spoofing the wireless connection of a PC.
Local adb (ladb, by Tyler Nijmeh, aka tytydraco) uses "wireless debugging"
to put you at Android to a local adb shell prompt of "adb shell"
(without needing to establish a real connection of a PC via adb to Android).
<Loading Image...> App purchase N/A anonymously
<Loading Image...> Github LADB v2.2.1 build avail
<Loading Image...> Wireless debugging pairing code
<Loading Image...> LADB is a bit flaky at times
<Loading Image...> This is the debugging process
<Loading Image...> LADB will eventually work
Since I care greatly about interoperability between platforms, I've read
almost everything on the Internet about ladb, but most people have not.
Hence I will first warn you that it may seem like you can't get a bona-fide
free version of the APK if all you look at is the Google Play Store offering.
*LADB* Local ADB Shell by tytydraco (aka Tyler Nijmeh)
$3, ad free, requires gsf, 3.7star, 683 reviews, 10K+Downloads
<https://play.google.com/store/apps/details?id=com.draco.ladb>
While the code is FOSS, the developer has "made a side deal" with us that
he will provide the source but not a build of the APK, at least not directly.
<https://github.com/tytydraco/LADB>
If you read the XDA-Developers' thread authored by Tyler Nijmeh, you'll
see that he has provided a way to get it, for free, from Google Play Store,
but I won't say more about that here (you'll have to read what he says).
Of course, this being Android, you can certainly get it from the many
unofficial APK archives, but most of us shy away from them if possible.
<https://m.apkpure.com/local-adb-android-11/com.draco.ladb.free>
<https://aapks.com/apk/ladb/version/59594160/>
<https://drive.google.com/file/d/1PS_YONimWguXNkaHcJbFCyBhfXlIY7A7/view>
But often these are not timely builds (the latest release being v2.2.1).
And, given it's FOSS software, anyone can (and people do) build APKs.
<https://dlsharefile.com/file/2018065248>
<https://dlupload.com/FileDetail/2018065248>
But sometimes, as shown above, they make it hard to find the download.
Luckily, kind-hearted people make timely builds available such as this one.
<https://github.com/hyperio546/ladb-builds>
<https://github.com/hyperio546/ladb-builds/releases/tag/v2.2.1>
In summary, the official ladb can legitimately be obtained for free
by a variety of sanctioned & unsanctioned methods, which, since I happen
to know some of them, my kind-hearted soul wants others to benefit from
my hard-earned knowledge.
One bit of hard-earned experience, by the way, was learned because I
do not have a Google Account on my Android devices, and yet I have no
problem downloading, saving, installing & updating _free_ APKs without
ever needing to use the Google Play Store repository (I use a better
client to the exact same Google Play Store repository instead).
My point of view is that if you're intelligent, there will never
(or almost never for most people but never for me) be a need to pay
for software on any adult OS platform, whether it's Windows or Android.
However...
A minor problem I found out was you can't use anonymous accounts for
Google Play Store client payware, which has never, in all my years
using Android, stymied me but it's a point to note since many people
also have their no-rooted phones set up for privacy like I do
(which almost always means there is no Google Account set up on it).
<Loading Image...> Works better w/o Google
<Loading Image...> No need for a Google Account
<https://i.postimg.cc/cL55tfvF/ladb01.jpg> App purchase N/A anonymously
REFERENCES:
<https://www.androidpolice.com/2020/12/23/this-app-gives-you-a-local-adb-shell-no-need-for-root/>
<https://groups.google.com/g/comp.mobile.android/c/udGDxJVcvxo/m/V3Vs_sjXBQAJ>
<https://groups.google.com/g/comp.mobile.android/c/5-nzRG-xM4E/m/FORkwNFDCAAJ>
<https://www.xda-developers.com/debloat-your-phone-run-adb-shell-commands-no-root-no-pc/>
<https://forum.xda-developers.com/t/say-hello-to-ladb-a-local-adb-shell-without-needing-root-or-a-computer.4204855/>
<https://forum.xda-developers.com/t/psa-using-the-new-android-12-tile-for-developer-options-wireless-debugging-to-establish-adb-connection-over-wi-fi-without-usb.4469339/#post-87250539>
<https://krispitech.com/how-to-use-adb-command-on-your-smartphone-without-a-pc/>
For example, here are the krispitech instructions from that last URL.
a. After we open up LADB, bring the recent page to your smartphone.
b. Tap on the LADB icon at the top and enable split screen mode.
c. Then, tap on the settings application and open it at the bottom
in the split screen mode.
d. In the settings app, scroll down to the bottom and navigate
to developer options.
e. In developer options, scroll down and navigate for the
wireless debugging option.
f. By default the wireless debugging option is disabled.
Tap on the toggle next to it to enable the option.
g. Tap on the Wireless debugging option to open a new window
where we can find the Pair device with pairing code option.
h. Tap on Pair device with pairing code option to see the
pairing code, IP address, and port number.
i. Just type the WI-Fi pairing code on the LADB window in
the box where it says pairing code.
j. Next, type the port number in the LADB window.
The Port number is the number after the colon below the
IP address in the wireless debugging option and tap on
Okay in the LADB window.
--
Posted out of the goodness of my heart to disseminate useful information
which, in this case, is to faithfully help others use ladb more easily.
Posted out of the goodness of my heart to disseminate useful information
which, in this case, is to faithfully help others use ladb more easily.