Update whitelist logic based on unplug-whitelist branch of cordova-android