How to delete sony xperia x compact mobile phone app We use adb fastboot The. Rom docomo, yaitu dengan cara uninstall via adb shell dengan perintah. Cara yang paling mudah untuk bisa mengetahui nama paket aplikasi dengan cara langsung melihat dari Playstore di bawah nama aplikasi. Yang telah anda buat. Background Terminal adb shell masuk ke dalam perintah Shell adb shell su Anda bisa mendapatkan superuser dengan perintah ini Pengertian Fastboot Dan anda juga mungkin pernah mengenal.
Active2 years ago
I'm new to Windows. I installed adb and fastboot files (platform-tools) for Windows, and added the folder in the path variable so that I can access adb universally.
I did some research, and found that Windows is slowly shifting to PowerShell (which is good) and (I guess) will omit the legacy CMD eventually. So even the [Shift+Right click] menu shows an option to 'Open PowerShell window here'. I've read some articles and am familiar with registry hacks to add 'Open Command Prompt Here' and remove 'Open PowerShell window here', but that's not something I would want to do, considering PowerShell is a lot more advanced than CMD.
Now, when I open PowerShell in the same folder where I've installed platform-tools and run the adb command, I get this and it's successful.
But when I open PowerShell elsewhere and run the command, it's not successful. Why is the behavior so even when I added the adb folder to the path variable? And how can I run the command successfully universally?
During my search, I found an application which provides PowerShell ADB & Fastboot GUI - PoshADB (just wanted to share).
Please note that
adb devices
works just fine in cmd, universally.--
A conclusion I drew from the answer below:
- When adb files are NOT on my
PATH
- These work in the same folder where adb is installed:
- Call by full path
.adb devices
.adb.exe devices
- Call by full path
- This works universally:
- Call by full path
- When adb files are ON my
PATH
- These work in the same folder where adb is installed:
- Call by full path
.adb devices
.adb.exe devices
adb devices
- Call by full path
- These works universally:
adb devices
- Call by full path
For my future reference- (Concisely: If it's not on your
PATH
then you have to enter the full path for it to work. And if it's on your PATH
then you can just type adb devices
, or mention the full path of adb)swingcake
swingcakeswingcake
1 Answer
When you use
.
to run a command, you're telling PowerShell to look only in the current directory for it - the dot means 'this folder,' just like in the old command processor. If the thing you're trying to run is not in the current folder, even if it is on the PATH
, that will fail. Note that the term 'dot-sourcing' refers to the execution of PowerShell scripts in the current scope instead of their own, which is different from running a command from the current directory.You can type the program's name without
Ben NBen N.
anywhere to run it if it is on your PATH
. Note, though, that PowerShell will not see changes to PATH
or any environment variable until you restart it. After you adjusted the environment variable and opened a new PowerShell, simply adb
is sufficient to identify the program you want to run, no matter your current directory.31.5k13 gold badges108 silver badges153 bronze badges
Not the answer you're looking for? Browse other questions tagged windowspowershellcmd.exeadb or ask your own question.
Active1 year, 2 months ago
I have
adb
running and device is connected to my system in debugging mode,I want to uninstall app using intent launch using
adb shell am start <INTENT>
I don't want to uninstall using
adb uninstall com.company.apppackage
and I don't want to do it even by using adb shell pm uninstall com.company.apppackage
How can I send an intent with
Alex P.android.intent.action.DELETE
action for a specific package allowing the user to see the prompt and uninstall the program?22.5k14 gold badges75 silver badges128 bronze badges
Rinkal BhanderiRinkal Bhanderi9,86515 gold badges46 silver badges76 bronze badges
6 Answers
pcanspcans7,2731 gold badge27 silver badges27 bronze badges
Use this command in cmd:
adb shell pm uninstall -k com.packagename
For example:
The
thumbmunkeys-k
flag tells the package manager to keep the cache and data directories around, even though the app is removed. If you want a clean uninstall, don't specify -k
.17.9k8 gold badges53 silver badges104 bronze badges
neverever415neverever4152,1671 gold badge7 silver badges2 bronze badges
Using ADB, you can use any of the following three commands:
Replace PACKAGE with package name of the installed user app. The app mustn't be a device administrator for the command to work successfully. All of those commands would require user's confirmation for removal of app.
Details of the said command can be known by checking am's usage using
adb shell am
. I got the info about those commands using Elixir 2 (use any equivalent app). I used it to show the activities of Package Installer app (the GUI that you see during installation and removal of apps) as well as the related intents. There you go.
The alternative way I used was: I attempted to uninstall the app using GUI until I was shown the final confirmation. I didn't confirm but execute the command
Among other things, it showed me useful details of the intent passed in the background. Example:
Here, you can see the action, data, flag and component - enough for the goal.
FirelordFirelord
While the above answers work but in case you have multiple devices connected to your computer then the following command can be used to remove the app from one of them:
If you want to find out the device serial then use the following command:
This will give you a list of devices attached. The left column shows the device serials.
sttaqsttaq
In my case, I do an
adb shell pm list packages
to see first what are the packages/apps installed in my Android device or emulator, then upon locating the desired package/app, I do an adb shell pm uninstall -k com.package.name
.warfreak92warfreak92
I assume that you enable
developer mode
on your android device and you are connected to your device and you have shell access (adb shell
).Once this is done you can uninstall application with this command
pm uninstall --user 0 <package.name>
. 0 is root id -this way you don't need too root your device. Here is an example how I did on my Huawei P110 lite
Lukasz DynowskiLukasz Dynowski
protected by Brad Larson♦Apr 26 '16 at 22:23
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?