1. AC Question's Avatar
    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 androidersistent="False"

    <!-- 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"
    <!-- Tell NativeActivity the name of our .so -->
    <meta-data android:name="android.app.lib_name"
    android:value="pr45" />
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />

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

    <!-- END_INCLUDE(manifest) -->

    Does anyone know how to enable debugging on Samsung Galaxy S7 Edge with Android 7.0 Nougat again?
    Thank you!
    04-02-2017 09:43 AM
  2. Maya Opperman's Avatar
    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
    05-15-2017 06:53 AM

Similar Threads

  1. Replies: 1
    Last Post: 04-02-2017, 07:26 PM
  2. Samsung Galaxy A3 keeps restarting after dropping in water?
    By AC Question in forum Ask a Question
    Replies: 1
    Last Post: 04-02-2017, 09:55 AM
  3. why are apps on my phone randomly uninstalling
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 04-02-2017, 09:31 AM
  4. Which Android box will work with IP Cameras?
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 04-02-2017, 09:30 AM
  5. Show Wifi password on nougat !..?
    By DiyarGewda in forum Android 7.0 Nougat
    Replies: 0
    Last Post: 04-02-2017, 09:27 AM