yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] paulb_nl:
Yeah I just added the htc_battery_update_change() below the update_os_batt_status(&poweralg) at line 926

The htc_battery_update_change() is in arch/arm/mach-msm/htc_battery.c and it sends an uevent if the charger has changed.

After comparing the code for a while I couldn't figure out how the old driver worked correctly without this though.
[Desire HD Android Development] Mustaavalkosta:
Looks like it wasn't just resetting some flags when cable_type was CONNECT_TYPE_NONE in cable_status_handler_func() and ktime_set() had quite large value. It should be working now without interfering with reported percentage thus I merged it to kb-stable and it'll be included in tomorrow's nightly so no need to flash battery test kernels anymore.

Commit: https://github.com/Mustaavalkosta/KangBanged-7x30/commit/85d7ab4b7cb432b0fba7fbd3d37e8d295323b0e8

Updated performance kernel is coming soon without further notice.
[Desire HD Android Development] t0mas_:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

hi! im learning to build from source, using the instructions in the op. i have my build env set up, the build process finishes and zip is created. but when i flash the rom, wifi doesnt work - the option in settings to turn it on is unavalible/gray. to be honest i havent even tried to tackle the problem with logcat, because as far as i can understand it should work since im building from a working source, so the error is somewhere in the compiling process. and on the other hand, i know very little about logcat debugging.

i also tried to build cfx, and it works as expected, meaning it has the same bugs as mentioned in the thread. wifi works there though.

so im i bit lost here. i know i made some mistake somewhere, but i have no idea where to start looking. it confuses me even more, since both roms use the same kernel.
[Desire HD Android Development] Mustaavalkosta:
Does flashing one of the battery test kernels fix it?
[Desire HD Android Development] t0mas_:
it does, thanks. but i would still like to understand what went wrong during the build...
[Desire HD Android Development] Mustaavalkosta:
Are you using ccache? If yes, try to build without it. If it works after that, you have corrupted cache that breaks bcmdhd module. Clear the cache and make sure you have similar version ccache binaries in prebuilts/misc/linux-x86/ccache/. I was using 2.x and 3.x binaries with the same CCACHE_DIR last autumn and that broke bcmdhd and I spent a week trying to figure out why it doesn't work.
[Desire HD Android Development] t0mas_:
will try, thank you

edit:

another thing i just observed is that compiler complains about unsupported version of java it says i should have java SE, but i have openjdk installed. i left it build, and if it doesnt work ill deal with it tomorrow, its 2.30 here
[Desire HD Android Development] Mustaavalkosta:
Linaro compiles with openjdk from what I've heard so that shouldn't cause any problems. CM added that support too, otherwise it wouldn't even start building with openjdk.
[Desire HD Android Development] superbeast_87:
Is there any way to set my phone number? I know its possible in CFX 4.2.2 but i'm not seeing it in this build. Menu -> System Settings -> About Phone -> Status -> My Phone Number shows my number as unknown and this is important for certain apps I use.
[Desire HD Android Development] max-555:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

Try to go to dialer settings, then additional settings and enable show you phone number.
[Desire HD Android Development] WordsworthESP:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

It's no longer in additional settings. I'm not sure where it is anymore, but I'm currently looking.

The setting you're referring to only controls whether your number is displayed in outgoing calls, which isn't what he was asking about.

Sent from my Inspire 4G w/CM10.1
[Desire HD Android Development] pnoire:
This phone number is "unknown" in stock JB roms too.

I wonder which apps need that info from "About". Usually apps working with phone number request it on first launch after installation (we have to type it) or know how to get the info in the system. But maybe i'm wrong ;)
[Desire HD Android Development] blackbuffalo:
The phone number is my number with this rom.

Simple do this, plugin sim card in to old phone such as Nokia 1202 or 1280 0r samsung 1208 then go to contact setting type your phone number and save.

Unplug your sim card and re plugin in to phone with JB rom and see in about. It'll display your number here
[Desire HD Android Development] Mustaavalkosta:
This will affect the availability of group messaging setting in messages etc. I've been debugging it with help from greiland but we got nowhere. It's working fine when I did a test build with cfx's frameworks_opt_telephony and hardware_ril repos in January, so I guess it's some sort of ril problem but I couldn't narrow it down more. It is also affecting just part of the users and not all which is kind of weird.

As temporary workaround, greiland was able to set it manually with https://play.google.com/store/apps/details?id=org.lytsing.myphonenumber.
[Desire HD Android Development] blackbuffalo:
https://www.dropbox.com/sc/bux9fxe3qaveakb/HZoXrB0Lkr

No need install 3rd app
[Desire HD Android Development] Mustaavalkosta:
It works fine for me too without doing anything, and probably does so for the majority, but greiland couldn't get the phone number to show without that app. It is easier to download that app than trying find another phone that can do what you recommended as a fix. And it's never bad to have options. :)
[Desire HD Android Development] blackbuffalo:
Yeah, never bad
[Desire HD Android Development] thekool11:
All I did was go to the dialer> settings> Scroll to Voicemail> Setup

Im not sure if this is the same as setting your number

Also is there a way to add any widget to the lockscreen as there is an other JB roms?
[Desire HD Android Development] estremodesign:
which theme :confused:

Any dpi mod this rom, i am not see dpi wizard... or app recommend pls :)
[Desire HD Android Development] paulb_nl:
Does anyone have the same issue that Wifi will disconnect when the phone is on standby for a long time?

The icon will change from blue to gray if I wake the phone and will reconnect immediately. Email notifications for example will be delayed until I wake the phone.
[Desire HD Android Development] Mustaavalkosta:
Yeah, it's gray from time to time when I turn the screen on. I think the I've seen same thing on tilapia a few times, but not sure.
[Desire HD Android Development] Atrax_:
I have this issue on every Jellybean Rom but it happens more often on 4.2 than 4.1.

Sense and basicly all 4.0.4 Roms work fine.
[Desire HD Android Development] ai6908:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

I have seen that WiFi issue more in the recent nightlies... I don't think SR15 has that issue...running 0317 now and hasn't run into that issue so far...

Sent from my Inspire 4G
[Desire HD Android Development] blackbuffalo:
I'm using Nova Laucher with Popstyle Theme and DCiKonZ icon
[Desire HD Android Development] scorpio09:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

Is this WiFi thing becoming grey is due to the setting WiFi Optimisation (set ON by default) in WiFi - Advanced settings. I have not seen that setting before. Not sure what this setting does.
[Desire HD Android Development] Mustaavalkosta:
Yeah, it could be. I toggled it off last night and I'm testing without it now. Also monitoring my tilapia with optimisation on a bit more now in case this happens with it too.
[Desire HD Android Development] paulb_nl:
This setting is for toggling Wifi suspend mode optimizations when the screen is off:

https://github.com/CyanogenMod/android_packages_apps_Settings/commit/aae0659e18e013401b83717a83ec25393d4ba626

https://github.com/CyanogenMod/android_frameworks_base/commit/3fb4ba616edb114b3197936eb67f481eb86b7cae

This should not work on our kernel because the bcmdhd driver we use does not support the new suspend mode command.

https://github.com/CyanogenMod/android_frameworks_base/commit/262f766ac8bd330008e1f0a61c1a37c64108b17c

The audio streaming stutter reported here is probably because of this. Apps should use WIFI_MODE_FULL_HIGH_PERF if they need low latency when screen is off but it wont work because it also uses the new suspend command.

http://developer.android.com/reference/android/net/wifi/WifiManager.html#WIFI_MODE_FULL_HIGH_PERF

I will look into using the AOSP bcmdhd driver again but last time I tried it was very unstable.
[Desire HD Android Development] t0mas_:
i tried to make sure that ccache is disabled, but the more i looked into it the more certain i was i never turned it on. i remember reading about it and thinking about trying with that, but it was off all the time.

and then since i had no idea what else to do i made a new install of ubuntu and set everything up again, this time with sun java. and im still stuck where i was before. next step will be to build kangbang separately, in order to speed things up and isolate the problem. if you have any other idea what might have gone wrong id be very happy to try and thanks for your help so far :)
[Desire HD Android Development] Mustaavalkosta:
Yeah, it's not on by default. You need to set USE_CCACHE and CCACHE_DIR env variables to turn it on. Sorry that I didn't mention that. Have you tried to load the bcmdhd module manually from terminal app or via adb shell?

# modprobe bcmdhd
[Desire HD Android Development] WordsworthESP:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

It isn't. What you're referring to is the voicemail number, which is the number your phone dials to access voicemail messages.

Sent from my Inspire 4G w/CM10.1
[Desire HD Android Development] wachutunai:
This is great! I look forward to it, if you need to test anything related with this, I use VoIP everyday among other apps that require low latency performance, so I can help with it.

Cheers!
[Desire HD Android Development] t0mas_:
i know, but i did some research about it and i tought i might enabled it in the end, but i didnt...

i tried modprobe, and it returns invalid module format...

i also noticed that adb doesnt work, allthough i have checked usb debugging and su to adb and apps in developer settings...
[Desire HD Android Development] rjand:
Ran 0313 nightly until yesterday with performance battery test kernel - rock solid, although the battery reporting was way out as expected. Tried taking a few photos with flash turned on and the phone kept turning off, battery was at 60% or thereabouts, but after the third attempt it was at 8%. Now 0318 with the new performance kernel - I think it is definitely more important to have an accurate battery percentage than LED's changing at the right time, although this new kernel seems to be a great all rounder.

Great work guys once again.
[Desire HD Android Development] Mustaavalkosta:
Ah okay, I hoped for something more helpful error. Does dmesg print anything useful after you tried modprobe? Other than this, only thing that I would know to try is to make sure my hardware is stable on the build machine by running prime95 for 24 hours but it's a bit long shot as most likely faulty hardware would just crash the compiling altogether...

You need to have latest adb server on with new security measures. https://plus.google.com/117962666888533781522/posts/M2pVM7Y6MTq
[Desire HD Android Development] Mustaavalkosta:
Hmm, that's weird. I'm not an expert but these few added lines to battery driver shouldn't have anything to do with reported percentage unless decreased time length of slack variable in ds2746_program_alarm() function is causing troubles elsewhere... Yeah, you are right with that percentage over charging indicator, but as mentioned changes shouldn't have anything to do with that and that's why I put them in without extended testing. I'll revert at least part of the commit if it seems that this is indeed a continuous problem and not just some random glitch.
[Desire HD Android Development] asif9t9:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

I have three browsers on my device. Opera Mobile, Dolphin and stock. For some reason I can't get a default browser option to stick. I use google reader and when I click to open an article in a browser, I'm asked everytime which browser I want to use. I click "always", but it never sticks. Anyone else with a similar problem?
[Desire HD Android Development] rjand:
Hi Mustaavalkosta, just in case I wasn't clear, the battery test kernel I was testing was from the 12 or 13, it isn't your latest test kernels. So far the latest test kernel is reporting the battery percentage okay. Please don't change anything on your latest kernels to fix this issue with an older kernel. If I find any problems with the latest kernel I will report that. My last post was just a general comment on how reliable the ROM is and how I feel accurate battery indicator is more important than any accurate charging status.
[Desire HD Android Development] entony80:
20130317 rom and kernel-test2 battery performance after 1 day 20 hours 40 minutes and I still have 4%. I have not had any problems but simply fantastic :laugh::p:p:p
[Desire HD Android Development] Gio_ital:
R: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

I have the same problem with the same browsers installed. But I cannot say that this is a real problem for me. Anyway I think this is the best Jellybean rom, with less bugs then any other rom and I tried them all. :cool:
[Desire HD Android Development] Mustaavalkosta:
Oh okay. Thanks for correcting this misunderstanding otherwise I would have wasted time looking for something that isn't there. :)

Edit: And now that I re-read your post, you were clear. I was just in too zombified state having just woken up to understand it correctly, hehe.
[Desire HD Android Development] eadon:
Swiftkey

Hi, I'm sorry if this has been discussed before, but I'm running Swiftkey 4.0.0.106 and have to reconfigure after each reboot.

Probably something to do with Swiftkey.

This is the

only

niggle with this rom (Nightleys 317), which is a perfect daily driver.

Big thanks

many thanks for advice!!
[Desire HD Android Development] Gio_ital:
R: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

I'm using too SwiftKey and there is no problem for me. Must be SwiftKey. Try to reinstall the app
[Desire HD Android Development] rjand:
Have you installed Swiftkey as a system app? Also use Titanium backup to uninstall / reinstall it to get it to stick after reboots.
[Desire HD Android Development] zomer331:
Do never install a keyboard as a system app in/system/app! Install it like a normal app, cause you can have problem. ;]
[Desire HD Android Development] greiland:
I have an Inspire 4G, so maybe it's something specific to the Inspire but not the DHD? The only ROM I can get my phone number to show up under "About Phone" is CFX. This ROM, Pipe's AOKP ROM, and Pipe's CM10.1 ROM I can't get it to show up. Not sure about Jellytime, but since that's CM based, probably the same result. And as Mustaavalkosta said, Group Messaging doesn't show up as an option without it. The "My Phone Number" app does the trick, however it resets on each reboot, so you have to set your phone number every time you reboot. I use group messaging a lot with some iphone friends, so I really would like that feature.
[Desire HD Android Development] Mustaavalkosta:
Yep, both PipelinerArd's roms use frameworks_opt_telephony and hardware_ril from CM. I can start doing test builds trying to locate the commit that breaks it for some users but I need someone to test those builds and probably craploads of them unless I get lucky quick.

Here's something from our PMing with greiland in case someone is wiser than me on this matter:

D/GSM ( 2087): [SIMRecords] onRecordLoaded 8 requested: true
D/GSM ( 2087): [SIMRecords] onRecordLoaded 7 requested: true
D/GSM ( 2087): [SIMRecords] onRecordLoaded 6 requested: true
D/GSM ( 2087): [SIMRecords] onRecordLoaded 5 requested: true
D/GSM ( 2087): [SIMRecords] onRecordLoaded 4 requested: true
E/GSM ( 2087): [SIMRecords] Exception in fetching EF_CSP data com.android.internal.telephony.IccFileTypeMismatch
D/GSM ( 2087): [SIMRecords] onRecordLoaded 3 requested: true
D/GSM ( 2087): [SIMRecords] Invalid or missing EF[MSISDN]
D/GSM ( 2087): [SIMRecords] onRecordLoaded 2 requested: true

(Full radio & system log link was down already but here's the error part that I spotted.)

https://github.com/CyanogenMod/andr.../internal/telephony/gsm/SIMRecords.java#L1333

http://en.wikipedia.org/wiki/MSISDN
[Desire HD Android Development] bcd420:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

This is definitely an inspire aosp issue. The last few versions of cfx, i think maybe sr 11 was the first and only non sense rom to ever show my phone number and voicemail number without having to enter them. And I've run pretty much every rom that has come out for over 2 years now.
[Desire HD Android Development] Gio_ital:
R: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

I think you're right because I did see my number with every rom I flashed, sense or non sense
[Desire HD Android Development] bcd420:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

If it would help, later i can restore some nandroids and pinpoint when it started working with cfx?
[Desire HD Android Development] rjand:
My number under About phone shows unknown on a Desire HD. Don't know if it's a SIM problem though as I ported my tel. number from another SIM / carrier.
[Desire HD Android Development] ramdesai:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

My carrier is IDEA (India)

On my Inspire 4G, i am able to see my number under About phone.
[Desire HD Android Development] Mustaavalkosta:
My best guess is that this phone number thing is some sort of carrier specific thing as MSISDN has at least two formats according to that wikipedia article I posted earlier. One of them probably just don't work with current codebase. It's just a theory but the best explanation I've been able to think this far.

My data this far on unknown numbers:

AT&T US:

bcd420

greiland

It's not much but some sort of emerging pattern at least. Maybe it could be fruitful to gather more data about carriers and unknown numbers to either prove my theory wrong or fortify it. :)
[Desire HD Android Development] bcd420:
From the cfx changelog

SR7:

Ace: Fixed TTS and Angry Birds

Ace: More performance oriented ext4 flags

Ace: Kernel updated to v2.7

Keyboard swipe bug fixed

Lockscreen custom shortcut ability added

Interface: Buttons: Headset button remapping

Display: ability to toggle crt on/off animations

LatinIME merged with CM

Telephony now local to fix Canadian VM notifications, group mms, and phone number display
[Desire HD Android Development] nwhutt:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

I'm on Tesco Mobile in the UK, which uses o2s network and my number also shows as unknown.

Also wanted to say thank you for such an excellent ROM, out of all the CM10.1 ROMs I've tried, I've found yours to be the fastest & most stable.
[Desire HD Android Development] Mustaavalkosta:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

Yeah, I'll do a test build with this https://bitbucket.org/codefirex/fra...mits/68121f105a73329705f3368c1455f888d3203754 tomorrow once I wake up. Not sure why I missed it earlier...

My speculation for the cause was mainly to satisfy my curiosity for why this is happening but I'll settle to just get it fixed too. :p
[Desire HD Android Development] greiland:
Great. Can't wait to test it out. Strange thing is, I just tried installing the "My Phone Number" app and now it says "Application cannot be installed in the default install location".
[Desire HD Android Development] Gio_ital:
R: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

I don't think it's a career thing because in my house are 2 dhd, me and my wife, and mine always shows my personal number but the one of my wife didn't neither with the stock rom
[Desire HD Android Development] Mustaavalkosta:
Well, then carriers must use different specs within their network or your issue is something else. This is just formatting issue if Maxxy13's forward port fixes it now that I had to manually merge the changes as the file had got updates after Maxxy13's changes so I went through it line-by-line.

From the comments:

Looking at ETSI TS 102 221 (pages 78-79) there are 2 different responses. One for MF, DF or ADF and another for EF. Radio log contained EF_CSP and EF[MSISDN] so I guess these are related at least on some level. I don't know what those abbreviations represent but reading the whole pdf would probably shine a light on that but I'm not really that interested. General sense of what's happening is good enough for me. :p

Anyways, test build is available here: http://downloads.codefi.re/mustaavalkosta/cm-10-1-unofficial-ace/tests

Let me know if it works. At least this fix looks promising.

Commit: https://github.com/Mustaavalkosta/a...mmit/e91a28b0e1eb5bbdd2cf6ae5f91ab4eb4145f75c
[Desire HD Android Development] rjand:
Doesn't work on Vodafone UK, My phone number is still Unknown.

Is there any thing I can look up for you, logs etc. that can help?
[Desire HD Android Development] MusikMonk:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

It didn't work for me either on b-and-you / Bouygues France.

I didn't wipe before flashing (I don't believe it matters but just in case).
[Desire HD Android Development] Mustaavalkosta:
Bummer. :(

You can get radio and system log but I guess those will just show what I saw from greiland's logs unless we are having 2 different issues causing same result.

For radio log:

adb logcat -b radio -d > radio.txt

This is pretty annoying to debug not knowing much about these specifications. :|

Edit: On a sidenote, how new SIM cards do you guys have? I wonder if this is SIM related rather than network related due newer data structure on newer SIMs. My own SIM is old as hell. The file that is throwing those EF errors is called SIMRecords.java.
[Desire HD Android Development] MusikMonk:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

My SIM is about 6 months old, give or take a couple of weeks.

The logcat will be a bit complicated for me right now as I'm actually in a, rather boring, lecture...

And on a side note, we really need new terminology. Reading my previous post it feels as if I was talking about my toilet habits.
[Desire HD Android Development] pecora:
I'm on Desire HD, my SIM is 5 years old, 128Kb of capacity, i'm in Italy and phone number is displayed ok.
[Desire HD Android Development] Mustaavalkosta:
Haha yep.

Oh well, looks like number called IMSI is stored in SIM but this MSISDN is fetched from network.

http://wiki.answers.com/Q/What_is_the_difference_between_imsi_and_msisdn

Damn, I hate this guessing game. Somebody buy me a ticket to come visit one of you with unknown number. :cowboy:

Edit: Does anyone of you with unknown number have this setting available: Dialer > Settings > Additional settings > My phone number?
[Desire HD Android Development] Gio_ital:
R: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

Same here, 7 years old sim, WIND ITALY :cool:
[Desire HD Android Development] MusikMonk:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

Nope, I don't have that. There's only Caller ID and call waiting for me there.
[Desire HD Android Development] rjand:
+1 Just Caller ID and Call waiting. SIM is 2 years old.
[Desire HD Android Development] thenorm89:
Re: [ROM][UNOFFICIAL] CyanogenMod 10.1 Nightlies / M-Series [M2]

Number displayed unknown and no option to set in caller settings.

Two year old SIM, U.S AT&T.