Maralexbar / Wifi-Key-View

View your Wifi saves password
GNU General Public License v3.0
14 stars 1 forks source link

It does not work #1

Open pejakm opened 9 years ago

pejakm commented 9 years ago

I only get error that it needs root access and busybox. Android 4.2.2 here, rooted, full busybox installed. Compiled using Eclipse.

Few notes:

corppneq commented 9 years ago

The fdroid version gives the same error. CyanogenMod 11m12

Maralexbar commented 9 years ago

Your SuperUser app is the Chainfire version?

pejakm commented 9 years ago

I use this, but it never displays any superuser request from your app. (Also, your app needs have SUPERUSER permissions declared.)

Maralexbar commented 9 years ago

The android.permission.ACCESS_SUPERUSER is declared, I update the manifest https://github.com/Maralexbar/Wifi-Key-View/blob/master/AndroidManifest.xml

marcosilva85 commented 9 years ago

I also have this problem in cyanogenMod 11 M12. I don't understand why you need chainfire version, why shouldn't it work with the open source SuperUser?

marcosilva85 commented 9 years ago

The fix is to surround the commands after su -c <...> with ' and ' so that it becomes sudo -c 'something1 | something2' so it becomes: su -c 'cat /data/misc/wifi/wpa_supplicant.conf | busybox grep -E \"key_mgmt|ssid|psk\"' at: https://github.com/Maralexbar/Wifi-Key-View/blob/master/src/com/maralexbar/wifikeyview/MainActivity.java