草庐IT

simple_permissions

全部标签

android - 试图将 Intent 发送到其他应用程序 : error SecurityException: Permission Denial: starting Intent

我正在尝试从应用程序A向应用程序B发送Intent。在应用程序A的Activity中,我执行以下操作:Intenti=newIntent();i.setAction("com.example.test2.REQUEST_RESPONSE");i.putExtra("info","blablabla");startActivityForResult(i,0);在应用程序B中,list中有以下Activity:这在Activity的onCreate中:Intentintent=getIntent();if(intent.getAction().equals("com.example.tes

android - libSTLport_static.a : No such file: Permission denied

在编译我的androidndk项目时我添加了APP_STL:=stlport_static到我的jni/Application.mk文件,它允许使用一些STL东西。但是,当我清理和构建时出现错误libSTLport_static.a:没有这样的文件:权限被拒绝我发现解决这个问题的方法是添加STLPORT_FORCE_REBUILD:=true这是一个修复,但是每次都重建STLport库显然是非常耗时的。这个问题有更好的解决方法吗? 最佳答案 你没有说你在哪个平台上开发,但我猜是Windows。如果您使用的是Vista或Windows

解决git@github.com: Permission denied (publickey). Could not read from remote repository

原因分析Permissiondenied(publickey)没有权限的publickey,出现这错误一般是以下两种原因客户端与服务端未生成sshkey客户端与服务端的sshkey不匹配找到问题的原因了,解决办法也就有了,重新生成一次sshkey,服务端也重新配置一次即可。客户端生成sshkeyssh-keygen-trsa-C"470812087@qq.com"470812087@qq.com改为自己的邮箱即可,途中会让你输入密码啥的,不需要管,一路回车即可,会生成你的sshkey。(如果重新生成的话会覆盖之前的sshkey。) 然后再终端下执行命令:ssh-vgit@github.com最

java - 安全异常 : android. permission.INTERACT_ACROSS_USERS

只是在AndroidMonitor中我的应用程序PID下遇到了这个异常,但没有做任何特别的事情。我第一次看到这样的东西,有什么解释/文档吗?谢谢java.lang.SecurityException:PermissionDenial:broadcastfromandroidaskstorunasuser-1butiscallingfromuser0;thisrequiresandroid.permission.INTERACT_ACROSS_USERS_FULLorandroid.permission.INTERACT_ACROSS_USERS 最佳答案

Android - 尝试在启动时测试服务(java.lang.SecurityException : Permission Denial)

当设备在Android上启动时,我一直在尝试测试一项服务,但我无法让它工作。我正在尝试使用CMD中的此命令启动它:(在..\AppData\Local\Android\sdk\platform-tools中)adbshellambroadcast-aandroid.intent.action.BOOT_COMPLETED或adbshellambroadcast-aandroid.intent.action.BOOT_COMPLETED-candroid.intent.category.HOME-nnet.fstab.checkit_android/.MyReceiverAndroidM

安卓框架 : System service does not get permission(s)

我在Android框架中添加了一个系统服务(不是应用程序)(因此在system_process中运行)。通过Binder.getCallingUid()我可以确定调用进程/应用程序。到目前为止,一切都很好。但是,如果我的服务尝试使用其他系统服务(例如LocationManager),则会抛出SecurityException,因为LocationManager认为它是由调用我的服务的原始应用调用的。据我了解,系统服务默认拥有所有权限,所以不应该是这样吧?Fromprogramming4.us/Mobile/1304.aspx:Binderservicesarefreetomakeoth

c# - XNA 到 Mono Android 转换 : What is a simple (or the simplest) way of handling the activity life cycle?

我是一名C#开发人员,致力于向MonoAndroid的转换。这些转换工作完美,除了当电话超时或停电并且用户再次触摸屏幕时......游戏失败。处理这个问题的最简单方法是什么?我听说它被称为生命周期,并且发现很多关于这个周期的简短描述,但没有解释如何用真实的例子来实现它,尤其是如何用XNA转换来实现它。我的第一个解决方案是在XNA游戏中有一个“暂停”方法,并为Android的“暂停”运行该方法。然而,可能有更简单的方法来处理这个问题,因为我听说有简单的MonoAndroid设置可供选择,可以自动处理超时和电话调用。我想问的是..如何让我的XnA转​​换在电话调用、屏幕超时等情况下继续运行

android - 每个支持 GCM 的应用程序都应该有 "android.permission.WAKE_LOCK"

我见过的所有支持GCM的应用程序都有android.permission.WAKE_LOCK我想知道这背后的原因。如果支持GCM的应用没有此权限会怎样? 最佳答案 根据Google文档,它是可选的:Theandroid.permission.WAKE_LOCKpermissionsotheapplicationcankeeptheprocessorfromsleepingwhenamessageisreceived.Optional—useonlyiftheappwantstokeepthedevicefromsleeping.来源

【docker】bind: An attempt was made to access a socket in a way forbidden by its access permissions.

环境Win10DockerDesktop下班电脑关机,次日启动时候就出现:绑定:试图以其访问权限所禁止的方式访问套接字。意思:调用远程方法“dockerstartcontainer”时出错:错误:(HTTP代码500)服务器错误-端口不可用:暴露端口TCP0.0.0.0:8484->0.0.0.0:0:侦听TCP0.0.0.0:8848:绑定:试图以其访问权限所禁止的方式访问套接字。问题Errorinvokingremotemethod'docker-start-container':Error:(HTTPcode500)servererror-Portsarenotavailable:exp

android - 如何使用 simple_list_item_multiple_choice 换行文本?

我正在使用SimpleCursorAdapter来显示单个CheckedTextView。我知道最好使用simple_list_item_multiple_choice和android.R.id.text1。adapter=newSimpleCursorAdapter(getApplicationContext(),android.R.layout.simple_list_item_multiple_choice,rules,newString[]{Constants.KEY_RULE},newint[]{android.R.id.text1});如果KEY_RULE中的文本超过两行,