n-aggarwal / privacy-messaging-app

This repository contains the code for the final project developed for COMP360: Information Security and Privacy.
0 stars 0 forks source link

No Screenshot Functionality #12

Closed n-aggarwal closed 1 year ago

n-aggarwal commented 1 year ago

I am opening this issue right now just because I had some thoughts that I wanted to write down. We are not going to work on this until the base app is complete.

I am listing the various paths we can take to implement this in order from best to worst. So, we would only touch options 2 and 3 if 1 doesn't work.

Option 1: We use a react native library. https://dev.to/one/react-native-prevent-screen-capture-on-selected-screens-19f6

Option 2: We build the iOS and the Android projects from the react native and then add this functionality for each platform individually.

Option 3: We make the apk using react native, then make an app in android studio that prevents screenshots. Using apktool, get both into smali code. Then we inject the smali code into our app, and repackage and realign it (Only works for Android).

n-aggarwal commented 1 year ago

Awesome work on that @ryan-kobayashi ! It works perfectly on Android!

Could you please do a little bit more research on how it could be implemented on IOS. We don't want to code that, but we should know how it could be done, and add it to our presentation.