Giter Site home page Giter Site logo

Accessibility using ADB about droidvnc-ng HOT 11 CLOSED

bk138 avatar bk138 commented on July 23, 2024
Accessibility using ADB

from droidvnc-ng.

Comments (11)

bk138 avatar bk138 commented on July 23, 2024

Uh, no idea. Does https://github.com/bk138/droidVNC-NG#notes help? Also, found https://alexzh.com/adb-commands-accessibility/ by a quick google attack. Let us know what works for you please!

from droidvnc-ng.

Droidphilev avatar Droidphilev commented on July 23, 2024

Hi again,
Thanks for your answer. Sadly this is another command. Later today i will give an example of an adb command to enable accessibilty for "Button Mapper" via ADB. Maybe it will be more clear then?

grts,
Phil

from droidvnc-ng.

Droidphilev avatar Droidphilev commented on July 23, 2024

Hi again,

Here with an example.
To enable accessibility service for "Button Mapper" i use in ADB:
"adb shell pm grant flar2.homebutton android.permission.WRITE_SECURE_SETTINGS"
"adb shell settings put secure enabled_accessibility_services flar2.homebutton/flar2.homebutton.a.ai"

to get Button Mapper out of Doze (battery optimisation) i use in ADB:
"adb shell dumpsys deviceidle whitelist +flar2.homebutton"

Hope this is a bit more clear of what i mean.

grts,
Phil

from droidvnc-ng.

bk138 avatar bk138 commented on July 23, 2024

Maybe adb shell pm grant net.christianbeier.droidvnc_ng android.permission.WRITE_SECURE_SETTINGS and adb shell settings put secure enabled_accessibility_services net.christianbeier.droidvnc_ng/ InputService ? But am just wildly guessing - you probably have to play around with some combinations I guess.

from droidvnc-ng.

Droidphilev avatar Droidphilev commented on July 23, 2024

Thank you!!!!!

Will give it a try next time i'm able to connect the devide to pc.

from droidvnc-ng.

bk138 avatar bk138 commented on July 23, 2024

@Droidphilev could you try this out? If so, what were the results?

from droidvnc-ng.

Droidphilev avatar Droidphilev commented on July 23, 2024

@Droidphilev could you try this out? If so, what were the results?

Sure i will! Still my device is still used by some one else. As soon as it is back home i will try this and report back.

from droidvnc-ng.

Droidphilev avatar Droidphilev commented on July 23, 2024

Hrm, i closed this topic by accident and have no idea how to open it again, i'm very sorry :(

from droidvnc-ng.

Droidphilev avatar Droidphilev commented on July 23, 2024

Hello again, tried both commands:

The first one gives as error: "Operation not allowed: java.lang.SecurityException: Package net.christianbeier.d
roidvnc_ng has not requested permission android.permission.WRITE_SECURE_SETTINGS"

The second one gives as error: "Too many arguments
usage: settings [--user <USER_ID> | current] get namespace key
settings [--user <USER_ID> | current] put namespace key value
settings [--user <USER_ID> | current] delete namespace key
settings [--user <USER_ID> | current] list namespace

'namespace' is one of {system, secure, global}, case-insensitive
If '--user <USER_ID> | current' is not given, the operations are performed on th
e system user."

Any idea please?

from droidvnc-ng.

bk138 avatar bk138 commented on July 23, 2024

Just tried a single adb shell settings put secure enabled_accessibility_services net.christianbeier.droidvnc_ng/.InputService and that worked for me.

from droidvnc-ng.

Droidphilev avatar Droidphilev commented on July 23, 2024

Ah, a dot before 'Inputservice' :-)

Will try again next time it's with me and report back, thank you!

from droidvnc-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.