2

I am creating a native plugin to use with my cordova app for some security specific functions (encryption / decryption etc). Can another developer extract the plugin from my app and use it ?

This is my first cordova app, so I don't fully understand how everything works yet.

EDIT: In iOS - I will write the plugin in C++ & Objective-c In Java, I will use JNI to access the C++.

Will the C++ source be viewable ?

Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
  • And it has nothing to do with cordova, can native code be extracted? probably. You can make it harder creating a library/framework and ofuscating the code – jcesarmobile Sep 08 '15 at 10:27
  • @jcesarmobile I have not duplicated my own question. You have linked back to the same page. This question is not about extracting the native code. This is about just reusing the native plugin in another app without looking at how it works. Since the js can be seen, one can determine how to call the native code, even without looking at the native code itself. So my question is if the native plugin can be used in another app. – Rahul Iyer Sep 09 '15 at 08:32
  • Sorry, this is the link I meant http://stackoverflow.com/questions/32431129/is-the-source-code-to-cordova-plugins-visible-just-like-that-html-and-javascrip – jcesarmobile Sep 09 '15 at 08:43

1 Answers1

-1

Yeah, i have not done it myself but im pretty sure you can extract any apk file

e.g. how to extract code of apk file

e.g. http://www.decompileandroid.com/

I know that developers can create a "shell" of an app that once is downloaded will then dynamically download the rest of the app.

Hope it helps!

Community
  • 1
  • 1
Mark
  • 2,061
  • 1
  • 16
  • 26