I stumbled upon the following thread over in the EVO forum about enabling ad-hoc support for both 0.5.x and 0.6.x wpa_supplicant versions. Following the instructions there, but using a terminal emulator on the xoom I entered:
adb shell wpa_supplicant -v
and it returned v0.6.10 on my (wifi only) xoom.
Now, the problem i'm running into is that the files provided are to be flashed in a recovery--and since the xoom doesn't have one yet, i instead unziped the update, extracted the file, and used root explorer to mount system/bin and replace the "wpa_supplicant". I did a chmod to change the permissions to 775, then flipped my wifi back on to see if it worked....
The result was wifi turned on, but just scanned indefinitely and didn't pick anything up (not even the access points ). Luckily, i made a backup of the original "wpa_supplicant" and restored it using root explorer and fixing permissions as described above. That at least got my wifi up and going again
My question is, does anyone know how to edit the honeycomb file to work with ad-hoc? I'll attach a link below if anyone wants the original to play around with.
I guess it is worth noting that if someone could get this going, i'd be willing to throw a few bucks their way. I'm just stumped, but it seems like it is so close i can almost taste it!
Thanks for your help!
-amruthwo
Stock wpa_supplicant file from Xoom
(lives in system/bin)
amruthwo said:
I stumbled upon the following thread over in the EVO forum about enabling ad-hoc support for both 0.5.x and 0.6.x wpa_supplicant versions. Following the instructions there, but using a terminal emulator on the xoom I entered:
adb shell wpa_supplicant -v
and it returned v0.6.10 on my (wifi only) xoom.
Now, the problem i'm running into is that the files provided are to be flashed in a recovery--and since the xoom doesn't have one yet, i instead unziped the update, extracted the file, and used root explorer to mount system/bin and replace the "wpa_supplicant". I did a chmod to change the permissions to 775, then flipped my wifi back on to see if it worked....
The result was wifi turned on, but just scanned indefinitely and didn't pick anything up (not even the access points ). Luckily, i made a backup of the original "wpa_supplicant" and restored it using root explorer and fixing permissions as described above. That at least got my wifi up and going again
My question is, does anyone know how to edit the honeycomb file to work with ad-hoc? I'll attach a link below if anyone wants the original to play around with.
I guess it is worth noting that if someone could get this going, i'd be willing to throw a few bucks their way. I'm just stumped, but it seems like it is so close i can almost taste it!
Thanks for your help!
-amruthwo
Stock wpa_supplicant file from Xoom
(lives in system/bin)
Click to expand...
Click to collapse
ooooh You are close. Imma gonna play with this over the weekend. I want this.
next question...
Ok, i'm drawing a blank here--what can you use to actually view and edit the wpa_supplicant file? I've kind of tried with notepad, but it seems futile with how many of the characters fail to render, basically making my attempts to understand the subtle changes impossible.
Can anyone shed some light on a good program for win/linux that might work better?
amruthwo said:
Ok, i'm drawing a blank here--what can you use to actually view and edit the wpa_supplicant file? I've kind of tried with notepad, but it seems futile with how many of the characters fail to render, basically making my attempts to understand the subtle changes impossible.
Can anyone shed some light on a good program for win/linux that might work better?
Click to expand...
Click to collapse
we cant edit it directly with notepad, we need the source code of HC then add the adhoc code then compile it..
one thing that curious for me is the wpa_supplicant version is the same as in froyo or ginger android, but we can't just put that already adhoc enable compiled wpa_supplicant file to our HC..it will make our wifi can't see any wifi network..
hmm perhaps there is some other file involved..lets dig it..
exactly, i've been rubbing my chin for about a week on this one. I don't see why the froyo/ginger v0.6.10 file doesn't work...
maybe there is another file involved though, i'm going to go digging in the system folder to see if anything looks related i guess.
hopefully source is released soon, it would make this a little easier...
Pretty sure wpa_supplicant is a GPL project so you shouldn't need to wait for HC source for that.
What errors are you seeing in the logcat after replacing it?
i actually didn't record the log, let me do it again and i'll see what the log says. I'll report back.
log file
here is a bit of the log when trying to connect to wifi...
basically, it says wpa supplicant unable to initiate ap scan
Being Android noob, and since I'm trying to get this xoom to see ad-hoc networks for work (this is really important.. spent 600, expecting it to connect it to adhoc.. dang it.), would it be worthwhile to port wpa_supplicant from droid x?
Droid x reports 0.6.10. Unlike EVO, since they are both motorola products, they have something in common??
Or maybe, xoom uses a different driver? I see that droid x has tiwlan0 as its wireless, whereas xoom simply says wlan0.
Reading from here: htt p:/ /sz ym . ne t/2 01 0/1 2/a dh oc - w i fi - in - an d ro i d /
(sorry, being a new user, it doesn't let me post a link... )
someone says that wpa_supplicant needs to be compiled with the correct driver.
Does anyone know how to do this? Or am I just wrong? lol
from what i understand, the wpa_supplicant is part of the gpl, not unique to any phone manufacture. I'm no expert on the subject either though. I have no idea what is different in the xoom, but i have used the v0.6.10 which matches that of the xoom, but no dice. If you want to extract one from the droid x and edit it (assuming you know how) then it is definitely worth a shot!
let us know what you find
lesjaw said:
we cant edit it directly with notepad, we need the source code of HC then add the adhoc code then compile it..
one thing that curious for me is the wpa_supplicant version is the same as in froyo or ginger android, but we can't just put that already adhoc enable compiled wpa_supplicant file to our HC..it will make our wifi can't see any wifi network..
hmm perhaps there is some other file involved..lets dig it..
Click to expand...
Click to collapse
You're right about not being able to edit in notepad, but I opened it in notepad++ to at least view it. I don't have visual studio installed on my laptop at the moment or else I would try with that.
At any rate searching through the file in notepad++ I found two instances where it refers to adhoc that looked interesting.
One line says: WPA: Invalid mode %d (not IBSS/ad-hoc) for WPA-None
and the other line says: skip - IBSS (adhoc) network
That second line looks to tell it to skip adhoc networks when scanning.
Pretty sure wpa_supplicant is a GPL project so you shouldn't need to wait for HC source for that.
Click to expand...
Click to collapse
It is. It even says so within the file.
EDIT: I was able to open it in Visual Studio and it looked much better. I'll see if I can figure something out with what to edit in the file.
Solution found!
hey, someone finally got the binary figured out!
check out the thread here
and, if you're away from your computer, or just hate using adb, my buddy mr_wrong_0 has root explorer instructions here!
Related
I noticed in /system/etc there is a permisions file, it's hapily name permisions.xml, that's not the part that intriuged me. It's what the file says.
"<!-- RW permissions to any system resources owned by group 'diag'.
This is for carrier and manufacture diagnostics tools that must be
installable from the framework. Be careful.
-->
- <permission name="android.permission.DIAGNOSTIC">
<group gid="input" />
<group gid="diag" />
</permission>"
What about making a tool that acts like the diagnostics tools that are used by the carrier and the manufacture? If we can atleast get it working enough to remove the recovery.img that was lock in rc30. Then we have root back. I have included the entire permisions file.
No can do. The app apk has to be signed with the same keys as the system apks (not sure which exactly) in order to use that permission.
If you look at the /frameworks/base/core/res/AndroidManifest.xml file (from the source in git), here's the entry for that permission
<!-- Allows applications to RW to diagnostic resources. -->
<permission android:name="android.permission.DIAGNOSTIC"
androidermissionGroup="android.permission-group.SYSTEM_TOOLS"
androidrotectionLevel="signature"
android:description="@string/permdesc_diagnostic"
android:label="@string/permlab_diagnostic" />
See that part about "protectionLevel"? That's what tells it that it has to be signed with the same key as the system apks.
Yeah I see it, I didn't know about that dir, it's mostly blocked in rc30. Is there any possible way to unlock just the recovery file so I can get off the wretched rc30 official update.
That's a directory in the android source code, not on the phone.
And no. There isn't a way to unlock recovery. There isn't any known way to downgrade from or get root on the official RC30. If there was, there would be a big huge new thread with blinking lights and the whole bit, saying "we've found an exploit for RC30!". It would be in all the blogs and android news sites.. etc.
You are right about that..
And there will proberley not be any exploit for RC30.
It is pretty locked up.
The bedst shoot wil be somthing about resign update.zip so we are able to flash anything.
there's probably gonna be another update to integrate flash... who knows maybe we'll step up from Release Candidate to a real version since the phone has been out for a while now
maybe something will open there
What about using part of the quickpwn app for win, to jailbreak the iphone, and use part of it? Or what about making it do something in bootloader, end + camera? And what about it was discussed in another thread that t-mobile could force you to do an ot through a program in market, what about turning that around and make it do a force ota to the modded rc30 or orig rc29? Also what about just giving the original recovery.img file and the rc29 update file, and see if that works.
I think you are shooting in the dark here. Out of the 5 "what about"'s I think 3 have been shown to be impossible and the first one doesnt make sense. What would an Iphone hack do on a G1? And for the second "what about", what do you mean? flash an image? If you can get the signatures from HTC then that would work great, but dont get your hopes up.
Don't get me wrong, brainstorming is what will get this thing "hacked" but not just blindly trying stuff. Read around on this forums (and others) about what all has been suggested and tried and then try to find ways besides those.
Anyone know if we can compile android from source and install it on the sd card a la debian?
just curious, haven't gotten a clean answer on this one.
using rc30 official, wishing i had root.
I've been looking into this one http://forum.xda-developers.com/showpost.php?p=2907754&postcount=33, also yes I was stabing in the dark. I just wish I knew how to run the sdk and emulator on Win XP.
That's fine and dandy, except that the G1 doesn't use that bootloader
But I just realized something. When I connected my g1 and win XP laptop to the same wireless network, then went to ipchicken.com on both I had the same ip, so I ran the telnet client on the g1 and it worked. But BusyBox is there when I did the telnet, and I don't know the pass or login, it changed when the ota was done.
card13 said:
But I just realized something. When I connected my g1 and win XP laptop to the same wireless network, then went to ipchicken.com on both I had the same ip, so I ran the telnet client on the g1 and it worked. But BusyBox is there when I did the telnet, and I don't know the pass or login, it changed when the ota was done.
Click to expand...
Click to collapse
Nothing stange in that, you are looking up your public ipadress up at ipchicken.com and that will be the same for all yours computers on the router segment.
And a quick port scan will show no ports open on your G1
I need help w/the busybox pass. Last time I almost had root this is how I did it, but when I did the OTA the pass changed.
card13 said:
But I just realized something. When I connected my g1 and win XP laptop to the same wireless network, then went to ipchicken.com on both I had the same ip, so I ran the telnet client on the g1 and it worked. But BusyBox is there when I did the telnet, and I don't know the pass or login, it changed when the ota was done.
Click to expand...
Click to collapse
well hey its very cool :
you learned that your cablemodem, fios box, modem, has 1 public ip and your router gives out private ips to your subnet (stuff plugged into your router)
thats why things have to be forwarded in your router to make incoming connections work (ie: bittorrent) and get to one specific device of possibly many at your.private.ip
that is a great thing to learn, but I dont think studing tcpip/nat routing is gonna get root back on a rc30 phone...
sorry I know its an old post and bee flamed at bit already, this isnt meant to be flamy in anyway but I couldn't help it I truly mean no harm.
but this post reminded me of the wonder at learning how things work, by looking in completely the wrong direction...
bhang
This is easier than making a cup of coffee.
Pictures below as attachment couldnt figure how to put the pic here edit figured it out now im just lazy.
you dont have to do it the hard way
Everyone (edit: i thought so at the time)will want this "Fully" (note below) funtioning Ubuntu system
or you can make your own here: http://forum.xda-developers.com/showthread.php?t=913622
I will be maintaning and updating as time permits
Phone has to be rooted: http://forum.xda-developers.com/wiki/index.php?title=HTC_Supersonic/Guides_&_Tutorials
NEW IMAGE 3.5 gigibyte
Lucid base image (only added: lxde and tightvncserver): Zip http://www.megaupload.com/?d=GLMYVCMN User: "dad" Passwd:ffffffff
Remove app2sd and settings- applications- manage applications- sdcard "move all apps to phone" or it will not work!
I suggest you install gnome-panel
I use it and i find no speed differance!
trying to get :upstart services" to work im looking into compiling a kernel with "CONFIG_TMPFS enabled, to initiate a workaround, because "upstart" services wont work in a chroot.
Stock Maverick : http://www.megaupload.com/?d=56AT71WD
Karmic Sucks programs stop opening after some short time, so i gave up.
Tested with: CM7 http://mirror.teamdouche.net/get/supersonic/update-cm-7.0.0-RC1-Supersonic-signed.zip
CM6: http://mirror.teamdouche.net/get/supersonic/update-cm-6.1.2-Supersonic-signed.zip
myn-WarmTwoPointTwo-11-05-2010-RLS-3
Unzip
Copy the "ubuntu" folder to your sd card
Go to market download "Terminal" and android VNC Viewer
Open terminal and type: (without the quotes), "su" then "cd /sdcard/ubuntu"
then "sh ./ubuntu.sh"
then "bootubuntu"
then "vncserver :0 -geometry 1024x800"
Thats it, go to android VNC Viewer and use dad for nickname, "ffffffff" for the password, "localhost", for address, 5900 for the port, Use 24bit veiwing settings, then go.
to shutdown you will have to power off phone and power back on.
Enter in your :"Initial Command",in the settings of Android Terminal:
su
cd /sdcard/ubuntu
sh ./ubuntu.sh
bootubuntu
So everytime you want to start ubuntu just open terminal
to start VNC SERVER automaticly you will have to add to the bottom of your /home/.bashrc file this:
cd /
rm -r -f /tmp
mkdir /tmp
vncserver :0 -geometry 1024x800
Thats it, your off ENJOY
Notes: Its as fully funtioning for myself, cant speak for everyone
This is in Beta stages I am an old Visual Basic dabbler as a hobby, and am not very fluent in the lenux operating system. However this "ubuntu on mobile device" has rekindled a lost desire to program.
I will update changes as i get the time
If anyone would like to contribute their lenux expertese to iron out the bugs, i and so many others would appreciate it
Issues to work on:
:no sound
NOTE: A big kernel level problem is the lack of sound. Most of the kernels we use as a base for our ports are designed for Google Android. Android doesn't use the standard Linux sound System ALSA. An ALSA wrapper for the EVO DSP kernel system must be written.
:Setting up users and groups (used kusers but seemed to slow system a bit, needs kde-common) But is very tolorable, I actually use dolphin. (cant get nautilus to create folders or files (destination read only? u got me)).
:hacked /root/.bashrc for easy login help (when using terminal runs .bashrc. dont know anotherway to start hamachi on login and also vncserver tries to restart)
:keyboard mapping (mapping arrow keys to the abc keyboard it has arrow keys, esc,etc...)
: No way to exit or turn off ubuntu. You have to turn off phone, to turn off ubuntu.
nce in a while the programs refuse to open, it has somthing to do with ?. you have to restart ubuntu again.
I suppose a fluent ubuntu/lenux person could help change usernames and such, using the terminal,set proper permissions and such
Im using CyanogenMod Rom its the only one that works with Hamachi
your rom will most likely work, however networking wont!
Tips:
ownload VNC for your computer and modify your ubuntu desktop on your computer screen (that way i dont need my glasses) (use "ifconfig" to find ip address)
:You can even use VNC to view the build while in qemu emulation, after installing lxde and tightvncserver in the emulation. (watch out for seg faults)
:In terminal, preferances-initial command, enter the "cd /sdcard/ubuntu ...etc ," that way its a one click to login .
:Get "abc keyboard" from market it has the esc, arrow keys etc... ( extra keys only good outside chroot, the "terminal", on your android desktop)
:If your not familiar with ubuntu, you use synaptic package manager to install programs
:When u share over himachi or start smbd, programs will stop opening.
.
Trust me everything i want it use it for seems to be pretty zippy, but just give a little xtra time for programs to load the first time. (Firefox may take 90 sec. to load the first time. After that its a snap)
I Would like to check into this
The no sound issue is getting to me, I may wait for that as that is an essential to my all in one device.
THANKS FOR THE HARD WORK. I LOVE UBUNTU
you really have to try it and tell everyone about it cant believe its not one of the hottest topics
I Would like to check into this
any way to delete this post....didn't mean to submit, came back to send like i didn't send it but ending up sending twice
apologies
Sounds pretty cool, I will defiantly have to give this a try. Question though, is this installing over top of the rom I am currently using. Example I am using the MIUI 1.22, if I install this is this like dual booting or will it just uninstall every time I reboot the phone??
Is it still uploading? I really want to try this!
corybucher said:
Sounds pretty cool, I will defiantly have to give this a try. Question though, is this installing over top of the rom I am currently using. Example I am using the MIUI 1.22, if I install this is this like dual booting or will it just uninstall every time I reboot the phone??
Click to expand...
Click to collapse
This will sit on your sdcard and ride side by side with your android system (you can use your phone at the same time)
IT DOES NOT EFFECT YOUR PHONE IN ANY WAY
wasnt shouting just wanted everyone to see
ioos said:
Is it still uploading? I really want to try this!
Click to expand...
Click to collapse
Download away!
This is awesome! I can't wait to get home and give it a try.
This is gonna be a great weekend. Between this and the flashable ROMs that are starting to roll out for my nook color, I might be sprouting antennae by Monday.
So wep cracking soon...? That's about the only thing I want/need Linux for.
Sent from the void...
wuclan48 said:
So wep cracking soon...? That's about the only thing I want/need Linux for.
Sent from the void...
Click to expand...
Click to collapse
How would one go about this "wep cracking thing"
please explain further
Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)
**most wpa specifications are not crackable yet and those that are often have a very stringent set of requirements (off the top of my head: most require someone to be legitimately connected to the access point and very simple passwords with low encryption.
On topic, though, this is sweet. Hope I can get something like this on my galaxy tab too!
EDIT: If you really need to know this (please only for testing... not to mooch people's internet) Google "wep cracking on backtrack"
The short simple answer is you sniff packets that the wireless access points send out and manipulate them to decrypt the key.
EDIT 2: I just realized you are also the guy who made this. Let me answer a few questions.
1) For audio you probably need to find a way to register the hardware with a Linux Audio Mixer. I'm guessing Ubuntu uses ALSA? I'd have to look that up
2) For users, kusers is part of the KDE desktop system. Ubuntu uses GNOME. People generally only use one or the other (unless they're trying to show off). That's probably why it either a) won't work or b) not work well and take up lots of extra space
3) It's Linux, not Lenux (but that's fine I can sense English isn't your first language... it's not mine either, but that's fine ^^)
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Sorry i just used the wizard and made a zip file with winzip 12.1
Quote"Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)"
Thanks for the info
laydros said:
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Click to expand...
Click to collapse
shame on me .
Your right im a noob and really know too much about it yet i just like having ubuntu on my phone.
Ill do better next time
People talking about cracking WEP and stuff, this probably doesn't have a driver to put the wireless card to put the card in monitor mode.
laydros said:
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Click to expand...
Click to collapse
Have the same problems, did you happen to find anything to open it with? I searched a little on google myself but all I find is software that needs to be purchased.
Homefix said:
Quote"Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)"
Thanks for the info
Click to expand...
Click to collapse
AFAIK, WEP can be easily cracked. WPA or WPA2 though, will require bruteforcing, there is no way around it.
corybucher said:
Have the same problems, did you happen to find anything to open it with? I searched a little on google myself but all I find is software that needs to be purchased.
Click to expand...
Click to collapse
I will repackage it, but it might take 3-4 hrs to upload, sorry.
ill get right on it
OK.... Ive been an HTC Desire owner for a year and regularly flash ROMs but ive managed to be able to distance myself from the whole adb 'thing' thanks to Unrevoked (ie a 1-click-root).
Being an owner of a Transformer now Id love to be able to root the beast and carry on with Flashing and tweaking but the whole rooting thing now scares me a little
ive done a fair amount of googling and I believe it requires install of software and drivers but most guides are for Android 2.1/2.2 etc and I know 3.0 is a different ballgame ..... Im also running windows 7 64 bit which seems to make things more complex. I fo have a dual boot to ubuntu but ive only really been using that to play around - im no Linux expert !!
Anyone know if there is likely to be a one-click-root developed for Honeycomb ?
adb - or the initial setup of adb - scares me
ADB setup isn't that hard, there are loads of guides on the internet already. I'm running W7 x64 and I didn't really run into any problems getting ADB up and running.
ADB isnt as hard as it sounds, its worth it to learn since there so much you can do with it. its just a matter of knowing what code to use and most of the time its posted and you just have to copy and paste. i prefer to use ADB sometimes instead to scripts that way you know exactly whats going on.
but im sure there will be easier ways to root if you just wait, there's still a huge shortage and im sure lots of people that want to develop for the TF are still waiting to get their hands on one.
ADB isn't all that daunting and besides, learning new things is enjoyable My hesitancy to root rests in some of the issues that folks are having. My screen wouldn't wake up once, I had to reboot to get my TF going again. I'm waiting now
to make sure the unit is solid and stable running the stock configuration. I don't want to root only to have the thing decide to become a paperweight 3 days later.
Using ADB should not be beyond anyone who has rooted and installed bits before. I think it is the lack of GUI and reassuring responses and prompts that people miss and are used to.
if you are following this guide and ADB is responding well, you can even cut and paste the commands into your command window (on PC you can) and this helps prevents missing spaces and syntax problems.
Bottom line though - if you are not comfortable doing it, don't risk it.
lol.... OK.... ive had a go ..... and i think it has worked
didnt help that my 'installing archives' in the Android SDK Manager is now hanging due to the washing machine in the garage catching fire and blowing the fuses therefore causing my connection to the web to break halfway through downloading
... and now im having problems downloading blob5 as it says im running concurrent downloads ....
Its always the unexpected stuff that causes problems
I love the smell of an electrical washing machine fire in the morning
Yep, had problem getting blob5 too. Didn't like my IP address? Got it from work instead - Don't tell the 'IT Police' (Although I am sure their logs will grass me up)
can anyone provide an alternative link to blob5? won't let me download
You could try resetting your ADSL modem to obtain a new IP address - that might work. As I mentioned above the site decided I had abused my download limit (at my first attempt!) and blocked my current IP.
Assuming you are not on a static address?
I'm on static
wilbur-force said:
can anyone provide an alternative link to blob5? won't let me download
Click to expand...
Click to collapse
Try this http://dl.dropbox.com/u/3387763/CWM_BLOB_V5
cheers
that's done the trick
You're welcome.
I've just ordered myself a Transformer and will no doubt want to root it after a while, if there any particular ROM that's considered the 'best so far'?
from what I gather most of the roms are still very early days. at this point I'm after root for nandroid and some of the root apps.
ok... very noob question
the root guide says to copy the blob/files to your 'adb directory' ... which directory is that ? the android-sdk directory ? or a sub folder of that ???
wilbur-force said:
ok... very noob question
the root guide says to copy the blob/files to your 'adb directory' ... which directory is that ? the android-sdk directory ? or a sub folder of that ???
Click to expand...
Click to collapse
copy it to platform-tools
android-sdk-windows/platform-tools/blob (all files + blob should be here)
also you can hold shift + right click platform-tools and choose open cmd window here.
So I've been putzing around with this thing for a few days since I got it. One thing I've been trying to do now that I have root access is get it to connect to adhoc wifi. To be specific, I want to use my data-enabled cellphone as an adhoc wireless access point so that I can connect the LePan to it over wifi to surf the net, email, play games, etc. Of course, by default, Android is set up NOT to connect to adhoc wireless, or even recognize adhoc networks.
I installed a wifi sniffer app on the LePan, and it can see the adhoc network that my phone is broadcasting, but it won't connect. I managed to find a few webpages with instructions on how to mod android to connect to adhoc, but most of the instructions are device specific, and obviously there's nothing out there for the LePan yet, as its a relatively new device (I would have posted this in the TC970 forum here on xda, but there isn't one yet). Most of the instructions talk about modifying two files in the /system/etc/wifi folder. The first is tiwlan.ini, and the other is wpa_supplicant.conf.
I basically mixed/followed the instructions on these two webpages:
http://www.slatedroid.com/topic/1054...adhoc-on-a81e/
and
http://www.slatedroid.com/topic/1819...rk-android-22/
So right now I've added the following lines to tiwlan.ini:
WiFiAdhoc = 1 (Change from 0 to 1)
dot11DesiredSSID = InsertyourSSIDhere
dot11DesiredBSSType = 0 (Add this line in)
And I've replaced everything in the wpa_supplicant.conf file with this:
ctrl_interface=tiwlan0
update_config=1
eapol_version=1
ap_scan=2
network={
ssid="Ad-hoc ssid here"
scan_ssid=1
key_mgmt=NONE
mode=1
priority=1
}
network={
ssid="Your Accesspoint ssid here"
psk="your wpa key here"
key_mgmt=WPA-PSK
priority=2
}
(obviously I have my own settings in the real file)
In addition, I copied the wpa_supplicant file from the zip in this post:
http://forum.xda-developers.com/showthread.php?t=754961
into /system/bin/.
Now when I try to use my wifi, it turns on, says its trying to connect for a bit, but then the eventually just turns off without connecting or detecting any networks (so it probably doesn't actually turn on at all).
I've backed up all my files, so no problem getting it all back and working like stock, but I'd really like to be able to connect to adhoc with my new tablet. Suggestions are most welcome.
***Sorry if this is posted in the wrong forum. Like I said, there is not yet a dedicated forum for this device, otherwise I would have posted there. Mods - any chance of creating a forum for this device? I've seen a few other stray TC970 posts here on xda.
Sandmonkee,
After messing about with this myself, I found a supplicant that works on our tablet (I tried about 6 different supplicants until I found this one). It is the one for a nook color. See this thread http://forum.xda-developers.com/showthread.php?t=868354
It works on my Nokia N900 with the MobileHotspot app.
I believe that the problem with the supplicants that were in the post that you referred to is that they were linked to use wext instead of the statically linked libCustomWifi for the TI chip. See the comments section on szym's blog about the patch.
It would be better to apply szym's patches to the code tree that was used to create the wpa_supplicant for this tablet instead of TI's reference code as this one did. That might fix the sleep problem. I don't know where to find the sources. Anybody have any ideas? If the sleep issue becomes a problem, I might look into modifying the reference code (altho' I have enough on my plate without spending too much time on this toy).
***** UPDATE ****
This supplicant doesn't have a problem on this tablet with sleep as was described in the above thread.
***** END UPDATE ****
BTW the wpa_supplicant.conf that you want to modify is in /data/misc/wifi NOT /system/etc/wifi
Here is my version (replace the ****** with values appropriate for you)
The 1st entry is for my AP using WPA, the 2nd one is for my ad-hoc phone using WEP. You might need to add the line "ap_scan=2" if you don't broadcast a SSID.
Code:
ctrl_interface=tiwlan0
update_config=1
network={
ssid="*****"
psk="*********"
key_mgmt=WPA-PSK
priority=1
}
network={
ssid="*********"
scan_ssid=1
key_mgmt=NONE
group=WEP104
auth_alg=SHARED
wep_key0="********"
priority=2
mode=1
}
I don't know if the "group=WEP104" line is needed, I found it in another thread somewhere but it doesn't seem to hurt.
Let me know if this works for you too.
-Shawn
Works!
Shawn, yer a genius.
I have been struggling with this for a week or so now, and it is finally working. You just increased the usefulness of my tablet by 100x
Thanks again man!!
Mike
yeah, bro. That's what's up.Thanks!
This is great stuff...thanks for sharing. One quick question for you guys: are you using adb to modify the files? I can't seem to get adb to work...do i need a driver different than the one derkoch linked to in the root achieved thread?
joofeloof,
I used the one that you referred to. I rooted the tablet. Then for my own sanity I installed HackersKeyboard to get a real keyboard, bash shell so I could get filename completion, and nano for a small editor from the shell. Now the tablet is much like a standard linux system from the command line. I used adb to push the files to the sdcard and copied the files to the correct locations from a local shell. Don't forget the permissions. Any text editor will work to edit the configuration files, altho' I prefer nano. If you are familiar with vi, it is available also.
If you can't get adb to work, you could just copy the files to your sdcard and move them locally.
To do this mod, the tablet must be rooted.
Hope this answers your questions.
-Shawn
P.S. Does anybody know how to get a bluetooth hid device (keyboard/mouse) to work on this tablet? There is a nice folio that has a BT keyboard built in that would make this a great terminal for doing remote system admin stuff.
**** UPDATE****
Found it. For BT keyboard use EasyConnect which is available in the market.
**** END UPDATE ****
Non-terminal instructions
joofeloof said:
This is great stuff...thanks for sharing. One quick question for you guys: are you using adb to modify the files? I can't seem to get adb to work...do i need a driver different than the one derkoch linked to in the root achieved thread?
Click to expand...
Click to collapse
Shawn's method above will work, but I did it using ES File Explorer with root permissions enabled.
1. Root your phone as described in DerKoch's post
2. Download Shawn's wpa_supplicant file to your PC and extract
3. On your tablet, download and install ES file explorer from the market (its free)
4. Open ES explorer and go into the settings. At the bottom of the list, enable "root explorer" and "mount file system"
5. Use ES file explorer to copy your /data/misc/wifi/wpa_supplicant.conf to your SD card
6. Plug the tablet into your PC and turn on USB file sharing and USB debugging
7. Copy the wpa_supplicant.conf file from your SD card to your PC and modify per Shawn's instructions above, with your own settings.
8. Save the file and then copy it back to your SD card, along with Shawn's wpa_supplicant file
9. Stop USB file sharing on the tablet
10. turn off wifi on your tablet.
11. Open ES file explorer on the tablet, copy the wpa_supplicant.conf file from your SD card to the /data/misc/wifi directory (overwrite), then copy Shawn's wpa_supplicant file to /system/bin (also overwrite).
11.5 Note that these files need to have the right permissions (by default, they should already). In ES file explorer, do a long press of the wpa_supplicant file you just copied to /system/bin, then click on properties, then "change permissions". It should be chmod755, ie the X's should look like this:
X X X
X 0 X
X 0 X
For the wpa_supplicant.conf file, it should be chmod777 (ie ALL the boxes should have X's)
12. Turn on wifi. That should do it.
I noted that although I included the lines from Shawn's file for the adhoc WEP security, when my tablet saw the phone (which was unsecured), it created a new entry in the list of available networks for the open signal. So those lines may not be necessary. In fact, I suspect the only part that may have been necessary would be the header information (ap_scan=2 and all that), since Andriod just makes entries in the wpa_supplicant.conf file when you tell it to remember an access point. If its not already in the .conf file, it still shows up in your list of available AP's, it just doesn't remember it in your list.
Either way, thanks again to Shawn for figuring this out!
Much appreciated! Working fine, just fine...I was heading down this path anyway, more curious about how to get adb working than anything.
Many thanks.
Also, does or has anyone play[ed] around much with /proc settings?
I'm more familiar with linux server admin than any of the android specifics - but it seems like many of the kernel settings are readily configurable. I just don't know which would really be of interest in a tablet configuration/setting.
Now, my next question is.. anyway to enable Wifi channel 12-14?
Worked Great. Thank you for figuring this out. Now I can make use of that 6gb data plan.
Wireless Tether 3.1 Beta Supports ad-hoc
SilverFang83 said:
Worked Great. Thank you for figuring this out. Now I can make use of that 6gb data plan.
Click to expand...
Click to collapse
hey y'all....
just a heads up (and y'all might already have this info but jussssst in case there are ppl like me out there that read this thread and said, "um, maybe i don't need to have my LePan use my phone's network after all"...(lol) it seems the most recent version of wireless tether 3.1 beta i think http://code.google.com/p/android-wifi-tether/) supports ad-hoc. I just downloaded it, changed from "disabled to enabled" in Acess Control, and then "in CHANGE Device Settings" picked a phone like mine (they didn't have The Infuse but Galaxy S worked)
You might have to restart the Wireless tether ap but after it automatically showed my network on LePan. made a quick video on it here: http://www.youtube.com/watch?v=wACwGZ0XyuA&list=UU-xOxPoQXnvEQKqkucrM_Cg&index=1&feature=plcp
No matter what settings i tried on earlier versions of Wireless Tether it would NOT work, but the new 3.1 v8 Beta did : )
Anyway, i'm a little out of my depth here so if i have posted this in wrong place or if it doesn't directly correspond to the issue at hand, please forgive, just tryin' to help other numbnuts like me : )
Ms D
Alright! Gave it a try with MyWi 4.0 on Iphone 4, can see the SSID and try to connect but fails to get an IP, goes to a loop of trying then scanning then trying to obtain IP. Oh well.
EDIT: made it forget network and re-entered password from settings, worked. I'll post the .conf file in a sec.
EDIT2:
Here are my settings for MyWi 4.0 using Iphone 4
--------------------
ctrl_interface=tiwlan0
update_config=1
network={
ssid="yournetwork"
key_mgmt=NONE
auth_alg=OPEN SHARED
wep_key0=yourkey
priority=4
mode=1
--------------------
The tablet should enter those for you when you first try to connect to your network, though.
GOOD JOB EVERYONE
Now this is bizarre to me... The supplicant and the mods on the *.conf file works great, yet if I reboot the tablet, the *.conf file's permissions gets automatically modified to
X X 0
X X 0
0 0 0
thus causing an error on the wifi's startup.
I used Es file explorer to set the permissions and when I change 'em back, well everything works fine.
I'm quite puzzled atm.
Tried to use Terminal Emulator app to set the permissions with adb but I get a permission denied, and no SuperUser prompt :/ .. do you guys use adb from sdk via usb?
Help? Trouble with Barnacle
First off great work guys.
I never connected ad hoc before, and didn't realize I needed to root at first. I finally got it to see my droid eris' wifi network (thanks largely to Sandmonkee's step by step guide) using barnacle and to actually connect but as soon I try going to a webpage on the tablet barnacle freezes and then generates a boat-load of NAT:restart: network is unreachable errors.
What are you all using to broadcast the ad hoc network?
***EDIT
NEVERMIND, Ms.Dummbunny's solution worked for me too
BreeZyer said:
Now this is bizarre to me... The supplicant and the mods on the *.conf file works great, yet if I reboot the tablet, the *.conf file's permissions gets automatically modified to
X X 0
X X 0
0 0 0
thus causing an error on the wifi's startup.
I used Es file explorer to set the permissions and when I change 'em back, well everything works fine.
I'm quite puzzled atm.
Tried to use Terminal Emulator app to set the permissions with adb but I get a permission denied, and no SuperUser prompt :/ .. do you guys use adb from sdk via usb?
Click to expand...
Click to collapse
I have been trying to do this for the past two days without success too. I have this permission problem. Plus, my tablet just shows "obtaining IP address" for a moment then disconnects. I am not trying to tether from my phone though, I have an old laptop with an intel 3945 card, trying to setup an adhoc network and connect to it. My SGS2 with MIUI works perfectly fine, so it is doable. Any suggestions what else I can try?
OK, this is sort of related...
I go Le Pan TC970 connected on Ch 12!
Base on http://forum.xda-developers.com/showthread.php?t=1067944
I manually modified the settings.db and it sort of worked (Ch 12 only, and no go on Ch 13 for some reasons....)
Steps...
Copy /data/data/com.android.providers.settings/databases/settings.db to sdcard
Modify settings.db using SQLite "Manager" by adding extra row 116, wifi_country_code, EU in "secure" table
Rename /data/data/com.android.providers.settings/databases/settings.db to /data/data/com.android.providers.settings/databases/settings.db.bk just in case
copy the newly modified settings.db from sdcard back to /data/data/com.android.providers.settings/databases folder
Reboot
==
Update: WiFi Analyzer can see my AP when set to Ch13 too. But it can't connect, and I think maybe is my router....
whatid said:
OK, this is sort of related...
I go Le Pan TC970 connected on Ch 12!
..
Click to expand...
Click to collapse
Hey whatid,
Just curious - what is the advantage of having channel 12? Also, did you have to mod your router at all?
Sandmonkee said:
Hey whatid,
Just curious - what is the advantage of having channel 12? Also, did you have to mod your router at all?
Click to expand...
Click to collapse
Depends where you are located, in Europe you can use Ch 12&13 and Japan with additional Ch14.
Some router will let you select Ch 12-14. Or if you have DDWRT installed.
MsD...Thanks for the info. I tried this on my phone (Xperia Play R800X) and none of the phones in the list worked for me...but I did get a nice little interruption from Verizon in my browser about using my phone as a hotspot when I decided to give up and just opened my browser. It would not go away until I rebooted the phone...I'm guessing Verizon doesn't like tethering...lol
Hey whatid,
Thanks for the info. Are you using the unit in North America? If so, you might just want to double check the frequencies on some of the other devices in your house (phone, microwave, etc), as they are often very close to wifi frequencies (~2.4GHz). I know its unlikely to actually happen, but you could get crosstalk.
Also, would you consider starting a new thread with your method of unlocking these channels? I don't mind the info being here in this thread, I was just thinking it might make it easier for other people to find, and it is good info. Plus, the more we pollute the general forum with our TC970 stuff, the more likely they are to finally give us our own forum
Hi All,
My first post here, I am not sure I am posting in the correct section.
I need to update the wpa_supplicant conf of my Andorid 9 phone (an Asus Zenfore Max Pro M1) in order to allow it to connect to a MFP (managed frame protected) network.
I managed to configure my home linux machines to do so but with my Android phone it is a disaster.
From what I know the device needs to be rooted...for this I am just proceding with the proper steps but...I am not sure that the wpa_supplicant.conf to be modified is the one settled in the /etc directory as I ve read that on Android the conf file for the wpa_supplicant service may be different.
Is there any way to understand which configuration files a binary executable is bound with?
What I am trying to do is to set the pmf option in the correct wpa_supplicant.conf file in orded to let the device connect to a MFP network.
Any help will be so much appreciated.
Thanks!
Well...it is nice to discover that Android 9 is not using wpa_supplicant any more and that it will be a nightmare to crosscompile it and configure it as a daemon
This is my last android shxt phone.
A quick search reveals that WifiConfigStore.xml should be the file you want. requirePMF might help, from source for WifiConfiguration.java. I can't find any more documentation than that (opening source files kills my phone browser) but that should be a good start.
Thanks Efreak2004 but have tried that way as well.
Have modified the WifiConfigStore.xml by setting to true the requirePMF option but it did nothing.
My suspect is that the java wrapping useless stuff is not doing anything more than trying to "steer/drive" the native processes preposed to do the job. It has always be this way since the invention of java which was wrapping lib C in any aspect.
I am almost convinced that without the wap_supplicant binary/daemon there is no way to let the java fancy wifi manager do the job by its own.