yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] perjarle:
Hello all

I have been working with a project for some time now with some success but not complete solution.

Hope someone are able to help me.

Here's what I am trying to accomplish:

While the Android device is connected to my default wifi network with internet access, I want to use an external wifi adapter to be connected to a different wifi network (standalone network with no access to internet)

Here is what I have done:

I connected an external wifi adapter using an OTG adapter.

Checked that the external wifi adapter is recognized by Android.

iwconfig gives me wlan0 and wlan1 (wlan1 is unassociated)

I got help making a config file /system/etc/wifi/wpa_supplicant.conf2:

#ctrl_interface=/var/run/wpa_supplicant_wlan1
eapol_version=1
ap_scan=2
network={
ssid="MyExtraSSID"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk="password"
}

and a and a /system/etc/init.network2.sh

#!/system/bin/sh
wpa_supplicant -Dwext -iwlan1 -c/etc/wifi/wpa_supplicant.conf2 &
netcfg wlan1 up
ifconfig wlan1 174.15.0.17 netmask 255.255.255.0

I am able to run the /system/etc/init.network2.sh from an app, and the solution is working.

Now the device is having it's default wifi network that is configurable using wifi settings in Android.

The 2nd network is not visible in wifi settings.

iwconfig lists both wlan0 and wlan1 with the correct configurations

And I can access addresses on both networks :).

Here comes the problem:

If I boot the device with the external wifi adapter attached, Android is using the external adapter as wlan0 which is the default network.

wlan1 is not available, and /system/etc/init.network2.sh don't succeed.

It seems like Android is happy about finding one wifi adapter and stops searching for more.

Does someone know a way to stop Android from using the external wifi adapter for wlan0 ?

Also...

If for some reason the connection to my 2nd network is lost (AP reboot or low singal), it is not able to reconnect to that network automatically.

Any help will be appreciated

Best regards

Per-Jarle
[Android Q&A, Help & Troubleshooting] Eve_brea:
I would love to know how to do this... because it seems rooting my N7 tablet made the wifi receiver weak. Hoping a wifi dongle might get a better signal indoors at work.
[Android Q&A, Help & Troubleshooting] gatecrasher1970:
wireless antenna nexus 7

hi perjarle, how did you get the ip for the antenna also what app did you use and also was you able to connect to wifi with the dongle and browse the web .

edit: when i tried this i had a problem like you when it rebooted i turned wifi on it came up superuser granted wifi tx power but split second later connections vanished and kept turning wifi on and off , is this what you experienced?
[Android Q&A, Help & Troubleshooting] obaidurrahman.bd:
We need to combine external and internal wifi Network to get better speed. So we need an application, that can combined bandwidths.
[Sony Xperia P, U, Sola, Go] impster:
Hi all.

This morning I accidentaly drove over my old Xperia X8, which I was running a custom kernel (Alfs V09c) and Gingerdx v30 Rom.

As my X8 is now dead (completelly dead) I'm looking to change and upgrade to something that's not too expensive.

I can buy an unlocked Xperia U for 50GB pounds - how much better than my X8 will it be?

I can't afford to spend more than 60GB pounds, so it will be a used/second hand phone.

I'd be most greatful for advice.

Impster
[Sony Xperia P, U, Sola, Go] doctor_droid:
Xu is far better than x8

Bt we still dun have jelly bean

There will b no official jelly bean from sony

If u r okay wid that and only 6gb memory then buy one ;)
[Sony Xperia P, U, Sola, Go] impster:
Thanks for that. Xperia U looks like a nice phone.

What other used phones are worth considering in this price bracket?
[Sony Xperia P, U, Sola, Go] doctor_droid:
S advance a bit costly

Xperia go. A bit costly

Both will have official jelly bean
[Sony Xperia P, U, Sola, Go] n0t:
My wife has an xperia U, and it's really compact fast and responsive. The main limitation it's internal memory, so you wont' be loading the device with movie files and other stuff. Don't forget you can have 50GB free online storage from box.com, and you can always use a usb otg cable with a 32GB key to transfer files or even play directly from it.
[Sony Xperia P, U, Sola, Go] nishangrg:
if i had to suggest you then buy xperia sola..

it has internal 8GB and Expandable upto 32GB too

the only thing it lags is it will also won't have official JellyBean..

its price is on normal Range like Xperia U..
[Sony Xperia P, U, Sola, Go] impster:
Have been offered an X10 Mini for the cost of a Big Mac meal!

Looks like it will do until I get offered upgrade from O2 in a few months' time!
[Sony Xperia P, U, Sola, Go] Dhiraj:
Go for galaxy grand.

Send from Xperia U
[Motorola Atrix 2] Ravikirancg:
Hey folks, CM10.1 is amazing.. But has some bugs.. So its not a good idea for having it as a daily driver yet..

But still we all want to use it.. maybe just for testing.. so what to do?

well why not dual boot CM10.1 and other ICS roms?

for that you need

1) whirleys BMM (look here http://xdaforums.com/showthread.php?t=2115715)

2)Of course the CM10.1 zip file (here http://xdaforums.com/showthread.php?t=2121029, thanks Wanggighost and hankbizzo5)

3)the patch I have attached..

4) reboot into recovery, change system, install CM10.1.

5) Once done, just install the patch I have provided..

reboot and select your system..

Enjoy!!

NOTE: MAKE SURE 2nd-init IS ENABLED IN SETTINGS OF BMM OR IT WONT WORK.

EXTRA BENIFIT: NO MORE TRIPLE BOOT SPLASH SCREENS

What is happening here?

Simple, bmm (and probably safestrap as well) look for the 2nd init files in /system/etc/rootfs. But the standard boot menu keeps files in /system/bootmenu/2nd-init. Well, so when I install bmm on cm10/cm10.1, the necessary ramdisk files cannot be found and your phone bootloops. So all I do in this is copy the 2nd init files from cm bootmenu folder to rootfs folder.
[Motorola Atrix 2] shardul.phatak:
trying now .... hope ill succeed..

Edit: ... cant go beyond bootanimation of CM10.1

Edit 2 : installed successfuly on 3rd system .... i think i done something wrong with 2nd sys.

Thanks a lott buddy :)
[Motorola Atrix 2] anikadam:
When i reboot into 2nd system, it says, CDROM partition is not setup and then boots into 1st system..
[Motorola Atrix 2] shubham412302:
Cm10.1 can be flashed only through bootstrap and not through boot manager

Sent from my jb atrix 2
[Motorola Atrix 2] shardul.phatak:
not trying to be an A** here .... but .... post was created for flashing CM10 through BMM & OP has stated solution.

may be u need to read OP twice !!
[Motorola Atrix 2] Ravikirancg:
You haven't set up bmm properly.. Tap on the green android. Select settings. Select system 2. Select partitions. Tap on activate. It will format CDROM partition to ext2 fs..

I have given it in the link on step 1..
[Motorola Atrix 2] Ravikirancg:
Can you get me a log? Try destroying all the images and create them again.. Keep system a minimum 500MB.. And 1st boot takes a bit long.. Wait a little..
[Motorola Atrix 2] Ravikirancg:
Lol.. That makes a lot of sense.. Wonder how you even got till boot animation.. System 2 is CDROM partition.. Its just 12mb.. Its used for some other purpose..
[Motorola Atrix 2] atrix2man:
Great.

Worked 1st time flawlessly
[Motorola Atrix 2] anikadam:
Yeah, so i was taking a break from some hospital paperwork and decided to do this, i had already flashed cm10.1 on the 2nd system, So i thought, 'lets start this from scratch', so what i wanted to do was format 2nd system and data.. and dunno SOMEHOW i formatted my /ext and NOW i have a fully formatted 16GB micro sdcard with everything gone, GONE ! my photos videos ! such a stupid *** thing to do !!! F*** !!!

i do have my back ups on my laptop but all my photos and videos are gone !! thanks to evernote i have my notes though.. I tried this recovery sw to get back a few files, got a few videos back but somehow off the 1000+ photos, it could recover just <50.. :crying:

Sorry for being way off topic.. feel free to report.. i just wanted to type some frustration out :mad:
[Motorola Atrix 2] shardul.phatak:
Yea buddy .... I knw hw it feels

I lost my all fotos while partitioning the sd card through BMM :( ..... some were way too important

& I succeeded bootin 3 ROMs with this

1) Stock 2) MIUI 3) CM10.1
[Motorola Atrix 2] aguacateojos:
A quick question - this only allows you to boot the 10.1 rom, right? Can't go on and dual boot the other CM room?
[Motorola Atrix 2] Washburned:
Well I did install it with the 4.2 cm10 ROM, but it seems the bmm is gone.

Am I having some troubles with the 2nd init.d?

Edit: just switched back to my good old ICS, the BMM is alive and kickin, It works!

Can enjoy now from the jb&ics goodness together.

Thank you!
[Motorola Atrix 2] Ravikirancg:
You mean CM10? Well you can.. Just replace the 2nd-init files from that ROM and flash it.. I didn't think someone would want an older version.. So I didn't make a zip for that.. If you need, I ll make it.. Its pretty simple..
[Motorola Atrix 2] aguacateojos:
I suppose I don't need it, I was just wondering since the camera isn't working in this release. I also should have phrased the question better, I was wondering about flashing something like the PA rom on a system as well.
[Motorola Atrix 2] GlitchedSoul:
Can this be used if you are on cm 10.1 and want let's say SCV7 as second?

Sent from my Soul
[Motorola Atrix 2] ghoststar479:
Did this last night, works beautifully. I too am curious as to whether or not this will work with any other ROMs that state they don't work with BMM?

Regardless, patch does what you claim, and that's all that matters really :)
[Motorola Atrix 2] whirleyes:
Soft format actually didn't erase your data. It only remove a file system reference. You will only lose it when you start writing a new data.

Try disaster recovery software like recuva.

Hopefully you haven't write a lot of new data on your freshly formatted sdcard.
[Motorola Atrix 2] jattkhalsa:
I am currently on Cm10

I am looking to install BMM on my phone. I currently have Cm10 ROM installed and looking to add MIUI or ICS rom as dual or triple boot. I have the Att version and currently out of warranty. Last time I did some updates I ended up with a hard brick because I installed Bootstrap on top of CM10 and don't want to run in to the same situation again. Do I need to go back to ICS and then install BMM or can I install from CM10. Also what do I do about the patch and finally how do I install MIUI. Any help would be appreciated.
[Motorola Atrix 2] Ravikirancg:
1) You never hardbricked your device when you installed bootstrap on cm. You softbricked it.

2) You can install bmm on cyanogenmod10(theoretically for sure). But until you install the patch, your phone will bootloop. If you are unwilling to take risk, get back to stock ics. else keep your fastboot files ready.

3) As for getting bmm and doing dual or triple boot, there is a thread by me in general section. SEARCH.
[Motorola Atrix 2] dumgum89:
Please delete this post.
[Motorola Atrix 2] jattkhalsa:
You are right I recall what happened I did softbrick at the time but to fix the softbrick I tried to FXZ to stock and in all foolishness decided to use 2.3.6 file and hardbricked. In any case I got BMM installed I used your tutorial to change vfat to auto and I installed MIUI (works fine) but CM10 was getting stuck on CM10 boot screen so I tried installing in System 3 instead of 1 and that worked. Also I did create a patch for BMM I took your patch and added 2-init files from CM10 if anybody wants it is attached. I should probably upgrade to CM10.1 seeing that almost everybody is using it but I hate to loose to hardware acceleration when moving to CM10.1 or PA. Thanks for your help so far.
[Motorola Atrix 2] dumgum89:
Does this seperate the system storage into 2? One for each rom?
[Motorola Atrix 2] minhajlk:
I tried this on 2nd system, it did not work. So I created a 3rd system and this worked. Yes, BMM creates a separate systems partitions and you can create up to 6 partitions.

Multi booting is fun. Good Luck :).
[Motorola Atrix 2] rohitrockon17:
Help if possible

Hey,

I lost all my data on SD while playing around with BMM :(.. However still not able to get any ROM installed. I have activated the 2nd partition as well. I have tried installing on 3rd and 4th partition but was never able to boot the system :(. I first create the virtual partiton for data, cache and system and then install a ROM in recovery mode, but as soon as i boot that partiton it says that the system.img doesn't exists even when i have created them. So if you dont mind, can you please gv me steps by steps instructions in atleast dual booting and rest i can take care.

Thanks in advance

RG:cowboy:
[Motorola Atrix 2] Ravikirancg:
From what you say, did you switch the system? What was the colour in recovery?
[Motorola Atrix 2] rohitrockon17:
Help

Thank you so much for fast reply. Yes i did switch. color was orange (3rd system) and 2nd system is (blue). just now i tried installing paranoid 2.99 on 2nd system itself and when i rebooted in 2nd system i could first time see the boot animation and it's stuck there for a while now. It's been almost 10 mins at this screen, will wait for another 10 mins before i take the battery out and switch to my STOCK ICS first system. Any suggestions would be helpful. Also another little query that i have is :

Inorder to install CM10 on another system, do i need to install that patch first or install CM10 first and then install the patch. What is the sequence..

Thanks again :)

RG:cowboy:
[Motorola Atrix 2] shubham412302:
install any cm based rom and then install cm patch for bmm
[Motorola Atrix 2] Ravikirancg:
Cm first then patch. For pa, use the patch file jattkhalsa provided some posts above.. The one I provided is for cm10.1.. Or you can manually open the rom zip file, create a folder called rootfs in system/etc/ and transfer all files from system/bootmenu/2nd-init to it. Then flash the zip file in recovery..
[Motorola Atrix 2] atrix2man:
awesome job..

Dual booting 5 roms.

System1-PA3.10

System2-Stock ICS

System3-Cm10.1

System4-AOKP

System5-Magicmod

[Edit] System6-Miui/asian retail/ATT

:good:
[Motorola Atrix 2] Ravikirancg:
AOKP? using the RAZR one? But gsm radio doesn't work with that right?
[Motorola Atrix 2] rohitrockon17:
Help..

I am able to get SCV7 on 2nd partiton without any issues, but when i try paranoid or CM 10 , it stucks at boot animation. I have waited for abt 30 minutes, but still nothing happening. Am i doing something diff ? Also how to get Stock ICS on a different system ?

Thanks

RG:cowboy:
[Motorola Atrix 2] atrix2man:
The radio works for me. Smoothest rom out there so far but no camera :(
[Motorola Atrix 2] minhajlk:
On which partition did you try CM10? Try flashing on 3rd system. Create a 3rd partition and apply the patch by jattkhalsa, refer post #22. It worked on my A2.
[Motorola Atrix 2] Lifehacker7:
So I flashed cm10.1 as 1st system and now if i install bmm and do the edits, during reboot will it work ( to flash the cm patch)?

Am i gonna be stuck at boot Cuz of 2 recoveries ?!
[Motorola Atrix 2] Ravikirancg:
It should work.. I give you a 99.99% it works.
[Motorola Atrix 2] Ravikirancg:
Mind giving me the link for aokp for atrix 2? I doubt we have it..
[Motorola Atrix 2] atrix2man:
Heres the link to the download. http://pan.baidu.com/share/link?shareid=173554&uk=3624880094

Heres the link to the op. http://xdaforums.com/showthread.php?t=2152301

You download the aokp.news.rar and extract it to clockworkmod/backup. Boot into bootstrap recovery and wipe/factory reset. Then go to backup and restore and click on aokp.news then give it a minute and once it completes flash 4.1.2 gapps then your good to go.

[NOTE] it works with bmm but after u restore and flash gapps you have to flash the bmm patch...

Its stated in the op that aokp is confirmed and working by ME. Its safe so no worries. Read the op first but ignore their flash instructions. Go by exactly what i told you and you will be good. :good:
[Motorola Atrix 2] Ravikirancg:
Lol. I know how to install a ROM.. I didn't ask for instructions.. I have already seen that. The point of my previous post is that i am doubtful if that is real aokp or just cm10 edited. There was one 'ROM' in which a guy just changed the android version in build.prop from 4.1.2 to 4.2.1. And added some tweaks and a diff launcher and said its a 4.2.1 ROM. That is quite stupid.. Hope i am Not sounding too rude.. I tried using it but was getting fc on phone.apk so couldn't go past the lock screen to test it.. Moreover it is 350mb. Aokp shouldn't be more than 160mb for our phone. So you ask me, its just some fake thing. And you don't seem to have seen 'real' aokp. Official version is present for RAZR. It runs on our phone just fine, but no gem radio. Search, Download it, install and apply patch. And you will understand what i mean by real fake aokp.
[Motorola Atrix 2] anikadam:
thats great news about the Razr AOKP.. :good:
[Motorola Atrix 2] atrix2man:
Its pretty real to me. Nothing like CM...this one is much faster and smoother. But this rom has no camera at all but all rom controls work perfectly. No fc's. Give it a go.

And you dont flash any patch..just wipe..restore and boot.The patch didnt work for me then i restore with no patch and then it works..maybe thats the radio problem.
[Motorola Atrix 2] sazhagianambi:
Hi,

I did read page 3 couple of times, still like to make sure my understanding..

I gave BMM 034 installed and with needed edits it's working.

I have Numa as first rom and that's the only one I have so far.. And I have att phone..

Now I like to install pa3.1 (latest with 4.2.2 Aokp) as second system.. Since I am on att I can use second System or still it has to be 3rd or higher?

Also can some one please explain step by step procedure to get pa installed as second system...

My understanding is

1. Switch to second system and install pa

2. Install patch given on page 3(post 22) again

3. Reboot to second system

4. Install BMM?

Is that right?

I haven't done any updates in BMM other than text edit needed to get it worked..

Sorry for asking same things discussed few times already..

Thanks in advance..
[Motorola Atrix 2] Ravikirancg:
Forget I ever said anything..
[Motorola Atrix 2] minhajlk:
Hi Ravikirancg,

Thank your for your instructions and patches I was able to play around with dual booting, but I still couldn't figure out a way to flash cm10.1 on 2nd system. I was able to flash cm10.1 on 3rd system and I was able to flash MIUI on 2nd system with a converted MIUI ROM. MIUI is a great rom but I still prefer to have cm10.1 on my 2nd system, I have CMPA on my 3rd system. I'd appreciate if you can guide me how to flash CM10.1 on my 2nd system, yes I did try your patch but it did not work.

By the way I am on stock ICS AT&T.
[Motorola Atrix 2] Lifehacker7:
I put cm10.1 in the 1st system, flashed the patch. But i see that no matter which system, (excluding system 2 in which I ain't supposed to flash) the PA wouldn't boot up(I tried to flash the patch to even PA, tried without flashing the patch too but same result) It's just a bootloop. But it could successfully boot scv7.! What's wrong? Is it because i have cm10.1 on 1st system? :confused:

--------------------------------------

LIFE!

IT'S WHAT YOU MAKE OUT OF IT!
[Motorola Atrix 2] minhajlk:
You need have moto stock ICS or Scv7 as your first system and install BMM, you cant install BMM on cm10.1 since cm10.1 has its own recovery. You can flash cm10.1 on system 3 - 6 with the patch. You can flash MIUI on 2nd system, there is a converted MIUI rom with a patch somewhere in these threads, I'll send you the link, if I find it. Hope this helps.
[Motorola Atrix 2] Lifehacker7:
Oh! Thnx :thumbup: i wasn't thinking of flashing MIUI though. It's just the PA and AOSPA that i wanted to try out along with cm10.1! :)
[Motorola Atrix 2] minhajlk:
Here's the link for MIUI patch for 2nd system http://xdaforums.com/showthread.php?t=2093882&page=8, see post #75. So far I was able to flash only MIUI on 2nd system, so might as well use this space to experiment another rom on your A2 and besides MIUI is a pretty cool rom :o.
[Motorola Atrix 2] dumgum89:
Hey guys so I did this wanting to install CM10.1 on 3rd system keeping stock ICS on system 1. How can I get stock ICS back on one of my systems?
[Motorola Atrix 2] Lifehacker7:
Install the BMM via playstore. ( on the stock ics) do the edits, save them. Reboot. Go to settings of BMM ( you should tap the green DROID button and double tap the settings to get in there) do what the OP says with 2nd system, go back and create the partitions for system 3-6 in which you wanna flash cm10.1, then go all the way back and tap recovery, it will boot into BMM recovery, say switch system, install zip, find the zip, install it, flash gapps. ( no need to wipe anything as you are doing it on a new system). Then reboot into the system you flashed cm10.1 to. If you wanna go to ics, tap system 1. ( by default it will boot into system 1,you can change it in settings)

[/COLOR]

Leave system 2, install it on 3-6.( only converted MIUI could be flashed there). Flashing the patch is not needed I believe. ( if it bootloops, pull out the battery, boot into system 1, delete the PA you flashed by going to data/clockworkmod/system name. (delete the whole folder).)

Go back to BMM, create partitions, flash PA with the patch.

You should go to recovery to install any ROM. tapping any system at boot will boot you up into that system only.

BMM will stick at every boot. No need to install BMM again in pa.

- - - - - - - - - - - - - - - - - - - - - - - - - -

LIFE!

IT'S WHAT YOU MAKE OUT OF IT!
[Motorola Atrix 2] dumgum89:
I don't have any system with ICS on it. That's what I want. I have CM10.1 on system 1 because I accidentally flashed it over stock ICS. That and the CDthing on system 2 are all I have. Do I have to fxz to get stock ICS again and start over?
[Motorola Atrix 2] Lifehacker7:
Yah. If you want stock ics then you should fxz back to ics.
[Motorola Atrix 2] dumgum89:
How did you get stock ICS on system 2?
[Motorola Atrix 2] sazhagianambi:
Thank you. I did the same and it worked, how ever after i get into PA3.1 i couldn't install/update any apps from playstore.. ..It gives error -11 after it downloaded whole thing and quits...Another thing I noticed is File Explorer couldn't found any contents... is there some thing else needs to be take care here?

Thanks again.
[Motorola Atrix 2] Lifehacker7:
Not sure why that's happening. Did you flash the right gapps?

And try alternate file explorers and see if they work.

- - - - - - - - - - - - - - - - - - - - - - - - - -

LIFE!

IT'S WHAT YOU MAKE OUT OF IT!
[Motorola Atrix 2] sazhagianambi:
I did installed Gapps 20130301 Version(as PA 3 on 4.2.2). tried fix permissions...In settings, when I click Mount SD card nothing seems happening, I get notification as safe to remove SD card...

No luck still installing apps/accessing sd card, but I do get in PA3.0 with patch..
[Motorola Atrix 2] sazhagianambi:
Unknown Error Code during Install: -110. --> Thats the error message I get when I try to install/update app on PA3.1 in 3rd system. I have both System & Data as 500 MB each and Cache as 300 MB. Any idea as what I am doing wrong?
[Motorola Atrix 2] sazhagianambi:
Finally I got it working, I keep installing cm10 patch instead of 10.1 which caused the issue..once i flashed 10.1 all is well..
[Motorola Atrix 2] amynjimmy:
Is the patch going to work with the new wang release? If so has anyone verified it

Bmm

1. Stock 4.0.4

2. Miui

3. PA 310 4.2.2

4. CMPA 4.1.2
[Motorola Atrix 2] alteredlikeness:
Probably not...

It's a whole new game with kexec. Those init.*.rc files used in the patch are now in the ramdisk with kexec builds..

Not sure how whirleyes handles kexec with bmm on the RAZR yet (if at all).. But if they can do it, so can we.. ;)
[Motorola Atrix 2] amynjimmy:
I tried flashing over CMPA a few times but didn't work. Frozen at m for a whilewhile battery pull and then just looped back to Bmm. Will wait and see what happens next.

Bmm

1. Stock 4.0.4

2. Miui

3. PA 310 4.2.2

4. CMPA 4.1.2