yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] hedpe:
Hi all,

I've been digging around to try and gain the ability to access the WiFi stack from an Android device that is rooted. What I am interested in, is capturing the 802.11 radio headers. I've done a bunch of searching, and it seems like getting the card in to promiscuous/monitor mode is out of the question. I haven't been able to find anyone to do it. But, even not being in this mode I am wondering if it is possible to get 802.11 headers.

I've downloaded the android-wifi-tether project to get the tools it has pre-built and installed on the file system, such as iwconfig, and I've also installed tcpdump.

I cannot get the card into monitor mode, as was expected:

# ./iwconfig tiwlan0 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device tiwlan0 ; Operation not supported on transport endpoint.

That's fine. But when I use tcpdump, it seems as though the lowest layer of information available is the Ethernet/IP information:

# /data/tcpdump -i tiwlan0 -L
tcpdump: WARNING: can't create rx ring on packet socket 3: 92-Protocol not available
Data link types (use option -y to set):
DOCSIS (DOCSIS) (printing not supported)
EN10MB (Ethernet)

So for example, if I tcpdump:

07:51:21.793444 IP 192.168.1.103.34528 > 64.233.169.193.443: Flags [S], seq 3412091441, win 5840, options [mss 1460,sackOK,TS[|tcp]>
07:51:22.096239 IP 64.233.169.193.443 > 192.168.1.103.34528: Flags [S.], seq 513767123, ack 3412091442, win 5672, options [mss 1430,sackOK,TS[|tcp]>

Has anyone been able to dig any lower in the networking stack?

Thanks!

George
[Android Software/Hacking General [Developers Only]] hedpe:
OK, I've done a significant amount of digging, and luckily the TI wl1271 wireless driver is built as a kernel module (I'm using a Droid 1). the "dmesg" output provides some hints that the TIWLAN module is active and parsing incoming packets at the lower layer:

<6>[ 5940.231292] TIWLAN: 3835.067243: rx , ERROR: rxData_receivePacketFromWlan() : MLME returned error

The code for this function can be found here, and even better the low-level packet information (e.g., RSSI) is available in this function.:

/*
* Set rx attributes
*/
RxAttr.channel = pRxParams->channel;
RxAttr.packetInfo = pRxParams->flags;
RxAttr.ePacketType= pRxParams->packet_class_tag;
RxAttr.Rate = appRate;
RxAttr.Rssi = pRxParams->rx_level;
RxAttr.SNR = pRxParams->rx_snr;
RxAttr.status = pRxParams->status & RX_DESC_STATUS_MASK;
[Android Software/Hacking General [Developers Only]] hedpe:
I'm also wondering whether or not it might be possible to drop the card in to promiscuous mode with some driver hacking. It appears to be possible through the RX filter, albeit maybe not supported by the actual firmware (that would suck):

#define RX_CFG_PROMISCUOUS 0x0008 /* promiscuous - receives all valid frames */
#define RX_CFG_BSSID 0x0020 /* receives frames from any BSSID */
#define RX_CFG_MAC 0x0010 /* receives frames destined to any MAC address */
#define RX_CFG_ENABLE_ONLY_MY_DEST_MAC 0x0010
[Android Software/Hacking General [Developers Only]] patro.ashish:
I too want to capture WiFi packet headers on Android using tcpdump. I am using an HTC dream phone (Android 1.6, Wi-Fi (802.11b/g) using a Texas Instruments WL1251B chipset). The default TI driver filters the 802.11 packet headers while doing a packet capture on the device using tcpdump. Did you figure out a way to capture the 802.11 headers using the default TI driver?

Also, I was looking at installing a mac80211 based driver on an android device. I followed the instructions to create the kernel modules and loaded them up on the phone. But, I could not activate the WiFi interface after doing so (though I saw the "wlan0" interface indicating that the mac80211 driver was loaded).

So, I am stuck at this point. Can you provide some directions from here?

Thanks

Ashish
[Atrix 4G Q&A, Help & Troubleshooting] delta530:
I am having trouble syncing my contacts that I inputed on my Atrix to Gmail. Even if the contact is Linked to both Phone and Google, none of the contacts show up on Gmail from my computer, but if I add a contact from my computer, it shows up on my phone. How can I sync from my phone to Gmail? btw, this is my first Android device.

Thanks.
[Atrix 4G Q&A, Help & Troubleshooting] trublu:
I have exactly the same issue and it's driving me nuts! Creating a new contact on the phone adds it to the "Contacts" group but there doesn't seem to be a way to get that to sync with google/gmail. Have you found a way around this?
[Atrix 4G Q&A, Help & Troubleshooting] DarrellRaines:
Ok, my phone auto syncs it with contacts and gmail, but I think I know why yours isn't.

Open the contact and verify that it has a linked profile to your google account. If it does not, then link it.

If it does, go to settings > accounts > gmail account

Hit the menu button and sync. Log into your gmail account on the desktop version, not mobile version, hit contacts, click all contacts and verify.
[Atrix 4G Q&A, Help & Troubleshooting] trublu:
If I create a brand new contact I can't link it to gmail because the contact does not exist in gmail. Your method only works if I have the contact in gmail/google also.
[Atrix 4G Q&A, Help & Troubleshooting] Minjin:
Anyone solve this yet? I'm dealing with 150 contacts or so that were imported from a sim card and trying to figure out how to get them into gmail.

I think I might be able to do export all contacts to a file, then email it to myself, then import all contacts to gmail but I'm trying to avoid CSV errors.
[Atrix 4G Q&A, Help & Troubleshooting] lvond555:
thunderbolt

I am having the same issue in my thunderbolt. I just rooted it and when I went to look for a contact that I added when I got the phone I realized it never was sent to my gmail account and now it is not synced.
[Atrix 4G Q&A, Help & Troubleshooting] lvond555:
Thunderbolt

Through some searching I found that the thunderbolt defaults to a "phone" contact when you enter one on the phone. You have to select it as a Google contact before you even put it in the phone. You can't change this after putting in the contact. I'm glad I found this out early enough so that I only lost one contact.
[Atrix 4G Q&A, Help & Troubleshooting] freedom_il:
I had this issue and found how to solve it:

Open ContactsApp->Menu->More->Settings

Here each phone is a bit different but you will be able to choose how to set your new contacts, whether it will be on your phone contacts, a specific gmail account or all.

In My Motorola Atrix, it automatically saves to contacts (and cannot be removed) and if you have more than 1 gmail account it all gets mixed up there and you should add/select the right one.

Hope it helps.
[Atrix 4G Q&A, Help & Troubleshooting] jjwatmyself:
This is the correct method and set by default on the Atrix.
[Atrix 4G Q&A, Help & Troubleshooting] firefox3:
i have the same problem only i want my facebook contacts !
[Atrix 4G Q&A, Help & Troubleshooting] jjwatmyself:
Make sure FACEBOOK is added under MANAGE ACCOUNTS and then look at DISPLAY GROUPS to select ALL CONTACTS.
[Atrix 4G Q&A, Help & Troubleshooting] firefox3:
Didnt work :( even when i view facebook it says no facebook contacts ! i have 1,394 friends and before i updated i had them all in my contacts
[Atrix 4G Q&A, Help & Troubleshooting] jjwatmyself:
Just to be clear, we are talking about viewing contacts on your Atrix and not viewing contacts on GMail on your PC. The point being that Motoblur does not push contacts from the various Social Networking accounts to your Google hosted Gmail contacts. I think you already know that but wanted to be sure. Did you try to delete your FB account on the Atrix and re-add. Also, and this should not make any difference, but I do not have the FB app installed. I find it a bit useless.
[Galaxy S I9000 Q&A, Help & Troubleshooting] SupaDuckie:
Hi when i connect my phone by ac adapter or usb cable it doesnt charge or get a connection :(
[Galaxy S I9000 Q&A, Help & Troubleshooting] traithudo:
It might be the microUSB connector on your phone that has broken. You may have to have it repaired
[Galaxy S I9000 Q&A, Help & Troubleshooting] icejagans:
Check that your micro USB port is clean first.
[Galaxy S I9000 Q&A, Help & Troubleshooting] SupaDuckie:
how may i fix it :O?
[Galaxy S I9000 Q&A, Help & Troubleshooting] JJEgan:
It might be the microUSB connector on your phone that has broken. You may have to have it repaired

Repair shop preferably Samsung .

jje
[G Tablet General] muqali:
As the title says I got a magic value mismatch, so used the nvflash to stock image and it seemed to work fine. Went to download z4root.apk from the forum here and got a download unsuccesful message. I installed z4root and rooted from sdcard without a problem. Having done that I still can't download any file from any site. Be it http or ftp. Any idea what the problem might be?
[EVO 4G Q&A, Help & Troubleshooting] Gilly11277:
What do all you fine lads think we will get in our new update?

Ideas, thoughts?
[EVO 4G Q&A, Help & Troubleshooting] AbsolutZeroGI:
We're getting an update? Link?
[EVO 4G Q&A, Help & Troubleshooting] Gilly11277:
When and if we get 2.4 what do you think will follow it? Better performance? Battery life?
[Atrix 4G Accessories] eraysevinc:
Does the atrix support class 10?
[Atrix 4G Accessories] Fixter:
I'll find out tomorrow when my Class 10 gets here and let you know. ;)
[Atrix 4G Accessories] harolds:
Yes.

10 chars.
[Atrix 4G Accessories] tonyantonucci:
Where is the best place to get microSD cards?

I have checks a few places and to get a 32gb class 10, is still over $100
[Atrix 4G Accessories] lsxrx7:
thought they are $92+ in amazon / newegg with free shipping
[Atrix 4G Accessories] tonyantonucci:
What is the best "class" of SDHC card for the Atrix?

I am sure Class 10 would be best, but if there is no performance benefit I would get a Class 4.

So, does anyone have performance benchmarks of different class cards in the Atrix?

Thanks!
[Atrix 4G Accessories] Noodles5666:
My class 4 works with no issues
[Atrix 4G Accessories] chaitu45:
What is the recommended Micro SDHC Class for Atrix?

Even though it may support class 10, it might not be able to take complete advantage of it. Does anyone know if it results in significant performance gain over a class 6 or even a class 4 SDHC ? Links to articles from respected blogs/websites would be highly appreciated. Thanks!
[Atrix 4G Accessories] diablo009:
+1 Don't waste too money on getting a class 10. Hardly any noticeable difference u'd find. Class 4 should work pretty good.
[Atrix 4G Accessories] dumasymptote:
it may not make a huge difference while it is in the phone but if you take it out to load and unload data it will make a difference there....
[Atrix 4G Accessories] Faizan1:
How would class 4 be for HD recording?

Thanks
[Atrix 4G Accessories] Ceverson70:
Newegg has some for under 40
[Atrix 4G Accessories] Noodles5666:
I've had no issues with my 16GB class 2 and none on my 32GB class 4
[Atrix 4G Accessories] sabesh:
Exactly! It is for this reason I prefer faster write speeds. Cheers.
[Atrix 4G Accessories] tag4:
provantage had lexar 32gb c10 on sale for 75 (82 shipped) a week ago, picked it up since it was 90+ everywhere else. no big difference from that and the old c6 i had that i have really noticed while in the phone. not a big fan of the adapter that came with it.
[Captivate Q&A, Help & Troubleshooting] n0stalgia:
Hello,

Is there any way to get the Gingerbread CRT animation on a froyo ROM that doesn't have it preinstalled? I've searched but found nothing so far, except for ROMs that have it preinstalled (twingerbread).

Thanks!
[Captivate Q&A, Help & Troubleshooting] MikeyMike01:
No froyo ROM has the sleep animation.

Sent from my Captivate.
[Captivate Q&A, Help & Troubleshooting] bobbylx:
Yep, what Mikey said. Twingerbread and a few other use that animation for a actual Shutdown animation when powering off, not sleep.
[Captivate Q&A, Help & Troubleshooting] avgjoegeek:
Unfortunately it appears to be too deeply embedded in Gingerbread's code to port it out.
[Captivate Q&A, Help & Troubleshooting] egypt3:
Pretty much, that animation is THE reason I want a 2.3 rom. It is awesome.

And while I very much respect and appreciate the hard work of all the 2.2 devs, I wonder what the holdup is in getting a 2.3 build? What's so different about the Captivate that we're two months behind the Droid 1?
[Captivate Q&A, Help & Troubleshooting] MikeyMike01:
Samsung.

Sent from my Captivate.
[Captivate Q&A, Help & Troubleshooting] dutchschultz:
i want this so bad, i had it on my iphone, got it from cydia.

i know they jacked it from android but still my 3g was able to do it.
[Captivate Q&A, Help & Troubleshooting] Dlev7:
http://www.youtube.com/supermercadomedia#p/u/2/98cIuRRwDvU

A Cool video of a user who got CM7 to work very well on his captivate.

I have CM7 running but to be completely honest its very similar to a ROM such as Serendipity. But regardless a cool video of the sleep animation and CM7 and all the functionality that I found.
[Captivate Q&A, Help & Troubleshooting] dutchschultz:
im so pumped for ginger bread on this bad boy
[Desire Android Development] m0narx:
This is a simple init.d script for permanent disabling hardkeys backlight on any desire rom, without additional software.

Just

rename 54DisableKeybLight.txt in 54DisableKeybLight

adb push 54DisableKeybLight /system/etc/init.d/

adb shell chmod 755 /system/etc/init.d/54DisableKeybLight

OR

flash zip
[Desire Android Development] juniorxdb:
Do nothing with starburst rom...
[Desire Android Development] vnvman:
Nice, i'm pretty interested ;)

Which roms has it been tested with?
[Desire Android Development] Sylde:
Don't work on Redux 1.0.0

Edit: but I guess it depends on the kernel, isn't that aimed to sense kernel ?
[Desire Android Development] Ninolina:
I am using LeeDroid v2.3d and it's WORKING..:) I used flashable zip file.:)
[Desire Android Development] feenty:
Works with aura 8.4 (the zip)

Thx!
[Desire Android Development] wings400:
Does nothing on latest stock rom.now do i need to flash something or will my phone be ok after i flashed this and it is not working?
[Desire Android Development] feenty:
Your rom have to support init.d...

Just flash the zip like roms
[Desire Android Development] Bingley:
Changed to '/sys/devices/i2c-0/0-0066/leds/button-backlight/brightness' and works on Oxygen & Redux gb roms :)

attached gb/oxygen 54DisableKeybLight.txt &.zip - follow instructions in OP.

Thank if works; reply/pm if not! I'd love to know if it works or not on which rom.

Reattached files, should work 100% fine now.
[Desire Android Development] eddiehk6:
exactly what i was looking for, zip flashed in recovery, works on Leedroid 2.4!

Thanks!:D
[Desire Android Development] bizb360:
is there another zip file that i can flash to re enable the hardkeys backlight ?
[Desire Android Development] yreham:
Does not work on nightly 80 cm7
[Desire Android Development] Jameswgm:
Tried pushing both init scripts via adb, neither have an effect on GingerVillain 2.4. Also, the .zip files aren't compatible with the 3.x.x.x releases of CWM.

Edit: It's Cyanogen based so there seems to be some agreement that it does not work with yreham's experience.
[Desire Android Development] Fizzerr:
Why don't you just use "LEDs Hack" available on the Market?
[Desire Android Development] Jameswgm:
Because I a) don't want an icon in my taskbar and b) it's buggy on my setup. An init scrip would be less invasive. Sad that neither are working for me at the moment.
[Desire Android Development] Bingley:
Settings->CyanogenMod settings->User interface->Automatic backlight->"Light Level"->"Use Custom"->"Edit other levels" does that work?

If no, try attached 54DisableKeybLights class.txt and/or 54DisableKeybLights platform.txt (rename each to 54DisableKeybLights [no .txt, no class/platform] and adb as per OP)

I don't have CM7 so just going by what I've found online concerning the leds brightness values.

Report back if either/both/non work please.
[Desire Android Development] bizb360:
How can i re enable the keys after i used thr zip file to disabled them?
[Desire Android Development] danarama:
remove the script. Init.d scripts run on every boot and only work for that session.

If you are s-off, remove via root explorer and reboot.

If s-on, quickest way is to reflash your rom without the scripts, whichoverwrites their location
[Desire Android Development] rubyglow:
Thanks a bunch! Works great on my Desire with Oxygen 2.1.3.
[Desire Android Development] nikosrs4:
that works on Oxygen 2.1.6, thanks ;)
[Desire Android Development] ghiki:
In CM7 (and roms based on it) LED backlight values are in /sys/class/leds/button-backlight/brightness

ie:

echo 0 > /sys/class/leds/button-backlight/brightness

or

echo 255 > /sys/class/leds/button-backlight/brightness
[Desire Android Development] jjdoctor:
Any way or Flashable zip to enable again?.... Thanks a million for this.. this is just what I needed...
[Desire Android Development] morcus:
Hi,

I edited the .zip file in the first post in order to work for cm7.

Tried on my phone with the lastest nightly and it works.

Download
[Desire Android Development] 8ESP:
Works on Oxygen 2.2.1. Thank you so much!

For some reason the backlight highers my blood-pressure and makes me nauseous. :o
[Desire Android Development] zukers:
I was trying to apply this script but it give me error:

" Amend scripting (update-script) is no longer supported.

Amend scripting was deprecated by Google in Android 1.5.

It was necessary to remove it when upgrading to the ClockworkMod 3.0 Gingerbread based recovery.

Please switch to Edify scripting (updater-script and update-binary) to create working update zip packages."

I'm using ROM with cm7r2 and 4ETX recovery. Please help.
[Desire Android Development] touch of jobo:
You can just put the file 54DisableKeybLight from the zip into /system/etc/init.d/ via adb in recovery.
[Desire Android Development] Bingley:
Works as here: http://xdaforums.com/showthread.php?t=1852503
[Desire Android Development] Bingley:
Even better way posted @ http://xdaforums.com/showthread.php?p=38058751#post38058751

Basically, change backlight file to '0' then lock it by chmod 644 :)

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

bleh, doesn't survive reboot
[EVO 4G Q&A, Help & Troubleshooting] AbsolutZeroGI:
Just figured out that I can link contacts in my phone with their facebook profiles. Problem is, I have like 200 phone numbers and like 90% of them have facebooks. Is there a way to auto link them?
[EVO 4G Q&A, Help & Troubleshooting] Papa Smurf151:
there is a free app in the market called syncmypix that syncs facebook pics to ur contacts. dont know if that will help.
[EVO 4G Q&A, Help & Troubleshooting] :
not sure about on your current ROM. In the CM series, the contacts are linked automagically with Facebook profiles. You could try in your ROM as well.

To get the picture to sync, open your Contacts app, select a contact, Menu > Edit, and scroll down to the bottom, see if there is a Facebook account linked. If so, tap the picture and select "Use this picture". Save the changes and Exit.

This will only work, of course, after you add a Facebook account (Settings > Accounts & Sync > Add Account > Facebook), which only works if Facebook app is installed.

The method above will also sync the pictures anytime they change (ie, if your friend changes their profile pic, the change will sync to your phone).
[Nexus S Accessories] DarkAgent:
http://www.monoprice.com/products/p...=1083311&p_id=7664&seq=1&format=2#description

What do you all think? Is it safe for our phones?
[Nexus S Accessories] jayvo:
I've never ordered a battery back up from Monoprice, but I've ordered a lot of other things from them and I have nothing but positive things to say about them. If you're worried about quality the fret-not. Monoprice is awesome and I wouldn't hesitate to order from them if I need it.
[Nexus S Accessories] AllGamer:
hmm....

i still prefer my solar/wall battery 4200 mAh battery pack better from DX

http://www.dealextreme.com/p/4200ma...ry-pack-for-cell-phones-and-usb-gadgets-40210

there are a lot of other choices & manufactures if you check this topic

http://xdaforums.com/showthread.php?t=834025&highlight=solar
[Touch Diamond, MDA Compact IV ROM Development] ralfjef:
I have been thinking about buying a MiFi device recently, but last night whilst looking for a cable I came across my old and still perfectly functional HTC Touch Diamond. I realised that it has all the necessary ingredients to operate as a very effective MiFi and I did used to use it as a hotspot occasionally, but the battery life wasn't great and the set-up process rather a bit fiddly.

It got me thinking that what about if there was a custom ROM built with one thing in mind and one thing only, to operate as a mobile hotspot whilst trying to be as power efficient as possible and providing only simple start and stop controls and possibly auto sleeping if it doesn't sense WiFi traffic for a certain period of time.

Building a custom ROM is way beyond my own capabilities but I wondered if there were any cooks out there who fancied the challenge of re-purposing a great smartphone from something which does lots of different things into a specialist device?

Any takers?

Ralf
[Touch Diamond, MDA Compact IV ROM Development] ayyu3m:
i wud be interested in cooking you such a rom, except i just visit the forum nowadays.

though i can give you an idea or any other cooks who might be interested in cooking for you.

-remove the cprog functionality. (this may have an affect on the radio capability)

-keep the phone functionality always disabled thru comm manager

-remove tf3d and all other programs which can be removed.

-keep wifi (connectivity) programs only
[Touch Diamond, MDA Compact IV ROM Development] Jemmauk:
Its certainly do-able - but I have to say I dont really see the point of all that work to make something that is alot more limited and probably useless as a phone.

my suggestion would be to go and find a clean/minimal 6.5 ROM - from the many available on here - flash that - and you should have a unit that can be used as a spare phone if its needed, but has alot of space available for software install/memory. I would also advise going to find a piece of software on here called advanced config, which gives detailed options to configure the phone.

It might also be a good idea to research the radios for the Diamond - some are better than others regarding powersaving and the like - and transmission power.

Its entirely possible to have the battery removed and run the phone without a battery installed if there is a problem with the battery on your phone.

It seems a false economy to limit the abilities of a useful and versatile device just because your main usage will only be of one facet of it..

Just my $0.02
[Optimus One, P500, V General] sarfaraz1989:
Doesnt CM6 on O1 interest anybody....i know we already have froyo.but wat about te goodies that Cm6 brings...DSP MANAGER and so ?? cm7 PORT IS NOT HAPPENING ANYTIME SOON NO OFFENCE TO DEVS IN ANY WAY ....can we have a cm6 port to o1??
[Optimus One, P500, V General] irondevil:
i think it isn't very simple take a look here http://xdaforums.com/showthread.php?t=878333
[Optimus One, P500, V General] ccdreadcc:
I think you should try to port cm6 to your phone by yourself...
[Galaxy S I9000 Q&A, Help & Troubleshooting] rOck4n:
Hi, since 1 month ago im unable to use Smart Keyboard 8 with my SGS. It always freezes and/or FC. I've tried different ROM's and kernels, right now im in darky 9.3 beta 3 and the problem its still there. Any solutions? Thanks.