diff --git a/hooks/after_prepare/030_remove_permissions.js b/hooks/after_prepare/030_remove_permissions.js index 0465dd4..36d14e7 100755 --- a/hooks/after_prepare/030_remove_permissions.js +++ b/hooks/after_prepare/030_remove_permissions.js @@ -20,11 +20,15 @@ var permsToRm = [ "RECORD_AUDIO", "MODIFY_AUDIO_SETTINGS", "READ_PHONE_STATE" ]; var fs = require('fs'); var path = require('path'); var rootdir = process.argv[2]; -var manifestFile = path.join(rootdir, "platforms/android/app/src/main/AndroidManifest.xml"); +var manifestFile = path.join(rootdir, "plugin/cordova-plugin-media/config.xml"); +/* +"platforms/android/app/AndroidManifest.xml" + +*/ fs.readFile( manifestFile, "utf8", function( err, data ) { if (err) - return console.log( "Error reading AndroidManifest.xml", err ); + return console.log( "Error reading plugin/cordova-plugin-media/config.xml", err ); var result = data; for(var i = 0; i < permsToRm.length; i++) {