Nexus 7 - WiFi Ad-Hoc fix for wpa_supplicant? - Nexus 7 General

Update March 25, 2013:
Solved!! The folks over at Thinktube Inc. have developed a fix and submitted it to CyanogenMod and AOSP for merging into their code:
http://b-real.org/2013/ad-hoc-ibss-m...h-cyanogenmod/
http://www.thinktube.com/android-tech/46-android-wifi-ibss
Essentially the EASIEST solution is to ROOT your phone, and install the CyanogenMod nightly as of March 25 or later (note: you will have to wait until the nightly is actually BUILT, since as of today it is not ready yet).
I have not tested this solution out myself, however others within this thread have confirmed it working.
Please if anyone develops a easier patch or a step-by-step for people who do NOT want to use CyanogenMod, post and I will update the OP
Cheers!
WiKiD24
-------------------------------------------------------
Update Oct 9, 2012:
- Nexus 7 v4.1.2 did not add Wi-Fi Ad-Hoc Support with the stock update from Google.
To do: Check if any WPA-Supplicant changes previously tested in v4.1.1 now work in 4.1.2
- Workaround (Recommended): Bluetooth Tethering to Nexus 7 Tablet (via Bluetooth DUN Profile). "BlueVPN" from Google Play Store.
Tested successfully on many Nokia Symbian phones (N7, E71, E72), and others.
However, many applications on Nexus 7 Tablet do not support it (without fixes from the developers)
Confirmed working applications:
- Pulse
- Google Chrome
- Dolphin Browser
- Facebook
- Ebuddy
- Youtube
- Others (I am too lazy to add them all)
Confirmed NOT working applications:
- Gmail
- Email
- Google Search
- Google Play Store
- Dropbox
- Words with Friends
- Scramble with Friends
- Others (I am too lazy to add them all)
More details can be found here: http://forum.xda-developers.com/showpost.php?p=29763582&postcount=27
Issue: Sometimes the phone/tablet do not connect (randomly), due to issues with either the phone or the tablet.
To resolve: Turn on and off bluetooth on phone, Turn on & off bluetooth on tablet. Try again. If does not work, reboot phone and tablet and try again. Should work.
-Workaround: Android Phone to Nexus 7 Tablet (via "FoxFI" App on Phone, "FoxFi Addon" App on Tablet, or via "PDANet", or via "Wireless Tether App")
http://forum.xda-developers.com/showpost.php?p=29763582&postcount=27
- Workaround: USB Tethering ANY Phone to Nexus 7 Tablet (via "PPP Widget" App on Tablet, requires rooted Nexus 7)
http://forum.xda-developers.com/showpost.php?p=32431103&postcount=51
- Workaround: Windows WiFi Laptop Tethering to Nexus 7 Tablet
http://www.youtube.com/watch?v=klHzMyYFGeQ
-------------------------------------------------------
Hi All,
I've just recently gotten a Nexus 7 and need to be able to enable Ad-Hoc wifi on the tablet.
I also own a Asus TF101 and previously had the same problem however there was a fix for that.
The solution was to replace the wpa_supplicant file in the /system/bin folder, however I do not know the code to change it.
If anyone has the technical know-how, they would be able to reverse-engineer it and apply the same fix.
http://forum.xda-developers.com/showthread.php?t=1370955
http://szym.net/2010/12/adhoc-wifi-in-android/
http://www.slatedroid.com/topic/2752...less-hotspots/
http://www.olsr.org/?q=olsr_on_android
http://hostap.epitest.fi/gitweb/gitw...upplicant.conf

I posted a possible solution in QnA section. Thread title is similar to this one. Check it out. Doesn't involve any coding. Prime had a similar issue on a few firmware updates. This was solved for us(before Asus came around to enabling it themselves) by adding in a wifi supplicant file and renaming an older one. Then setting permissions on the new file. Here is the link to that thread. There's a good chance it will work without the file needing to be modded. It came from a galaxy tab LR something and worked fine on prime. Its worth checking out.
http://forum.xda-developers.com/showthread.php?t=1438297

thanks for the tip and I tried it out, which is essentially the same type of solution but it didn't think work as there is no wpa_supplicant2 file in the nexus 7.

http://forum.xda-developers.com/showthread.php?t=1777413

here's some more useful information for enabling ad hoc:
http://szym.net/2010/12/adhoc-wifi-in-android/
http://www.slatedroid.com/topic/27522-howto-connect-to-ad-hoc-wireless-hotspots/
http://www.olsr.org/?q=olsr_on_android
http://hostap.epitest.fi/gitweb/git...ob_plain;f=wpa_supplicant/wpa_supplicant.conf
I'm doing what I can right now to try and enable it.
Some more experienced android users whom know what they're doing would be better than me trying it out, though!!

Did any of those sources of information get you any closer to enabling ad-hoc?

Just FYI that Nexus S "ad hoc enabling file" doesn't work on NS with Jelly Bean.

nexususer0101 said:
Did any of those sources of information get you any closer to enabling ad-hoc?
Click to expand...
Click to collapse
None yet, I need some help to do so. There is a file called "wpa_cli" that I need copied from another device, because I can't find it on the internet.
If anyone could find it in their "/system/bin" folder and attach it to this tread, I could certainly try it.
I've also requested the same thing in the Q&A forum here: http://forum.xda-developers.com/showthread.php?t=1793437

Bumping; I have the same condition. I'm in Italy and bought an internet package for my laptop--I'm sharing it with all my other devices but the N7 doesn't see the adhoc connection. Like OP said, I had a Transformer TF101 and remember flashing a file to fix it.
Thanks in advance.
Just an FYI: Also checked my GNex for a wpa_cli and came up empty.

Just wanted to give quick update, i have not been able to find anyone to help me and also my life is kinda hectic right now... Hopefully someone will be able to pick up where I left off, in the meantime my nexus 7 is pretty much useless to me until resolved.

One more "me too".
I'm here to share my sympathy to everyone else's pain as I have a nexus 7 that I can't connect to my phone's adhoc Hotspot. I have also posted my query in Android Central, but no one seems to have been able to know a fix as of yet. (topic can be found here: Android Forums at AndroidCentral.com > Google Nexus 7 Tablet Forum > Nexus 7 Rooting ROM's & Hack's > *** CONNECTING TO Adhoc WiFi WITH THE NEXUS 7 ***)
As I said in that thread.. not being able to connect to phones hotspot makes my beautiful nexus 7 feel like a handicapped tablet.

wikid24 said:
Just wanted to give quick update, i have not been able to find anyone to help me and also my life is kinda hectic right now... Hopefully someone will be able to pick up where I left off, in the meantime my nexus 7 is pretty much useless to me until resolved.
Click to expand...
Click to collapse
I haven't seen any reports/posts of people checking out or trying what I mentioned in post #2..lol. on prime we had this exact same problem. Then we found the supplicant file to replace one we had and then adhoc tethering worked after that. You only need to be rooted to do this as you need to rename a file and insert new supplicant in there and set permissions. You can always backup and rename original file. So if it doesn't work, you can easily revert back to stock file. I have a feeling this new file will work. Just haven't tried myself yet as I haven't brought tablet outdoors yet to need tethering. I might eventually see if it works if no one else does.
Look at the thread I linked in second post and you will see prime owners had exact same problem and we solved it. It worked for the transformer 300 also. Will likely work for nexus 7 also. The file is, in a sense, universal.

demandarin said:
I haven't seen any reports/posts of people checking out or trying what I mentioned in post #2..lol. .
Click to expand...
Click to collapse
I have tried. It does not work -- WiFi refuses to turn back on with this new supplicant file. And yes, I made sure to follow your instructions exactly as described in the procedure.
With the N7, there is no such thing as a wpa_supplicant2 file originally in /system/bin (only the one without the '2' exists in the N7 which is the one running the show here, I know this for a fact as when restoring this file, the WiFi in the N7 becomes functional again). So I tried this same file you provide both with and without the '2', with no better results.
I suspect that only a developer that knows what he's doing would be able to come up with a new wpa_supplicant file specifically tweaked for the N7 (as opposed to using one that did the trick for the Prime or for the Xoom or whathaveyou).
Thanks for the suggested idea though... anything else you think we should try?

rdelfin said:
I have tried. It does not work -- WiFi refuses to turn back on with this new supplicant file. And yes, I made sure to follow your instructions exactly as described in the procedure.
With the N7, there is no such thing as a wpa_supplicant2 file originally in /system/bin (only the one without the '2' exists in the N7 which is the one running the show here, I know this for a fact as when restoring this file, the WiFi in the N7 becomes functional again). So I tried this same file you provide both with and without the '2', with no better results.
I suspect that only a developer that knows what he's doing would be able to come up with a new wpa_supplicant file specifically tweaked for the N7 (as opposed to using one that did the trick for the Prime or for the Xoom or whathaveyou).
Thanks for the suggested idea though... anything else you think we should try?
Click to expand...
Click to collapse
They likely will implement it through a future update. Hopefully that's sooner than later. Ill ask motley, kernel developer.

I toyed with this for a while...
If you install Power Controls (Power Controls) you can add a button that turns on the Wifi Hotspot.
Problems:
you cant change any settings in current settings UI
Appears to be default "Android_AP" SSID and whatever the default password is (i dont recall if this is a random code or not)
Its a start!

Demented-Idiot said:
I toyed with this for a while...
If you install Power Controls you can add a button that turns on the Wifi Hotspot.
Problems:
you cant change any settings in current settings UI
Appears to be default "Android_AP" SSID and whatever the default password is (i dont recall if this is a random code or not)
Its a start!
Click to expand...
Click to collapse
Could you explain exactly what this does? I didn't understand what it is being implied with this being a start? with this you can actually connect to adhoc?

idk if anyone has looked...but has anyone looked into editing the Wifi-Direct api to make adhoc networks visible in there? Since wifi-direct is made for p2p connections. it's android.net.wifi.p2p.WifiP2pManager info about it is here http://developer.android.com/guide/topics/connectivity/wifip2p.html like I said...don't know if it's much help

I also wanted to post a quick reply, since I've been an insomniac yesterday.
From my previous posts I posted this link here as well, I edited the wpa_supplicant.conf file from the /system/etc/wifi folder and modified with the following settings, however I don't think that it even reads the wpa_supplicant.conf file either. Can anyone either confirm or deny that the wpa_supplicant.conf file is being used on the N7??
-------------------
update_config=1
ctrl_interface=wlan0
eapol_version=1
ap_scan=2
fast_reauth=1
network={
ssid="Bondphone"
mode=1
frequency=2412
key_mgmt=NONE
wep_key0="1234567890123"
wep_key1=1234567890123
wep_tx_keyidx=1
priority=3
auth_alg=SHARED
}
------------------------

wikid24: I don't know if N7 (or my NS) reads this file but it definitely reads /data/misc/wifi/wpa_supplicant.conf. Only problem is that I can't turn wifi on after ANY change in this file. Sometimes even if I revert my backup file, wifi won't launch and I must delete it to make wifi working again.
I found this thread on XDA
http://forum.xda-developers.com/showthread.php?t=1806937
It is edited wpa_supplicant file for Asus Transformer but it allows me to turn on wifi even on NS. But it doesn't show me any ad hoc networks. Maybe with non-stock kernel...?
And I also found ad hoc patch for source code of older version of wpa_supplicant. But I'm not able to try if it is possible to apply it on JB version too.
http://szym.net/android/wpa_supplicant-ibss.patch

jenda.69 said:
wikid24: I don't know if N7 (or my NS) reads this file but it definitely reads /data/misc/wifi/wpa_supplicant.conf. Only problem is that I can't turn wifi on after ANY change in this file. Sometimes even if I revert my backup file, wifi won't launch and I must delete it to make wifi working again.
I found this thread on XDA
http://forum.xda-developers.com/showthread.php?t=1806937
It is edited wpa_supplicant file for Asus Transformer but it allows me to turn on wifi even on NS. But it doesn't show me any ad hoc networks. Maybe with non-stock kernel...?
And I also found ad hoc patch for source code of older version of wpa_supplicant. But I'm not able to try if it is possible to apply it on JB version too.
http://szym.net/android/wpa_supplicant-ibss.patch
Click to expand...
Click to collapse
jenda, I think you may have solved a big piece to the puzzle!!
You can copy the file to another directory, and THAN you can open the file! I noticed I had all my pre-saved wifi addresses in this file!
If someone can please copy the "/data/misc/wifi/wpa_supplicant.conf" file to another directory, modify it, than overwrite the old file, it should work!! *fingers crossed*
(unfortunately I am busy for a few days, don't know if I'll be able to make the change for a while)

Related

Need to turn on locations (google maps/square)

the error i get is "please enable my location source in system settings" in google maps.
I have already done the "Google location services fix (formerly, Twitter client recommendations?)"
any other suggestions?
Thanks
Chris
Spanel said:
the error i get is "please enable my location source in system settings" in google maps.
I have already done the "Google location services fix (formerly, Twitter client recommendations?)"
any other suggestions?
Thanks
Chris
Click to expand...
Click to collapse
AFAICT all that does is fix dependencies - it definitely doesn't activate locations. You are still missing NetworkLocation.apk, among other things. I am trying to figure it out; it might require pushing a more rhobust settings.apk.
I am going to start digging around in the nook source to see if I can make sense of how they castrated settings. I think that might be the best way to attack this problem.
Sent from my NOOKcolor using XDA app
ok thanks! keep this thread updated with your findings.
thanks again!
Chris
A side effect I just found of following the instructions to get the Market working here- http://nookdevs.com/Enable_the_Android_Market
is that Network Location is working.
When I run maps I have the indicator for where I am.
I will be testing how accurate this is tomorrow- I have a long drive to do and will tether to my Droid with gps running.
With luck, the droid will relay location data to the nook over the network.
Pass or fail, I will post the results once I know.
Good to hear, but you're probably getting a position via WiFi and GPS data can't be passed on via tethering AFAIK so you can't get it off the Droid.
I know that the GPS data can't be passed on per se and that I am getting network location data via wifi- 100% agreement.
My hope, and no testing yet to verify, is that if the Droid knows its location by GPS it will pass it along as a Network Location since it is providing Network Services so to speak.
I have no documentation saying this will happen, just pure speculation and wishful thinking.
OK - that is nice guys, but Spanel (and include me as well) have run the location fix and we still get the error: ""please enable my location source in system settings".
I have most everything working and running: rooted, Market, maps installed and working - but for whatever reason, maps does not display my location - just the aforementioned error message when I do.
Note: I also followed http://nookdevs.com/NookColor_Install_missing_google_geolocate_library, completed it with no errors - but still, my wifi - location is not popping up.
rogerdugans said:
A side effect I just found of following the instructions to get the Market working here- http://nookdevs.com/Enable_the_Android_Market
is that Network Location is working.
When I run maps I have the indicator for where I am.
I will be testing how accurate this is tomorrow- I have a long drive to do and will tether to my Droid with gps running.
With luck, the droid will relay location data to the nook over the network.
Pass or fail, I will post the results once I know.
Click to expand...
Click to collapse
Strange, as I followed it as well but I do not.
Sent from my NOOKcolor using XDA
rad131304 said:
Strange, as I followed it as well but I do not.
Sent from my NOOKcolor using XDA
Click to expand...
Click to collapse
Th8is might be a side effect of when performing the initial Android setup portion of the process, the first question asks info regarding location, etc. I unchecked these options (knowing I dont have GPS) and am thinking this may be where it is being "enabled."
Just a thought.
norkoastal said:
Th8is might be a side effect of when performing the initial Android setup portion of the process, the first question asks info regarding location, etc. I unchecked these options (knowing I dont have GPS) and am thinking this may be where it is being "enabled."
Just a thought.
Click to expand...
Click to collapse
Nork - are you saying that you are, in fact, getting a wifi-location fix on your device?
So does anyone have WiFi location up and running ? In Maps, I get the "please enable location" popup and even with "NookColor Tools" (http://forum.xda-developers.com/showthread.php?t=868366) that shows a ton of hidden settings I don't have location either.
The Autonooter author suggested I install NetworkLocation.apk to fix that, but I still get "Please enable a MyLocation source in system settings, anyone ?
webvan said:
The Autonooter author suggested I install NetworkLocation.apk to fix that, but I still get "Please enable a MyLocation source in system settings, anyone ?
Click to expand...
Click to collapse
From what I've seen, that is normal. I just skipped that screen. I am getting a wifi location fix though which is very cool.
Yes Autonooter activates WiFi location, not the scripts though for some reason.
I JUST got my wifi to work in maps -- figured it out after a bunch of frustrated digging -- by editing the com.android.settings_preferences.xml and adding the line
<boolean name="location_wifi" value="true" />
(I did it in the text editing option in the Root Explorer App after making the system folder R/W, but if your use your favorite editor [command-line or otherwise] at will)
since that xml file, for me, only had a "location_gps"="false argument."
Granted I had also replaced the Settings.apk with a 2.1 build 2 stock one and pushed a stock NetworkLocation.apk, neither of which, by my tests, would make maps zero in on my wifi-based location. Going to restore the NookSettings app and see if this holds.
EDIT: Yes. editing com.android.settings_preferences.xml seems to do the trick. Mileage varies, perhaps, as they say.
EDIT2: That file WAS in /data/data/com.android.settings/shared_prefs/ but it seems to have disappeared since I pushed back the NC Settings.apk -- though while I had the stock 2.1 settings.apk installed, the xml file was there, and Google Maps did use my wifi to locate my position. Now that I've pushed back Settings.apk, Maps still finds my location via wifi. Freaky, quirky, but if you want to be able to use the wifi-location finder feature, this is how I got mine to work:
1. Installed a stock NetworkLocations.apk from a 2.1 build,
2. Renamed Settings.apk -> Settings.old
3. ADB installed stock 2.1 settings.apk
4. Enabled wifi location, which now has an option to "set my location"
5. tested Maps application, no dice.
5. edited the XML file as above -- /data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml
6. tested on maps, success!
7. then removed the 2.1 stock Settings.apk.
8. Renamed Settings.old -> Settings.apk.
I'm sure there is a muuuuuuch easier way to do this, but I'm a total noob. Anybody else have any success?
(The stock Android 2.1 Settings.apk crashed too frequently, anyways, and is annoyingly unreadable with the NC skinning).
I think the process I outlined here will do it for ya...
All you need to do is change the location_provider_allowed field in the secure table in settings.db to network.
Sent from my LogicPD Zoom2 using Tapatalk
fortuno01 Can this be done through Android Commander? Where is the settings.db file, ie which folder?
Also can someone post a clean working NetworkLocation.apk file. I see many on the web.
Finally got it working! Its a festivus miracle!
Alright, so after some playing around, I finally got this working. I used steps similar to above on a win 7 PC. Its all based on the /data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml file. But you wont have one until you install this apk.
Step one. Download and install attached NetworkLocation.apk with ADB.
Step two. Use android commander (Google it, its free) and navigate to the file.
Note when you first run AC, it will ask which os you are using. I say I dont know, mostly because I'm lazy. Its 2.1 of course.
Step three. Pull the .xml file to desktop and open with notepad.
Step four. Add this as the last line in this file. <boolean name="location_wifi" value="true" />
Step five. Save and Close
Step six. Drag and drop into right panel of android commander where original file was. AC will ask you if you want to place on the right panel. Yes, you do.
Step seven. Exit adb.
Step eight. REBOOT. Dont try before a reboot *it wont work*
Step nine. Please thank me if this works for you.
Merry Christmas.
Where do you get the stock 2.1 apk OS files? (I got your attachment). I have the SDK installed are they in there somewhere or can I pull them from the android developers site somewhere? Thanks.

On-Device App Install and Maybe Bluetooth

I had some issues with the ADB commands for preparing my rooted Nook Color for on-device app install (primarily due to microcrap's 64-bit Vista) so I found a very easy method.
In the Market, there's an app called "Sqlite Editor" from the folks who make "Root Explorer" - it's about $3.07 US$ but I bought it anyway.
With this [AFTER A BACKUP!] I was able to directly edit the settings.db (sub category SECURE) and change the following:
'install_non_market_apps' from the default value of 0 to 1 and following a SAVE and REBOOT I can now install directly from my SD Card.
While I was doing this, I find a large number of additional entries including (are you ready for this???) bluetooth_on!
Dare I do this???
I also posted this in Mobileread's excellent Nook Color Forum and I was thinking that may we should also acknowledge them as a great forum for our beloved Nooks!
docfreed said:
While I was doing this, I find a large number of additional entries including (are you ready for this???) bluetooth_on!
Dare I do this???
Click to expand...
Click to collapse
LOL...If only it were this easy.
I had no issue with installing apps from the sd card after rooting/installing mkt and gapps.
Depends on How You Rooted..
I'm not certain but some rooting methods have market/gapps built-in, some don't. I used Autonooter (after upgrading to 1.01) and market & Gmail just appeared - I never had to install anything else.
If you used Autonooter then you wouldn't have to do anything to be able to install non market apps. Maybe just toggle the setting in Nook Tools if anything.
docfreed said:
While I was doing this, I find a large number of additional entries including (are you ready for this???) bluetooth_on!
Click to expand...
Click to collapse
Its NOT that simple, its been turned on in the kernel & custom ones built for it with nothing.
If you see the "salting nook" posts so much as been done trying to get it to work, most expect something ground breaking to come from actually looking at the pins on the chip it self an connection through the MoBo.
Amd sold faulty quad cores as triples so it could be that the chip/Mobo cant do it. Could be a easy hardware mod but TBH so much deep thought an attempts have been seen in IRC i dont see a "virtual fix" anytime soon.
But that said im an idiot so could be 475% wrong
Yeah, I tried toggling Nook Color Tools per the instructions - never seemed to work for me. Anyway, it appears to be just a one-shot adjustment any way it's done (at least till we get FroYo) so I'm happy.
Merry XMAS everyone
docfreed
sqlite not working for me
Purchased Sqlite, when trying to install, exits without loading apps. Any suggestions? Rooted with older booker and then re-rooted with pre 1.01 autonooker. Thanks. -
I have a kernel and u-boot that enables the bluetooth portion of the module and sets up an rfkill device. hciattach will detect it as a TI Bluetooth module and will load one of the TI bluetooth firmware scripts, but then complains about a missing socket or something. It sounds like a software error more than anything that might be wrong with the hardware.
What this means is that the Bluetooth part of the WiFi module isn't just left disconnected and the link to the CPU is working. But we don't know if the antenna is set up to share between wifi and Bluetooth or if the hardware is otherwise missing something that would keep it from working.
If you have experience with getting TI WiLink Bluetooth working in Android or Linux, or know someone who does, PM me or join us on Freenode channel #nookie. We're really close!

[Q] Change CM10.1 to work in Tablet mode

Just recently pulled my old DS7 out of the corner and after seeing, nvflashed this really great Unofficial CM10.1 for Dell Streak 7 ROM on it. Works great, apart from the one tiny problem - it thinks it's a phone ... I already used Uninstall Master to remove some Phone features, such as: SIM Toolkit(it's called Mobile Data i think?), Messaging and Mobile Network Configurator. Was wondering how or where can I change or modify the settings related to how the Cyanogenmod acts as a Phone or a Tablet so that many apps from Play Store wouldn't default to the portrait mode.
On a sidenote - thanks to giveen and anyone involved in making this really awesome CM port to DS7 :good:
karlis1989 said:
Just recently pulled my old DS7 out of the corner and after seeing, nvflashed this really great Unofficial CM10.1 for Dell Streak 7 ROM on it. Works great, apart from the one tiny problem - it thinks it's a phone ... I already used Uninstall Master to remove some Phone features, such as: SIM Toolkit(it's called Mobile Data i think?), Messaging and Mobile Network Configurator. Was wondering how or where can I change or modify the settings related to how the Cyanogenmod acts as a Phone or a Tablet so that many apps from Play Store wouldn't default to the portrait mode.
On a sidenote - thanks to giveen and anyone involved in making this really awesome CM port to DS7 :good:
Click to expand...
Click to collapse
The reason why it is that way is because there are 4G models of the DS7
giveen said:
The reason why it is that way is because there are 4G models of the DS7
Click to expand...
Click to collapse
Understandable, but since I have a Wi-Fi only version I wanted to know if It's possible to change this in form of a setting or a few lines inside a configuration file without involving compiling. I even faintly remember stumbling upon something like this on a CM9 version I had on my old Xperia MT15i Neo ... if only I could remember or find where or how (currently strolling through the developer and CM10 related menus) - deleted my Xperia related bookmarks when I sold it.
p.s. - people mentioned some problems with the on-screen keyboard disappearing as described in one of the posts on the main CM10.1 thread, I've noticed them myself too and they tend to be application specific ... it feels like the keyboard crashes or force-closes due to not enough memory, like in lighter applications the keyboard works fine, but when trying to use the keyboard for writing for example a post in the comments section in a website will most likely result in keyboard disappearing after first input character.
So I am still trying to figure out why you started a new thread about this and what your question is.
To remove mobile data completely requires a new compile, something that cannot be done right now for a variety of reasons.
I guess I simply went too far off topic while trying to explain why I'm writing here... sorry.
So, to clear things up, the question still remains the same - what can I do to make it act more like a tablet and less like a phone on my Wi-Fi only DS7. So what I'm trying to find in the developer and CM menus is if I can more or less simply switch between some sort of "phone" and "tablet" mode so that some applications from Play store wouldn't default to portrait view mode.
And I noted that I've already uninstalled/disabled (call it how you want - I can restore them from the Unnstallers Recycle Bin if something weird starts to occur) some of the system .apks and as You already pointed out:
To remove mobile data completely requires a new compile, something that cannot be done right now for a variety of reasons.
Click to expand...
Click to collapse
... so thanks for clarifying that and no need to do any special versions - it's just fine how it is now. I didn't come here to request anything to be compiled or modified for me but just to ask for info, heck, I wasn't even expecting You to be answering on this thread.
karlis1989 said:
I guess I simply went too far off topic while trying to explain why I'm writing here... sorry.
So, to clear things up, the question still remains the same - what can I do to make it act more like a tablet and less like a phone on my Wi-Fi only DS7. So what I'm trying to find in the developer and CM menus is if I can more or less simply switch between some sort of "phone" and "tablet" mode so that some applications from Play store wouldn't default to portrait view mode.
And I noted that I've already uninstalled/disabled (call it how you want - I can restore them from the Unnstallers Recycle Bin if something weird starts to occur) some of the system .apks and as You already pointed out: ... so thanks for clarifying that and no need to do any special versions - it's just fine how it is now. I didn't come here to request anything to be compiled or modified for me but just to ask for info, heck, I wasn't even expecting You to be answering on this thread.
Click to expand...
Click to collapse
I make it my special concern to answer questions, even if it with sarcasm
I'm not sure what more you can do besides deleting the phone. Comment out in build.prop the rild stuff
I wonder if he is referring to TabUI? Which I as well am trying to relocate the flash able .zip which enabled this display difference. I have been running cm10.1 2/12 because of the sensors not working on the 2/14 build.
Sorry to piggyback the thread, but is there an answer for where the tab ui .zip is for the 2/12 build?
Sent from my Galaxy Nexus using xda premium

[Guide] Installing Arch Linux (updated 11/4/2013) bluetooth+KDE

I've began to write up a guide for getting Arch usable on the Nexus 7. I just threw it up on google docs because I'm too lazy to try to do the wiki thing until it's more complete. Hopefully it is far enough along to get things rolling for people who are looking to experiment with arch.
Anyway, it's a work in progress, if anyone has suggestions, correction, completions, criticisms, etc then holler.
Linkies
Changelog
========
2013-07-20
--Added instructions for installing the platform tools on an arch host pc
--Added references to wicd and network manager as alternatives to netctl
2013-10-20
--Updated instructions to reflect new *-grouper.zip naming scheme for MultiROM files
--Added instructions for updating the kernel to include kexec
--Got bluetooth 90% working. Interface comes up and can find devices with scan. Can’t get it to pair yet though.
2013-10-24
--Got the bluetooth device to power up on boot by adding a udev rule. Unfortunately the bluetooth daemon seems to be failing as it starts.
2013-10-28
--My keyboard is pairing on boot now. Ugly ugly things to get it working, but it works.
2013-11-03
--Updated the guide to get X working.
2013-11-04
--Tweaked xorg.conf files to get kde and e17 working.
--Added instructions to get Touchégg working to provide more tablety experience
Todo/Bugs
Problems/Bugs/Todo
The following is a list of things that need to be addressed or that I want to address. These things will be tackled in no particular order but hopefully over time the number bugs and problems will go down relative to the number of features I want to add.
Feel free to comment with your own ideas or bug reports.
Fix slow shutdowns after enabling networking with netctl
Fix whatever extremely verbose crash shows up on shutdown after setting up bluetooth
Get bluetooth working without hacks and under bluez5
Get a graphical login working
On screen keyboard (especially at login screen)
Set up an aur and/or googlecode project to automate some of the scripting required to get things working
Automate the process with some kind of setup tool
Replace the google doc with a wiki page in a relevant place
Make a custom spin that works more out of the box
Sound
GPS
Accelerometer
Magnetometer
Hardware buttons
Any other sensors that I forgot or am unaware of
Auto screen rotation
For the section on setting up fastboot and adb...it's safe to assume someone installing arch on the nex7 probably has arch on their pc too. For arch, you need to set up access to the AUR, with a package manager that has access to it, i.e. yaourt. Then you can get android-sdk-platform-tools. The rest of the guide looks good. I personally like wicd for my network manager as it is easier to add and remove networks when you go to new locations, and I installed e17(enlightenment desktop).
joeG78 said:
For the section on setting up fastboot and adb...it's safe to assume someone installing arch on the nex7 probably has arch on their pc too. For arch, you need to set up access to the AUR, with a package manager that has access to it, i.e. yaourt. Then you can get android-sdk-platform-tools. The rest of the guide looks good. I personally like wicd for my network manager as it is easier to add and remove networks when you go to new locations, and I installed e17(enlightenment desktop).
Click to expand...
Click to collapse
Thanks for the feedback
I don't have arch on my pc at the moment, so it's not a given, but i think you are right that people are probably more likely to have arch if they are looking at this guide. I updated the guide with info on how to install the tools from AUR. Also added links to wicd and Network Manager in the arch wiki so people are aware of some options if they don't like netctl, and mentioned that e17 works.
Xorg with alarm on nexus 7
Okay, got ALarm installed on my nexus 7 8GB.
For Xorg, I used files from "plasma active" nexus 7 distribution.
Just take them from the plasma active and put them into your /etc/X11 and X should work.
(I can't post a link, must wait 10 posts, I'll link the files later or you can PM me)
My only problem now is to put a cross-compile toolchain on my computer to be able to compile e17 with illume modules. Tried to compile on my tablet but it's too slow and I've not enough disk free to finish. If anybody can help on this point…
What distribution are you using on your PC? Also you can pm me the link for the xorg configuration and I'll post it for you
OK so I have come as far as installing multirom and I installed the archlinux rom and got this error when I tried to boot it
"kexec-hardboot support required to boot this kernel"
How do I resolve this?
thecrimsonfukr said:
OK so I have come as far as installing multirom and I installed the archlinux rom and got this error when I tried to boot it
"kexec-hardboot support required to boot this kernel"
How do I resolve this?
Click to expand...
Click to collapse
Go back and reread the multirom thread, then install a kexec-hardboot patched kernel in your internal rom.
Sent from my SGH-T679 using xda premium
joeG78 said:
Go back and reread the multirom thread, then install a kexec-hardboot patched kernel in your internal rom.
Sent from my SGH-T679 using xda premium
Click to expand...
Click to collapse
Thank you! I didnt realize it was that simple... for some reason i find the original multirom post difficult to follow.
thecrimsonfukr said:
Thank you! I didnt realize it was that simple... for some reason i find the original multirom post difficult to follow.
Click to expand...
Click to collapse
Hello
i want install arch linux on nexus 7 , but i confuse about it . is arch linux on nexus 7 fast and stable ?
can i watch hd video in arch linux withot lag ? before days i install ubuntu desktop on N7 but when i open video HD ( not full) with vlc , it somtimes play withot sound and it have lag . unity is heavy for nexus 7 , i want install arch + lxde . is it fater ?
sorry for english .
For me Arch works without any problems but when I type startx xserver freezes after the first image of xfce or e17.
Has anybody a solution?
? How to install e17 ?
joeG78 said:
For the section on setting up fastboot and adb...it's safe to assume someone installing arch on the nex7 probably has arch on their pc too. For arch, you need to set up access to the AUR, with a package manager that has access to it, i.e. yaourt. Then you can get android-sdk-platform-tools. The rest of the guide looks good. I personally like wicd for my network manager as it is easier to add and remove networks when you go to new locations, and I installed e17(enlightenment desktop).
Click to expand...
Click to collapse
e17 is the fast
so , i want to installing to my nexus 7
thanks .
Why ? my bluetooth not work?
not find the device ????
ylixir said:
I've began to write up a guide for getting Arch usable on the Nexus 7. I just threw it up on google docs because I'm too lazy to try to do the wiki thing until it's more complete. Hopefully it is far enough along to get things rolling for people who are looking to experiment with arch.
Anyway, it's a work in progress, if anyone has suggestions, correction, completions, criticisms, etc then holler.
My bluetooth not working
cannot find the device ??
Nexus 7 32GB Wifi
Click to expand...
Click to collapse
bluetooth
I have bluetooth (almost) working. I've put instructions in the guide. They aren't really a final solution, but maybe people who are running gui's can tell me if they work. I know I have the hardware working because I can see my keyboard when I scan for it, but I can't figure out how to get bluez5 to pair from the command line. Hopefully someone has better luck with a gui?
bluetooth
I've got Bluetooth working. I even have it pairing automatically on boot with a keyboard. Its an ugly solution but it works. The guide has been updated. I'll tackle X next
My Arch Install
Hey just wanted to add my install experience to the thread hopefully to help others. First of all I want say thanks for all documentation from the previous posters. I tried to follow the instructions as close as possible for a kde install, but I ran into some trouble with lightdm, so I tried kdm instead. And I can happily report it has worked swimmingly. Instructions on how to setup kdm, navigate to /usr/share/config/kdm. First edit the kdmrc to turn off the themed greeter. Then add the xvkbd to the XSetup file as in the lightdm setup. Another thing I did was utilize the plasmaboard widget on my main kde panel for my on screen keyboard once I log in. It seems to work much better than xvkbd for me. I can also confirm flash is working great.
So this really close to totally replacing my linux laptop, especially when I am on the go, in fact I am writing this post on the device in arch. However one key piece is still missing for me is sound. I can't seem to coax any sound out the device with my arch install, and amarok crashes on startup, even though both these items were working perfectly in ubuntu. If any one has any ideas how to make audio and amarok work I would be immensely grateful. Also thanks again, I am so happy to be rid of the X11 touch race condition. I have added a screenshot of me editing this post for those interested as well.
Figured out sound!
I think i found a solution to all of my troubles from my previous post. Amarok started working after a pacman update. My general audio problems seem to be caused by the linux for tegra audio drivers lack of head phone jack detection, I found a workaround the ubuntu nexus 7 launchpad bug tracker: https://bugs.launchpad.net/ubuntu-nexus7/+bug/1068804/comments/24. For the tldr crowd basically you have to use alsamixer manually mute and unmute the int_spkr channel for speaker audio and the int_mic channel to enable headphones. Then you can use the output and and hp to channels adjust volume for speaker and headphones respectively. It also might help to do a suspend resume cycle i sound still isn't working. Thanks to everyone else, hopefully others will find this useful as well.
Many thanks for your work!!! I'm using it on a nexus 7 with glass and touch broken (unuseless) but now it lives!!! and is a very responsive lxde desktop with xrdp starting on boot which I use with amule or bittorrent all night long...
two questions:
1) for me it does not work shutdown -r now or reboot... it close immediately all network connections but I have to keep power button 10 sec to restart system...
2) using it with an hub usb I'm trying to connect a big hard disk: pcmanfm (lxde file manager) refuse to mount it saying than it is not authorized... (I've followed archlinux wiki: it work on my archlinux desktop but not in nexus 7).

[MOD] Native Hotspot- Working 4G

This mod will enable native hotspot to work w/ 4G
You will need a root file explorer and sqlite editor to complete this mod.
Your choice to flash this- Do a back up
After that- GET S-OFF
Sunshine will cost you, but is well worth it.
Instructions:
1) Flash the attached aroma installer in recovery.
2) Select the appropriate option, click install, and reboot. Upon reboot your phone will optimize
3) Once rebooted, navigate to /data/data/com.android.providers.telephony/databases with a root explorer
4) Open the cdmaapn.db with a sqlite editor and select carriers.
5) Scroll over until you see the block of apns with a 1 in the current column
6) In that block you want to edit the apn labeled Internet. Open it and delete hidden. Just leave it blank, and hit save.
7) Go to settings>mobile data. You will see a new option named Access point names. Tap that, and then tap the apn
8) In the Apn type section add ,dun. IMPORTANT- no spaces. So you would end up w/ default,mms,supl,hipri,dun w/ no space after.
9) Tap the Apn protocol and change it to IPv4.
10) Reboot. After booting back up, tether should be good to go
Notes:
1) The flash will install a script that disables IPv6 for wlan0. If you need that don't flash this
2) It is a good idea to forget any wifi networks that you regularly connect to, and reconnect
3) When you are not tethering you can switch the APN protocol back to IPv4/IPv6 if you choose, though I have found no benefit to doing so
Credits:
@OMJ- He put the aroma installer together. It would be a lot more complicated to get this on your phone without it. I have been working on this for a good while, but didn't have 4G in my area until last week. Without he and @benny3 testing, this would have been a while longer coming out.
I have tested this on the following Bad Boyz roms- Stock Rooted, L w/ Sense 6, and L w/ Sense 7
EDIT: Please do a profile update after doing this.
EDIT2 New option added for Non- Bad Boyz sense 7 ROM's HERE
huge kudos to @chas123 for figuring this out!
Chas put a lot of time into this, make sure you thank him!!!
this 1
This is amazing work and a huge step forward.
I have a question for you though.
Is there a way to cut out any of these steps by flashing a modified file to the corresponding location?
My idea is to write a modified cdmaapn.db to /data/data/com.android.providers.telephony/databases
and possibly even a modified APN config.xml.
Would it be the same across roms?
I know most would frown on this because if you want the goods you should be able to make a few edits and reboot, but if it can all be done by flashing something in recovery or through the same aroma, it could save time and cut out user errors.
dopy25 said:
This is amazing work and a huge step forward.
I have a question for you though.
Is there a way to cut out any of these steps by flashing a modified file to the corresponding location?
My idea is to write a modified cdmaapn.db to /data/data/com.android.providers.telephony/databases
and possibly even a modified APN config.xml.
Would it be the same across roms?
I know most would frown on this because if you want the goods you should be able to make a few edits and reboot, but if it can all be done by flashing something in recovery or through the same aroma, it could save time and cut out user errors.
Click to expand...
Click to collapse
It was tried. Flashing a modified database causes the phone to fc, and revert back to the old apns. Sprint doesn't use the apn config file. It uses a .dat file in /system/customize
Is this mod only for badboyz or can it be use on any rom?
carrilloevo said:
Is this mod only for badboyz or can it be use on any rom?
Click to expand...
Click to collapse
Should work on any rom. There is an option in aroma for roms w/ init.d support that doesn't flash our boot
Question @Chas. Is this for those that have a tether plan? Do you have the tethering option from sprint? I don't have tethering plan and after the adjustments i can connect but data will disconnect after loading a few pages on my surface. Thanks!
itsachirpthing said:
Question @Chas. Is this for those that have a tether plan? Do you have the tethering option from sprint? I don't have tethering plan and after the adjustments i can connect but data will disconnect after loading a few pages on my surface. Thanks!
Click to expand...
Click to collapse
None of this is necessary with a tethering plan. If you want to post up a logcat of when the data disconnects I'll look at it.
@chas123
The sql edit can be done via a script flashed in recovery. Hit me up for more info and I can link you to scripts I've put together in the past
itsachirpthing said:
Question @Chas. Is this for those that have a tether plan? Do you have the tethering option from sprint? I don't have tethering plan and after the adjustments i can connect but data will disconnect after loading a few pages on my surface. Thanks!
Click to expand...
Click to collapse
Did you reboot the phone after the changes?
Yes, I have. I'm running Badboyz sense 6 rom. Had no issues with root explorer or sqlite making the changes to the db. I'll try to get a log cat
This worked like a charm on my Bad Boyz Sense 7 ROM.
Thank you for your hard work on this.
chas123 said:
None of this is necessary with a tethering plan. If you want to post up a logcat of when the data disconnects I'll look at it.
Click to expand...
Click to collapse
Here is a log. Log should begin when I use the tether in the quick settings. I connect my windows surface pro 2. Everything connects and I am able to successfully browse for a couple minutes then the data connection on my phone will disconnect then reconnect several seconds later. I have to reset the tether connection to get back online. Does this on 3g and 4g. I have flashed the aroma file and made the edits as necessary. Think this is related to this being a windows device which would be red flag to tethering without a plan? If this device was pinging a MS server for an update it would be very obvious. On the plus side my market WiFi tether app works good, however having the native app to work would be great. Many thanks for your contributions.
RonMac said:
This worked like a charm on my Bad Boyz Sense 7 ROM.
Thank you for your hard work on this.
Click to expand...
Click to collapse
What devices were you tethering? Just curious.
itsachirpthing said:
Here is a log. Log should begin when I use the tether in the quick settings. I connect my windows surface pro 2. Everything connects and I am able to successfully browse for a couple minutes then the data connection on my phone will disconnect then reconnect several seconds later. I have to reset the tether connection to get back online. Does this on 3g and 4g. I have flashed the aroma file and made the edits as necessary. Think this is related to this being a windows device which would be red flag to tethering without a plan? If this device was pinging a MS server for an update it would be very obvious. On the plus side my market WiFi tether app works good, however having the native app to work would be great. Many thanks for your contributions.
Click to expand...
Click to collapse
Can you put a google browser on that device?
I tested w/ a HP envy hybrid device w/ chrome. Everything worked fine- email, internet, etc...
Edit: Are you on a vpn?
You are s-on?
OP amended
I was able to connect my Galaxy Tab 3 and my Xbox One and was able to stream netflix on both of them. I wasn't able to get my Acer desktop running Win 8.1 to connect though. Gonna try the tether app and see if that makes a differnece.
itsachirpthing said:
What devices were you tethering? Just curious.
Click to expand...
Click to collapse
RonMac said:
I was able to connect my Galaxy Tab 3 and my Xbox One and was able to stream netflix on both of them. I wasn't able to get my Acer desktop running Win 8.1 to connect though. Gonna try the tether app and see if that makes a differnece.
Click to expand...
Click to collapse
IE whatever was not tested w/ this. If there is a large contingency w/ this problem, I will have to look into the reporting algorithms.
WiFi Tether app is working with my desktop FYI.
chas123 said:
IE whatever was not tested w/ this. If there is a large contingency w/ this problem, I will have to look into the reporting algorithms.
Click to expand...
Click to collapse

Categories

Resources