如何限制应用程序权限管理申请不必要权限

三星S6里的应用程序权限管理不是可以禁用网络的吗,怎么感觉没用啊【三星s6吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:152,308贴子:
三星S6里的应用程序权限管理不收藏
三星S6里的应用程序权限管理不是可以禁用网络的吗,怎么感觉没用啊
买手机尽在1号店,手机爆款,正品行货,全国联保,全国配送,品质保障!1号店买东西,省钱省力省时间!
感觉禁用和不禁用没区别
登录百度帐号推荐应用iOS应用运行时在设置中更改权限应用崩溃问题 - 简书
iOS应用运行时在设置中更改权限应用崩溃问题
我们经常会在开发中获取设备的各种权限,当应用未经授权相关权限时,就会提示用户或者直接跳转到系统的‘设置’中来让用户授权。那么问题来了,当用户在更改授权的时候你会发现你的程序崩溃了,本以为是代码的原因,可是在网上查阅了一下发现这应该是系统的一个强制行为(ps:百du就是一坨屎)先链一下cocoachina相关问题的讨论:好像遇到类似问题的人真的很多,其实,这是系统的一个强制行为,并不是我们哪里做错了。所以我们只能用一些蹩脚的方法曲线救国。这是在Google上搜到的一篇国外译文,里边给出了一个解决方案:下面的翻译是原博客的机翻,不是我机翻的!!!不是我机翻的!!!不是我机翻的!!!我只是直接贴过来方便大家阅读()!总有一些高贵的大神想让人直接送到嘴里,嫌翻译是机翻,吧啦吧啦...,那就请这些高贵的大神直接看英文原文好吧,难道大神们都只看中文么?还有你来看博文是解决问题的不是来跟我这撕逼的,你要真想撕我陪你!!!
以下是原博客内容:!!!以下是原博客内容:!!!以下是原博客内容:!!!
主题:目前,当我更改app的摄像头权限设置,然后导航回到我的应用程序,该应用程序将迫使一个刷新,我将失去我的地方应用。我完全遵循这些步骤:打开一个应用程序使用相机的许可。导航到一些屏幕内的应用程序(稍后可以明显看到刷新)设置应用,导航到应用程序的设置,和切换相机允许双击回家,回到应用程序。几秒钟后,它会刷新,带你回到第一个屏幕注意:我用iPhone6运行iOS8.4我注意到相机上所有应用程序都有这种行为的许可。我的问题是:有一些方法来阻止应用程序刷新/重新启动后(简历)改变相机允许吗?它似乎没有发生当你切换位置服务,例如,从可用性的角度来看这是可怕的。用户场景:如果用户导航深入你的应用程序,那么需要改变相机许可(因为上次说他们不小心点击没有),他们将被迫返回,返回时屏幕。这是特别有害的一个应用程序试图卖给你一些东西,或者你签去一个新的帐户。他们可能会推出一项新功能,您可以使用相机采取一个概要文件图片或扫描你的信用卡。因为用户不知道这个功能,他们可能此前曾否认相机访问,但是现在要启用它。试图使再能之后,他们回到你的应用找到他们要花5+分钟注册/购买了!之后,即使我可能会放弃。原文:Currently, when I change the camera permissions for my app in Settings, then navigate back to my app, the app will force a refresh and I will lose my place in the app. I followthese stepsexactly:Open an app that uses the camera permission.Navigate to some screen within the app (so you can visibly see the refresh later)Go to the Settings app, navigate to the app's settings, and toggle the camera permissionDouble click home and go back to the app. After a few seconds, it will refresh, bringing you back to the first screenNote: I'm using an iPhone 6 running iOS 8.4I've noticed this behavior on all apps that have the camera permission. My question is:Is there some way to prevent the app from refreshing/restarting (on resume) after changing the camera permission?It doesn't seem to happen when you toggle location services, for example, and from a usability perspective this is horrible.User scenario: If a user navigates deep into your app, then needs to change the camera permission (because say they accidentally clicked no last time), they will be forced to navigate back to that screen when they return. This is especially harmful for an app trying to sell you something, or sign you up for a new account. They might try to introduce a new feature where you can use the camera to take a profile picture or scan your credit card. Because the user didn't know about this feature, they might have previously denied camera access, but now want to enable it. After trying to reenable, they come back to your app to find they have to spend 5+ minutes signing up / making a purchase, again! After that, even I would probably give up.解决方案:我确信没有其他方法来防止重启应用。实际上你会得到一个SIGKILL消息,但没有崩溃日志切换时设置。见下文链接:来防止这种情况的唯一方法就是保存你的先前状态应用程序而终止。应用当前的数据存储到一个json/plist/NSUserDefaults/档案用户模型在applicationWillTerminate:方法和恢复保存的数据在applicationWillEnterForeground:例如,@SignUpViewController注册UIApplicationWillTerminateNotification将火时,应用程序将终止。存储用户信息。希望这将帮助你:)原文:I'm sure that there is no other ways to prevent restarting app. Actually you will get a SIGKILL message but no Crash log when toggling settings. See below links-
The only way to prevent this scenario is to save the previous state of you application while terminating.Store app your current data into a json/plist/NSUserDefaults/archive user model at applicationWillTerminate: method andrestore saved data at applicationWillEnterForeground:For example- @SignUpViewController register for UIApplicationWillTerminateNotification which will fire when the app is about to terminate. Store user information there.- (void)viewDidLoad{ [superviewDidLoad]; [[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(applicationWillTerminate:)
name: UIApplicationWillTerminateNotification object:nil];}- (void)applicationWillTerminate:(NSNotification*)notification{
// store your data here}Hope this will help you:)”网友:applicationWillTerminate甚至不叫通知按照你的建议加入viewDidLoad所以任何想法吗?请帮助我。(原文:applicationWillTerminate not called even notification is add in viewDidLoad as you suggest so any idea for this? please help me.)解决方案:接受答案是正确的,然而工作的解决方案没有出现在iOS的当前版本(9.2)——应用程序似乎终止UIApplicationWillTerminateNotification之前解雇。然而听UIApplicationDidEnterBackgroundNotification,同样可以实现。e.g在迅速,把它放到viewDidLoad()和有一个这样的函数:原文:The accepted answer is correct, however the workaround does not appear to work in the current version of iOS (9.2) - the application seems to terminate before UIApplicationWillTerminateNotification is fired. However by listening to UIApplicationDidEnterBackgroundNotification, the same can be achieved. e.g in Swift, put this in viewDidLoad()NSNotificationCenter.defaultCenter().addObserver(self,selector:"enteringBackground:", name: UIApplicationDidEnterBackgroundNotification, object:nil)and have a function like this:funcenteringBackground(sender:AnyObject){
// Save application state here}版权声明:出自的原创作品 ,转载时请注明出处及相应链接!
iOS开发者公会-技术1群 QQ群号:
iOS开发者公会-技术2群 QQ群号:
iOS开发者公会-议事区
Github主页:222被浏览80363分享邀请回答xprivacy.eu).根据我自己归纳,控制权限的方式大致分为以下几种:1. 第三方应用。也就是LBE、360这一类XX手机助手,它们的使用门槛最低,但是缺点在于提供的选项比较单一、效率较低在旧机子上明显卡顿、而且这些软件发行者本身的可信任程度值得商榷。2. 强行吊销应用权限。包括修改apk文件和CM系统自带的权限管理。效率最高,但是有些应用不吃这套,修改后直接闪退,估计是在启动时会先检查权限的完整性(鄙视之)。3. 也就是这里推荐的 XPrivacy. 基于Xposed框架,直接从虚拟机层面进行操作,具体的原理我不太清楚,但可以肯定效率高于第一类应用。更大的好处在于极为丰富具体的选项,精确控制每一项权限,还可以用伪造数据等方法确保应用稳定运行。最重要的是完全开源,安全性更高。但有一定的使用门槛,建议至少对Android有基本的了解再使用。6添加评论分享收藏感谢收起

我要回帖

更多关于 三星应用程序权限管理 的文章

 

随机推荐