ADB wifi permission denied - Android Q&A, Help & Troubleshooting

when I try to enable wifi on my Samsung Galaxy J2 pro with adb this kind of error occurs and won't let me turn it on. The sofware version SM-J250n the south korean version.
can anyone help me???
C:\Users\Breath of the wild\Desktop\ADB>adb -s a7c2f2fa shell "svc wifi enable"
sh: resetreason: can't execute: Permission denied

Related

[Q] Checking SU access

I rooted my phone and I was able to install Superuser and Titanium Backup and both appear to be running successfully. My question is when I run adb shell from my PC and I get the $, I get permission denied when I type SU or whoami? Did I miss something?
C:\>adb shell
$ su
su
Permission denied
$ whoami
whoami
whoami: permission denied
$
just wondering why you need to use superuser when you use adb shell
OK, so why the permission denied response from the OS?
http://forum.xda-developers.com/showthread.php?t=1002203
that prob has something to do with it, push that kernel and try again
OK thanks, I will keep that in mind if I run into issues. Everything else is working fine otherwise, so I will well enough alone for now, while I read the docs on the Android Dev site.

Adb shell

$adb shell
permisiom denied
? Why is it permision denied
Vibrant owns cm7

Permission Denied on Rooted HDC A66/9199 Phone

Hello guys
Ive been searching for a solution for this but cant just get it to work.
I have a HDC A66/9199 .
Its rooted and im trying to flash a rom ( http://forum.xda-developers.com/showthread.php?t=1431855 )
Code:
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell
# su
su
# /sdcard/flash_image recovery /sdcard/CW45.IMG
/sdcard/flash_image recovery /sdcard/CW45.IMG
/sdcard/flash_image: permission denied
#
Ive tried shell rooting also, i also tried chmod the file on the sd card. still get the permission denied error.
When typing SU my phone accepts it by itself.
Any help? TY and excuse my bad language.

Running svc in ssh returns Aborted

I've rooted my phone using Magisk
I want to enable/disable Wifi using a shell script
Enabling or diabling works fine using command below
adb -s <serial> shell "svc wifi enable"
But when i start a SSH session svc throws an "Aborted" error
# svc wifi enable
Aborted
Info:
# adb -s <serial> shell "whoami"
shell
# adb -s <serial> shell "which svc"
/system/bin/svc
# adb -s <serial> shell "which sh"
/system/bin/sh
Also tried logging in SSH as user "shell"
Why is svc giving this error, is there a way to fix this ?
ReMiOS said:
I've rooted my phone using Magisk
I want to enable/disable Wifi using a shell script
Enabling or diabling works fine using command below
adb -s <serial> shell "svc wifi enable"
But when i start a SSH session svc throws an "Aborted" error
# svc wifi enable
Aborted
Info:
# adb -s <serial> shell "whoami"
shell
# adb -s <serial> shell "which svc"
/system/bin/svc
# adb -s <serial> shell "which sh"
/system/bin/sh
Also tried logging in SSH as user "shell"
Why is svc giving this error, is there a way to fix this ?
Click to expand...
Click to collapse
I'm facing the same issue here, did you mage to solve it?
estevaofv said:
I'm facing the same issue here, did you mage to solve it?
Click to expand...
Click to collapse
Unfortunately not ...
i have no clue
Hello friend, I just found the solution:
export ANDROID_DATA=/data
just run the above command, it was an environment variable related issue, I found the solution on the link below:
Can not run some CMDs over SSH · Issue #12 · Magisk-Modules-Repo/ssh
PixelExperience_caf_whyred-9.0 Magisk 19.2 Can not run some su CMDs over SSH shell, but over ADB everything is OK The error gives a sign of 'Aborted' Have been using SSH-Module for some time now, s...
github.com
estevaofv said:
Hello friend, I just found the solution:
export ANDROID_DATA=/data
just run the above command, it was an environment variable related issue, I found the solution on the link below:
Can not run some CMDs over SSH · Issue #12 · Magisk-Modules-Repo/ssh
PixelExperience_caf_whyred-9.0 Magisk 19.2 Can not run some su CMDs over SSH shell, but over ADB everything is OK The error gives a sign of 'Aborted' Have been using SSH-Module for some time now, s...
github.com
Click to expand...
Click to collapse
It works now
Great Solution ! Thanks !
I've put it in my ~/.profile to load it automatically at login (using SSH magisk module)
I've upgraded to Android 10 after this svc just gave an rc =1
# svc
1|
# echo $?
1
Fixed is by adding this to my ~/.profile
export PATH=$PATH:/sbin
export ANDROID_DATA=/data
export ANDROID_RUNTIME_ROOT=/apex/com.android.runtime
export ANDROID_TZDATA_ROOT=/apex/com.android.tzdata
# svc
Available commands:
help Show information about the subcommands
power Control the power manager
data Control mobile data connectivity
wifi Control the Wi-Fi manager
usb Control Usb state
nfc Control NFC functions
bluetooth Control Bluetooth service
system-server System server process related command

Wifi Monitor Mode

Hi all,
I have root on my tab s6 lite and I have nethunter installed. There isn't a custom kernel for tab s6 lite so I have to just use the generic install. When i try su -c "ip link set wlan0 down; echo 4 > /sys/module/wlan/parameters/con_mode;ip link set wlan0 up";exit I get Permission Denied, even in an android su terminal. Any idea what I'm doing wrong? When I do iw ph wlan0 I see that the chipset supports monitor mode. How can I get permission denied with root? Thanks!

Categories

Resources