Hey everyone,
I posted this last night in the Vibrant forums (and confirmed that it works on the vibrant 2.2 roms) so I figured I'd cross-post here for anyone that wants to try it out on the captivate too.
Anyway I just figured out how to display the "H" icon in the status bar properly. And by that I mean, no renaming or duplicating drawable files in framework-res.apk, and the icon will show all data states now:
GSM, GPRS, Edge, 3G, HSDPA
I've only tested it for myself on the Vibrant running 2.2 roms.
Anyway, decompile services.jar, and open /com/android/server/status/StatusBarPolicy.smali
Then search for ".method private final updateDataNetType(I)V" in and replace the entire method with this:
Code:
.method private final updateDataNetType(I)V
.registers 3
.parameter "net"
.prologue
.line 1381
packed-switch p1, :pswitch_data_30
.line 1409
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_g:[I
iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I
.line 1412
:goto_7
return-void
.line 1383
:pswitch_8
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_e:[I
iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I
goto :goto_7
.line 1386
:pswitch_d
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_3g:[I
iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I
goto :goto_7
.line 1391
:pswitch_12
iget-boolean v0, p0, Lcom/android/server/status/StatusBarPolicy;->mHspaDataDistinguishable:Z
if-eqz v0, :cond_1b
.line 1392
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_h:[I
iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I
goto :goto_7
.line 1394
:cond_1b
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_3g:[I
iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I
goto :goto_7
.line 1399
:pswitch_20
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_1x:[I
iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I
goto :goto_7
.line 1402
:pswitch_25
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_1x:[I
iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I
goto :goto_7
.line 1406
:pswitch_2a
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_3g:[I
iput-object v0, p0, Lcom/android/server/status/StatusBarPolicy;->mDataIconList:[I
goto :goto_7
.line 1381
nop
:pswitch_data_30
.packed-switch 0x2
:pswitch_8
:pswitch_d
:pswitch_20
:pswitch_2a
:pswitch_2a
:pswitch_25
:pswitch_12
:pswitch_12
:pswitch_12
.end packed-switch
.end method
And if you haven't noticed by now, I HATE this samsung bs and would kill for an AOSP or CM rom, lol.
Cheers, =)
s0niqu3 said:
Anyway I just figured out how to display the "H" icon in the status bar properly. And by that I mean, no renaming or duplicating drawable files in framework-res.apk, and the icon will show all data states now:
GSM, GPRS, Edge, 3G, HSDPA
Click to expand...
Click to collapse
Interesting, though I've never had this issue. Is this for like the stock ROM? Because I was under the impression that the stock ROM never showed "H" because the modem didn't support it... But my current ROM (Serendipity 5.7) shows the "H" icon when necessary and switches over to 3G when it's on 3G. My area is so AT&T oriented, so I can't say the same for E, G, or any of the others, because my area is so densely populated with AT&T towers. I'm getting (legitimately, not false) HSDPA 99.999% of the time where I live.
Loggik said:
Interesting, though I've never had this issue. Is this for like the stock ROM? Because I was under the impression that the stock ROM never showed "H" because the modem didn't support it... But my current ROM (Serendipity 5.7) shows the "H" icon when necessary and switches over to 3G when it's on 3G. My area is so AT&T oriented, so I can't say the same for E, G, or any of the others, because my area is so densely populated with AT&T towers. I'm getting (legitimately, not false) HSDPA 99.999% of the time where I live.
Click to expand...
Click to collapse
Stock ROM supports HSDPA but not HSUPA, so it would show the "H" icon with this mod when getting that signal I assume.
Thank you very much!
Thank you very much, s0niqu3, I was looking for this to mod a JI6 rom.
Much appreciated ^^!!!.
I'm confused... if your phone is on the Edge network, wouldn't you want to know it? Why would you want your task bar to show an "H" in that scenario?
olo567 said:
Stock ROM supports HSDPA but not HSUPA, so it would show the "H" icon with this mod when getting that signal I assume.
Click to expand...
Click to collapse
Oh, that's interesting... I didn't know that! I thought I was getting just 3G for the first few days I had my phone.
jsmith8858 said:
I'm confused... if your phone is on the Edge network, wouldn't you want to know it? Why would you want your task bar to show an "H" in that scenario?
Click to expand...
Click to collapse
It won't. With this mod, the icon will be shown properly (if you're on Edge, it'll show "E").
jsmith8858 said:
I'm confused... if your phone is on the Edge network, wouldn't you want to know it? Why would you want your task bar to show an "H" in that scenario?
Click to expand...
Click to collapse
You didn't understand it.
Stock JI6 on the Captivate, for example, doesn't show the H icon when you have HSPA (by flashing a custom kernel and a HSPA capable modem). With this mod the H icon will be displayed.
Loggik said:
Oh, that's interesting... I didn't know that! I thought I was getting just 3G for the first few days I had my phone.
Click to expand...
Click to collapse
AT&T calls both UMTS and HSDPA "3G." My old phone had a "3G+" icon for HSDPA.
Confirmed!
Confirmed working on Captivate JI6.
You rock!.
Thank you very much .
Related
I have an HD2 Prototype with 320MB Ram size .. when i want to run android his blocked on "jumping to kernel" all i have to do . i think is to modificate startup.txt with my memory size
Original is :
set mtype 2524
set ramaddr 0x11800000
set ramsize 0x1e400000
set initrd_offset 0x00a00000
set KERNEL zImage
set initrd initrd.gz
boot
Video - http://www.youtube.com/watch?v=b5E1aATY8Mw
CPU -qualcomm(r) 8250B
Speed - 1024 MHz
RAM size - 320 MB
Flash size - 512 MB
Data bus - 32 bit
Storage size - 234.14 MB
something diferently ?
what to do please help !
Post you're question regarding the build you downloaded in the already open thread you downloaded it from. or in the q&a thread, or possibly in the disscussion thread... Also search as you'll see others have had the same issue as you in other threads.
denny_the_one said:
I have an HD2 Prototype with 320MB Ram size .. when i want to run android his blocked on "jumping to kernel" all i have to do . i think is to modificate startup.txt with my memory size
Original is :
set mtype 2524
set ramaddr 0x11800000
set ramsize 0x1e400000
set initrd_offset 0x00a00000
set KERNEL zImage
set initrd initrd.gz
boot
Video - http://www.youtube.com/watch?v=b5E1aATY8Mw
CPU -qualcomm(r) 8250B
Speed - 1024 MHz
RAM size - 320 MB
Flash size - 512 MB
Data bus - 32 bit
Storage size - 234.14 MB
something diferently ?
what to do please help !
Click to expand...
Click to collapse
joshkoss said:
Post you're question regarding the build you downloaded in the already open thread you downloaded it from. or in the q&a thread, or possibly in the disscussion thread... Also search as you'll see others have had the same issue as you in other threads.
Click to expand...
Click to collapse
ok i spoke with @ denny_the_one and his situation is a bit specific.
Apparently his HD2 is a prototype and he needs assistance getting the memory paramaters on the startup.txt correct so he can boot android.
So i'm reopening the thread if somone can assist him with getting the correct parameters for his HD2, much appreciated
@ denny_the_one: Best of luck
Had the same problem, chanigng the startup parameters won't help, since it seems the memory mapping is totally different than the no-Prototype.
I found a solution though, selling it and getting a commercial one.
uh .. why .. :| i love my phoneee ) nnooooo another solution !
.. how can take contact with one developer of android ?
denny_the_one said:
uh .. why .. :| i love my phoneee ) nnooooo another solution !
.. how can take contact with one developer of android ?
Click to expand...
Click to collapse
}
check the IRC channel, wich i did already some time ago, they told me to wait till a full stable release for the commercial phone was released, and then they might try to make it work on the prototypes
and we have to wait ... until hd3 it's out .. !! i think the only version it's to sell it .:| and buy another one compatible ..
My question is... how did u manage to get a prototype HD2?
Sent from my HTC HD2 running DarkStone HD2Froyo v1
mr_billionaire said:
My question is... how did u manage to get a prototype HD2?
Sent from my HTC HD2 running DarkStone HD2Froyo v1
Click to expand...
Click to collapse
Ask no questions and you'll be told no lies
Prototypes devices are NOT supported by Android. Sorry.
Even if you able to run, it will be buggy and luggy.
There no plans to support prototypes devices (at least in my plans). Sorry.
ok .. off sell and buy another .. :| thnx cotulla for answer !
i have a cousin in netherlands who sent my this phone..
i hope u have the balls to sell it as a prototype and not tryna scam som 1
the only problem for this phone it's because has just 320 mb .. don't worry i have balls ..
denny_the_one said:
the only problem for this phone it's because has just 320 mb .. don't worry i have balls ..
Click to expand...
Click to collapse
HE's gonna trade it with me
I bricked my last prototype, now chance for a new one
lol.. selling it as a protoype isnt difficult if there are people who are looking for prototypes.. not many people are onto the news that android is alive and kicking on hd2 unless they are here on xda.. i believe there are many people who are hd2 users who have already jump ship coz winmo isnt their cup of tea after trying desire or legend.. and not to forget samsung s series..
maybe buy a broken hd2 and preform a memory upgrade
erikvario said:
maybe buy a broken hd2 and preform a memory upgrade
Click to expand...
Click to collapse
This way he won't have the Security Unlocked anymore.. And that's the whole point of the prototypes
The stock ROM caps off at a 150kb upload. That sucks. Anyone wanna run a speedtest and post results depending on ROM? Looking for a ROM with uncapped 4g upload basically.
thnxnadvnce
Try the governer killer in viper's trinity rom
Sent from my SPH-D700 using Tapatalk
Is that 150k bits per sec or Bytes per sec? The system (Clear network) should cap Sprint customers at about 1M bps ~= 125k Bps upload speeds regardless of device type or ROM, and the most I've got regardless of ROM is 1175k bps ~= 147k Bps.
Please post questions in General section.
Yea its 150kB/s upload. So it doesnt matter eh? I figured it could differ from rom to rom. Oh well case closed.
RushAOZ said:
Yea its 150kB/s upload. So it doesnt matter eh? I figured it could differ from rom to rom. Oh well case closed.
Click to expand...
Click to collapse
It probably would matter if there wasn't an upload cap placed on it ...
Very true sir lol
Sent from my SPH-D700
guys can we se this thread for the development of 720p on hd2 and android? the old thread http://forum.xda-developers.com/showthread.php?t=991249 seem that isn't more updated
anyone has infos about the development of this important feauture? wp7 has this feauture but i love android and wp7 can't be installed on sd card and i want keep android on nand
let we know guys please!
thank you (please don't move this thread)
There is hope mate, i read somewhere on xda threads that the new magldr 2.0 may bring support for 720p also in android...no one knows the release date for it , so please don't ask..just wait.
If by chance you feel a little inpacient, buy yourself a good class 10 card and run android from that. (with WP7 on nand).
i already have a class10 card, but i know that on nand android is better
so i will use only sometime wp7 on nand and everyday android on sd? i think that is a poor solution, i hope that this info of magdlr 2.0 is true!
another info is: using android on sd card everyday can damage the sdcard? will be more slow than nand? or consume more battery?
Thanks to the bad lens and sensor, the quality wouldn't really be any better anyways.. Our HD2 turns 2 years old soon, it's time for a new phone!
I'm thinking HTC One X.
djsolidsnake86 said:
i already have a class10 card, but i know that on nand android is better
so i will use only sometime wp7 on nand and everyday android on sd? i think that is a poor solution, i hope that this info of magdlr 2.0 is true!
another info is: using android on sd card everyday can damage the sdcard? will be more slow than nand? or consume more battery?
Click to expand...
Click to collapse
using android on sd card everyday can damage the sdcard: your sd card is used more so it will have shorter life then used as Nand.
will be more slow than nand: yes, there is good difference in speed, responsivity and less freezing issues on Nand
consume more battery: Again yes, cause your Sd card will be more active and other reasons.
djsolidsnake86 said:
guys can we se this thread for the development of 720p on hd2 and android? the old thread http://forum.xda-developers.com/showthread.php?t=991249 seem that isn't more updated
anyone has infos about the development of this important feauture? wp7 has this feauture but i love android and wp7 can't be installed on sd card and i want keep android on nand
let we know guys please!
thank you (please don't move this thread)
Click to expand...
Click to collapse
Thread reported, as previously said, it is fixed and will be released soon. If you can't wait then fix it yourself
What in the world do you mean by "thank you (please don't move this thread)"... questions can be news and development together... hmm.
Rick_1995 said:
Thread reported, as previously said, it is fixed and will be released soon. If you can't wait then fix it yourself
What in the world do you mean by "thank you (please don't move this thread)"... questions can be news and development together... hmm.
Click to expand...
Click to collapse
This thread is no need more but im thinking when "will be released soon" !
and some info i have (by Coolexe - thank):
ohh sorry bro maybe i miss this msg...really sorry bro...
3.0 and 3.5 r using different way...other than snq enabled 3gp and mp4 Codecs option on camera.apk for working camcorder bcoz i remember Desire HD using different mp4 Codec for recording video but Desire using different mp4 Codec...thats why...also i forget how to do that coz now everyone using sense 3.5 rom inserted of sense 2.1...
Click to expand...
Click to collapse
EDIT: in Froyo (sense) just need for fix (CameraThread.smali):
invoke-static {}, Lcom/android/camera/DisplayDevice;->supportQCT8x50()Z
move-result v9
const/4 v10, 0x1
if-eq v9, v10, :cond_8
invoke-static {}, Lcom/android/camera/DisplayDevice;->supportQCT7x30()Z
move-result v9
const/4 v10, 0x1
if-ne v9, v10, :cond_d
Click to expand...
Click to collapse
1.Why you put [DEV] as prefix when heres is noting but bla bla bla this is just lame.
2.WRONG section for discuses.
Try this:
[19 Jan 2012] AmeriCanAndroid AOSP HD2 GB2.3.7 CM7.2 | bk2sdext [KERNEL:ACA0114-35]
Previous Releases:
...
01.11.12 - Update:
-kernel updated to latest from warrenb and marc.720 video recording should now work flawlessly.
-other updates in kernel (needs kernel changelog)
-cm code updates from jan 02 to jan 11
-fixed bk2sd (shutdown.d/* issues) for clk users
...
I don`t try.
so there is 720p in that rom?
djsolidsnake86 said:
so there is 720p in that rom?
Click to expand...
Click to collapse
man, nobody responded to you on that thread coz the answer was already there.
Now you started a new thread and you seak for different answer.
Somebody gave you hope that ACA should have that feature enabled, and the only thing that you care about is somebody else to test for you.
Dont be lazy and interested at the same time.
Thanks to the bad lens and sensor, the quality wouldn't really be any better anyways.. Our HD2 turns 2 years old soon, it's time for a new phone!
Click to expand...
Click to collapse
i guess you bought your HD2 when all other QSDs where on the market with android.
Some of us, got it months earlier, making HD2 2yrs and 4 months old.
BLAST3RR said:
Thanks to the bad lens and sensor, the quality wouldn't really be any better anyways.. Our HD2 turns 2 years old soon, it's time for a new phone!
I'm thinking HTC One X.
Click to expand...
Click to collapse
Oh yeah... The HTC One X seems to be legendary as of now. Me planning the same phone, after my HD2 is dead i.e
since ICS requires new mods especially with v6, what was your settings so far?
*Memory Manager settings?
*Sysctl Tweaks?
*VM heapsize?
Thanks its a survey especially those who are using ICS on EVO 4g. Im using TB-ICS MC1
thanks
HTC officially announced the H/K edition of the wonderful M8.
Look at that lovely black and gold combination!!!!!
You get free H/K AE-S headphones and a HUGE discount for the Onyx Studio speakers + free 6 months Spotify Premium...
Whhyy did they make it Sprint only (
this makes me soo sad
http://www.gsmarena.com/htc_one_m8_harman_kardon_edition_goes_official_for_sprint-news-8407.php
IMO that gold and black is ugly but like I said before exclusives kill companies and pissed off the loyal customers.
Sent from my HTC One_M8 using XDA Premium 4 mobile app
b0gd4n said:
HTC officially announced the H/K edition of the wonderful M8.
Look at that lovely black and gold combination!!!!!
You get free H/K AE-S headphones and a HUGE discount for the Onyx Studio speakers + free 6 months Spotify Premium...
Whhyy did they make it Sprint only (
this makes me soo sad
http://www.gsmarena.com/htc_one_m8_harman_kardon_edition_goes_official_for_sprint-news-8407.php
Click to expand...
Click to collapse
at the worst it looks like the clarifi tech could be extracted and baked into ROMs :fingers-crossed:
seems like it's the exact same phone from a hardware perspective, except for the color option. i probably would not have gotten it anyway
slackercow said:
at the worst it looks like the clarifi tech could be extracted and baked into ROMs :fingers-crossed:
seems like it's the exact same phone from a hardware perspective, except for the color option. i probably would not have gotten it anyway
Click to expand...
Click to collapse
there is a DAC change stated there, alongside the clarifi tech app. Hopefully it is only software and not hardware as well.
However, I absolutely dig the colour combination. Also the H/K headphones are infinitely superior the ones provided in the box, and the Onyx speakers for $99 is just a giveaway...
That is effin sexy
HTC UltimEight ?
They mention that there is a 24bit 192kHz DAC in the Harmon Kardon edition but isn't this also present in the standard m8 too? I've not been able to find this out since having my One.
The engadget article seems to indicate it's all software.
l7777 said:
The engadget article seems to indicate it's all software.
Click to expand...
Click to collapse
Yeah but later on they say "The tweaked M8 can also play 24-bit, 192kHz lossless .FLAC files" insinuating that the regular one can't.
WESBAR said:
Yeah but later on they say "The tweaked M8 can also play 24-bit, 192kHz lossless .FLAC files" insinuating that the regular one can't.
Click to expand...
Click to collapse
Asside from a lack of player, I don't think there's anything stopping the M8 from playing flac files now. Likely the requisite player will be included with the HK edition.
I got mines enabled in default xml now I will watch everyone ***** about not having it on their phone. If u want it get Sprint lol
Sent from my HTC One_M8 using Tapatalk
So kinda on the fence with this look . . .I'm only gonna really be slightly jealous when they bring a all black version out . . .apart from that is this all software and could end up being ported to regular M8's ???
Sent from my HTC One_M8 using XDA Premium 4 mobile app
daorderdillon said:
I got mines enabled in default xml now I will watch everyone ***** about not having it on their phone. If u want it get Sprint lol
Sent from my HTC One_M8 using Tapatalk
Click to expand...
Click to collapse
care to explain what that means?
slackercow said:
care to explain what that means?
Click to expand...
Click to collapse
Judging from past posts...not much...
dont mean nothing by it im just saying its on the phone and i hate to see ppl cry about when someone pays for exclusitivity
No doubt there will be an upload of this software on here at some stage
Sent from my Nexus 7 using Tapatalk
daorderdillon said:
dont mean nothing by it im just saying its on the phone and i hate to see ppl cry about when someone pays for exclusitivity
Click to expand...
Click to collapse
Bro, next time just post with facts (reference what you are talking about, what steps you followed & where you found them) so people understand what you are talking about. You mention an xml that is part of a different thread, so some people here will not know what you're talking about.
This is what he is referencing: http://forum.xda-developers.com/showpost.php?p=52197895&postcount=74
bimmerbot said:
Here, I’ll consolidate the thread for you.
STEPS TO ENABLE HARMAN AND MUSIC CHANNEL AND DISABLE BOOMSOUND
1. Using a root browser, find: /system/customize/ACC/Default.xml
2. Open it with a text editor.
3. Under <app name=”Android Multimedia”>, find the bold line below and change it from false to true
<app name="Android_Multimedia">
<item type="integer" name="has_default_alarm_volume">6</item>
<item type="integer" name="has_default_media_headset_volume">7</item>
<item type="integer" name="has_default_media_speaker_volume">10</item>
<item type="integer" name="has_default_ringtone_volume">5</item>
<item type="boolean" name="spport_screen_light">false</item>
<item type="boolean" name="support_a2dp_safevolume">false</item>
<item type="boolean" name="support_camera_enforce_shuttersound">false</item>
<item type="boolean" name="support_customer_proxy">true</item>
<item type="boolean" name="support_customization_fallback">false</item>
<item type="boolean" name="support_harman">true</item>
<item type="boolean" name="support_miit_request">false</item>
<item type="boolean" name="support_music_ringtone">false</item>
<item type="boolean" name="support_outdoor_mode">false</item>
<item type="boolean" name="support_qcelp">false</item>
<item type="boolean" name="support_theater_effect_logo">false</item>
<item type="integer" name="use_ringtone_for_notification">1</item>
4. While you’re in there, go to the bottom of the file, and find this line to disable Boomsound so it doesn’t compete with Harman. Change true to false.
<item type="boolean" name="support_boomsound_effect">false</item>
5. Eight lines below that, you can enable Music Channel if you want (not necessary, and by some accounts, not fully functional), by changing false to true.
<item type="boolean" name="support_music_channel">true</item>
Save the changes, exit the file, and reboot, Then check your system settings again to see Harman (and Music Channel if you enabled that).
Click to expand...
Click to collapse
GSLEON3 said:
Bro, next time just post with facts (reference what you are talking about, what steps you followed & where you found them) so people understand what you are talking about. You mention an xml that is part of a different thread, so some people here will not know what you're talking about.
This is what he is referencing: http://forum.xda-developers.com/showpost.php?p=52197895&postcount=74
Click to expand...
Click to collapse
Working :laugh:
mwang said:
Working :laugh:
Click to expand...
Click to collapse
I did this the other day but it had no effect.. lol
pham077 said:
I did this the other day but it had no effect.. lol
Click to expand...
Click to collapse
No it dont
Sent from my HTC One_M8 using Tapatalk
Th necessary files for Harman and kardon aren't inside yet so no effect if enabling that
Gesendet von meinem HTC One_M8 mit Tapatalk