运行方式:无法设置功能:不允许操作 [英] run-as: Could not set capabilities: Operation not permitted

查看:293
本文介绍了运行方式:无法设置功能:不允许操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在android 6.0.1上,尝试使用运行方式时出现此错误。

on android 6.0.1 I am getting this error when trying to use run-as.

⋊> ~ adb shell                                                          14:29:01
shell@trlte:/ $ run-as org.ligi.passandroid                                    
run-as: Could not set capabilities: Operation not permitted

我真的很喜欢run-as命令-有办法让它在6.0.1上运行吗?

I really like the run-as command - is there a way to get it to work on 6.0.1 ?

推荐答案

如果您有 SAMSUNG 设备,请不要打扰-SAMSUNG 布鲁克 运行方式,方法是放下setuid标志(因此运行方式没有切换到其他身份的机会。)

If you have a SAMSUNG device, don't bother - SAMSUNG broke run-as by dropping the setuid flag (so run-as has no chance of switching to a different identity).

也不必费心尝试Smart Switch的重新初始化设备解决方法,直到SAMSUNG在固件中修复它后,它才起作用(因此值得将其更新到最新版本)。

Also don't bother trying the Smart Switch "reinitialize device" workaround, it won't work until SAMSUNG fixes it in the firmware (so it is worth updating to the latest version).

使用一些访问应用程序数据的其他方法,例如 adb备份

Use some other method to access your app's data, like adb backup:

adb backup -f data.ab <my.package>
dd if=data.ab  bs=24 skip=1 | openssl zlib -d > data.tar

您可以代替 dd 使用 abe 工具,该工具也可以写入.ab文件。

Instead of dd you can use the abe tool, which can also write .ab files.

这篇关于运行方式:无法设置功能:不允许操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆