问题标签 [root-access]

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.

0 投票
1 回答
5804 浏览

android - 如何以编程方式关闭android设备?

我的设备是有根的。

我知道要重启设备,我们使用 shell 命令“su -c reboot”。在其他一些帖子中,我看到人们将关机命令发布为“su -c shutdown”,但这不起作用,并且还有一个名为 ACTION_SHUTDOWN 的权限,但这些权限用于系统应用程序。

有没有关闭设备的命令?

0 投票
1 回答
2288 浏览

openshift - 作为 OpenShift 用户,我可以做什么?

我目前正在使用虚拟服务器并想尝试OpenShift。但我还没有真正了解它是如何工作的。我可以获得对我的“网络空间”的根访问权限吗?我可以设置服务器操作系统(例如 Debian 7)吗?我可以安装/卸载软件(nginx、PHP 5.5、PHP Code Sniffer PEAR 包等)吗?我可以将一个设备用于多个网站吗?

0 投票
1 回答
816 浏览

android - android java接收root访问被拒绝

我已经成功地将我的 Nexus4 植根,并试图通过 RootTools.jar 扩展名在 java 中接收 root 访问权限。当我打电话时,RootTools.isRootAvailable()我收到了true,但是当我打电话时RootTools.isAccessGiven(),实际上应该给我 root 访问权限,我收到了false??我还通过登录设备adb shell并执行了命令suid返回

那么为什么我无法在java中获得root访问权限?

0 投票
1 回答
160 浏览

ios - 越狱应用程序:如何分发需要安装在 /Application 中的应用程序?

我为越狱设备开发了一个应用程序,我的应用程序需要 root 访问权限,因此我需要将它安装在 /Application 中,但我只知道如何使用 SSH 部署它。我发现这种方式对用户来说很难。

那么问题来了,这个安装有没有用户只需要下载安装的解决方案?怎么做

感谢您的回答。

0 投票
1 回答
641 浏览

android - Android Root 可访问性事件侦听器

我需要一个事件来观察 android 设备上是否采用了 root 可访问性。

我没有使用事件监听器。该程序将根访问信息存储在 SQLite 数据库中。在某些时期,它会检查当前的根访问信息和存储的根访问信息。如果它被改变,它会给出警告。但是我想在 root 访问信息更改后立即发出警告,而不是在某个时期。

我怎样才能做到这一点?自定义事件侦听器适用于此吗?我需要推荐最好的方法。

0 投票
2 回答
3078 浏览

android - 我可以在非 root 设备上使用 sqlite 3

大家好,我知道如何在模拟器上使用 sqlite3 来监控应用程序的数据。可以在真机上使用吗?
当我在我的设备上尝试时,我的设备是 Nexus S,它说找不到 sqlite3。sqlite 3设备必须是root设备吗?我的设备不是根设备。

我知道其他查找数据的机制,例如在 SD 卡中转储 db 文件,然后使用第三方 SQL 浏览器查看数据。

0 投票
1 回答
754 浏览

android - 为安卓设备设置系统级默认屏幕方向

我有一个项目要求创建一个始终处于横向模式的基于信息亭的应用程序,为此我正在使用在 4.2.2 上运行的平板电脑。其中一个模块具有拨打电话的功能。从我的应用程序调用时,我调用了默认的 android 拨号器应用程序。但是,我注意到即使我的设备在物理上处于横向模式,有时当调用默认拨号器应用程序时,它首先显示其纵向布局并快速切换到横向的(在视觉上不吸引人)。现在,由于我无权修改默认拨号器应用程序的源代码,我想知道是否有一种方法可以将系统级屏幕方向指定为横向?

PS:我的平板电脑有root访问权限。任何帮助将不胜感激。非常感谢!

0 投票
1 回答
593 浏览

android - 单击按钮运行 shell 命令

我希望使用以下方式以编程方式重置 android 设备:
adb shell recovery --wipe_data

1. 最简单的方法是什么?

2. 是否需要root/超级用户访问权限?

0 投票
1 回答
619 浏览

c++ - 如何在 Qt 中通过 root 特权以编程方式运行打印命令 lpr -p

我想lpr -p通过 Qt 中的 root 权限以编程方式运行打印命令。实际上我想使用这些命令打印 pdf 文件。此命令通过终端运行,但不是通过编程方式运行。

提前致谢。

0 投票
1 回答
11975 浏览

mysql - Re-enable root access in mysql

I recently installed mysql on my (cloud) server and then I ran sudo /usr/bin/mysql_secure_installation and disallowed remote root login. Then I created another user to run all my queries and gave it appropriate permissions. I can't remember the password now (or password got changed somehow) and am unable to connect to mysql. Whenever I try to connect using mysql -u user -p I get the following error

ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: YES)

I tried following what answers to other question here on SO suggested but most of them require access to mysql shell.

I also tried to reconfigure using sudo dpkg-reconfigure mysql-server-5.5 (my version number is 5.5.41).

Using this I am able to set the root password but still can't connect it. I also tried running mysql in safe mode, as suggested by some user, with no luck.

Last thing I could think of was somehow renable the remote access for root, since I can reset it's password, and then reset the user password through mysql shell. So, I tried looking the /etc/mysql/my.cnf file but didn't see anything relevant.

Is there anything I am missing? How can I reset the password and get access again?