注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

姑射道人的博客

博客新地址:nixuchen.com

 
 
 

日志

 
 

Ad-hoc support for Android  

2011-08-08 22:32:59|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Ad-hoc support for Android

Whether you’re on the go or behind your desk, there will always be moments when the only option for a internet connection is wired. For laptops that isn’t really a problem and for Android the 3G data connection is an option. Unfortunately it’s quite expensive, especially when your contract with your carrier doesn’t include it.

Many people did already consider using ad-hoc networks, but unfortunately Android doesn’t support them. Until now!

What it’s all about

It was already known that it’s a software problem. It just needed some guru to fix this. With his findings we’re able to activate ad-hoc support for Android.

The patch changes the following things in the wpa_supplicant file that can be found in /system/bin:

  • Removes the [IBSS] flag from scan results
  • Masquerades and demasquerades ad-hoc SSID with (*) prefix
  • Sets mode 1 (ad-hoc) if the ssid is for IBSS
  • Permits the supplicant to select an IBSS when associating to a given SSID

Someone on XDA compiled this patch and made a signed patch.

Versions

The wpa_supplicant file comes in different versions. You should test which one is running on your device before applying the patch.
Which can be done by a shell, either through adb shell or by using an app like ConnectBot. Run the command wpa_supplicant -v.

In case of v0.5.11:
Download wpa_adhoc-signed.zip

In case of v0.6.00:
Download wpa6_adhoc-signed.zip

Applying the patch

MAKE A BACKUP FIRST!

You’ll need a rooted Android device, else it wouldn’t be able to access that file. A recovery ROM could also be handy for newbies.

Place the zip-archive in the root of the sd card and flash the zip using a recovery ROM.

Once back in Android it will be able to find and connect to ad-hoc network. Those are indicated by an asterisk (*).

Drawbacks

At this moment the only encryption supported is WEP. Not the safest around, but it will do the trick for now.
Hopefully Android will natively support various secured ad-hoc networks in the future.

Afterwords

If you aren’t familiar with all of the terms used above, you probably haven’t got a lotexperience with rooting Android devices. If so, a good way to start is at XDA-Developers Wiki.

Once you’ve learned how to install custom ROMs, use adb, etc the info above will be easy.

  评论这张
 
阅读(1187)| 评论(0)
推荐 转载

历史上的今天

dden"> v sikeI;缆壅⒅羍 UInt pright" 0px; ddentom: adwraphota0;os tom: adwraphe;_zoom:1display paifr067rgirginds2 b="0qbbirgin fc07 ="0qbdden"v s_ifr067yrea auc Calibri, '> ds2 b="590qb fc07 ="100qbfr067be Uer="0qb
    1187)display pan0 icea auc 近禷t:recom0 fc07 f2 :24x; e-colo#000 ot玩LOFTER,免费冲印20张照片,人人有奖!earfixearfixearfixearfixearfixt: 0px; pae-colo#d7854e;dCoundecobtn :n: 0> font-f m; mardc0Int prig paflow:hidden;"flow:hidden;"dc0 dss=s yle="dss=nt prightag clearfix">
C dden> C 羍 UInt pright0px; =
z e;_zoom:1displaflow:hidden;"dc0 dss=s , sans聀pan> 0px; =
c &;/lit">nk:'',st" target="_blaid:' ',st" target="_bla> Tiv> :'rgin-right: 0px; margin-bo',st" target="_bla> A r :'"> \"e-color: in78, 78, 78);ing tht a ly: \'Segoe UI\', Ct">bri, \'Myriem;Pro\', Myriem, \'T uchet MS\', Hehe supplicant to select an Ing the patc13x; p">ne- nhtoal;\"\>bri, \'Myriem;Pro\', Myriem, \'T uchet MS\', Hehe supplicant to select an Ing thweikeI: ow: rgb(255, 255, 255) 1px 1px 1px;">Ad-hoc support for Android</h1><div style="margin-to\"\>rgin-right: 0px; margin-bo 1\>',st" target="_bla> Tag:'',st" target="_bla> 999:'> ame="tag" value="" /> ',st" target="_blaisPubid= :1,st" target="_blaidivp:fm; e,st" target="_bla0820:0,st" target="_bla stifyTim0:0,st" target="_blaocus="tTim0:095281397 ,st" target="_blakebit">nk:'> ame="tag" value="" /> ',st" target="_blayle="ds-icn0:0,st" target="_bla om:C -icn0:0,st" target="_blarecommend-icn0:0,st" target="_blabsrk:-100,st" target="_blakubid= rId:0,st" target="_blarecomB Hom0:fm; e,st" target="_bla-rientyle=B :fm; e,st" target="_blaattach sF: 0Ids:[],st" target="_blavnbs:{},st" target="_blagighpI-bl:{},st" target="_blafa stdme="us:'n: 0',st" target="_bla">XDA-me="us:'unFol ow',st" target="_blaocuSucc:'',st" target="_bla ',st" target="_blahmss=:'1',st" target="_bla/pattyle=B -icn0:'0',st" target="_blae">&nb_s 0g> :'aifr067rds2 b="140qb fc07 ="560qbea auc ">最近读者 src ad=1&> qbfr067Be Uer="0q>{id="; mas x}st" {if !!x}st" 0px; =
block i fyle f40q st" ta" 2 bdc0 fc07 fs font-f .e="hidde${x. dc0 dss=s cwrgv2067t itd st" targ {if x.m">譌val=='wap'}st" " /spa 2ref .e="hidde rso bs/wap> .html? valkebsonal> hom0 icn0 icidden="来自网易手机博客qbdss=s block iwapass=clearfix'>n0 i羍 UInt/span> {handif x.m">譌val=='iph Ue'}st" " /spa icn0 icidden="来自iPh Ue客户秛shdss=s block icph Ueass=clearfix'>n0 i羍 UInt/span> {handif x.m">譌val=='-boroid'}st" " /spa icn0 icidden="来自 0px; m客户秛shdss=s block i-boroidass=clearfix'>n0 i羍 UInt/span> {handif x.m">譌val=='mo cle'}st" " /spa font-f .e="hidde rso bs/ > .html? valkebsonal> hom0 icn0 icidden="来自网易短信写博shdss=s block iwapass=clearfix'>n0 i羍 UInt/span> {sif}st" " pa 2 bdc0 fc07 fs font-f .e="hidde${x. aflow:hi/spaaflow:hi/spa{sif}st" {/id="}st" {if !!a}st" 2ref .e="hidde${a. rN067}/q < dss=s lock m2 .e="hidde${a. rN067}/q ${fn(a.nx; 2067,8)|escape}e UInt/spa 5">${a./patInoe |escape}{if g度&nbaflow:histy0px; =
mbgak bcmimou est" targ edc0 dss=s mbgang?earfix'>
dding-leflock ou m2 dss=s lock m2nk}/?${fn(x.idden,26)|escape}m; marliist" ta{sif}st" {/id="}st" 2 bdc0 fc07 fs font-f .e="hidde${x.recommend rN067}/q st" ta" pa< paadc0 dss=s cwrg itd st" targ pa 2 bdc0 fc07 fs font-f .e="hidde${x.recommend rN067}/q st" ta" /span>${fn(x.recommend rNx; 2067,6)|escape}st" targ pa< UInt/span>paa pa< px;ist" ta {sif}st" {/id="}st" pa< px;ist" ta{if !!b&&b.length>0}st"

m;n0 i羍dding-leflock m2 2ref .e="hidde${y.recommendB ;/lit">nk}/? val=> ame="tag" value="" /> q>${y.recommendB Tiv> |escape}m; marliist" ta {/if}st" {/id="}st" pa< ulist" ta{/if}st" st" ta c07">< spaiv> 记录:st" ta{id=";cess x}st" pam;n0 i羢t" targ dc0 dss=s I> g itd c07"> icn0 i> dss=s loc7 m2${x.referB Tiv> |escape}m; marn0 i羍 px;ist" ta par c07"> icn0 i> dss=s loc7 m2${x.referU-hoN067|escape}m; marn0 i羍 px;ist" ta dss=s lock m2 .e="hidde${x. rN067}/${x.kebit">nk}/?recommendB q idden="${x.idden|bdcault:""|escape}q>${x.idden|bdcault:""|escape}m; marliist" ta{/if}st" {/id="}st" dss=s lock m2 .e="hidde${x. rN067}/${x.kebit">nk}/?kebsonalRecomB q idden="${x.idden|bdcault:""|escape}q>${x.idden|bdcault:""|escape}m; marliist" ta{/if}st" {/id="}st" dss=s lock m2 2ref ${x.> 999|bdcault:""|escape}?recommendspan

${x.> Tcle|bdcault:""|escape}q>${x.> Tcle|bdcault:""|escape}m; marliist" ta{/if}st" {/id="}st" -- st" adCou榷<8206708j bds2 bdm-3-jst-10q st" ta4}{b度 font-f .e="hidde${x. rN067}/${x.kebit">nk|bdcault:""}" idden="${x.idden|bdcault:""|escape}q>${fn1(x.idden,60)|escape}m; man0 iIdss=s spa${fn2(x.ocus="tTim0,'yyyy-MM-dd HH:mm:ss')}{id="; mas x}st" {if !!x}st" 0n-ldss=s itd dss=s lock m2nk}/q>${fn(x.idden,26)|escape}m; marliist" ta{sif}st" {/id="}st" {if !!(> Detail.in-B ;/lit">nk)}st" " il block icn0 icn0-6620q earfix'>n0 i羢t" ta/sp< itd nk}/q ${> Detail.in-B Tiv> |escape}m; marpx;ist" ta {/if}st" {if !!(> Detail.nCouB ;/lit">nk)}st" " irg block icn0 icn0-6619q earfix'>n0 i羢t" ta/spnk}/q ${> Detail.nCouB Tiv> |escape}m; marpx;ist" ta {/if}st" 2 bdc0 fc07 fs font-f .e="hidde${x.ocus="terU-ho2067}/q st" ta" {if x.ocus="terU-ho2067== dc0 dss=s cwrgv2067t itd st" targ 2 bdc0 fc07 fs font-f .e="hidde${x.ocus="terU-ho2067}/q st" ta" /spa${fn(x.ocus="terNx; 2067,8)|escape}st" targ e UInt/span>aflow:hi/spasp 0820 {if x.i820==1} js-lrigi820{handif x.i820==2} js- 2 bdc0 fc07 fs font-f .e="hidde${x.ocus="terU-ho2067}/q earfix'>UInt/spaa/px;ist" ta{/if}st" {/id="}st" 2ref ${hpan">nes.url_3w|escape}dInt display pa nes. 最 ic/n0 i羢t display pan0 iIdss=s i-bl icn0 icdss=s bmgdescg itd ${hpan">nes.idden|escape}m;n0 i羍/n0 i羢t paaaaapam; mnt paaaaapamulist paaaaapa {if bdc>ned(' clsid="')&& clsid=".length>0}st" paaaaapapaaaaapa{id="; clsid="ess x}st" papaaaaapapaaaaa{if x_ 0pex>7}{b度 2ref ${x.url_3w|escape}dddss=s loc5"> i> ck dobdI·m;n0 i${x.idden|escape}m;aic/idist paaaaapa aa{/id="}st" paaaaapapaaaaa {/if}st paaaaapa< 'Smnt paaaaapamdc0 dss=s downade=" clsqmnt paaaaapapaaa 2 bdc0 fc07 fs font-f m; mnt paaaaapam px;ist" ta paaaaa< px;ist" &nbaflow:hipaaa&nb被clas日志 &nb最新日志 &nb该作者的其他文章 &nb博主clas &nb随机&nb首页clas dss=s 3 m2 .e="hidd">更多"sour />m; mardc0Intpaaa
n0 i羢t" ta/c/dc0 nt a .e="hidde${x.u-hoN067}/qd023_04"> dss=s m2[ nbsToOpm _ 0pex]}”earfixearfixst" targ/ paaa{/if}st" aaaa{/id="}st" paaaaa{if (x. .e="hidd/ ame="tag" value="" /> /"; //文章的永久链接,作为文章的唯一标识stvnt wumiiTags = ""; //文章标签,以英文逗号分隔,如:"标签1,标签2"stvnt wumiiS .e="hidd/ dc0 nt/spaaadc0 nt/spaaadc0 nt/spac/dc0 ntaac/dc0 nt dc0 nt/spaaadc0 nt/spaaadc0 nt/spaaadc0 nt/spaaa页脚 2ist" tacdc0 dss=s k">aaaa" capa_adage">XDA-shdss=s m2 ref 我的照片书m; mntaaaa" cn0 iIdss=s 10q -m;n0 i羢t" targcapa_adage">XDA-shdss=s m2 ref ie="hidd/ocus=c/the /q 博客风格m; mntaaaa" cn0 iIdss=s 10q -m;n0 i羢t" targcapa_adage">XDA-shdss=s m2 ref ie="hidd/ rso bs/wap> .html">手机博客m; mntaaaa" cn0 iIdss=s 10q -m;n0 i羢t" targcapa_adage">XDA-shdss=s m2 ref &nbhiddeapp? =qbboke_" /50209_0 下载LOFTER APPm; mntaaaa" st" targc">nkpa_adaaltho20 ="RSS; font-f n0 i订阅此博客m; mm;n0 i羢t" ta -e="-com-lay -e="-com-tn-p${y.n}ned('wl')}st" targaa{id=";wl ss x} /",nal>um/",nmustag",ne-cle ion/",nfa stdm/",nproadho/",npprt k/",n",ne">&archiv /q]st" t,cf:0st" t,cl:{pv:fm; est" taaaa,ti:93912541st" taaaa,t=:''st" taaaa,tc:0st" taaaa,tl:3st" taaaa,ut:0st" taaaa,u=:''st" taaaa,um:''st" taaaa,ui:0st" taaaa,ud: fs }st" t,cp:{nr:1st" taaaa,cr:1st" taaaa,vr:-100st" taaaa,fr:0}st" ,cs:0st" t,ct:{'nav':['首页','日志','相册','音乐','收藏','博友','关于我','LOFTER'],'enabled':[0,1,6],'bdcaultnav':pveseIno('11111111',2)}st" t,cu:fm; est" t,cv:fm; est" t,cw:fm; est" };st" w 0pow.UD = {};st" UD.in-t = {st" ta u-hoId:1 value="st" taa,u-hoN067:' Analy"tasObje ']=r;i[r]=i[r]||fun ion(){st" (i[r].q=i[r].q||[]).ocsh(argu s)},i[r].l=1* cl D/h4();a=s.c度 -analy"tasicom/analy"tasijs','ga');stst" ga('c度