Termux-app: Trying to get and set system vars.

Created on 14 May 2019  路  8Comments  路  Source: termux/termux-app

Hi Guys... Quick help. I just installed Termux on my OnePlus mobile just now. Is it possible to run commands like adb shell settings put global on it? If so, how should I type them in the termux terminal?

I saw somewhere to use su -c, but I get an error saying: No su program found (similar to https://github.com/termux/termux-app/issues/430).

BTW, I am able to do it without rooting from adb shell from a PC / Mac.

I haven't rooted my phone and would like to not root the phone. BTW, the command I would like to run is:

adb shell settings get global op_voice_recording_supported_by_mcc
adb shell settings put global op_voice_recording_supported_by_mcc 1

I get this error if I try in termux, removing adb shell: Failure calling service settings: Failed transaction. How should I proceed? Am I making any mistake?

Please help. 馃槆

question

All 8 comments

Is it possible to run commands like adb shell settings put global on it?

Since there no package "adb", you can't execute commands like

adb shell settings put global op_voice_recording_supported_by_mcc 1

on device.

@xeffyr Agreed. But this is the main reason I tried installing this app. What about the error with settings?

You cannot write these settings without having system privileges (like adb) or root.

@xeffyr So is it true that without root permissions, I'll be able to do it on a MacOS using adb?

And thanks for helping me out in this. 馃槆

By using ADB, you can do some more stuff than regular application because of higher privileges. It is not root, but close to system user.

Final question. Will I be able to do the above commands using Termux? Based on your comments, can I take it as "no"? Thanks again for your patience. 馃槆

You can't. Termux is not adb shell and doesn't have adb utility.

Thank you so much... 馃槆

Was this page helpful?
0 / 5 - 0 ratings