tfsecured icon indicating copy to clipboard operation
tfsecured copied to clipboard

TFSecure for Android

Open abi98213 opened this issue 5 years ago • 1 comments

Hello ! Thank you for this great implementation. How can use the encrypted model in android ? It would be great

abi98213 avatar Sep 12 '19 15:09 abi98213

I'll add an android example later. That's very simple:

  1. just try android projects with statically linked Tensorflow NDK library: https://github.com/search?q=filename%3AAndroid.mk+static+tensorflow.a
  2. and add TFSecured dir (source files) to Android.mk
  3. and call C++ code from TFSecured

It's possible to rewrite TFSecured via Java and Tensorflow Java API, but it's less secure because disassembling and intercepting/hooking calls of Java code is much easier, than analyzing assembler code from .so binaries. The encryption key of your model can be easily intercepted via Xposed or Frida if you use only Java.

dneprDroid avatar Nov 04 '19 15:11 dneprDroid