问题标签 [rooted]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 如何在 Android 中使用 root 创建/删除 /data/data 目录中的文件?
我正在开发一个 POC,我需要在其中创建并稍后删除/data/data根设备目录中的文件。我尝试以标准方式创建文件,但它PERMISSION_DENNIED按预期抛出异常。我知道这是可能的,因为 Root Explorer 应用程序可以做到。
如何通过 root 以编程方式创建/删除文件?
预先感谢!
android - 在 Android 7(root)上,libusb_init 失败并显示 LIBUSB_ERROR_OTHER
我正在尝试在 Android 应用程序中使用 libusb,它嵌入在 Android 本机模块中并使用 cmake 构建。该代码仅调用 libusb_init 并向活动返回一个字符串,并且系统性地失败并显示 LIBUSB_ERROR_OTHER。
问题是当它从一个小的命令行程序启动时,我可以让它工作,只做我们用 adb shell 启动的 libusb_init。在这种情况下,它返回成功。
该设备(三星 Galaxy Tab E)运行 Android 7 并已植根,使用 Magisk Manager 我授予我的应用 root 权限,但这不像在命令行中执行“su”。
我主要尝试使用版本 20 和 22(我们在其他项目中主要使用版本 20)。
我已经尝试了许多 stackoverflow 解决方案和解决方法,但它们要么无效要么无法实施(例如,由于 rom 限制)。
这是我如何调用 libusb.c :
这是我从 Activity 调用此代码的方式:
我在命令行中运行的小程序(无论我是否是 root 都可以使用):
android - 构建一个root android设备的应用程序
我想创建一个像“King Root”这样的应用程序,它可以一键启动安卓设备。有这个库或代码吗?我怎样才能做到这一点?
android - 植根 Android 10,ioctl Permission denied 错误
当我尝试在具有 root 访问权限的 Android 10 (Galaxy A11) 上运行一些命令时,我收到 ioctl“权限被拒绝”错误。例如:
之类的。我尝试用谷歌搜索这个问题,但找不到任何解决方法。有些人谈论 SELinux 的限制。但根检查器显示 SELinux 状态是允许的。如何摆脱这个ioctl错误并让命令行实用程序在我的手机上正常工作?
android - BrowserStack 设备是 Root 还是 Jail 坏了?
因此,我一直在尝试检查 BrowserStack 设备是否已植根或越狱,因为我需要测试我的应用程序是否应该在已植根或越狱的设备上可用。这是出于安全考虑,我将阻止用户使用应用程序如果 Rooted/Jail 坏了。
android - 在屏幕锁定时启动 shell 脚本(倒计时)并在屏幕解锁时停止它
我有一个植根设备,并且正在寻找一种方法来倒计时以在脚本用完时运行脚本,如果它被解锁并重置计时器则停止倒计时。这是我正在实施的某种电话安全功能。这个想法是保护手机,用额外的密码锁定它,甚至恢复出厂设置。如果您丢失了一部带有重要数据的手机,并且您可能没有启用移动数据/wifi,那么它很可能无法远程擦除数据。因此,我们的想法是设置 72 小时或类似的时间来解锁手机,如果不是,它会擦除所有数据并保持屏幕锁定。我已经在与一位应用程序作者聊天,他可能有想法如何将此功能添加到它的应用程序中。
hide - 如何在根设备 android 10 中隐藏特定应用的导航栏和通知面板?
我想在 android 10 根设备中制作 kiosk 应用程序我无法隐藏通知面板和导航栏所以请任何人帮助我我已经实现了这段代码
但不起作用所以任何人都知道请给我解决方案
android - How to set device owner on rooted android device via adb?
I have a rooted android device (Onn 4k streaming stick) and a single use application that I would like to make the device-owner.
Before I rooted the device, I attempted adb shell dpm set-device-owner <package>/<component>, which resulted in java.lang.RuntimeException: Can't set package ComponentInfo{<package>/<component>} as device owner.
When I do the set-device-owner command on a different device (Lenovo M10 tablet) I found that device_owner_2.xml and device_policies.xml are created in the /data/systems/ directory - and the application is successfully set as the device owner.
After I rooted the Onn 4k device, I tried to create the device_owner_2.xml and device_policies.xml files and manually add them to the /data/system directory, but that didn't work.
I cannot figure what the issue is. Are there any other files besides the device_owner_2.xml and device_policies.xml that need to be created for the device to recognize ownership? Are there some devices that don't allow applications to be set as device owners?