Posts

Showing posts with the label Security

JavascriptInterface not working with Android 4.2

As we all know android system allow you to call an android function directly from your web page by using the addJavascriptInterface(). Few fellow developers are facing issues for JavascriptInterface not working with Android 4.2. The obvious reason for this is because Google want to enhance security for Android platform. The change will be very important for apps whose android:targetSdkVersion is set to 17 or higher, running on Android 4.2+ devices. Methods without the @JavascriptInterface annotation will not be accessible from JavaScript.  Previously, any public method would be reachable via JavaScript. As Java classes usually have many inherited methods, public methods, including ones like getClass(). JavaScript could then use reflection to access other stuff, beyond what you had in mind. By limiting access to @JavascriptInterface methods, only those you specifically opt into being accessible will be usable from the JavaScript environment. So from your Jav...

Android 4.2 - Upcoming Security Enhancements

Along with new features in Android 4.2 , there is significant enhancements in the security system. The Android 4.2 security system is integrated into the mobile OS, and is always on the lookout for problems. The key component is a real-time app scanning service that instantly checks apps put on your device for any malicious or potentially harmful code. This feature is an extension of the Google Play Store’s security technology , which analysis apps uploaded to the store for maliciousness. While that technology worked exclusively on the server side, analysing apps that were uploaded to the Play Store, the new system works with your device and scans any apps you install from third-party sources (a process known as "sideloading"). This offers users protection from malicious apps that aren't vetted by the Play Store’s security system. Also included in the new security suite of services for Android 4.2, is a system that will warn you i...