Need VpnDialogs.apk - Redmi Note 2 Q&A, Help & Troubleshooting

Hi guys, I accidentally remove my VpnDialogs.apk on my device and now I can't use Vpn service. :crying:
is there anyone who have the backup for this app?
and how to install to system?
thanks before.

Reuw said:
Hi guys, I accidentally remove my VpnDialogs.apk on my device and now I can't use Vpn service. :crying:
is there anyone who have the backup for this app?
and how to install to system?
thanks before.
Click to expand...
Click to collapse
This is a old post but will respond incase anyone else runs into this issue. This works with any un-installed packages.
Use adb shell pm list packages -u to list un-installed apps
Then use cmd package install-existing packagenamehere
Example: cmd package install-existing com.android.vpndialogs
There's a good cheat sheet for ADB here

CriminalMuppet said:
This is a old post but will respond incase anyone else runs into this issue. This works with any un-installed packages.
Use adb shell pm list packages -u to list un-installed apps
Then use cmd package install-existing packagenamehere
Example: cmd package install-existing com.android.vpndialogs
There's a good cheat sheet for ADB here
Click to expand...
Click to collapse
You saved my life dude thanks

Related

[Q]Can I uninstall an app via adb?

Is there a command/parameter that I can use to uninstall an app from the emulator or even a device?
I have gone through settings and I also blanked out the emulator session, but both are very time consuming. I thought maybe there was an easier way. Any suggestions?
Thanks...
Sent from my SAMSUNG-SGH-I897 using XDA App
adb remove (full app filename, no extension) eg adb remove com.developer.appname
or adb shell rm /data/app/(full app filename with apk extension)
to find the file name, use adb shell ls /data/app/
Thanks, I'll give it a try. I find it interesting though that the docs don't have the remove command. Also, I found an adb wiki that also does not have the remove command but does have an uninstall command. Why the differences? Oh well, even though I did not see it in the docs I should have at least tried the uninstall for grins before I posted. It is late so I will try both tomorrow.
Thanks again.
Sent from my...
Device Admin
Hello,
This uninstall parameter is being fail to remove app which is privileged as Device Admin.
How to deactivate Device Admin Privilege on any app thru adb ?
How to uninstall Device Admin App thru ADB ?

can non-root user install .apk by pm command?

Hi,
I have connected to a android device by SSH.I have trying now to install package by using pm command.The problem is I am not root now as I am not able to be root now.So can I use the pm command and if not then is there any way to install a package silently by command line.
Kindly give some idea .....
Thanks.
pradiptart said:
Hi,
I have connected to a android device by SSH.I have trying now to install package by using pm command.The problem is I am not root now as I am not able to be root now.So can I use the pm command and if not then is there any way to install a package silently by command line.
Kindly give some idea .....
Click to expand...
Click to collapse
No way..
Root is required to install a package silently. ADB shell can't bypass this requirement.
SachinShekhar said:
No way..
Root is required to install a package silently. ADB shell can't bypass this requirement.
Click to expand...
Click to collapse
Not true. Sideloading apps via adb does not require a rooted device.
pradiptart said:
Hi,
I have connected to a android device by SSH.I have trying now to install package by using pm command.The problem is I am not root now as I am not able to be root now.So can I use the pm command and if not then is there any way to install a package silently by command line.
Kindly give some idea .....
Thanks.
Click to expand...
Click to collapse
If you're connected now, why not just try it?
SifJar said:
If you're connected now, why not just try it?
Click to expand...
Click to collapse
Thanks all for your valuable reply,
I will let you know about this..
Thnaks
Theonew said:
Not true. Sideloading apps via adb does not require a rooted device.
Click to expand...
Click to collapse
I've just tested:
Code:
adb push app.apk /sdcard_root/app.apk
adb shell
$ pm install /sdcard_root/app.apk
Yes, it works. It has installed the app SILENTLY. I wonder why it doesn't work programmatically.
SachinShekhar said:
I wonder why it doesn't work programmatically.
Click to expand...
Click to collapse
It would be quite a security problem if apps were able to silently install other apps, especially so easily.

How do I uninstall an APK?

So I used ADB install to install got248, but now I've installed a better 2048 clone for android wear from the play store, so I how do I uninstall the old APK?
Uclydde said:
So I used ADB install to install got248, but now I've installed a better 2048 clone for android wear from the play store, so I how do I uninstall the old APK?
Click to expand...
Click to collapse
I am wondering the same thing bc literally I did the same thing as you with 2048 haha. I'm guessing you could try this command: adb uninstall got2048.apk
Uclydde said:
So I used ADB install to install got248, but now I've installed a better 2048 clone for android wear from the play store, so I how do I uninstall the old APK?
Click to expand...
Click to collapse
In order to uninstall the application you need to know it's package name (ie com.someapp.app) then use the following adb command to uninstall, adb uninstall com.someapp.app.
If you are not sure what the package name is then you can run the following adb commands in order to get a list of apps installed:
adb shell
su
cd /data/app
ls
This should give you a list of apps on the watch/ Hope this helps.

[MOTO G8+] "You cannot install this app because another user..."

Hi,
I want to reinstall a Motorola firmware app.
I uninstalled the firmware a year ago on my Moto G8+ with adb using the following command:
"pm uninstall -k --user 0 com.motorola.faceunlock"
Now when I want to install the app from the Play Store I can't. I get the following error message:
"You cannot install this app because another user has already installed an incompatible version on this device."
Click to expand...
Click to collapse
I already tried a few things I found in other threads and forums but nothing really worked. I'm a single user, however the guest function allows me to find the Moto face unlock App as an installed app. In settings I can't find any option that allows me to "uninstall the app for all users" or to "reinstall" or "restore" it. Factory Reset is not an option for me.
I was thinking about maybe reinstalling the package via adb for the main user again, if that's possible? I only have little knowledge about adb.
Has somebody an idea or command I could try out?
Thanks in advance
@sokrvtxs
The ADB command you used removed the the mentioned system-app ( leaving its data untouched ) only for user 0, that's the current user, what means that the deleted app still remains available for other users of the Android device - it didn't get removed from device's storage space at all. That's basically a good thing because you can easily restore an app if you uninstall it by mistake or need it later.
This brings the system-app back:
Code:
adb devices
adb shell "cmd package install-existing com.motorola.faceunlock"
adb reboot
If your Android is rooted then you can update the system-app in question
Code:
adb devices
adb push <PATH_TO_UPDATE_APK> /data/local/temp
adb shell "pm install -r /data/local/tmp/<UPDATE_APK>"
adb shell "rm /data/local/tmp/<UPDATE_APK>"
adb reboot
Thank you so much, my phone is not rooted. The first code worked and my issue is solved completely. This helped me a lot.

Disabling unwanted apps through ADB

Hi guys,
Just purchased a Moto G8 Power and want to disable som Google preinstalled apps that I won't use.
I've already done this on a Huawei P30 Pro so I know how to do it.
Here are my questions.
If I disable the unwanted apps through ADB will this prevent future OTA updates?
Also, will future OTA updates reactivate the apps that I disabled through ADB?
Thanks!
Assuming you are rooted. Why disable when you can completely remove apps you consider to be bloatware?
The uninstall command to using in ADB is:
Code:
adb shell pm uninstall -k --user 0 PASTE_PACKAGE_NAME_HERE
Use the command below to get a list of the installed package apps on your phone. You want to use the part that starts with: com.some_package_name when using the command above to uninstall an app from your phone using ADB.
Code:
adb shell pm list packages
This version of the same command should help you find the list of packages associated with the facebook app so you can nuke it from orbit.
Code:
adb shell pm list packages facebook
This worked on my 2020 Moto G Power phone and I hope it works for you. And yes I know most of this can be found by doing a search online.

Categories

Resources