permissions

Android WifiManager getConnectionInfo requires CHANGE_WIFI_STATE?

扶醉桌前 提交于 2019-12-11 06:28:55
问题 I'm getting a user report on an error about missing the CHANGE_WIFI_STATE permission: Error: java.lang.SecurityException: WifiService: Neither user 10137 nor current process has android.permission.CHANGE_WIFI_STATE. at android.net.wifi.WifiManager.getConnectionInfo(WifiManager.java:642) This is the code block: WifiManager wifiMan = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); if (wifiMan != null) { WifiInfo wifiInfo = wifiMan.getConnectionInfo(); I thought this only required

Google apps script requires permissions that are already granted

时光毁灭记忆、已成空白 提交于 2019-12-11 06:28:39
问题 Here's the function in question: function GetResponseDate(confirmation) { var threads = GmailApp.search(confirmation); var initialResponse; if(threads.length!=0){ initialResponse = threads[0].getMessages()[0].getDate(); } else{ initialResponse = "none"; } return initialResponse; } Here's the manifest: { "oauthScopes":[ "https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.addons.current.message.readonly", "https://www.googleapis.com/auth/gmail.addons.current

How to reset all Facebook Permission in an iOS app?

寵の児 提交于 2019-12-11 06:22:06
问题 i'm developing an application for iOS and for test app, i need clear/reset all facebook permission... how can do this? if check the permission whit graph path, i see this log [PF_FBRequestConnection startWithGraphPath:@"me/permissions" completionHandler:^(PF_FBRequestConnection *connection, id result, NSError *error) { NSLog(@"facebook_permission: %@",result); }]; the result is [6412:c07] facebook_permission: { data = ( { "create_note" = 1; email = 1; installed = 1; "photo_upload" = 1;

Android not requesting permission in ionic app

寵の児 提交于 2019-12-11 06:18:39
问题 I am building app that allows people to post pictures and videos, mainly trying to learn about ionic, cordova, android, and the like, but for some reason whenever I try to open a file using the cordova File plugin, it doesn't ask the user permission to access storage, and the code fails and the user is stuck on a loading screen. The code is pretty simple, they take a video, it gets transcoded, then the transcoded file is uploaded to a firebase storage bucket. If I quit the app, go to settings

How can I audit all chmod and chgrp commands?

北城以北 提交于 2019-12-11 06:18:29
问题 Corporate security policies are starting to require low level event logging. For example, file access permission changes. One solution is to use SELinux but our knowledge of this is sparse at best. Another is to replace the command with a proxy which performs auditing (this sucks though). Any ideas? 回答1: I think you can look at auditd: http://linux.die.net/man/8/auditd Also check this thread please: http://www.linuxforums.org/forum/linux-security/109864-auditing-logging-all-commands-arguments

Angular with Firebase can't access data

流过昼夜 提交于 2019-12-11 06:09:03
问题 I have a very simple app in Angular, that should read a small Firebase database... As simple as: import { Component } from '@angular/core'; import { AngularFireDatabase } from 'angularfire2/database'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { courses: any[]; constructor(db: AngularFireDatabase) { db.list('/courses/IlZ5lAPfQDmWAf52hAI4') .valueChanges().subscribe(courses => { this.courses = courses;

Twitter on ios - How is permission granted to do tweets?

浪子不回头ぞ 提交于 2019-12-11 05:56:30
问题 I'm wondering how are permission granted? Is there a popup that asks for permission when a tweet is about to occur or is signing in with your twitter account in your settings page permission already? I created a game where I want to do automatic tweet for the user, and i'm wondering how will I get the user's permission to do so? I am using iOS 5's built in Twitter Framework, any help is much appreciated. Thanks in advance. 回答1: If you're using the Twitter framework, then permissions are all

Can I use the JWSCL to check whether the current user has a specific extended right on an Active Directory object?

[亡魂溺海] 提交于 2019-12-11 05:54:46
问题 [This is a slightly more specific version of the question I already asked here: How do I query effective permissions on an Active Directory Object? - Hopefully the answers I receive here will help me better understand and judge the answer(s) I received there.] Very specifically, I'm currently looking for a way to verify whether the current user has the Exchange-specific "Send As" permission (this is a so-called "extended right") on a given Active Directory object such as another user (i.e. a

Got gdbm error: (13, 'Permission denied') — Despite posix permissions seeming OK

房东的猫 提交于 2019-12-11 05:53:20
问题 I'm working with shelve in python 2.7.6 for caching calculations, and I've ran into the issue described HERE for shelve files produced by me and implemented the suggested solution in a function that merges a file other into the file target : ... # target and other are strings # Loads the gdbm module, as suggested mod = __import__("gdbm") # Open target for modifications tar = shelve.Shelf(mod.open(target, 'c', 0666)) # THROWS EXCEPTION # Open other for reading oth = shelve.Shelf(mod.open(other

Android 6.0 getLastKnowLocationPermission

烈酒焚心 提交于 2019-12-11 05:52:28
问题 I have a error when I'm trying to get last known location in Android 6.0 Location lastLocation =locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); Error: java.lang.SecurityException: "network" location provider requires ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission. My manifest: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name=