I am going to build a PIN lock on Phonegap, trying to understand the security layer. As Phonegap is just a webview, it can be easily altered, if you are connected to a device.
I believe that you can also decompile the Java as simple as the HTML5 from Phonegap. So would it makes a difference if I put a screen lock on the HTML5 layer or the Java layer?
I am trying to figure out if I can do anything else to make the pinlock more meaningful, instead of simply just remove the layer. I am also already obfuscating the JavaScript.
But it still means that if you obtain another phone that has the app, you can unroot it, and de-obfuscate the JavaScript then unlock it?
So if Java is just as easy to alter as HTML5 after rooted, then it makes no difference if I just build a JavaScript screen lock?