Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device must be rooted? #1

Open
JasonHK opened this issue Jun 15, 2017 · 10 comments
Open

Device must be rooted? #1

JasonHK opened this issue Jun 15, 2017 · 10 comments

Comments

@JasonHK
Copy link

JasonHK commented Jun 15, 2017

Can you use an alternative way to achieve this feature? For example adb.

@ipcjs
Copy link
Owner

ipcjs commented Jun 16, 2017

Root is required.
Can not use adb to achieve this feature.
see: Is it possible to execute adb commands through my android app? - Stack Overflow
(英语不好,剩下的写中文。。。)
adb是电脑上的命令,手机上是没有adb这个名字的命令的。即使有方法可以调用到,也需要root权限,普通的app不可能有权限去执行adb这么高权限的指令。

@JasonHK
Copy link
Author

JasonHK commented Jun 16, 2017

@ipcjs Oh, I mean using adb to grant permissions.

@ipcjs
Copy link
Owner

ipcjs commented Jun 17, 2017

这个应用是通过执行Linux的模拟按键的命令实现的。发送模拟按键需要root权限。

@JasonHK
Copy link
Author

JasonHK commented Mar 13, 2019

Oh, is there a new breakthrough for this function to be able to work without root permission?

@ipcjs
Copy link
Owner

ipcjs commented Mar 13, 2019

I plan to add a "WiFi ADB mode" that does not require root permission, but need to manually open WiFi ADB.

@nostromov
Copy link

nostromov commented Sep 5, 2019

[..] without root permission

ScreenshotTile (NoRoot), https://github.com/cvzi/ScreenshotTile is a fork; and on f-droid:

Screenshot Tile (NoRoot), https://f-droid.org/app/com.github.cvzi.screenshottile

EDIT: Also, I've been unable to find what's preventing from using the hardware buttons for screenshots, is it for reassigning gestures? :o

@ipcjs
Copy link
Owner

ipcjs commented Sep 11, 2019

@nostromov good job!

@sengsational
Copy link

sengsational commented Nov 2, 2019

The non-root version (cvzi/ScreenshotTile#5) suffers with a problem of capturing a black image if the foreground app has precluded screenshots.

Does this version get past that limitation?

@ipcjs
Copy link
Owner

ipcjs commented Nov 2, 2019

@sengsational This version has the same effect as using the hardware button.

@cvzi
Copy link

cvzi commented Dec 28, 2019

FYI:
in API28 (Android 9 Pie) we can do
performGlobalAction(GLOBAL_ACTION_TAKE_SCREENSHOT)
from an accessibility service.
It does the same thing as the hardware buttons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants