@@ -34,8 +34,11 @@ const App = () => {
3434 blocklistedHashes : [ 'FgvSehLMM91E7lX/Zqp3u4jMmd0A7hH/Iqozu0TMVd0u' ] ,
3535 blocklistedPackageNames : [ 'com.wultra.app.screenlogger' ] ,
3636 blocklistedPermissions : [
37- [ 'android.permission.BLUETOOTH' , 'android.permission.INTERNET' ] ,
38- [ 'android.permission.INTERNET' ] ,
37+ [
38+ 'android.permission.INTERNET' ,
39+ 'android.permission.ACCESS_COARSE_LOCATION' ,
40+ ] ,
41+ [ 'android.permission.BLUETOOTH' ] ,
3942 [ 'android.permission.BATTERY_STATS' ] ,
4043 ] ,
4144 whitelistedInstallationSources : [ 'com.apkpure.aegon' ] ,
@@ -184,16 +187,18 @@ const App = () => {
184187 'com.talsecreactnativesecuritypluginexample' ,
185188 'com.example.myApp' ,
186189 ] ;
187- appsToWhitelist . forEach ( async ( app ) => {
188- try {
189- const whitelistResponse = await addToWhitelist ( app ) ;
190- console . info (
191- `Malware Whitelist response for ${ app } : ${ whitelistResponse } `
192- ) ;
193- } catch ( error : any ) {
194- console . info ( 'Error while adding app to malware whitelist: ' , error ) ;
195- }
196- } ) ;
190+ await Promise . all (
191+ appsToWhitelist . map ( async ( app ) => {
192+ try {
193+ const whitelistResponse = await addToWhitelist ( app ) ;
194+ console . info (
195+ `${ app } stored to Malware Whitelist: ${ whitelistResponse } `
196+ ) ;
197+ } catch ( error ) {
198+ console . info ( 'Malware whitelist failed: ' , error ) ;
199+ }
200+ } )
201+ ) ;
197202 } ;
198203
199204 useFreeRasp ( config , actions ) ;
0 commit comments