permissions

Android system certificate

萝らか妹 提交于 2019-12-12 10:22:59
问题 I hope you can help me! I have a Samsung i-9000 and i'm writing an application to enter the pin code of the SIM card if it has not already been done before. I inserted android:sharedUserId="android.uid.system" in AndroidManifest.xml and the code in my Activty class is: TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); clazz = Class.forName(tm.getClass().getName()); m = clazz.getDeclaredMethod("getITelephony"); m.setAccessible(true); it = (ITelephony)m.invoke

WPF permission-based authorization using Enum Flag Bit

你说的曾经没有我的故事 提交于 2019-12-12 10:11:27
问题 I've been doing C# for a month now so please forgive the 'localness' to this question but I have researched for a few hours and I have hit a brick wall. I've seen examples left and right for Role-based authorization for WPF applications utilizing IIdentity and IPrincipal . I can't find a lot of information, however, on a more Permission-based authorization approach, in this app imagine there are no Groups but just a list of permissions and users and you can assign anyone any permission. I'd

WiX Permissions, how do I express 'Modify' in terms of DACL flags

三世轮回 提交于 2019-12-12 09:43:08
问题 I'm attempting to apply custom rights to a folder as part of a WiX 3.0.4318.0 installer. In terms of the Security properties UI in explorer, I want to add Modify to the rights for BUILTIN\Users. Obviously it needs to be resilient against localisation of the user name. So based on my research to date, I want at least: <CreateFolder Directory="XYZ" > <PermissionEx User="[WIX_ACCOUNT_USERS]" GenericRead="yes" GenericWrite="yes" Delete="Yes" /> </CreateFolder> Questions: I'm doing this in a

Ruby (Errno::EACCES) on File.delete

核能气质少年 提交于 2019-12-12 09:11:56
问题 I am trying to delete some XML files after I have finished using them and one of them is giving me this error: 'delete': Permission denied - monthly-builds.xml (Errno::EACCES) Ruby is claiming that the file is write protected but I set the permissions before I try to delete it. This is what I am trying to do: #collect the xml files from the current directory filenames = Dir.glob("*.xml") #do stuff to the XML files finalXML = process_xml_files( filenames ) #clean up directory filenames.each do

Android System Permissions Through Root

强颜欢笑 提交于 2019-12-12 08:47:48
问题 W/PackageManager(61): Not granting permission android.permission.SET_ACTIVITY_WATCHER to package This is one such example of a permission that will not be granted to applications without being signed using the platform signature. With that said I would like to know how any application running on a rooted device (with /system/bin/su and SuperUser.apk) can be granted any of these permissions. Process p = Runtime.getRuntime().exec("su"); p.waitFor(); Doing this prompts the super user dialog with

Syncing local and remote directories using rsync+ssh+public key as a user different to the ssh key owner

杀马特。学长 韩版系。学妹 提交于 2019-12-12 08:45:19
问题 The goal is to sync local and remote folders over ssh. My current user is user1 , and I have a password-less access setup over ssh to a server server1 . I want to sync local folder with a folder on server1 by means of rsync utility. Normally I would run: rsync -rtvz /path/to/local/folder server1:/path/to/remote/folder ssh access works as expected, rsync is able to connect over ssh , but it returns "Permission denied" error because on server1 the folder /path/to/remote/folder is owned by user2

Why would sendTextMessage require READ_PHONE_STATE permission?

和自甴很熟 提交于 2019-12-12 08:26:30
问题 My app sent home this stack trace which seems as though something very wrong is going on under the hood. phone_model=SKY IM-A630K, android_version=2.1-update1 java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10089 nor current process has android.permission.READ_PHONE_STATE. at android.os.Parcel.readException(Parcel.java:1218) at android.os.Parcel.readException(Parcel.java:1206) at com.android.internal.telephony.IPhoneSubInfo$Stub$Proxy.getLine1Number(IPhoneSubInfo.java:223

Crash on iOS > TCCAccessRequest_block_invoke_2.8

不问归期 提交于 2019-12-12 08:26:22
问题 I've got an error in my app (iOS 8 to iOS 11) : Crashed: com.apple.root.default-qos 0 libsystem_kernel.dylib 0x1839a00a8 __abort_with_payload + 8 1 libsystem_kernel.dylib 0x18399b100 abort_with_payload_wrapper_internal + 100 2 libsystem_kernel.dylib 0x18399b12c system_set_sfi_window + 10 3 TCC 0x1868ed99c __TCCAccessRequest_block_invoke_2.85 + 222 4 TCC 0x1868ed8bc __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 706 5 TCC 0x1868f113c __tccd_send_block_invoke + 316 6 libxpc.dylib 0x183aeda0c _xpc

User gets permissions request that are not included in the manifest

一世执手 提交于 2019-12-12 08:02:17
问题 I have Just released an app that has two permission in its manifest file (to show banner ads). "android.permission.INTERNET" and "android.permission.ACCESS_NETWORK_STATE". For testing I tried to install my app from the play market and discovered that the app required Identity, Location, Photo/Media/Files!! There is no such permissions in my manifest file, and I don't need them. Tried my other apps with similar manifest.xml (internet, network state) they are installing without any special

How can I programmatically check Amazon S3 permissions with boto?

梦想与她 提交于 2019-12-12 08:00:08
问题 We have a bushy tree in a bucket on Amazon S3 with a large number of files. I just discovered that while some files have two permissions entries, as seen if one clicks on a file in the AWS Management Console, then properties -> permissions, one line being "everyone" and the other some specific user, other files just have one entry for that user. As the results, we're having issues downloading those files to Amazon EC2 instances using boto or curl. What I need to do is go over all files in the