Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.linkedin.android #11949

Closed
i24Seven opened this issue Jan 5, 2019 · 4 comments

Comments

@i24Seven
Copy link

i24Seven commented Jan 5, 2019

The problem

Briefly describe the issue you are experiencing (or the feature you want to see added to Appium). Tell us what you were trying to do and what happened instead. Remember, this is not a place to ask questions. For that, go to http://discuss.appium.io!

Environment

  • Appium version (or git revision) that exhibits the issue:
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium:
  • Node.js version (unless using Appium.app|exe):
  • Mobile platform/version under test:
  • Real device or emulator/simulator:
  • Appium CLI or Appium.app|exe:

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium logs

Create a GIST which is a paste of your full Appium logs, and link them here.
Do NOT paste your full Appium logs here, as it will make this issue very long and hard to read!
If you are reporting a bug, always include Appium logs!

Code To Reproduce Issue [ Good To Have ]

Please remember that with sample code it's easier to reproduce the bug and it's much faster to fix it.

Please git clone https://github.com/appium/appium and from the sample-code directory, use one of your favourite languages and sample apps to reproduce the issue.

In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.

@i24Seven i24Seven changed the title Hey guys, Please Help me , i am getting this issue Hey guys, Please Help me , i am getting this issue=== [W3C] Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command 'D\:\\APPIUMTOOLS\\ANDROIDSDK\\platform-tools\\adb.exe -P 5037 -s a0fde0547d94 shell pm clear com.linkedin.android' exited with code 1'; Stderr: 'Error: java.lang.SecurityException: PID 26686 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.linkedin.android'; Code: '1' Jan 5, 2019
@i24Seven
Copy link
Author

i24Seven commented Jan 5, 2019

[W3C] Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command 'D:\APPIUMTOOLS\ANDROIDSDK\platform-tools\adb.exe -P 5037 -s a0fde0547d94 shell pm clear com.linkedin.android' exited with code 1'; Stderr: 'Error: java.lang.SecurityException: PID 26686 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.linkedin.android'; Code: '1'

@mykola-mokhnach
Copy link
Collaborator

mykola-mokhnach commented Jan 5, 2019

Please fill out the issue reporting form properly

@mykola-mokhnach mykola-mokhnach added the Needs Info typically non-actionable; needs author to respond label Jan 5, 2019
@mykola-mokhnach mykola-mokhnach changed the title Hey guys, Please Help me , i am getting this issue=== [W3C] Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command 'D\:\\APPIUMTOOLS\\ANDROIDSDK\\platform-tools\\adb.exe -P 5037 -s a0fde0547d94 shell pm clear com.linkedin.android' exited with code 1'; Stderr: 'Error: java.lang.SecurityException: PID 26686 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.linkedin.android'; Code: '1' does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.linkedin.android Jan 5, 2019
@mykola-mokhnach
Copy link
Collaborator

On some phone models (many chinese phones fall into this category) it is impossible to clear application data via adb. The only way to execute an app there is to use noReset option, which skips data cleanup.

Closed as duplicate of #9807

@mykola-mokhnach mykola-mokhnach added NotABug and removed Needs Info typically non-actionable; needs author to respond labels Jan 6, 2019
@lock
Copy link

lock bot commented Jan 6, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Jan 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants