Adhoc for nexus one? - Nexus One Q&A, Help & Troubleshooting

Is there a way to get tHe nexus one to be able to latch onto adhoc networks? As it stands my n1 isn't even reading the SSID, does anyone have a solution to this?

http://android.modaco.com/content/g...-com/300596/nexus-one-connect-to-ad-hoc-wifi/
Read the post about wpa_supplicant.conf modification.
You can also edit /system/etc/wpa_supplicant.conf and change "ap_scan=2" there.
You can also try running Cyanogen.

Thanks for that. I'm running froyo right now so no cyangen for now. How exactly do i edit those files? It didn't exactly explain that...

Rooted? Otherwise you won't be able to do anything.
adb remount
adb pull /system/etc/wpa_supplicant.conf wpa_supplicant.conf
edit wpa_supplicant.conf with whatever text editor on PC, change ap_scan value.
adb push wpa_supplicant.conf /system/etc/wpa_supplicant.conf
If anything is unclear - I suggest you not to try. No responsibility, etc.

I tried using adb anditdidnt work for me.

Didn't work - how? What was the error and when?

It says that the file i am trying to pull doesn't exist.

Sorry, my bad. It's /system/etc/wifi/wpa_supplicant.conf
To make sure, do adb shell /system/etc/wifi/ and make sure that it's there.

I've tried this again and again and again but still no success.. wonder if ever anyone successfully connect to adhoc network on froyo...

I have tryed on my Nexus one and Failed.
I have added "ap_scan=2" in the beginning. "mode=1" on required network section.
What I have noticed, that any time you add|delete|modify any network in Settings->Wifi Settinings ..... line with "ap_scan" is removed.

Related

SOLVED - Pull an APK from unrooted phone

I have a Motorola Cliq, Also a G1. I was wondering. Is there a way to pull an APK from an unrooted phone? I can "adb shell" into the phone and look at it's contents. I see the APK i want to copy but since i don't have root, it says "CP Permission Denied"... Is there a way of pulling or copying an APK if the phone is not rooted???
Did you try adb remount first?
Karolis said:
Did you try adb remount first?
Click to expand...
Click to collapse
yes, I tried ADB remount but it doesn't work... I can do adb devices and it'll show but it won't mount it as rw... it just lists the contents but can't copy,move,pull or push.
Where is the apk located? If it's in /system and it's read-only in theory you should still be able to pull it. Don't know why you're using 'cp' rather than adb pull.. If it's in data/app-private then no you won't be able to pull it. Hence the ADP1 has root but can't download paid apps (to prevent piracy)..
Solved
I tried CP, MV, PULL, PUSH... nothing worked because the phone is not rooted... BUT I SOLVED THE PROBLEM!
Here's what my goal was. My wife got a Motorola Cliq. It came with the TeleNav program and i wanted to put it on my G1... I couldn't get it out because the phone's not rooted....
I fixed the problem though...
I installed ASTRO File Manager on the Motorola Cliq, located the APK and used the e-mail option to e-mail it to myself... that actually worked... woot woot!
Installed it on the G1 and it works like a charm... so now I have Turn by Turn directions on my G1.
follow up question because i'm attempting to do the same thing, just trying to extract the apk. where exactly did you find that file using astro, i've been looking but haven't seen it
jbearamus said:
follow up question because i'm attempting to do the same thing, just trying to extract the apk. where exactly did you find that file using astro, i've been looking but haven't seen it
Click to expand...
Click to collapse
Apps should be in /data/app.
Also, you could have used ADB
Code:
adb pull /data/app/app.to.pull.apk C:\apps
Ooglez said:
Apps should be in /data/app.
Also, you could have used ADB
Code:
adb pull /data/app/app.to.pull.apk C:\apps
Click to expand...
Click to collapse
now i understand the fact that i have a different device may screw things up, but when i look in the data file it says "directory is empty" and when i executed that command via cmd prompt it says remote object...does not exist
the new google maps in market hs turn by turns as well...
Problem solved through other means, thanks for the help!

Modifying APN-config.xml

well I just flashed modaco's r21 froyo rom and lost data connectivity. discovered this was due to the lack of APNs for networks other than t-mo (such as ATT and cingular). I tried modifying the xml and then tried to copy and paste it with andexplorer with no sucess. I figured I would have to push it there with adb but ADB won't find device. any ideas?
the file in question is in /system/etc/apn-config.xml and I found a "complete" version at:
http://docs.google.com/Doc?docid=0AZNbAmKkmakoZGZxZHNwMnpfMjJkaHg3ejN3eg&hl=en
Should be in Q&A.
Also you should search a little more.
Are you under Linux?
If yes, run adb as root to see your device.
If yes/no, check you have USB Debugging activated.
http://code.google.com/p/cyanogenmod/wiki/APNlist
Oops. I just figured this section was most appropriate for modifying system files. I'm on windows. Ran advanced through command line as admin and no luck. Latest version of the ask/adb too
Sent from my Nexus One using XDA App
How can I install this apns-conf.xml in my N1?
ttereve said:
the file in question is in /system/etc/apn-config.xml and I found a "complete" version at:
Click to expand...
Click to collapse
@fsoliveira: remount and adb push
Next time, to save you some headache, you can use APN backup and restore app.

[Q] adb confusion

Hey there xda forums,
so a while ago i bought a galaxy s, and i was pretty happy with it! rooted it, used a lagfix, and now im trying to tweak the framework-res.apk to get a glass status bar + dock.
now i know theres enough tutorials on this, and i know how the adb works, but i cant seem to 'push' my framework-res.apk back onto my phone after i've modified it.
here's what it says
Code:
C:\android-sdk-windows\tools>adb push framework-res.apk /system/framework/
failed to copy 'framework-res.apk' to '/system/framework//framework-res.apk': Permission denied
it seems i am missing some permissions. as i've mentioned, my phone is rooted, so i dont think thats the problem. anyone else having trouble trying to push apk's?
please help me out, id like some more customizing, but i cant seem to get past the 'permission denied'.
i've read a superuser authentication box is supposed to pop up when i keep the phone from going to stand by, but nothing is happening.
when i went to the adb shell and run 'su' i did get the box..
regards,
terraego
bumperdiebump,
cmon someone with a xxjf3 device must have tried adb? i really want to customize my device
I had the same trouble with ADB on my JM1 ROM, in the end I used "Root Explorer" (from the market) to alter the permissions of the system and Framework folders, to give ALL read/write access... had to reboot a few times before the permissions would stick... now adb worked first time
Just install Root Explorer, Long press on the System Folder and select Permission, then make sure ALL boxes are ticked, then browse to the Framework fodler and do the same....

Ad-Hoc with HC S7 4 G?

Can someone who has upgraded their 4G to HC please tell me if it will support Ad-hoc WiFi connections?
Sent from my Dell Streak 7 using xda premium
I had to root it and with Root Explorer change out the wpa-supplicant file... if you are asking about Ad-Hoc I am taking for granted you have heard about this fix for the Streaks... If not just do a little searching for the file...
Once you have it, you go to /system/bin and find the original and rename it to *.bak or *.old, doesn't matter, just something so you don't lose it in case.
You should have your new wpa_supplicant file on your sd card... move it to that same folder, toggle your wifi off and on a couple of times and reboot... and when you come back you should be able to see ad hoc networks
cdzo72 said:
I had to root it and with Root Explorer change out the wpa-supplicant file... if you are asking about Ad-Hoc I am taking for granted you have heard about this fix for the Streaks... If not just do a little searching for the file...
Once you have it, you go to /system/bin and find the original and rename it to *.bak or *.old, doesn't matter, just something so you don't lose it in case.
You should have your new wpa_supplicant file on your sd card... move it to that same folder, toggle your wifi off and on a couple of times and reboot... and when you come back you should be able to see ad hoc networks
Click to expand...
Click to collapse
Yes I had heard of the wpa file. I just didn't know if it worked for HC. Thanks.
Sent from my Dell Streak 7 using xda premium
cdzo72 said:
I had to root it and with Root Explorer change out the wpa-supplicant file... if you are asking about Ad-Hoc I am taking for granted you have heard about this fix for the Streaks... If not just do a little searching for the file...
Once you have it, you go to /system/bin and find the original and rename it to *.bak or *.old, doesn't matter, just something so you don't lose it in case.
You should have your new wpa_supplicant file on your sd card... move it to that same folder, toggle your wifi off and on a couple of times and reboot... and when you come back you should be able to see ad hoc networks
Click to expand...
Click to collapse
cdzo72, please help me. I follow the steps by OP and when I try to access wifi I get a error and can't connect. Any ideas what I am doing wrong?
yep11111 said:
cdzo72, please help me. I follow the steps by OP and when I try to access wifi I get a error and can't connect. Any ideas what I am doing wrong?
Click to expand...
Click to collapse
You are unable to connect to your Ad Hoc network?
Little more info please... does your Streak see the network? If it sees the network and is not connecting, then it's more than likely a problem with your computer and not the phone...
I always set mine up with a simple name like Toshiba which is my laptop brand and I just leave it as an open network because I only use it for a moment so I don't have to put in a password... but still, gimme some more info on what your phone is doing while it tries to connect
cdzo72 said:
You are unable to connect to your Ad Hoc network?
Little more info please... does your Streak see the network? If it sees the network and is not connecting, then it's more than likely a problem with your computer and not the phone...
I always set mine up with a simple name like Toshiba which is my laptop brand and I just leave it as an open network because I only use it for a moment so I don't have to put in a password... but still, gimme some more info on what your phone is doing while it tries to connect
Click to expand...
Click to collapse
I mean when I do the trick, I can't connect to wifi period. I get a error turning on wifi.
yep11111 said:
I mean when I do the trick, I can't connect to wifi period. I get a error turning on wifi.
Click to expand...
Click to collapse
Ah ok... so lemme be sure you did this right... you went into /system/bin and found your wpa-supplicant file and renamed it say wpa-supplicant.bak just in case (at least I hope you did) Ok, now you should already have the new file you downloaded on your sd card correct. SO you browse to that file and copy it to the same folder /system/bin and paste it in there...
Then go to your wifi and toggle on and off a couple of times, reboot the phone for good measure and when you come back it should work, if NOT, then rename the new file to wpa-suplicant.new I guess, and the original file, remove the .bak or whatever extension you used and restart your Streak to see if you get connectivity back, if so, then there's something wrong with the file you downloaded
cdzo72 said:
Ah ok... so lemme be sure you did this right... you went into /system/bin and found your wpa-supplicant file and renamed it say wpa-supplicant.bak just in case (at least I hope you did) Ok, now you should already have the new file you downloaded on your sd card correct. SO you browse to that file and copy it to the same folder /system/bin and paste it in there...
Then go to your wifi and toggle on and off a couple of times, reboot the phone for good measure and when you come back it should work, if NOT, then rename the new file to wpa-suplicant.new I guess, and the original file, remove the .bak or whatever extension you used and restart your Streak to see if you get connectivity back, if so, then there's something wrong with the file you downloaded
Click to expand...
Click to collapse
I still get error, did you use this file in this post: http://forum.xda-developers.com/showthread.php?t=970219
What your file name for original and new?
hmmm, I can't remember where I got it but I'm sure it's the same file, you need to make sure you change the file permissions I guess is the only thing I forgot to mention
cdzo72 said:
hmmm, I can't remember where I got it but I'm sure it's the same file, you need to make sure you change the file permissions I guess is the only thing I forgot to mention
Click to expand...
Click to collapse
You never guess how dumb I am, I forgot to unzip the file. OMG
aw man really, so you were putting the whole zip file in the /system/bin?
Well I hope you get it goin!! See it's usually the little things like that that wreak havoc.
YES, it works! I think you helped me realize to unzip the file. Thanks so much!
Ok, I just upgraded to HC on my Streak 7 Wifi. I went and changed the supplicant file like I did on 2.2.2. My Streak connects, but when I connect to the internet I loose connection. Are there any other workarounds for connecting to adhoc wifi?
tcfiero said:
Ok, I just upgraded to HC on my Streak 7 Wifi. I went and changed the supplicant file like I did on 2.2.2. My Streak connects, but when I connect to the internet I loose connection. Are there any other workarounds for connecting to adhoc wifi?
Click to expand...
Click to collapse
Not that I know of, but I haven't heard of your problem either, with the file changed out my wifi works just fine
Dell Streak 7 WiFi Rooted - Honeycomb - I also changed my WPA Supplicant and WiFi did not work right either. I had to go back to the original file.

[Q] Android 4.4.2 - ADB - Shell Commands - Root

Hi All,
Since I am getting nowhere and no replies for my questions, I am going to rephrase them differently here so hopefully someone can jump in and give me a helping hand... (and please forgive if I seem to bombard the forums with questions).
My Note 3 SM-N900A, build KOT49H.N900AUCUCNC2, running 4.4.2. It is having issues with permissions that effectively block the phone from seeing any SD Card, USB, and internal memory space. It won't access any remote resources like internet or Google Play...either
Issues arose after I changed platform.xml. I since then unrooted the phone and uninstalled SuperSU. I can see that these 3 changes were reckless on my part, that I just put the phone into a very bad state that made it very very difficult to recover. I am still banging my head for the blunders but obviously that didn't help fix the phone. :crying:
I would like to know if there is a way to gain access to the phone's system area again to fix the permission issues. Can I use ADB Shell along with USB debugging? If yes, what are the commands I need? Can I somehow send towelroot and SuperSU to the phone via Odin and execute them? The reason I ask this is that I have no way to access any storage area on the phone, and there is no way to go online to download apps. Or can I put the phone into service mode by typing in the *# numbers on the keypad and hopefully fix it there?
Thank you
At this point I'm not even sure if adb would be able to access your memory card to push TowelRoot to it. You might be best off restoring using the stock Odin files, lick your wounds, start over and chalk it up as a learning experience.
http://forum.xda-developers.com/showthread.php?t=2703006
Sent from my AT&T Galaxy Note 3 using Tapatalk®
OK, Something Positive
andygev35 said:
At this point I'm not even sure if adb would be able to access your memory card to push TowelRoot to it. You might be best off restoring using the stock Odin files, lick your wounds, start over and chalk it up as a learning experience.
http://forum.xda-developers.com/showthread.php?t=2703006
Sent from my AT&T Galaxy Note 3 using Tapatalk®
Click to expand...
Click to collapse
Ah, thanks for replying. I was really worrying about that too.
However, I just installed ADT on my PC and connected to the phone via USB debugging. Using the adb shell ls command, I could see the entire directory structure. I was able to get to the system folder too.
I pulled the platform.xml back and attached to this message. Could you or someone please take a look and let me know if anything is wrong in the file? I made very small changes and reverted them. So it should be same as original, but I am not so sure. Also do you know if the encoding of the file is wrong so that Android couldn't read it?
At this point, it appears all is NOT lost. I just need some of your experts to guide me thru the commands needed to regain the access to my SD card or storage from the phone.
Now, let me bring in another point: Prior to having all this snafu, I granted ES File Explorer root access so that I could overwrite the platform.xml file. I don't know if doing that messed up the system. If it did, what would be the most straight forward way, simplest way to try to get back to normal? Provided now adb seems to be able to access the files and directory.
I know I could try install towelroot again, but would like to see if I can bring the system back to normal operation first.
Thanks
I may be wrong, but adb being able to see and pull system files is one thing. To get adb to actually modify system files, you'd need to be able to give adb root access. You may however be able to download the TowelRoot apk to your computer, put it in the same directory as adb, then in the command prompt type "adb push towelroot.apk /data/app/" (without quotes). Reboot and see if TowelRoot installed.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
vbcomer said:
Ah, thanks for replying. I was really worrying about that too.
However, I just installed ADT on my PC and connected to the phone via USB debugging. Using the adb shell ls command, I could see the entire directory structure. I was able to get to the system folder too.
I pulled the platform.xml back and attached to this message. Could you or someone please take a look and let me know if anything is wrong in the file? I made very small changes and reverted them. So it should be same as original, but I am not so sure. Also do you know if the encoding of the file is wrong so that Android couldn't read it?
At this point, it appears all is NOT lost. I just need some of your experts to guide me thru the commands needed to regain the access to my SD card or storage from the phone.
Now, let me bring in another point: Prior to having all this snafu, I granted ES File Explorer root access so that I could overwrite the platform.xml file. I don't know if doing that messed up the system. If it did, what would be the most straight forward way, simplest way to try to get back to normal? Provided now adb seems to be able to access the files and directory.
I know I could try install towelroot again, but would like to see if I can bring the system back to normal operation first.
Thanks
Click to expand...
Click to collapse
Here's the original stock platform.xml if it helps you.
andygev35 said:
I may be wrong, but adb being able to see and pull system files is one thing. To get adb to actually modify system files, you'd need to be able to give adb root access. You may however be able to download the TowelRoot apk to your computer, put it in the same directory as adb, then in the command prompt type "adb push towelroot.apk /data/app/" (without quotes). Reboot and see if TowelRoot installed.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
Click to expand...
Click to collapse
Edit: instead of using adb push, use "adb install towelroot.apk" (if that's the actual package name). Go through the rooting process, download the ES File Explorer apk to your computer install it using adb. Hopefully if all that works, you'll be able to check and fix any permissions that got messed up with your platform.xml. It should be rw-r-r.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
A Step Forward
andygev35 said:
I may be wrong, but adb being able to see and pull system files is one thing. To get adb to actually modify system files, you'd need to be able to give adb root access. You may however be able to download the TowelRoot apk to your computer, put it in the same directory as adb, then in the command prompt type "adb push towelroot.apk /data/app/" (without quotes). Reboot and see if TowelRoot installed.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
Click to expand...
Click to collapse
OK. You are right. adb doesn't have write access yet.
I tried this and got success:
C:\AndroidDev\sdk\platform-tools>adb install tr.apk
1767 KB/s (113099 bytes in 0.062s)
pkg: /data/local/tmp/tr.apk
Success
What should I do next? Does it mean the tr.apk has been installed?
Thanks
Update: I saw the Towelroot app in the App Drawer, but after clicking on it and choosing "make it ralr", I got message "Unfortunately, towelroot has stopped."
vbcomer said:
OK. You are right. adb doesn't have write access yet.
I tried this and got success:
C:\AndroidDev\sdk\platform-tools>adb install tr.apk
1767 KB/s (113099 bytes in 0.062s)
pkg: /data/local/tmp/tr.apk
Success
What should I do next? Does it mean the tr.apk has been installed?
Thanks
Click to expand...
Click to collapse
Sounds as though towelroot is now installed. Go to your app drawer and run it.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
andygev35 said:
Sounds as though towelroot is now installed. Go to your app drawer and run it.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
Click to expand...
Click to collapse
Yeah, it is installed in the App drawer, but running it gave me error "Unfortunately, towelroot has stopped.".
I went ahead and install both ES File Explorer and SuperUser packages. From ES FE, I could look at the /system/ect/permissions/platform.xml and could see that it had a different date, its date is older, 3/15/2014. I think it came with the N900AUCUCNC2 that I flashed with Odin yesterday.
So, it appears the permission come from a different place or source, I would like to know where Android actually sees the permissions. You know, how did it think that it needed to lock down read/write access to storage areas while the /system folder has been replaced.
Thanks
vbcomer said:
Yeah, it is installed in the App drawer, but running it gave me error "Unfortunately, towelroot has stopped.".
I went ahead and install both ES File Explorer and SuperUser packages. From ES FE, I could look at the /system/ect/permissions/platform.xml and could see that it had a different date, its date is older, 3/15/2014. I think it came with the N900AUCUCNC2 that I flashed with Odin yesterday.
So, it appears the permission come from a different place or source, I would like to know where Android actually sees the permissions. You know, how did it think that it needed to lock down read/write access to storage areas while the /system folder has been replaced.
Thanks
Click to expand...
Click to collapse
I'm at the limit of my experience here... Did you do the all in one restore or the 4 file restore?
Sent from my AT&T Galaxy Note 3 using Tapatalk®
andygev35 said:
I'm at the limit of my experience here... Did you do the all in one restore or the 4 file restore?
Sent from my AT&T Galaxy Note 3 using Tapatalk®
Click to expand...
Click to collapse
Thanks for hanging in and helping, you don't know how much I appreciate your time!
I did the all in one first. That didn't help. Then I did it again with the re-partition with PIT file. But that didn't help either. I didn't try the 4 files individually for fear of losing data.
vbcomer said:
Thanks for hanging in and helping, you don't know how much I appreciate your time!
I did the all in one first. That didn't help. Then I did it again with the re-partition with PIT file. But that didn't help either. I didn't try the 4 files individually for fear of losing data.
Click to expand...
Click to collapse
I think you've just about done everything you can do without a complete Odin reinstall and reformat. If adb pull is working for you I suggest pulling the folders you want to save and doing the complete 4 file install with the PIT file as well.
Someone more experienced than I may be able to get you back up without losing your but tbh with the amount of troubleshooting you've done already I think a full Odin reinstall is your best option and will prevent any issues that could stem from this further down the line.
The only thing I can think of with towelroot is that it needs internet access to run were you connected to wifi when you ran it? It's probably not that simple but figured it couldn't hurt to try!
brisinger08 said:
I think you've just about done everything you can do without a complete Odin reinstall and reformat. If adb pull is working for you I suggest pulling the folders you want to save and doing the complete 4 file install with the PIT file as well.
Someone more experienced than I may be able to get you back up without losing your but tbh with the amount of troubleshooting you've done already I think a full Odin reinstall is your best option and will prevent any issues that could stem from this further down the line.
The only thing I can think of with towelroot is that it needs internet access to run were you connected to wifi when you ran it? It's probably not that simple but figured it couldn't hurt to try!
Click to expand...
Click to collapse
Hi there,
Thanks for replying. I am kind of afraid I will have to go down that route, but at the same time trying not to if I could.
One of the other reasons I didn't try the 4 files was because I thought the all-in-one, as its name suggested, would be equivalent to those 4 files.
Is there a way to pull the SMS, MMS, call logs from the phone via adb? Do you know where those records are kept?
Thanks
vbcomer said:
Hi there,
Thanks for replying. I am kind of afraid I will have to go down that route, but at the same time trying not to if I could.
One of the other reasons I didn't try the 4 files was because I thought the all-in-one, as its name suggested, would be equivalent to those 4 files.
Is there a way to pull the SMS, MMS, call logs from the phone via adb? Do you know where those records are kept?
Thanks
Click to expand...
Click to collapse
The all-in-one file is the same as the 4 files, the only difference is installing it doesn't wipe the internal storage.
Have you tried running adb backup? That would be a heck of a lot easier than pulling a bunch of folders...if that doesn't work the databases are in /data/data
Calls: /data/data/com.android.providers.contacts
SMS and MMS: data/data/com.android.providers.telephony
Is there is any shell command to long tap

Categories

Resources