How do I delete preinstalled apps on an android? - root

I am trying to delete preinstalled applications on my HTC phone. I have tried to root my phone but was not very successful.
Ty

Disabling is one way. For example Motorola enables them every update.
You can also remove them completely using adb:
Install adb if you do not already have it, https://developer.android.com/studio/command-line/adb
Enable developer mode, usually by going to settings > system > about phone > and repeatedly clicking build number
Configure your phone in debug mode, usually settings > systems > developer options > USB debugging
Start a console and put adb in your path
List your packages using: adb shell pm list package -f
Remove the package using: adb shell pm uninstall --user 0
Example:
adb shell pm uninstall --user 0 com.microsoft.office.outlook
Removes Outlook
adb shell pm uninstall --user 0 com.linkedin.android
Removes LinkedIn
I'm not sure if updates reinstall applications.
Source: How do I get an apk file from an Android device?

Try disabling them first from Settings and then delete app data

Related

Android Terminal does not recognise firebase command

I have this weird situation where I am not able to run firebase commands from android studio. I can run such commands in terminal but not in the terminal inside android studio.
As an example if I run firebase login in terminal, I can login but if run it in android studio I get this error: zsh: command not found: firebase.
See below an image to prove this case.
I tried to run the following command and got the following in terminal
MyMac:my_folder myuser$ which firebase
/Users/myuser/.nvm/versions/node/v17.0.1/bin/firebase
MyMac:my_folder myuser$ readlink $(which firebase)
../lib/node_modules/firebase-tools/lib/bin/firebase.js
If I do the same in Android I get nothing. I suspect it is a matter of Android studio not finding the right path to the firebase files?
Any help?
I am on a macOS Ventura and using Android Studio Electric Eel
Thanks so much!!
How did you install firebase tools (locally or globally)?
if you have globally installed firebase-cli,
I suggest you to look into environment PATH variables for both nodejs and firebase tools.
if you have installed locally as a dependancy,
here is a installation guide to install firebase-cli on macOS.
Eitherway, I suggest you to Invalidate cache and restart your Android studio before running the terminal again.

How do I use Visual Studio 2019 to remotely debug a .NetCore application on a Hyper-V Linux VM?

I am attempting to remotely debug a .NetCore application in Ubuntu Linux from Visual Studio 2019 in Windows 10. I can see the remote ipaddress (ping thru command line). I can RDT to the ipaddress. I can successfully transfer files to it via WinSCP.
I created a simple .NetCore "HelloWorld" app and copied onto the Linux VM.
I used the following commands to build and publish:
dotnet build -r linux-x64
dotnet publish --self-contained -r linux-x64
I ran the following command on the Linux VM to ensure that ssh is functional:
sudo apt-get install openssh-server unzip curl
The app is running on Linux.
From VS I try to attach to the process:
I get prompted for logon:
I get the following error:
Is there a step I'm missing somewhere?
Is there a configuration/permissions issue I am unaware of?
Thanks, JohnB
Microsoft has documented debugging a Linux target from a Windows development machine at https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging-dotnet-core-linux-with-ssh?view=vs-2022
Unfortunately, using that method, you will need to manually deploy and manually attach the debugger. If you'd like Microsoft to change that, then it would be wise to upvote this issue: https://developercommunity.visualstudio.com/t/Convenient-way-to-add-a-remote-debug-con/917516
A 3rd party developer has created a Visual Studio extension that provides this missing feature to Visual Studio. It can be downloaded from https://github.com/radutomy/VSRemoteDebugger
I had the same problem initially because I didn't enter the connection target in the first screen.
After having entered the correct target myusername#192.168.178.95 in the first screen the second screen did not show up any longer and I got the expected list of processes

How to set default startup applicationv on android tv 7.1.2

Anyone who knows how you can change the default start up application on an Android tv box [H96 max RK3328]r.
I tried different autorun managers, but it doesn't work?
I want to use a visitors screen with videos that permanently loop.. Even when someone shut down everything? It would restart and automatically open the desired app.
Hope someone can help
Used to be possible until the update to Android 7 by disabling the default home screen. That was blocked and AFAIK there's no way to do it without flashing your own version of Android on the device or rooting it.
One of the approach is to delete your current launcher from STB, if you have a launcher on the startup. Check do you have settings button on your remote or any other way to change installed apps.
If you have adb with root permission.
To delete the Launcher do this steps:
adb connect <stb ip address>
adb shell
su
mount -o rw,remount /system
rm -rf /system/app/<current launcher name>
rm -rf /data/data/com.<developer>.<current launcher name>

heroku cli commands not responding on windows 10

I installed heroku cli on windows 10 via exe installer.
When i try to run heroku --version command or heroku login
command, the command window does not respond. It does not give any error.
Then i uninstalled it and installed it using npm install -g heroku-cli
but getting same result.
Node version - 8.7.0
In Windows cmd prompt, do:
echo %USERPROFILE%
Go to your C:\Users\YOURNAME
Look for a file named:
_netrc
This file stores login credentials. Delete it.
Then check for an update:
heroku update
Then try to log in:
heroku login
I saw some people create an environment variable called HOME and add the path to YOURNAME so the environment knows to look for the _netrc file there.
Other trouble-shooting ideas if the above doesn't work for you can be found at Heroku CLI troubleshooting
In windows , run %LOCALAPPDATA%\heroku, completely delete this folder. and check again on cmd by typing heroku --version. Hope this helps.
I ended up uninstalling heroku from the Windows Installer and instead used the standalone tarball.
You can get the tarballs from here.
After you downloaded and extracted it, you can go to your terminal and cd into the directory where you extracted the file and do the following command:
./bin/heroku --version
Whenever you need the heroku CLI, you can cd into the directory where heroku is, then ./bin/heroku is the executable for heroku.

When attempting to install WhatsApp Messenger on Android-x86, I get the error: "Your device isn't compatible with this version."

Some applications install, while others don't. This one in particular, WhatsApp Messenger, is very important for me to get running, since my Mobile Android device needs repairs. How can I get this installed?
Have you tried to do it through Google Play?
Try direct link from whatsapp web-site.
I had the same error when I was trying to install the app from Google Play on my AVD. Perhaps following instruction will be helpful for you if you decide to run the app on the emulator.
There were my steps to install it (you already need an installed Android SDK or Bundle):
Download whatsapp (link is above)
Run your emulator
./LOCATION/TO/sdk/tools/emulator -avd VM_NAME_HERE -partition-size 500 -no-audio -no-boot-anim -netfast
Mount the storage:
./LOCATION/TO/sdk/tools/platform-tools/adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
Give permissions
./LOCATION/TO/sdk/tools/platform-tools/adb shell chmod 777 /system/app
Push the apk to the device:
./LOCATION/TO/sdk/tools/platform-tools/adb push /LOCATION/TO/YOUR/WHATAPP/APK/WhatsApp.apk /system/app/.
That's all

Resources