Problem with debugging on Samsung Galaxy S7 Edge after updating to Android 7.0 Nougat

  • Thread starter Thread starter AC Question
  • Start date Start date
A

AC Question

After I updated the Android on my Samsung Galaxy S7 Edge from Marshmallow to Android 7.0 Nougat I cannot debug any more on the device. For development I use Delphi 10.2 Tokyo and I have no problems with debugging on other devices that have older versions of Android. Actually before the update I didn't have problems with the Samsung Galaxy S7 Edge also.
The options for developpers are on, USB debugging is on, Bug report - on, Select debug app - here is selected the app pr45.
On the development machine the newest sdk, ndk and jdk are installed, also the newest USB driver.
Delphi 10.2 Tokyo gives the error 'run as: Could not set capabilities: Operation not permitted.'. The result on the Samsung device is that the app is installed but could not debug it.
The mainfest looks like this:
...
<!-- This is the platform API where NativeActivity was introduced. -->
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="14" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.SET_DEBUG_APP" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />

<uses-permission android:name="android.permission.SET_DEBUG_APP"></uses-permission>
<uses-feature android:glEsVersion="0x00020000" android:required="True"/>
<application android:persistent="False"
android:restoreAnyVersion="False"
android:label="pr45"
android:debuggable="True"
android:largeHeap="False"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme"
android:hardwareAccelerated="true">


<!-- Our activity is a subclass of the built-in NativeActivity framework class.
This will take care of integrating with our NDK code. -->
<activity android:name="com.embarcadero.firemonkey.FMXNativeActivity"
android:label="pr45"
android:configChanges="orientation|keyboard|keyboardHidden|screenSize"
android:launchMode="singleTask">
<!-- Tell NativeActivity the name of our .so -->
<meta-data android:name="android.app.lib_name"
android:value="pr45" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<receiver android:name="com.embarcadero.rtl.notifications.NotificationAlarm" />

</application>
</manifest>
<!-- END_INCLUDE(manifest) -->

Does anyone know how to enable debugging on Samsung Galaxy S7 Edge with Android 7.0 Nougat again?
Thank you!
 
Did you managed to come right with this?

I've just changed from a Samsung S5 to a Samsung S8 and am having the same problem.

Also Delphi 10.2 Tokyo, latest SDK's

My old S5 is still fine, just the new S8 is problematic
 

Members online

Forum statistics

Threads
955,880
Messages
6,965,995
Members
3,163,416
Latest member
dntom70