[Q] Can't retrieve saved WiFi passwords using adb commands. - Moto G Q&A, Help & Troubleshooting

Hello Friends my previous question went totally unnoticed http://forum.xda-developers.com/moto-g/help/restore-downloading-stock-firmware-t2949283
But I hope you will help me this time Moto G xt1033
It is not ROOTED..
I have a couple of saved WiFi passwords in my phone. I forgot them and want to retrieve them now. I know /data folder can not be accessed on non-rooted phone. So I tried it by using adb. I have latest adb, fastboot and Motorola drivers. So let's start. Usb debugging is enabled and my phone is recognised when I use "adb devices" commands. Then I type "adb pull /data/misc/wifi/wpa_supplicant.conf" but it says it does not exist. I have been trying this for many days but I don't want to root my phone for some time. I browsed Internet and all sites say adb pull or adb push can be used successfully without root. Adb pull from /SDcard is always successful but not from /data folder. When I try to open /data/misc or data/misc/WiFi using adb commands it says permission denied. Adb push is also unsuccessful in /data folder. I made a fake wpa_supplicant.conf file in C:\wp folder and then I typed "adb push C:\wp\wpa_supplicant.conf /data/misc/WiFi (I also tried /data/misc/wifi/wpa_supplicant.conf) but it says permission denied. I also can't make these folders readable writable as it says permission denied. Later I also tried using terminal emulator on my phone but no gain. Please help me how can I make proper use of adb without rooting my phone. I don't type commands wrong as I have visited countless sites for many days. And sorry for my English mistakes, if any.
Thanks.

Guru.Eclairs said:
Hello Friends my previous question went totally unnoticed http://forum.xda-developers.com/moto-g/help/restore-downloading-stock-firmware-t2949283
But I hope you will help me this time Moto G xt1033
It is not ROOTED..
I have a couple of saved WiFi passwords in my phone. I forgot them and want to retrieve them now. I know /data folder can not be accessed on non-rooted phone. So I tried it by using adb. I have latest adb, fastboot and Motorola drivers. So let's start. Usb debugging is enabled and my phone is recognised when I use "adb devices" commands. Then I type "adb pull /data/misc/wifi/wpa_supplicant.conf" but it says it does not exist. I have been trying this for many days but I don't want to root my phone for some time. I browsed Internet and all sites say adb pull or adb push can be used successfully without root. Adb pull from /SDcard is always successful but not from /data folder. When I try to open /data/misc or data/misc/WiFi using adb commands it says permission denied. Adb push is also unsuccessful in /data folder. I made a fake wpa_supplicant.conf file in C:\wp folder and then I typed "adb push C:\wp\wpa_supplicant.conf /data/misc/WiFi (I also tried /data/misc/wifi/wpa_supplicant.conf) but it says permission denied. I also can't make these folders readable writable as it says permission denied. Later I also tried using terminal emulator on my phone but no gain. Please help me how can I make proper use of adb without rooting my phone. I don't type commands wrong as I have visited countless sites for many days. And sorry for my English mistakes, if any.
Thanks.
Click to expand...
Click to collapse
Hey mate, that folder is off limits unless you have root (to protect against malicious apps modifying stuff)
Cheers

itouchables said:
Hey mate, that folder is off limits unless you have root (to protect against malicious apps modifying stuff)
Cheers
Click to expand...
Click to collapse
Yes /data folder and its subfolders are private by default and can be accessed only after root. But adb push and pull are possible in /data/misc/wifi/ xda-developers and all other major tech sites can not be wrong.

Ok then, i think there is no other method than rooting. It says wpa_supplicant.conf doesn't exist in /data/misc/wifi/
So it may be there in any other folder. Where to look other than /data/misc/wifi folder

Related

Sprint apps

how can i get the removed sprint apps
By searching for them. They're all over the place.
jerry43812 said:
By searching for them. They're all over the place.
Click to expand...
Click to collapse
root your phone.
a lot of the custom roms have them removed already but if u dont want to go that route then after rooting find the package names for the sprint apps. this can be done by searching online for them or issuing the following commands once your phone has been connected and in debugging mode:
adb shell
ls system/app
this will list all the files in that directory.
once you know the app name issue the following commands inside the shell (phone is connected to the computer in debugging mode and adb shell has been run)
rm system/app/<sprint app>.apk

how do you change folder permissions???

hi
how does one change folder permissions? i have read that you cam do it with the root explorer app but is there a way to do it on the pc using the sdk? i connected my phone to the pc and issued the adb shell command and then attempted to use the chmod command but got a read only file system message.
dsMA said:
hi
how does one change folder permissions? i have read that you cam do it with the root explorer app but is there a way to do it on the pc using the sdk? i connected my phone to the pc and issued the adb shell command and then attempted to use the chmod command but got a read only file system message.
Click to expand...
Click to collapse
1) If you have ADB setup on your computer, hook your phone into the computer and connect into it via ADB.
2) Once in, "chmod" the directory or file(s) you wish to change permissions for.
IF you don't have ADB:
1) Download a terminal
2) su - to root
3) Change your directory
4) "chmod" to whatever pemissions you want
it means that folder/file you're chmod'ing was mounted ro. you cant change anything if its mounted as ro. to check just enter "mount" and you can see what are mounted as rw, ro etc
yantz
I would also suggest changing it back when you're done. This helps prevent you from accidently overwriting or deleting something and have to reflash if you're rooted.

[Q] Accessing /data on non rooted EVO

I have an otherwise stock EVO that I need to remove a file from /data.
Can I do this using adb?
It looks like I need root access to do this?
mount gives "operation not permitted" error. Is this a major undertaking or can I just install a simple package to get me access to this folder?
Maybe it will help if I give more details.
I have my phone connected to my laptop via USB, and am using adb shell to gain shell access to the phone.
If I cd to /data, it looks empty. I know it's not empty, because one of my apps stores data there.
I have read elsewhere that there may be a version of su that I can download and install via adb push. Could I use this to gain root access via adb shell and then use that to remount the /data file system so that I could modify files there?
It just occured to me that maybe I could use adb push to overwrite the files. I'll look into that too, but I'm sure I would get permission problems with that too.

[Q] View SD card files via adb

Hey guys,
Is there any ADB commands to view ike directories on your phone?
So a bit like dir in cmd, just to list all files and folders.
just to make pulling files easier etc.
If so could you list commands to make this possible and for folder navigation just incase its different from CMD, and ive got little Linux exp so im not sure of its commands for file navigation.
PS Searched for this and could find no solution.
Cheers!
EDIT:
Worked out how to do this, once connected to phone via ADB start up a shell..
adb shell
type su for superuser.
then ls to list the dirs
and cd to change
cant seem to go up levels though as it says i dont have a defined home directory but im sure this can be easily set up some way that i have not yet discovered how to do!!
Sorry if this if obvious but may come in useful to some people!!

[Q] Is there any way to reinstall a system app?

Hi,
I was having trouble with my app YouTubeTablet.apk, it stopped working while I was using it. thinking I was starting to get the hang of this OS, I found the apk in system/app/ and, thinking I could just reinstall it, I deleted it. It wont let me reinstall it. it trys to install, then just gives an error saying "app did not install"
I have been reading and searching all night, I have tried the chmod 644 and a few other things but nothing I have done has seemed to work to get this reinstalled.
Does anyone know a way to get this app back?
thanks,
John
Hello I'm not 100% certain as I'm also pretty new to this scene, but couldn't you just copy the apk back to /system/app ?
Sent from my ADR6300 using XDA App
Use a root explorer and copy the new app to /system/app. Restart and it should work.
I use ES File Explorer, but you have to check mount as read/write in the settings before you copy to system/
Install in /system/app and make sure your permissions are correct. Read: User, Group and Others checked and Write: User checked. Reboot
BTW Youtube crashed last night for everyone. Was a thread about it.
Thanks for the reply's,
I have tried most of this stuff, I tried the rest (changing the permissions) and it still doesn't show up in apps or install
not sure what else to try??
John
Try pushing it via adb then fixing permissions.
Beamed from my TF101 using Tapatalk HD
Xerravon said:
Thanks for the reply's,
I have tried most of this stuff, I tried the rest (changing the permissions) and it still doesn't show up in apps or install
not sure what else to try??
John
Click to expand...
Click to collapse
What ROM are you running? Just flash that ROM again without wiping.
infazzdar said:
Try pushing it via adb then fixing permissions.
Beamed from my TF101 using Tapatalk HD
Click to expand...
Click to collapse
Hi,
I have been trying to do this, I cant seem to do it
after installing sdk I am
1. booting into apx vol up + power while plugged into the pc (plus I tried pluging nto the pc after going into apx mode)
2. adb devices (none show) If I boot normally the devices do show
3. in apx mode, apx shows under devices and printers in my pc
so I tried to do adb remount with the TF booted normally it says not permitted, if I try in apx mode it says no device
I dont know, I am lost, I hope this is all my fault, it has to be, I am reading and reading, nothing I find, or stuff people tell me to try works. I am really starting to wonder about this OS
John
Xerravon said:
Hi,
I have been trying to do this, I cant seem to do it
after installing sdk I am
1. booting into apx vol up + power while plugged into the pc (plus I tried pluging nto the pc after going into apx mode)
2. adb devices (none show) If I boot normally the devices do show
3. in apx mode, apx shows under devices and printers in my pc
so I tried to do adb remount with the TF booted normally it says not permitted, if I try in apx mode it says no device
I dont know, I am lost, I hope this is all my fault, it has to be, I am reading and reading, nothing I find, or stuff people tell me to try works. I am really starting to wonder about this OS
John
Click to expand...
Click to collapse
It's ADB, you do NOT put it in APX mode. Just turn USB Debugging on.
Open the command window and type in ADB devices to see if your device come up.
This thread help with driver's and such for ADB
http://forum.xda-developers.com/showthread.php?t=1071584
baseballfanz said:
What ROM are you running? Just flash that ROM again without wiping.
Click to expand...
Click to collapse
I think I am running the stock rom, rooted. I dont have anyidea how to flash
Is there a way for me to reflash the same stock rom? If you can point me to same directions or info where I can try to learn this?
thanks
baseballfanz said:
It's ADB, you do NOT put it in APX mode. Just turn USB Debugging on.
Open the command window and type in ADB devices to see if your device come up.
This thread help with driver's and such for ADB
http://forum.xda-developers.com/showthread.php?t=1071584
Click to expand...
Click to collapse
thank you, I just read somewhere it had to be in apx for adb
Ok the devices do show in the list
I read to type
adb remount
adb push youtubetablet.apk /system/app/
adb push youtubetablet.odex /system/app/
to push these into system/app
when I type adb remount I get the error
"remount failed operation not permitted"
any idea what I am doing wrong
thanks
John
try
Code:
adb shell remount rw
baseballfanz said:
try
Code:
adb shell remount rw
Click to expand...
Click to collapse
It gives me
remount: permission denied
I just read I will quote below
"If it shows a $ sign when u type adb shell then u got no root son"
Ok, when I type adb shell I do get the $ does this mean I am not rooted? I do have su and can get su permissions in root explorer. heck that is what got me in this trouble, I was able to delete the youtubetablet apk from system/app/
adb
Xerravon said:
It gives me
remount: permission denied
I just read I will quote below
"If it shows a $ sign when u type adb shell then u got no root son"
Ok, when I type adb shell I do get the $ does this mean I am not rooted? I do have su and can get su permissions in root explorer. heck that is what got me in this trouble, I was able to delete the youtubetablet apk from system/app/
adb
Click to expand...
Click to collapse
What method did you use to root?
baseballfanz said:
What method did you use to root?
Click to expand...
Click to collapse
I used this one to root back on (8.6.5.9)
ASUS Transformer Root ToolKit V7.1 Universal (Windows) | 2011-09-22 (brk's)
http://forum.xda-developers.com/showthread.php?t=1185104
and I updated with these
[UPDATE] CWM - Stock + Root - 8.6.5.21 US 8.6.5.21-WW 8.6.6.23-WW Updated 12/29/2011 (daoist )
http://forum.xda-developers.com/showthread.php?t=1334673
I was able to do this in terminal emulator
mount -o rw,remount /system
cp sdcard/download/youtubetablet.apk /system/app/
cp sdcard/download/youtubetablet.apk /system/app/
mount -o ro,remount /system
this did seem to work, i mean It did copy the files into the system/app dir however I still dont see the app in my apps and still cannot install
One difference this time, if I copied the files into the system/app dir using root explorer then changed the permissions with root explorer I could, I mean it would allow me to check the box's and save the change
this time In root explorer I cannot keep or save the changes to the permissions, it gives some error about "not being able to change permissions on some file formats such as sdcard etc..." something like that
thanks
John
I was able to push the files over using this method found here (pushing it via adb with my TF in recovery (CWM)
http://androidforums.com/optimus-m-...anyone-who-has-rooted-deleted-lghome-apk.html
it did push the files but still doesnt show up as an app
The may seems simple and don't get mad at me for saying this, but did you reboot after you pushed it to /system /app? It should show up then. At least that is the way I push them and usually when it doesn't work, it is because I forgot that part.
Xerravon said:
[UPDATE] CWM - Stock + Root - 8.6.5.21 US 8.6.5.21-WW 8.6.6.23-WW Updated 12/29/2011 (daoist )
http://forum.xda-developers.com/showthread.php?t=1334673
John
Click to expand...
Click to collapse
Have you tried flashing that ROM again?
baseballfanz said:
Have you tried flashing that ROM again?
Click to expand...
Click to collapse
No I havent, is it ok to just reflash like that? I ask cause it says (in the thread) it wont work unless you have the update before that one installed.
Hi, Yes, I did reboot, actually tried the whole thing a few times/
thanks guys

Categories

Resources