yashsingh1/xdaforums huggingface dataset:
[HTC Amaze 4G] dcacklam:
What I've learned from today:

Ok, here's what I've learned, after all the different permutations:

1) There is something 'wrong' in Android - some change made after the 0918 build - that breaks wifi toggling at the Android level.

Symptioms:

a) You can toggle the wifi icon in the pull-down status on and off, but it doesn't do anything.

b) The wifi 'switch' is greyed-out in Settings

c) The wifi 'switch' in Settings -> WiFi settings (at the top-right) is not greyed out, but it does not work

d) You cannot add or remove access-points

e) There is nothing in LogCat about this other than 'E/WifiStateMachine Failed to Load Driver' (or similar)

f) this happens on both the old (wifi kernel modules working, wlan0 interface present) and new kernel (both built by me and built by sport).

Thus, even with the 918 kernel, WiFi may be present in Linux but is not acknowledged in Android

2) There is something that was changed in the kernel, to apply the 'data fix'

When I flash a boot image with the 0918 kernel - even with all the files from 1130 including the 'new' root filesystem/initrd, there is no data

3) The TIWLAN drivers are completely borked (unless I did something wrong building a new kernel to get the modules)... Even with all modules present, they do not work.

4) This seems to indicate that a 'good' build would require a complete roll-back to the 0918, and then re-applying the 'data fix', signal fix, and so on... Too much has changed between 'known working wifi build' and present...
[HTC Amaze 4G] GuyInDogSuit:
Ouch. That's going to suck.
[HTC Amaze 4G] bos2333:
The data fix wasn't all that elaborate though right? If I remember correctly without searching wasn't it just setting the default network to rmnet_sdio0?
[HTC Amaze 4G] :
I noticed that too when rolling back to the old kernel only problem is nothing was changed in the kernel to get wi-fi working but the wi-fi toggle gets greyed out after it fails the first time if you force insmoding of the wl12xx.ko and other wi-fi related.ko it cause the driver cannot be loaded error i don't think it's in the kernel it has to be something else
[HTC Amaze 4G] dntipwn:
makes sense because even in the 0918 kernel theres still no lib80211.ko module to load
[HTC Amaze 4G] pcurator:
Looks like it'll be a long while before WiFi work. I really appreciate all the efforts you guys are putting.
[HTC Amaze 4G] bos2333:
So will making intervigil changes in his tree to the ril you were using before (with wifi and such) work? Perhaps just merging the two?
[HTC Amaze 4G] dcacklam:
Here's the thing:

I haven't done anything with RILs, or with any of the android files today... Just kernels...

When you pair the 918 kernel (extracted from the 918 build) with the entirety of the 1130 build (including the 1130 root filesystem) you get wifi and data in linux, but NEITHER in Android (a step backwards from 918).

When you pair the 1127 or 1130 kernel (or any kernel built from the same sources) with the 1130 build, you get data in android but no wifi in Linux or Android.

When you apply the 'data fix' to framework.apk in the 918 build (no kernel changes to the 918 kernel), you get partial data (data says it's down, but the webkit-browser works - however anything that actually verifies internet connectivity before trying to access does not (gmail, playstore, etc)) and wifi works. I don't know enough about the RILs to do a complete/proper switch.

I am thinking that a complete list of everything that was changed to make the data fix, and all files/jars/configs impacted, would be quite useful right now...

We could then make those changes to 0918, and hopefully have data/wifi...

Won't help much with the state of the source code though....
[HTC Amaze 4G] :
The only thing changed was libril which is in the amaze device tree on my git and something in the frameworks.jar which in the device tree in overlay/frameworks/base/core/res/res/values.xml changing the defualt data iface to remnet_sdio0
[HTC Amaze 4G] uvt_novice:
I think you've done a lot to clarify/find out more re problem/s. :good:
[HTC Amaze 4G] dcacklam:
Well then that's what I missed yesterday when trying to data-fix 0918 - I was able to find and change that setting in an XML file in framework-res.apk, but I don't know how to decompile jar files...

That, and I didn't change the libril...
[HTC Amaze 4G] GuyInDogSuit:
I'm so lost.... No clue what all of this means. No wonder I fell asleep in computer science class....
[HTC Amaze 4G] :
Smali and baksmali that should let you decompile but I'm making progress I got wlan0 up I think there is only a couple things in the init to change
[HTC Amaze 4G] pcurator:
woohoo i think we're really close to getting wifi nail
[HTC Amaze 4G] dcacklam:
Cool...
[HTC Amaze 4G] bos2333:
If sports doesn't get out fixed I can compile decompile for you
[HTC Amaze 4G] Maelfus:
For you sir:

http://xdaforums.com/showthread.php?t=1840474
[HTC Amaze 4G] bos2333:
Seems like you have to set the hw overlay fix after every reboot as well.
[HTC Amaze 4G] misfit61871:
Ya I noticed that too, it doesn't stick.

Sent from the morgue.
[HTC Amaze 4G] ifatalityx:
Oh My GOD! You understand how hard it was to be a teen at the time and hear that noise at night on my old Gateway desktop. I would put clothes and blankets over my tower just to muffle the sound when I signed into AOL at night,

Yeah it was like that for the entire CM10 build. It's annoying, but least of the worries now.
[HTC Amaze 4G] GuyInDogSuit:
You uh, realize that the modem speaker, where that sound came from, could be muted? I know it's kinda late for that, but,,,, Just sayin'.

For some reason my launcher disappeared when I went back to my FourthBar nandroid to use the WiFi, then switched back to CM10, and I can't even install one over ADB now. WTF!
[HTC Amaze 4G] Maelfus:
Anyone know what is causing the graphic issues with apps like chrome and any.do?
[HTC Amaze 4G] :
Hmm getting close

E/WifiStateMachine( 413): Failed to reload STA firmware java.lang.IllegalStateException: command '14 softap fwreload wlan0 STA' failed with '400 14 Softap operation failed (Cannot assign requested address)'
[HTC Amaze 4G] eShrooms:
I'm not sure if that's really the ROM. I've gotten that issue on Speed Rom and on Stock with chrome. My solution, use firefox. :D
[HTC Amaze 4G] ziggy46:
you know... i just thought of something. To build android, you need to first download the source code. Well on my connection (25mb down) it takes like 2-3hrs roughly. What we still used dial-up?!?!?!?! :eek: We would never have nice things like cm10 lol
[HTC Amaze 4G] dcacklam:
softAP and hostAPd are both for tethering (making the phone a wifi access-point)...

IF we're trying for an outgoing connection, it should be wpa_supplicant running on wlan0.

HTC:
[HTC Amaze 4G] :
I'm actually not sure the new build will be on my goo in a couple minutes if you want to play with it. softap is defined in the build.prop for wlan1 so i'll have to look through it some more
[HTC Amaze 4G] :
It's up
[HTC Amaze 4G] Migwickert:
More testers?
[HTC Amaze 4G] jcjackjay:
WIFI WORKS?!?!?!?
[HTC Amaze 4G] HumpDdumpD:
Haven't really been following along have you?
[HTC Amaze 4G] :
No wi-fi still borked but were close. It's only up there for debugging purposes
[HTC Amaze 4G] chevycowboyusa:
Post a link please? :)
[HTC Amaze 4G] :
it's in the downloads section of my OP all my downloads are in the cm10 folder of my goo so goo.im/devs/sportsstar89/ruby/cm10
[HTC Amaze 4G] jcjackjay:
nope haha im half asleep right now x.x just lookin for the words "its up" makes my day xD
[HTC Amaze 4G] chevycowboyusa:
Thanks sport
[HTC Amaze 4G] dntipwn:
Sport did you want any logcats or dumpsys from the current rom to help debug?

EDIT:Not Getting any data/cell service so far

EDIT:Took about 10mins to get cell service and the signal bars are still broke.
[HTC Amaze 4G] dcacklam:
Downloading now...

Let's see what it does...

I presume we have a wlan0 interface, and the remaining hurdle is getting Android to play nice with it...
[HTC Amaze 4G] wasie:
So it means hopefully soon Wifi Calling App function will be fixed.

did anybody notices that in CM10 some phone's screen goes off and didn't turn back on even by pressing the power button for long time.

did anybody notice that?[/QUOTE]

yes i found the same thing in CM10 during call especially when you talk to somebody for a long time and even through Skype.

sometime even when you call for shorter time.

but i am still the CM10.
[HTC Amaze 4G] :
Yep the error from the logcat is what's stopping it from turning on apparently
[HTC Amaze 4G] GuyInDogSuit:
Yes, that happens a lot with non-stock ROMs on the Amaze, especially if you're using a custom kernel that's underclocked below 432, I think it was. Screen of death, they called it. Half-asleep, I am. Rambling, I must be. Talking like Yoda, I am.

Close to the resolution, we must be?
[HTC Amaze 4G] :
I believe so
[HTC Amaze 4G] dntipwn:
This is part of it:

D/WifiService( 340): setWifiEnabled: true pid=952, uid=1000

E/WifiStateMachine( 340): Failed to reload STA firmware java.lang.IllegalStateE

xception: command '57 softap fwreload wlan0 STA' failed with '400 57 Softap oper

ation failed (Cannot assign requested address)'

D/CommandListener( 136): Setting iface cfg

D/CommandListener( 136): Trying to bring down wlan0
[HTC Amaze 4G] dcacklam:
When I booted that build, wlan0 was not there...

But with a modprobe wl12xx_sdio, it was...

Also, android keyboard is in an FC loop

---------- Post added at 08:13 AM ---------- Previous post was at 07:57 AM ----------

Keyboard FC due to wrong locale, and no dictionary for hu_zz whatever that is:

W/SubtypeLocale( 2304): KeyboardLayoutSet not found, use QWERTY: locale=hu_ZZ extraValue=AsciiCapable,SupportTouchPositi

onCorrection

W/dalvikvm( 2304): No implementation found for native Lcom/android/inputmethod/latin/BinaryDictionary;.openNative:(Ljava

/lang/String;JJIIII)J

E/AndroidRuntime( 2304): java.lang.UnsatisfiedLinkError: Native method not found: com.android.inputmethod.latin.BinaryDi

ctionary.openNative:(Ljava/lang/String;JJIIII)J

---------- Post added at 08:16 AM ---------- Previous post was at 08:13 AM ----------

I put an initscript in /system/etc/init.d/ to do a 'modprobe wl12xx_sdio'...

That gives me a valid wlan0 on boot...

on the initial flashing of a rom, the wifi-settings menu toggle is not greyed-out, but it does not do anything, even though wifi is 'properly there'...

Possibly due to not -HUPing netd and netmgr...

possibly due to a problem with wpa_supplicant

---------- Post added at 08:22 AM ---------- Previous post was at 08:16 AM ----------

This will put a damper on things... Even after all the modules are loaded:

Remount everything RW, and you get:

You fix it by using a full, explicit path for the wlan0 socket, in wpa_supplicant.conf:

Also, in the initscripts, it's looking for a wpa_supplicant.conf under /data/misc

There isn't one there!

This is all I can do for tonight, but with the right modules installed, AND with the wpa_supplicant stuff in init, /data/misc, and /system/etc/wifi right....

We should be closer...

Right now the initscripts use wpa_supplicant config parameters pointing to invalid sockets & files...

---------- Post added at 08:54 AM ---------- Previous post was at 08:22 AM ----------

Not unless you are trying to tether.

wpa_supplicant is the wifi client...

Softap is for making the phone into a hotspot

Perhaps the scripts are running the wrong wifi program, too...

P.S. I'm not getting the softap error...

---------- Post added at 08:59 AM ---------- Previous post was at 08:54 AM ----------

=============================================================

BTW..

AM I the only one NOT getting anything about softapd in my logs, and having the keyboard FC-loop?

---------- Post added at 09:03 AM ---------- Previous post was at 08:59 AM ----------

Oh, one last thing...

Is this the 0918-type drivers, or the new TIWLAN?
[HTC Amaze 4G] GuyInDogSuit:
So in other words, we're still stuck?
[HTC Amaze 4G] dcacklam:
It occurred to me, based on what i did today, and what has shown up tonight, that the following conditions exist:

1) 0918:

Good Wifi Configuration (/init.*, /system/etc/wifi/*, /data/misc/wifi/*)

Good Wifi Drivers

Bad Data

2) 1127, 1130:

Good Data

Bad Wifi Configuration

Bad Wifi Drivers

3) 1201:

Stuff missing/unstable - keyboard FCs, etc...

Good Wifi Drivers

(don't know about data, no service at home)

Bad Wifi Configuration

My 'grafting' attempts from today all mixed-and-matched *parts* of the config, but I am beginning to believe that I was not precise enough:

When I tried running the 1127 build with the 918 boot-scripts, I didn't replace /system/etc/wifi or /data/misc/wifi with the 918 versions - and of course this replaced the new boot-scripts entirely....

When I 'grafted' the 918 kernel onto the 1130 build, I kept everything except the 918 kernel and modules as-it-was for 1130...

Therefore, the mix-n-match most likely to work, would be:

1201 kernel/modules

0918 /system/etc/wifi

0918 /data/misc/wifi

0918 init entries dealing with wifi & wifi permissions/directories/mountpoints ONLY

Whatever Sport did to make the wifi toggle work in 1201 - do that to 1130 (but without removing libs or messing up the keyboard - there are libraries missing from the 1201 build that may be why the setup app didn't run and the keyboard is borked)...

1130 everything-else

Make sure init installs (in order) cfg80211.ko, mac80211.ko, wl12xx.ko, wl12xx_sdio.ko
[HTC Amaze 4G] :
Ok i symlinked the wpa_supplicant to data since it's easier so next build i'm expecting good results
[HTC Amaze 4G] uvt_novice:
When it will be ready to test?
[HTC Amaze 4G] xndabox:
Last I heard, chrome didn't play nice with HTC phones in general. At least with our amaze it seems to be a constant problem with all roms.
[HTC Amaze 4G] Brooklyn8807:
Actually Chrome has been running great on sense 4.1 Roms. Ran great on viperS Rom that got pulled. And it runs great on the eclipzeRemix's bulletproof sense 4.1 Rom. I should prob say that I'm using the stock keyboard also. I heard chrome and swype don't go well together
[HTC Amaze 4G] uvt_novice:
Annoying sh*ty ad. Hate them!
[HTC Amaze 4G] ezdi:
It may be the software for running as a hotspot, but in this case it appears to be trying to load the STA firmware. STA mode firmware in most wifi drivers is used for client mode, there would likely be AP firmware used for AP mode. The firmware is usually a closed source binary blob that runs on the embedded processor of the WIFI chip.

The firmware lives in /etc/firmware/ti-connectivity. Or at least is is on my 11/27 build. I believe that's the proper location.

For our chip, I don't see different firmware for the different roles (either on my rom or on TI's git). I believe we are supposed to use the _sr (single role) firmware for both AP and STA unless we want to have wifi direct and station mode at the same time, in which case we need to use the _mr (multi-role) firmware. There should be no need to reload the firmware unless it was never loaded in the first place (or maybe the calibration firmware is used on initial driver loadup).

Edit: Cannot assign requested address might mean invalid MAC in the NVS calibration file. dntipwn, try running

/system/bin/calibrator get nvs_mac /etc/firmware/ti-connectivity/wl1271-nvs.bin
[HTC Amaze 4G] GuyInDogSuit:
Swype does NOT play well with a lot of things, mostly Firefox and Chrome. I hear it works just fine with Dolphin HD and the default webkit browser, though.
[HTC Amaze 4G] xndabox:
Ok cool, I should give it another shot. Great job so far everyone. This thread is so beast right now. Keep it going!
[HTC Amaze 4G] chevycowboyusa:
I've been a big swype fan, but I've switched over to the 4.2 keyboard and have been very happy. No issues at all.
[HTC Amaze 4G] GuyInDogSuit:
I'm still stubbornly using Swype. I don't like tapping out my words. I have not tried the 4.2 keyboard though.
[HTC Amaze 4G] chevycowboyusa:
It's better than swipe! It's still a swipe type of keyboard. Works great on cm10.

It's really tight
[HTC Amaze 4G] Maelfus:
I'm using swiftkey and still having issues. Is there updated video drivers in the sense 4.1 roms we can pull?
[HTC Amaze 4G] :
171 downloads of the 12/1 build. So, what's fixed, what's still in progress?
[HTC Amaze 4G] GuyInDogSuit:
12/1 is really just a debugging release. Nothing major was fixed but they are making some progress with WiFi. The problem lies in code that they changed around the time they got data working, which somehow messed up the WiFi. Also, with that data-fixed build they had incorporated the new kernel and WiFi drivers, which they THOUGHT was the cause, but now they found that there's some typos and errors here and there and basically it's a matter of going through thousands of lines of code looking for them, which is tedious and time-consuming, not to mention frustrating. So all we can do is wait. Unless you can help go through the code and look for bugs, that is.
[HTC Amaze 4G] dntipwn:
Nothing it's a fixed compared to the last release. It's a only been a couple pages to read to find out what's different

Sent from my HTC_Amaze_4G
[HTC Amaze 4G] Mystery?:
I have read almost every single page after data started working, but I forgot. What's the status as of now?

All I know is that

Data: Fixed

WiFi: Not Fixed

Bluetooth: Fixed? (i need confirmation)

Multi-Touch: Fixed? (i need confirmation)

SD Mounting: ???

Screen of Death: ???
[HTC Amaze 4G] bos2333:
Bluetooth is fixed, multi touch is iffy, and I had screens of death all the time in the September builds but not yet on the 30th one.
[HTC Amaze 4G] HumpDdumpD:
BT worked for me on an Lg headset. I can't speak for the car stereo BT user's out there though.
[HTC Amaze 4G] GuyInDogSuit:
Bluetooth appears to be working for me. I have not tested it with the Focus Sync in my patrol car, or with any other Bluetooth devices except my computer, which it pairs with, but I never could figure out how to do anything beyond that anyway.

As far as the other things go, Sport and ziggy are working on them. There's a lot of code to go through and it takes time. But feel free to let them know if you find any other bugs, but get a logcat or screen shot or something to help them figure it out.

WiFi, multi-touch, and SD mounting are still borked at this time. In fact, I'm having issues with my internal and SD cards unmounting whenever I connect the USB cable, and it refuses to mount to the PC. It started doing this when I wiped, restored my Fourth Bar nandroid to use WiFi and update apps, then wiped and restored CM10, and since then I've been having all kinds of issues. I can't wait for the next build 'cause I'm gonna fully wipe and restore from TB like I did with the 10/27 build. Sorry, getting off topic.

The touch screen is really unresponsive as well, but the "screen of death" does not seem to happen as often as it did before, though.

Audio volumes are just fscked. I can barely hear conversations holding the phone to my ear, and turning the speaker on during calls is barely audible. Notifications sound distorted, as if they're too loud, even with DSP Manager set to "Bass Reduction," I still have to turn phone/notifications volume down a notch.
[HTC Amaze 4G] bos2333:
Mine works in my car
[HTC Amaze 4G] dcacklam:
For android, the proper location is /system/etc/firmware/ti-connectivity/

For plain linux, it's /etc/firmware/ti-connectivity

The actual kernel-modules are aware of this directory (See a logcat of the wifi-working 0918 build) and load the firmware themselves. The reason softapd also loads firmware, is to make sure the right version (capable of AP-mode not just STA mode) is loaded.

If softapd is associating with wlan0, that's a problem.
[HTC Amaze 4G] Mystery?:
Thanks to each of you all. Does the signal bar display error persist? Or is it still working for some with Ziggy's fix?
[HTC Amaze 4G] dcacklam:
Further, take a look at wpa_supplicant.conf on a Sense phone (the wifi layer is the same on Sense and AOSP - it's linux-wifi in both...

Note the differences. Also note that wpa_supplicant.conf is where Android stores your network configurations.

I'm currently pursuing the angle that the 'problem' is an issue with wpa_supplicant, the initscripts, permissions, paths, /data/misc/wifi, and/or the firmware.

I can't really look into 'WTF is softapd doing on wlan0' since my version of 1201 does not do the softapd thing...

What I'm looking to do is come up with a 'clean' combination from the two known-working setups (Sense/SpeedRom and 0918) that can be grafted into 1201 or better yet 1130.
[HTC Amaze 4G] fcpelayo:
Yeah he wasn't so bad but he lost patience.

Anyways this app called rilinfos or get ril any useful?
[HTC Amaze 4G] GuyInDogSuit:
Binary was a good mod, here too. Guy kept his pimp hand strong.
[HTC Amaze 4G] offrotor:
cyan10

I followed too, to the "unnamed" board, hoping I would (as most of us did), to find the CyanogenRom we all want for the Amaze.

Nothing new from the "prodigy" there for the past few months, on anything worth the time time to read. Just like the roms, the board is,and will always be a copy/paste of everyone else's hard work. These guys aren't gone from here, they read our pain, just under other aliases. re-read all the posts from Dec. 2011-Present, taking note on new users, and the "apparent" lack of knowledge portrayed. We are not alone........

Wow.. I need to stop watching old re-runs from the Space channel... :eek:

Keep up the good work on this, If nadlabak can stick a 9 on a milestone, the amaze is not to far behind...
[HTC Amaze 4G] Trewyy:
Great work on cyanogen 9, those updates will be coming to 10 soon I hope :) thanks!

Trewyy
[HTC Amaze 4G] amandez:
Looks great!

Sent from my MyTouch 4G Slide

Yes girls know about XDA

you can thank a girl on here ;)
[HTC Amaze 4G] ifatalityx:
Anyone know why the download link isn't working?

Sent from my HTC_Amaze_4G
[HTC Amaze 4G] :
Goo.im had all there files wiped so the dl link is unavailable until i come out with a new version which is coming when i feel like it
[HTC Amaze 4G] Perry977:
I hope u feel like it soon lol
[HTC Amaze 4G] :
Probably the weekend i am really tired i'll try to have a new build of cm9 up tonight with camera/camcorder and some lights fixed and the graphic glitches
[HTC Amaze 4G] ifatalityx:
Awe man! I finally got 4EXT to flash and actually just tried CM9 (Kudos man!) and wanted to try CM10. Is there an alternative link just to try real quick?

Sent from my HTC_Amaze_4G
[HTC Amaze 4G] :
If you guys are lucky there might be a new build tonight
[HTC Amaze 4G] joser1309:
Awesome!
[HTC Amaze 4G] eggydrums:
If we get working GSM...... I will... I will..... lol I don't know I would die

Sent from my HTC Ruby using Xparent Green Tapatalk 2
[HTC Amaze 4G] Perry977:
Try the cm9.. lol gsm and camera/camcorder works
[HTC Amaze 4G] ziggy46:
if you died then you wouldnt get to enjoy it...
[HTC Amaze 4G] Perry977:
+1 lol
[HTC Amaze 4G] eggydrums:
Lol I know I didn't know what to say! I love cm9 but I'm just dying to get some jb love!:p

Sent from my HTC Ruby using Xparent Green Tapatalk 2
[HTC Amaze 4G] kazzxtrismus:
Orgasm in t minus.......

A few days
[HTC Amaze 4G] :
lol i'm building a test build with latest changes right now and i'll probably have to do some minor changes so it'll either be tonight or tomorrow
[HTC Amaze 4G] EclipzeRemix:
F5 F5 F5 F5 F5 F5 F5 F5.....
[HTC Amaze 4G] GuyInDogSuit:
If you need testers, I'm game.
[HTC Amaze 4G] jcjackjay:
same here
[HTC Amaze 4G] dcacklam:
It persists in 1201... Don't know about ziggyfix, I don't have it on mine...

---------- Post added at 07:07 AM ---------- Previous post was at 06:16 AM ----------

Ok, let's deconstruct some wifi configurations...

First: Sense.

Since Sense presumably uses the 'TI WLAN' we got source for, this may be interesting:

Next: CM10

0918 Wifi, No Data
[HTC Amaze 4G] ziggy46:
ill upload a build with the signal bars working... i guess the code must have gotten scrambled in sports pc. my build the signal bars work
[HTC Amaze 4G] jcjackjay:
Is it gonna be the build with the WiFi working but the data broken?
[HTC Amaze 4G] ziggy46:
no, its the latest source. nothing changed
[HTC Amaze 4G] Maelfus:
Wouldn't it be better to post the changes to git to be committed?