Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!

Debugging Delphi Apps on Android 8.1 Works

When Google introduced Android 8 this summer, they increased platform security but happened to block socket access to the debugger, basically preventing debugging applications on a device. You’d see the error message “Can’t open socket: Permission denied.” as reported also at https://quality.embarcadero.com/browse/RSP-18992. The issue was not a change in our debugger support, but a problem at the operating system level. You can read some of the discussion here: https://github.com/android-ndk/ndk/issues/447

Now the good news is Google has fixed the issue (as indicated in the thread above). We tested it on previews and it seemed fine. Now Google has shipped Android Oreo 8.1, I for it for my Nexus 5X device this morning, installed it, and I can now debug a Delphi application as usual. I captured an image of the program stopped at a breakpoint below.

This has nothing to do with 10.2.2 because the change was only on the Android side, not the RAD Studio side. We fixed the display of the device name as target on our end, but that wasn’t a big deal in the first place.

 Do you want to build an Android app? Try the Android App Builder Software, which will assist you in developing apps in the Delphi or C++ environments.

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

About author

Marco is one of the RAD Studio Product Managers, focused on Delphi. He's the best selling author of over 20 books on Delphi.
Related posts
DelphiRAD Studio

3 Steps To Finding The Perfect Android App Builder Software

CodeDelphiRAD Studio

Easily Automate The DigitalOcean API From Windows And Mobile


Change notification bar color on Android


How to Get IMEI on Android Devices with DELPHI 10.3 Apps


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.