Avoid destroying Device separately

Bug: 27983025

Device should be destroyed inside the destructor of the associated
Context.

Change-Id: I921a89974e1174f837349a89aef9b03efa4882f5
diff --git a/rsApiDevice.cpp b/rsApiDevice.cpp
index 0dc1270..9466bc7 100644
--- a/rsApiDevice.cpp
+++ b/rsApiDevice.cpp
@@ -30,8 +30,10 @@
 }
 
 extern "C" void rsDeviceDestroy(RsDevice dev) {
-    Device * d = static_cast<Device *>(dev);
-    delete d;
+    // A Device should be destroyed in the destructor of the associated Context.
+    // Keep this empty function here even after calls to nDeviceDestroy() in
+    // RenderScript.helpDestroy() have been removed. This is necessary to keep
+    // existing apps running.
 }
 
 extern "C" void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value) {