Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Android 7.0, Could not set capabilities. Operation not permitted.



Permlink Replies: 9 - Last Post: Feb 18, 2018 10:16 AM Last Post By: Guest Threads: [ Previous | Next ]
Wayne Loeppky

Posts: 52
Registered: 7/4/02
Android 7.0, Could not set capabilities. Operation not permitted.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 15, 2017 1:36 PM
Delphi 10.2 Release 1, Samsung S7, Android 7.0. Trying to debug an application. I was doing this before on a Samsung S5 and the original Delphi 10.1. Just back to testing things with the Release 1 of version 10.2 and a different phone. I have verified on the phone that I have developer mode and USB debugging is turned on. The application installs and is downloaded to the phone and runs properly, but I am not able to debug because of the error below popping up right after the application is installed. I did click Allow when the message came up on the phone.

Did some reading on the web but could not find any definitive answer.

The error I get in Delphi is below:

run-as: Could not set capabilities. Operation not permitted.

Wayne
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Android 7.0, Could not set capabilities. Operation not permitted.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 15, 2017 2:32 PM   in response to: Wayne Loeppky in response to: Wayne Loeppky
Am 15.09.2017 um 22:36 schrieb Wayne Loeppky:
Delphi 10.2 Release 1, Samsung S7, Android 7.0. Trying to debug an application. I was doing this before on a Samsung S5 and the original Delphi 10.1. Just back to testing things with the Release 1 of version 10.2 and a different phone. I have verified on the phone that I have developer mode and USB debugging is turned on. The application installs and is downloaded to the phone and runs properly, but I am not able to debug because of the error below popping up right after the application is installed. I di
d click Allow when the message came up on the phone.

Did some reading on the web but could not find any definitive answer.

The error I get in Delphi is below:

run-as: Could not set capabilities. Operation not permitted.

Wayne

Hello,

there was something like this recently.
There also was a solution for it afaik,
but I don't remember where it had been written.

Did you already do a search in quality.embarcadero.com?
And if you don't find anything about it in this group you migh want to
search in the Firemonkey group for a thread. It might have been there.
It's just too late for me to search there this evening.

Greetings

Markus
Wayne Loeppky

Posts: 52
Registered: 7/4/02
Re: Android 7.0, Could not set capabilities. Operation not permitted.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 19, 2017 8:58 AM   in response to: Markus Humm in response to: Markus Humm
Markus Humm wrote:
Am 15.09.2017 um 22:36 schrieb Wayne Loeppky:
Delphi 10.2 Release 1, Samsung S7, Android 7.0. Trying to debug an application. I was doing this before on a Samsung S5 and the original Delphi 10.1. Just back to testing things with the Release 1 of version 10.2 and a different phone. I have verified on the phone that I have developer mode and USB debugging is turned on. The application installs and is downloaded to the phone and runs properly, but I am not able to debug because of the error below popping up right after the application is installed. I di
d click Allow when the message came up on the phone.

Did some reading on the web but could not find any definitive answer.

The error I get in Delphi is below:

run-as: Could not set capabilities. Operation not permitted.

Wayne

Hello,

there was something like this recently.
There also was a solution for it afaik,
but I don't remember where it had been written.

Did you already do a search in quality.embarcadero.com?
And if you don't find anything about it in this group you migh want to
search in the Firemonkey group for a thread. It might have been there.
It's just too late for me to search there this evening.

Greetings

Markus

I did a lot of searching before posting but could not find anything that seemed to fit my issue. It is definitely a Samsung S7/Android 7.0 issue. I went back to my old Galaxy S5/Android 6.1 and it debugs like a charm. So I suspect it is Android 7.0 has changed something. For now debugging on the older version of Android until I figure this out.

Wayne
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: Android 7.0, Could not set capabilities. Operation not permitted.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 15, 2017 4:26 PM   in response to: Wayne Loeppky in response to: Wayne Loeppky
Wayne Loeppky wrote:

The error I get in Delphi is below:

run-as: Could not set capabilities. Operation not permitted.

Does this help?

https://stackoverflow.com/questions/37413667/run-as-could-not-set-capabilities-operation-not-permitted

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
Wayne Loeppky

Posts: 52
Registered: 7/4/02
Re: Android 7.0, Could not set capabilities. Operation not permitted.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 19, 2017 9:00 AM   in response to: Dave Nottage in response to: Dave Nottage
Dave Nottage wrote:
Wayne Loeppky wrote:

The error I get in Delphi is below:

run-as: Could not set capabilities. Operation not permitted.

Does this help?

https://stackoverflow.com/questions/37413667/run-as-could-not-set-capabilities-operation-not-permitted

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com

I had seen that but was not really interested in resetting my phone which is one of the things they suggested.

Wayne
Kent Miller

Posts: 2
Registered: 10/17/99
Re: Android 7.0, Could not set capabilities. Operation not permitted.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 4, 2017 2:47 PM   in response to: Wayne Loeppky in response to: Wayne Loeppky
Can anyone confirm that this works?
https://tutel.me/c/programming/questions/43634214/can39t+debugging+on+samsung+galaxy+s7+edge+after+updating+to+android+70+nougat

In menu Run > Parameters... > Debugger

Select "Debug configuration - Android platform"

Add to the "parameters" field:

parameter-autolaunch

For me - the "run:as" problem doesn't appear, but the compiler just hangs at "Launching" of my project - it is clearly running on my phone, but Delphi doesn't appear to be able to connect the debugger to it, even though there appears to be no error with run-as when adding that parameter...

Wayne Loeppky wrote:
Dave Nottage wrote:
Wayne Loeppky wrote:

The error I get in Delphi is below:

run-as: Could not set capabilities. Operation not permitted.

Does this help?

https://stackoverflow.com/questions/37413667/run-as-could-not-set-capabilities-operation-not-permitted

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com

I had seen that but was not really interested in resetting my phone which is one of the things they suggested.

Wayne
Free Dorfman

Posts: 139
Registered: 2/4/12
Re: Android 7.0, Could not set capabilities. Operation not permitted.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 21, 2017 10:03 AM   in response to: Kent Miller in response to: Kent Miller
Kent Miller wrote:

In menu Run > Parameters... > Debugger

Select "Debug configuration - Android platform"

Add to the "parameters" field:

parameter-autolaunch

I was having the same issue - Seattle 10, Update 1 - Samsung Galaxy J3 Eclipse. The above fixed it. Thanks!
Joachim Magera

Posts: 2
Registered: 2/3/17
Re: Android 7.0, Could not set capabilities. Operation not permitted.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 3, 2017 7:16 AM   in response to: Wayne Loeppky in response to: Wayne Loeppky
In menu Run > Parameters... > Debugger

Select "Debug configuration - Android platform"

Add to the "parameters" field:

parameter-autolaunch

Thanks!
This worked fine for me. The remote debugger now started as expected.
Samsung A3
Delphi 10.2 Tokyo

Wayne Loeppky

Posts: 52
Registered: 7/4/02
Re: Android 7.0, Could not set capabilities. Operation not permitted.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 22, 2018 8:52 AM   in response to: Joachim Magera in response to: Joachim Magera
In menu Run > Parameters... > Debugger

Select "Debug configuration - Android platform"

Add to the "parameters" field:

parameter-autolaunch

I can confirm this worked for me, Android 7., Samsung Galaxy S7.
Guest
Re: Android 7.0, Could not set capabilities. Operation not permitted.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 18, 2018 10:16 AM   in response to: Wayne Loeppky in response to: Wayne Loeppky
In menu Run > Parameters... > Debugger

Select "Debug configuration - Android platform"

Add to the "parameters" field:

autolaunch

I can confirm this worked for me, Android 7.0, Samsung Galaxy S8+

However it doesn't work for Android 8.0 Moto Z2 Force. Still have issues with debugging on Moto Z2 Force Android 8.0 with error "Can't open socket: Permission Denied. Exiting"

Edited by: Gregory Timmons on Feb 18, 2018 10:16 AM

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02