yashsingh1/xdaforums huggingface dataset:
[EVO 4G Themes and Apps] Jykinturah:
I did some searching, and the only method I found to do this was to use an app that runs in the background that intercepts notifications and uses FileOutputStream and OutputStreamWriter to write a value to /sys/class/leds/(applicableLEDhere).

I don't like this method cause it is more workaround and less finding the source. And of course, background apps eat battery.

I can't find were the LEDs are selected in the first place.

We could try symlink, but I think that wouldn't work because it would affect the charging LED. Basically it would switch the left LED to the right LED. Also, I think symlinking would just make it set the value to 255, which doesn't do anything for the WiMax LED, I think.

I am begging for a dev to shed some light on where exactly the LEDs are selected to be called.

I found some documentation here, but I don't think it address what we are attempting to do. It tells us how to make the notification LED blink, but I searched high and low and could not find were the notification LED is set to go to /sys/class/leds/green and|or /sys/class/leds/amber.

If we can find the object (Or thingy, I honestly have no clue what it is) that works with notifications and change it so that it sets the WiMax light (or keypad light) to 1-5 (or 255 for keypad I think) we can change the notification light to be on the right side. There are also 5 options for that light. (Maybe like option 2 for text/mms. Option 1 for missed calls. Option 3 for E-mail.)

I have a brainache.... lol
[EVO 4G Themes and Apps] Phr0z3n:
I haven't looked into this other then remembering what i found when i played around with the Palm Pre's keypad lights, thus why i remember about the /sys/class/leds path and thought 1-100 is the brightness levels... Is it possible android has a service running the background all the time that takes notifications of say phone calls, sms, mms, etc and then routes it to the correct app or even tells the status bar (top bar?) that it has something waiting, could we piggy back on that?
[EVO 4G Themes and Apps] Jykinturah:
I found a folder full of led stuff in the kernel source.

I honestly think someone with more knowledge then me should be looking at this stuff.

But I will try to figure this out. If anyone more knowledgeable than me wants to step in, please do so and save my poor overused brain.

I am literally learning C as I go.

I am also looking at the Android Open Source Project's distributed sources to find where notification LEDs, or the behavior of LEDs in general, is defined.
[EVO 4G Themes and Apps] mrono:
so what someone needs to do is just find a way to link the apk from this post into a notification http://xdaforums.com/showpost.php?p=6756023&postcount=8
[EVO 4G Themes and Apps] Jykinturah:
I want to also try using the WiMax lights. I will definitely look at this though.
[EVO 4G Themes and Apps] saf100792:
Yea i think using the other led might actually be better especially if it flashes different colors and patterns. (Couldn't test it ADB said my file system was read-only??)
[EVO 4G Themes and Apps] Phr0z3n:
Sometime this weekend i need to go and actually fully root my evo and start poking around but this seems interesting if we can find exactly where HTC is using this, and then modifying the code so that we can have the WiMAX LED go lit when we get a SMS or Missed call what have you, cause i'm hoping HTC left that part in but it isn't pointing to the correct LEDs

http://developer.android.com/reference/android/app/NotificationManager.html

Class to notify the user of events that happen. This is how you tell the user that something has happened in the background.

Notifications can take different forms:

* A persistent icon that goes in the status bar and is accessible through the launcher, (when the user selects it, a designated Intent can be launched),
* Turning on or flashing LEDs on the device, or
* Alerting the user by flashing the backlight, playing a sound, or vibrating.
[EVO 4G Themes and Apps] mrono:
bumpbumpbump
[EVO 4G Themes and Apps] Jykinturah:
Honestly I am stumped with this. I have been looking over it in my free time. I guess the only way to do it is to write a service in an apk that intercepts SMS notifications... I would rather change it at a system level though.
[EVO 4G Themes and Apps] bcispcpro:
im gonna bump and say im still extraordinarily interested in this. for any of the LEDs. wouldnt it be along the same lines as the flashlight alerts? seeing as how the flashlight is also listed under the leds in that sys/class/ path..
[EVO 4G Themes and Apps] bludragon742:
I'm looking into to this to see what can be done...
[EVO 4G Themes and Apps] bludragon742:
Okay, the first version of my LED app is now available - see my sig for the link.
[EVO 4G Themes and Apps] Ep3n3wp:
Hmm... going to give thus a go maybe
[EVO 4G Themes and Apps] craigf:
Awesome...thanks...seems to work like a charm!
[EVO 4G Themes and Apps] fireboy6275:
Love this app :-)
[EVO 4G Themes and Apps] charles77k:
bump

any chance on getting the bottom key leds to flash. in patterns and such?
[EVO 4G Android Development] andrew500:
Hello All,

I have gotten infrastructure mode working on my EVO. I compiled support for the SIOCSIWPRIV AP_PROFILE_SET system call into iwconfig and lo and behold:

After unloading and reloading the _ap.bin firmware using insmod while wifi-tether is running I issue the following command:

Command: # ./ultraiwconfig eth0 mode master

Response in kernel log:

<4>[19452.040679] penguin, get AP_PROFILE_SET
<4>[19452.041076] wl_iw: set ap profile:
<4>[19452.041442] ssid = AndrewsAndroidAP
<4>[19452.042144] security = wpa-psk
<4>[19452.042510] key = 1234567890
<4>[19452.042877] channel = 0
<4>[19452.043243] max scb = 2
<4>[19454.110931] Set auto channel = 1
<4>[19454.112182] wl_iw_setap: do passhash...
<4>[19454.210723] [00]: aa2f2f2c
<4>[19454.210845] [01]: f4081ab1
<4>[19454.211059] [02]: ccc1d613
<4>[19454.211181] [03]: 887fd525
<4>[19454.211273] [04]: b51d0c01
<4>[19454.211395] [05]: 781b89b1
<4>[19454.211608] [06]: b5de9c57
<4>[19454.211730] [07]: 2f8812e2
<4>[19454.211853] wl_iw_setap: passphase = 2c2f2faab11a08f413d6c1cc25d57f88010c1db5b1891b78579cdeb5e212882f
<4>[19454.222106] ap setup done
<4>[19454.224487] send AP_UP

And proceed to assign IP information and bring the interface up.

The interface then appears on my Windows 7 laptop in infrastructure mode fully supporting wpa.

I will be working with Harald in the coming days to integrate this functionality into android-wifi-tether!
[EVO 4G Android Development] apristel:
That is the shiz. Exellent work and I am sure it will be appreciated!
[EVO 4G Android Development] iammuze:
that's awesome. wow. nexus support?
[EVO 4G Android Development] andrew500:
Very likely, can you give me a quick summary of the state of nexus hotspotability? How does the native froyo app work on it?
[EVO 4G Android Development] geeserver:
NICE! this would be the first phone to do this right. Good option, dont really like the computer to computer mode. Thanks
[EVO 4G Android Development] spurnout:
Can't believe I don't know this but this would make wifi-tether look like a real WAP instead of ad-hoc?
[EVO 4G Android Development] Shadow591:
Yea this sums it up right
[EVO 4G Android Development] mrono:
yes

[10char]
[EVO 4G Android Development] Konfuzion:
Great news! Thanks for your hard work!
[EVO 4G Android Development] MagnusRagnarok:
:Dgreat contribution:D
[EVO 4G Android Development] blakejohnson86:
So, if you compiled in support for it, than how did it work before? Wouldn't the Sprint Hotspot app have to use the same system calls?

I guess I would not put it past them to write a custom one that does some account checks before hand to make sure people are paying for the service...
[EVO 4G Android Development] andrew500:
They did not use iwconfig to setup their hotspot! I'm actually curious as to how they did do it. From what I can deduce they've created something in android.net.hotspot and just do java-based calls to that class. com.htc.WifiRouter is the name of the task that manages it.

I come from the world of linux so I'm just starting to see how the Android API fits into the picture, but I'm going to assume that's how they can make the system-calls needed to pull this off.

I'm using the same system calls, just I compiled them (because they are undocumented!) into iwconfig.

I'm going to guess this is how they manage to ensure you pay your bill, and will with FroYo, they hook into the interface that lets the applications make the system calls and as a result they are the gatekeeper.

Sprint changes your apn information btw, when you use their app, to ensure you pay for it. You're basically authenticating under a different 3g username.
[EVO 4G Android Development] joeykrim:
would it be possible you could post the binary for your custom configurated iwconfig?

it'd be great for the advanced users (hence the dev section) to get access to your amazing work.

thanks for this discovery and hard work to bring it about!

to clarify steps, start wifi tether, unload, reload _ap.bin firmware with insmod, start iwconfig wtih ./ultraiwconfig eth0 mode master, assign ip information and bring up the interface.

did i catch everything? thanks again!
[EVO 4G Android Development] kwajr:
Omfg I have been waiting on this for ever thank you

This was the only thing that made me want the hotbot app now I can tether my June and download music from the market place anywhere and regress my drm

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

Sent via the XDA Tapatalk App
[EVO 4G Android Development] mrmomoman:
Awesome work. I was wondering when you were going to get this working :) I knew that ad-hoc wasn't not good enough from your perspective.

Thanks for the great work!!
[EVO 4G Android Development] colorado_al:
Right on! Looking forward to this being integrated into Harold's Wireless Tether!
[EVO 4G Android Development] ds1gig:
would it be easy/possible to change the security to WPA2-AES?
[EVO 4G Android Development] andrew500:
Here you go dude, it's rough.

I will not answer questions on this binary. It's a hack for sure. Here are my notes on it:

Turn off WiFi (not necessary, just being consistant)

Start WiFi Tether and start tethering

Issue the following commands:

rmmod bcm4329

insmod /system/lib/modules/bcm4329.ko firmware_path=/etc/firmware/fw_bcm4329_ap.bin

./ultraiwconfig eth0 mode master

ifconfig eth0 192.168.2.254 netmask 255.255.255.0

ifconfig eth0 up

You should have a fully functional wifi hotspot! I understand some of those commands are redundant but I haven't worked on them yet. The ultraiwconfig utility will be cleaned up in the final version, right now it does not take any parameters. Your AP will be called AndrewsAndroidAP and the wpa pass is 0123456789.
[EVO 4G Android Development] joeykrim:
been following your posts on the progress, so it all makes sense. just was missing the actual binary you tweaked. thanks, it looks good!
[EVO 4G Android Development] realgt:
getting a permission denied error on

./ultraiwconfig eth0 mode master

i guess it doesn't work on unrevoked rooted phones
[EVO 4G Android Development] joeykrim:
did you try chmod 755 ultraiwconfig?
[EVO 4G Android Development] realgt:
yep first thing i did before running it

has anyone tried this on an unrevoked rooted EVO?
[EVO 4G Android Development] joeykrim:
what directory are you executing ultraiwconfig from? full path?
[EVO 4G Android Development] realgt:
tried running ultraiwconfig from /sdcard and from /data/local

couldn't copy to /
[EVO 4G Android Development] joeykrim:
i know /sdcard is mounted as not allowing anything to be executed from it.

pretty sure /data is mounted the same, but not positive, i could be wrong.

i would think you're gonna have to run this from /system or modify the way data is mounted in the init.rc kept in the ramdisk integrated into the kernel so files can be executed from /data. thats prob another topic.

unless andrew chimes in to say he was running ultraiwconfig from some place other than /system, i will suggest you run ultraiwconfig from system cuz i know files can def be executed from there ....
[EVO 4G Android Development] Zanzibar:
Thanks andrew500,

This works great. I'm using it on my unrevoked rooted EVO right now.

For the curious, I pushed the ultraiwconfig binary to /system/bin, which is writable on unrevoked EVOs. Then I chmod'd it to 755. The rest is as andrew500 already posted:

chmod 755 /system/bin/ultraiwconfig

... start wifi tethering ...

rmmod bcm4329

insmod /system/lib/modules/bcm4329.ko firmware_path=/etc/firmware/fw_bcm4329_ap.bin

ultraiwconfig eth0 mode master

ifconfig eth0 192.168.3.254 netmask 255.255.255.0

ifconfig eth0 up

The wpa password is actually 1234567890, as evidenced in the log in the OP.

Substitute whatever network you set Wifi tethering up for, in my case 192.168.3.x.

Thanks again andrew500!

ZanzDroid
[EVO 4G Android Development] colorado_al:
Has this integration happened or is it moving forward?

Thanks for the great work!
[EVO 4G Android Development] bcnice20:
There was a new version uploaded 4 hours ago dunno if its the change where all waiting on though
[EVO 4G Android Development] kyleblakepeters:
I can verify that this was not included.
[EVO 4G Android Development] andrew500:
Yeah, sorry guys. Real life is trying to keep me from getting this done. Hopefully by tonight I'll have a stable utility, and then Harald just has to do a few UI tweaks.
[EVO 4G Android Development] realgt:
awesome, i'll wait for the release then as i'd rather not have my WPA key hardcoded to 1234567890
[EVO 4G Android Development] andrew500:
Just handed off a stable version of my new binary: ultra_bcm_config to Harald. It won't be long now!
[EVO 4G Android Development] colorado_al:
sweet! Looking forward to it!
[EVO 4G Android Development] ds1gig:
Would it be difficult to add WPA2-AES?
[EVO 4G Android Development] jpatterson350:
Awesome! I can't wait for this!!! Thank you.
[EVO 4G Android Development] nick325i:
Yay, I can finally get internet on the Wii with this then.
[EVO 4G Android Development] bcnice20:
Haha I was about to say the same thing
[EVO 4G Android Development] apexi350z:
Don't you guys have AP at home already? or are you trying to play Wii in the car? :)
[EVO 4G Android Development] l33tlinuxh4x0r:
any ETA on this?
[EVO 4G Android Development] muf454:
This is exciting!
[EVO 4G Android Development] l33tlinuxh4x0r:
cant wait till it is included with android wifi tether!!!
[EVO 4G Android Development] chippillie:
Working good thanks. Had to do the chmod way (posted a few pages up) with wifi tether started to get it to work. I'm rooted with toasts root.
[EVO 4G Android Development] slackjawedhippy:
I'm quite excited about this integration.. godspeed!
[EVO 4G Android Development] madunix:
how's it looking good looking?? :)
[EVO 4G Android Development] slackjawedhippy:
Up and running with no probs! Excellent work!! I had to google it after acting like a n00b and trying to find it in the market. I can't post links yet.. for anyone else who's looking for it just search on "Wireless Tether". Install version 2.02
[EVO 4G Android Development] l33tlinuxh4x0r:
Does that version support AP mode or just Ad-hoc???

EDIT: As far as I can see it is still just Ad-hoc
[EVO 4G Android Development] motoridersd:
I downloaded the latest version, which is 44 hours old, and it seems to behave the same way. I don't see a place to enable AP mode, maybe I'm missing something? Or maybe this is not ready yet?

BTW. Awesome find OP! Thank you for your hard work
[EVO 4G Android Development] colorado_al:
Latest release 2.0.2 is still ad hoc. AP mode not built in yet.
[EVO 4G Android Development] slackjawedhippy:
I was looking at it funny - I saw some new features and got over-excited. You're right. This is still Ad-hoc. *sulks*
[EVO 4G Android Development] jpatterson350:
I did the same thing. I need need this update so I can use it on my work comp. I know the OP posted a way to do this, can anyone post a step by step how to get this working?

Thanks,

JP
[EVO 4G Android Development] chippillie:
You must have google Android SDK installed if you don't have it download it

If you don't know how to use ADB then this is not for you

Unzip ultraiwconfig to android-sdk-windows/tools

Reboot phone into recovery with it still connected to computer

adb reboot recovery

start recovery

In a shell

cd/android-sdk-windows/tools
adb push ultraiwconfig /system/bin
adb reboot

After phone is rebooted start wifi tether

This next part has to be done each time you want to connect wifi not adhoc. If not done wifitether will go back to adhoc.

adb remount
adb shell
chmod 755 /system/bin/ultraiwconfig
rmmod bcm4329
insmod /system/lib/modules/bcm4329.ko firmware_path=/etc/firmware/fw_bcm4329_ap.bin
ultraiwconfig eth0 mode master
ifconfig eth0 192.168.3.254 netmask 255.255.255.0
ifconfig eth0 up

and your done go to network connections and connect with key 1234567890
[EVO 4G Android Development] Sebrina:
It's a shame you have to do that every time to connect, I think I'll wait until a release is made even though I really want this feature. If I'm not mistaken the code was already submitted I guess it's just up to the dev to fit it into the app, hopefully it doesn't take too long.
[EVO 4G Android Development] chippillie:
Only every time you want to use wifi it will go back to adhoc by default. I personally don't need wifi that much so not a big deal for me. I just wanted to see if it worked. I'm sure it will bo out soon.This was a good find by andrew500
[EVO 4G Android Development] joeykrim:
this is a great detailed write up on the step by step commands!!!

for those of you who think this is a lot of effort/work, it wouldnt take much effort to copy/paste the commands into a .sh file (text file) throw #!/system/bin/sh at the top and put it into a .sh file. then you'd just do sh start-infra.sh or whatever you name the file.
[EVO 4G Android Development] andrew500:
We've been working on adding support for the Nexus One + Infrastructure mode and building UI improvements to support the additional functionality, I'm expecting a release today though, no shell scripting necessary ;-) .

This should work on the incredible once the unrevoked guys polish off and fully flesh out the absolutely amazing progress they've made in the past 2 days and bring it to the unwashed masses.
[EVO 4G Android Development] joeykrim:
nice! thanks for the update, save me a lil sh scripting effort! looking forward to the updated app. i haven't ever used wifi tether and im saving my first experience for this updated version!

it'd be great to get an update to this thread when its released!

plus any other tips/hints at using the work around, if needed!
[EVO 4G Android Development] colorado_al:
awesome! Looking forward to testing it out!

Thanks!!
[EVO 4G Android Development] Damonte:
Well, I was holding off on rooting my EVO until I had a really valid reason. I think this counts as one.
[EVO 4G Android Development] RikusHaven:
That's great to hear! I can't wait!
[EVO 4G Android Development] prestonr83:
Sweeeeet. Can not wait to try it out!
[EVO 4G Android Development] stroths:
IT'S OUT!!!

I am sitting at the airport and posting this from my laptop that is hooked up to the latest download. It shows up as "Security Enabled WPA2 Network" on my laptop (XP SP3). Prior to the update it showed up as ad-hoc.

I don't have a 4g signal here at Nashville airport, so I am just using 3g. I will play with 4g when I get home (DFW).

EDIT: LINK - http://android-wifi-tether.googlecode.com/files/wireless_tether_2_0_5-pre1.apk
[EVO 4G Android Development] andrew500:
Would you look at that!

btw... we released the new version today!
[EVO 4G Android Development] pokerjv:
sweet, thanks so much!!
[EVO 4G Android Development] mogulust:
Sweeeeeet! Thank you so much!!
[EVO 4G Android Development] timgt:
The update works!! I just tethered my EVO to my unactivated Touch pro 2 I have and browsed youtube on the touch pro 2. Before this update I couldn't even get the EVO to show up on the touch pro 2's list of wifi devices. Awesome work!
[EVO 4G Android Development] realgt:
Confirmed working on unrevoked evo

Thx!!!
[EVO 4G Android Development] AssassinsLament:
andrew500 is a god !
[EVO 4G Android Development] 2k6_tx_dad:
Downloaded, tested, works great!

Thanks to the developers.

Anyone else think this will be the #1 app for the EVO?

I connected two devices, what's the limit?
[EVO 4G Android Development] jpatterson350:
THANK YOU!!! Posting from my infrastructure hotspot now!!

JP
[EVO 4G Android Development] RikusHaven:
Woot! Thanks developers! You guys rock! =D
[EVO 4G Android Development] Soupskin:
Fantastic job!
[EVO 4G Android Development] colorado_al:
Awesome! Working great! using it now!

Remind me where I can donate to the developers?

Thanks!!!
[EVO 4G Android Development] dschoenike:
very cool and working great. thx to everyone involved who got this working.

dschoenike
[EVO 4G Android Development] scapeghost:
I can't post links yet, but you can find a "donate" link on the project home page. Considering Sprint is charging $30/month for this functionality, I'd say this is worth it. :D
[EVO 4G Android Development] colorado_al:
Found it.

https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4146444

If you use this app I think you should donate to the dev who is saving you $30/month!

I paid $30 for WinMoWiFiRouter. This is certainly worth something for saving the $30/mo that sprint charges.
[EVO 4G Android Development] muf454:
Wow! You guys are amazing!!!
[EVO 4G Android Development] frankenstein\:
SU Request Failing

I'm running toast's root with flipz .6 stock rooted rom. I uninstalled a few of the bloat ware sprint apps but for the most part is vanilla as released. I've installed and configured wireless_tether_2_0_5-pre1.apk but am not able to get it to fully initialize.

When I launch the app and initiate the wifi tether I wait about 30 seconds on a black screen with SU Request on a bar at the top and then get a popup that says "Sorry! Activity SU Request (in application Superuser Permissions) is not responding." with the options to force close or wait on two buttons under the msg. Waiting does no good.

I figure that the wifi tether's request to get SU perms necessary to setup and load the necessary modules is failing to be handled properly but don't know how to diagnose and correct it beyond that. Any assistance on tracking this down and correcting it would be greatly appreciated.

rgds,

frank

.................

OK, I had to disable Access-Control. Once I disabled this feature the SU request poped up and I was able to grant the necessary perms to the tether app. I'm posting this via the tether now. Nice job. You might want to take a look at the "enabling Access-Control blocks SU request bug" but other than that all I can say is SWEET.

Works like a charm. Thanks for the great work!!! I've got your link and will show my appreciation. :)

..................

Further update. Once the tether was initialized I was able to go back in and enable the Access-Control function. When I enabled it I got a second prompt to allow SU perms for the tether and then it was off and running. The tether is now 100% functional and working like a charm. Thanks again for the great work!
[EVO 4G Android Development] madunix:
u guys r unbelievable... i mean really. ty so much to all u devs that worked ur asses off on this. it def won't go unnoticed i promise u that. if only i were a millionaire... u guys wud b my own private personal devs.. loool
[EVO 4G Android Development] rmk40:
What would it take to make this work on a rooted Incredible?

I've already got the appropriate drivers pulled from the EVO ROM and placed in /system/etc/firmware.
[EVO 4G Android Development] mrmomoman:
wireless tether not turning off

I run toasts rooting method along with damage control v3 rom. I updated the wireless tether to the latest version. Problem is when I want to shut down the tether it says shutting down but reconnects the current connection and also puts up a red colored shield on the top notification bar about previous connections.

Don't case so much about the previous connections just want to be to disconnect.