yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] jubeh:
Where are these settings written to when loaded? I bet it's somewhere in /data, but where?

The problem is that I'm trying to test a couple of settings, but if the old settings somehow leave traces the tests will not be as reliable, so I'd like to be able to erase the place to where those settings are stored at.

I'm also wondering. What happens when you remove all lines regarding to network class/speed and load it onto a first boot (or clearing the settings like I mentioned before). Will the phone automatically make up settings for it? Will it maybe pick up the best speed for your network?

Also, it seems to be pretty much accepted that gprs-class 12 and hsxpa category 2 are allowing faster D/U speeds where available, and the people not seeing an improvement means that their market/provider is really offering all they have to offer.

Then, I'd have to say that it's safe to say that leaving the settings at 2 and 12 is the best choice, it's not detrimental in any way whatsoever and, when available, it might even help.

Last, I want to echo what somebody said earlier about the chart of settings amon_ra posted: How do we know which settings (hsdpa/hsupa) work best with our carrier? For example, I'm T-Mo US and both hsxpa 2 and 1 give me a consistent ~900k down, but then again, it might be due to residual settings.
[G1 Android Development] jubeh:
Yeap. There's some contamination of the test data going on. I set hsxpa to 1 and rebooted, baseband showed "H". Then I removed both lines and rebooted, baseband was still "H". Then I set hsxpa to 2 and rebooted, baseband changed to "U". I was expecting baseband to go back to "H" after removing the lines, but it didn't.

build.prop and then device.prop are read when the device first boots. Everything in the .prop files is overrides for either previously defined settings or information for settings that haven't been yet applied.

When we set hsxpa to anything, that gets written somewhere in /data and if we remove the lines the build takes the setting from what's already in /data. When we change the .prop file, then the system sees that the property is different and corrects it.

I wonder what happens when the prop doesn't exist and it wasn't previously defined or written to /data. It has to be done from a clean install. Guess I'll test that next.

I'll also try to track down where those settings are being tossed into (I know where the wifi settings are written to, maybe I'll find the network settings somewhere there too) so that I can erase that instead of having to test from clean installs.
[G1 Android Development] aceponcho86:
will the hack work for someone running the "death" SPL? and if so, my next question would be is there a specific firmware that the hack is compatible with the either of the current roms i am using (Eclair_2.0.1-v1.2 or Mlign's Hero v3.2b)?

i'm asking because i see the hero rom i use says it is running on 1.5 firmware, and the eclair rom says i'm using 2.1.

Black Tmobile G1 running Mlign's Hero v3.2b (currently trying out eclair 2.0.1-v1.2)

8 gb class 4 sd w/ apps2sd 512 partition

128 linux-swap

ra-dream 1.5.2 recovery

"danger" spl
[G1 Android Development] Goonzy:
1:10 --- for higher download speeds and 2:12 for slighty lower dl speeds and higher upload speed... u can edit those two files using the app ,notepad editor in sufbs app.. i wrote a script so when iam dl **** i us 1:10 auto then when iam gaming , playin cod6 on my lappy it uses 2:12......very usefull **** thankx.:D
[G1 Android Development] defconoi:
Ok a google search wasnt very helpful in defining these settings, I would like to find the optimum settings for my area, is there a good way I can find out? And is there a chart defining what each of these settings do exactly? I enabled these settings and got a 50kbps boost, I wanna push for more...
[G1 Android Development] defconoi:
more hidden settings

please delete
[G1 Android Development] defconoi:
more hidden settings

Here is some more Hidden settings, anyone feel like experimenting :P

Can we uncap? lol
[G1 Android Development] an0therus3r:
Ok, i stumbled on this thread by browsing the web and thought lets give it a go.

I pulled build.prop from my Hero MCR3.0 and looked at the file but the only thing i see is:

Do i need to add the mentioned values myself or should they already be there before changing anything ?
[G1 Android Development] scrapin240:
b4

up max: 290.1 kbits/s

d/l max: 142.1

after script (thanks for making it easy!!) 1st reboot

up max: 399.9

d/l max: 136.2

2nd reboot

up max: 569.1

d/l max: 141.3

performed with xtremelabs speed tests from market

definitely worth it! Thanks again for the trout zip file script!
[G1 Android Development] an0therus3r:
Anyone can tell what attributes i need to give to build.prop?

I forgot to check before i overwrite it :(

drwxr-xr-x 1 0 2000 2048 Aug 1 2008 bin

-rw-rw-rw- 1 0 0 2736 Jan 8 18:05 build.prop
[G1 Android Development] whample:
Perhaps this was changed by CM4.2.12.2 but when I pulled my build.trout.prop I'm already showing ro.ril.hsxpa=2 and ro.ril.gprsclass=12. Verifying In my phone info I do show 62.50S.20.17U_2.22.1.26l.

I don't know....cyan is sneaky like that and fixes stuff sometimes. I didn't find it in the change log but I didn't look too closely.
[G1 Android Development] jmhalder:
I suppose its worth noting, I'm not seeing those settings in the build.trout.prop file, but i'm running xROM's eclair... not that i'll see a difference, since i'm running 2g only (by device limitation) on AT&T, dont know if GPRS class 12 is even something that AT&T would use. different location for this setting in eclair?
[G1 Android Development] staticshadow:
yep, same here. pulled mine and the mods were already there. running latest super d
[G1 Android Development] bruce_wayne:
Was probably a very handy script when written but now its not needed. Tried it anyway just to see and the results were drastic. My download speed went from 1464kbps to 348kbps. And upload speed from 463kbps to 296kbps.

Good find at the time.
[G1 Android Development] tweakistry:
before

590 d/l 406 u/l

after

600 d/l 413 u/l
[G1 Android Development] wagz:
oops. wrong thread.
[G1 Android Development] xillius200:
So around 2000kbps is a good speed :)
[G1 Android Development] jonnybowley:
download speed

before 148.5 kb/s

after 390.9 kb/s

upload speed

before 149.1 kb/s

after 142.4 kb/s

this is much appreciated!
[G1 Android Development] samaral:
Using Singtel 3G

Hi everyone,

with the following settings from this thread :

It had helped increase my thoroughput on SINGTEL 3G from (d/u) 300kbps/280kbps (see screenshot 1)

Currently using WG Y 2.6 donut.

Cheers! and thank you everyone for the tips.

----

Edit :

After an hour I tried to do a test again. Attach are my speedtest scores.
[G1 Android Development] crypysmoker:
people.. Im bumping this because it helped me today on newest WG. I went from edge all the time with a burst of 500kbps 3g... I added the script from here with Amen ras setting (page 11-17 somewhere lol) and rebboted 3 times. I now get a topped out 1mbps in 3g with a 123kbps upload.
[G1 Android Development] drawz:
Can someone clarify if this mod is still useful? Using SuperD 1.9.2 on AT&T 3G with an unlocked Rogers Dream (EBI0 FWIW).
[G1 Android Development] iluvmymytouch:
Doesnt seem to be. I cant get it to load.
[G1 Android Development] Super Jamie:
I thought I'd crosspost from the same thread in the Magic forums, as most people will miss it.

I have a Vodafone AU HTC Magic 32B with the 2 Radio running Dwang 1.17.1. Today I tried changing to ro.ril.hsxpa=2 and ro.ril.gprsclass=12 however this made no real difference to me. I copied the entire relevant section of the section in the build.prop MAGIC.zip attached in the Magic thread and noticed a huge increase in upload speed. The build.sapphire.prop file on my phone now looks like this:

ro.ril.hep=1
ro.ril.hsxpa=2
ro.ril.enable.dtm=1
ro.ril.gprsclass=12
ro.ril.hsdpa.category=8
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=0
ro.ril.htcmaskw1.bitmask = 4294967295
ro.ril.htcmaskw1 = 14449
ro.ril.hsupa.category = 5

I looked on my girlfriend's stock VF AU Magic (never rooted, provider DRC92 image) and found it contains ONLY ro.ril.hsxpa=2, ro.ril.gprsclass=12 and ro.ril.enable.a53=1 so I guess that's what made the difference to me. What does enable.a53 do? I have seen other numbers like enable.a54 in foreign (Italian, etc) Vodafone images too.

As you can see, the build.prop in the Magic thread contains some other stuff like forcing HSDPA category to 8 and HSUPA category to 5 however this seems pointless as the 32B Radio is a Category 5 device anyway, it should perform to its maximum potential providing it's on a Category 5 network. Does anyone know what hep, enable.dtm or htcmaskw1 do?

I'm a network engineer for a day job, the company I work for rolls out 3G connections in Cisco routers. We noticed a huge increase in speed when firmware became available to go from WCDMA to HSPA which is the same change this mod makes.

It seems the source of this mod's success is the fact that most ROMs are based off American provider images (or maybe the AOSP/HTC "safe" defaults?) which don't turn on HSPA. How ironic that so many people out there must be running rooted phones which aren't performing anywhere near their full 3G potential.

I hope all developers are aware of this and include these corrections in their ROMs.
[G1 Android Development] dnunez05:
AWESOME!:D i can finally stream HD without so many slowdowns!
[G1 Android Development] Booker-T:
Do you mean following your setting will improve the speed?
[G1 Android Development] Super Jamie:
I mean that Vodafone only consider ro.ril.hsxpa=2, ro.ril.gprsclass=12 and ro.ril.enable.a53=1 to be required for HSPA operation on their network. The other things people have added are maybe not required, I do not know?

It seems alot of ROMs come out with HSUPA turned off, or HSPA turned off altogether, so the phone falls back to the slower WCDMA profile. If your phone currently has either of these settings, and your network supports HSPA, then yes you'll notice a speed increase by turning them on. If your phone already has HSPA enabled or your network does not support HSPA then you will not notice any difference.
[G1 Android Development] MrBlueEyez:
Didn't make much of a difference to me, but i have to test it with the original build. I got 860 kbit down and 150 up. When i use getprop, i didnt see any modifications, so i guess it didnt take the .a53 for example
[G1 Android Development] sturmeh:
The latest cyanogenmod already has these modifications.
[G1 Android Development] xlinth:
tested on fasttest 3.0.3

tested with success on mt3g running fasttest

before:

down max 172.8

up max 76.9

after:

down max 273.2

up max 142.7

using xtremelabs speedtest on edge because of area i'm in
[G1 Android Development] MrBlueEyez:
Can you point out where these modifications are stated? As said, with cyanogen's latest, i couldnt find any of the mentioned, except ofcourse the ro.ril.hsxpa=2 & ro.ril.gprsclass=12

Any thought on the others props?
[G1 Android Development] Super Jamie:
You are right, CM only includes the two mods in the OP.

Vodafone include ro.ril.enable.a53=1 in their latest Australian ROM, that made the difference for me.

I will go bug some devs on Twitter to find the rest out.
[G1 Android Development] Jugstah:
Anyone have the original rogers values for hsxpa and gprsclass handy? I'm experiencing some weird network drops from time to time where only a reboot or enable 2g, wait then disable it will get me back on. I wanted to try changing the radio back to their values.
[G1 Android Development] Kainzo:
Does anyone know if Complete Eclair has these mods already?
[G1 Android Development] Shady Gambino:
WOW.

Before:

After:

G1

Enomther's TheOfficial ASOP 2.6.3

T-mobile USA

Los Angeles
[G1 Android Development] Kainzo:
I'm getting 3.20 mbps down and .20 up..

really like my down rate but the up is horrid.
[G1 Android Development] MrBlueEyez:
I still only touch 95 kb/sec on speedtest. Dunno why, because i can recall that i had over 200 a few months ago. Still can't figure it out why this has changed.

Just a simple thought? I have applied the settings using setprop... No changes in speed. Is this due to the new radio image i have patched a couple of weeks ago. Might be possible if you ask me, but i'm no expert.
[G1 Android Development] MrBlueEyez:
OK well i figured it out. Seems i had put those things in build.sapphire.prop instead of trout. When i changed the values i have seen an increase in my download, only my upload sucked. So i decided to play with some things.

In my area (Netherlands, T-Mobile) for the G1 only 3G (UMTS) is used. So i decided to change the value of hsxpa=2 to 0, made sense to me. Now, after a reboot, i still have the increase in download, and my upload is become normal.

Tests:

(kbps down - kbps up - latency [tested with speedtest.net])

959 - 348 - 129ms

960 - 449 - 129ms

956 - 442 - 130ms

Steady result, with hsxpa=2 i get an upload which is half to a third of above results. Any thoughts? I have applied all the mentioned changes to build.trout.prop
[G1 Android Development] Super Jamie:
I believe the phone applies anything in build.prop, then looks in build.sapphire/trout.prop depending on hardware. The idea of duplicating radio data in both seemed silly so I moved the radio settings into build.prop, works fine for me.

Interesting that dropping back to UMTS works better for you, I would have thought turning on HSPA would mean "try everything up to HSPA" so if the network only supports UMTS then it would settle on that.
[G1 Android Development] kutsuki:
Does this mod work for TMO USA users?
[G1 Android Development] w1ck3d_crx:
did not notice any differacne
[G1 Android Development] tnpapadakos:
no difference here either
[G1 Android Development] studjuice:
I am just about to reflash my phone, so I am going to do some testing. I'll update throughout the next hour or so as I get them accomplished.

I am using an unlocked mytouch on ATT, so I don't have 3G.

using both speedtest app for bandwidth and linpack for Mflops

CM:

speedtest

Forgetting to turn on "use only 2G networks"

153:200

201:107

122:105

With only 2G networks

169:105

212:107

210:101

using linpack

1.99 Mflops

2.03 Mflops

CM + OE:

speedtest

205:108

204:92

206:102

linpack

2.19 Mflops

2.29 Mflops

CM + OE + trout hsxpa=2:

speedtest

215:82

214:103

210:97

linpack

2.31

2.25

2.35

CM + OE + trout hsxpa=0:

209:100

210:121

210:102

linpack

1.69

1.75

CM + OE + JIT + trout

CM = Cyanogen Mod 4.2.15.1

OE = Open Eclair 1.3.0.1

JIT = Just In Time compiler for dalvik vm

trout = this
[G1 Android Development] MrBlueEyez:
You are right, for my G1 build.sapphire isn't used, so putting the settings there is silly. Have removed them and let them in build.trout

It is indeed interesting that dropping to UMTS is making it faster. I would like to hear an opinion of an expert on this. I will be testing the other options further, for now UMTS is the best setting for me, faster download and faster upload. Might be the weather that was playing with the speed, i don't know. At this moment UMTS is still best for me, but i will be moving a lot these days, so if i have the chance, i will test these settings as well on other places, to check if this makes any difference.
[G1 Android Development] MrBlueEyez:
Have you checked if the settings are applied? This was the problem i had before.

- Open terminal or use adb shell

- Type getprop | grep ril

- Check if the settings are applied
[G1 Android Development] tnpapadakos:
i did not...when i try this again i will definitely check

thanks
[G1 Android Development] velvetkittyn:
Decided to play around with this stuff a little this morning, and I thought I'd chime in with my $0.02 - and here in the Oklahoma City area I get decidedly better speeds if I change the hsxpa setting from 2 (where it defaults in CM) to 0.

hsxpa=2 gave DLs between 608-613 after 10 speed tests, and ULs of 379=390.

setting hsxpa=0 gives DL: 738-874 and UL: 297-376.

I'm testing hsxpa=2 with the ro.ril.enable.a53=1 option now, but with that, speeds are all over the place.. with the downstream speed ranging all from 150-893kb/s.
[G1 Android Development] w1ck3d_crx:
How do u change from 2 to 0?
[G1 Android Development] MrBlueEyez:
Change the value in build.prop (or build.trout.prop).

Anyway, over time i have a good speed on value 0. Will try to change it to 2 today, to see if it just was a temporary speed drop or if 0 makes a better speed over time than 2.
[G1 Android Development] giovannirm:
with 2bars of 3G

normal :

280 Down / 79 Up

420 Down / 68 Up

with hsxpa=2 :

1160 Down / 90 Up

935 Down / 173 Up

with hsxpa=0 :

648 Down / 334 Up

869 Down / 375 Up
[G1 Android Development] tnpapadakos:
So after seeing several peoples' results on this it seems pretty convincing that 2=better download speeds, and 0=better upload speeds

too bad we cant have both, like hxspa=0,2
[G1 Android Development] MrBlueEyez:
Well i have tried to change the value while running the phone, using setprop in Terminal, but this didn't make any difference, because the value of this setting needs to be set at boot.

I'm stuck with hsxpa=0, because i want the best upload speed. In my opinion, with a healthy uploadspeed and a browser like Opera, you can browse pretty fast. Will try to see the next couple of days if changing the value to 2 gives a better browsing and overall internet experience on my G1
[G1 Android Development] Android-Jeck:
I´ve found something in the build.prop of all Custom Legend ROM (for example in vega-legend-v09), that confused me...

Why are there such differences?
[G1 Android Development] javacody:
One thing i noticed is that setting it to 2 gives me better download speeds, but in areas where coverage is iffy, I actually get worse throughput and can"t even send sms messages?

It seems if I set this to 0, then it becomes much more reliable.
[G1 Android Development] RogerPodacter:
i just installed the latest cyanogen 5.0.7 to my nexus one, and now my HSUPA upload speeds are capped at 384Kbps. when i flash back to my stock ROM my upload speeds immediately jump back up to 1.4Mbps on all my speed tests.

but i'm a noob and have no idea how to change the file in this thread. could anyone direct me to a guide? and also does anyone know why cyanogen ROM has such slow upload speeds by default? thanks.
[G1 Android Development] automattic:
Thought id give some feedback.

Full bars on both tests, tests taken within minutes of each-other

Before

Down-1.11mb

Up-.22mb

After mod

Down-2.01mb

Up-.25mb

Sorry didn't test latency.

Seems much faster tethered as well.

we will see if it affect performance in low coverage
[G1 Android Development] wuziq:
does anyone happen to have the stock tmobile USA gprsclass and hsxpa values for their latest radio?

btw, my before and after results were similar, ~1mbps down, ~875kbps up.

i was hoping to get the stock values because my 3g was pretty solid before i flashed to super e, whereas post-flash it seems much slower (despite the decent speedtest results.. trying to eliminate causes for the slowness).

thanks!
[G1 Android Development] will4958:
Ok. I've tried this thing about two or three times now and I keep getting the same result... the switch seems to work but I loose phone function. I have a G1 running the latest fully functional Cannon Complete Eclair build, and after applying the switch reboot I get an error message that says android.process.acore and I no longer have the phone function, and by this I mean I can't make or receive phone calls. I did enter the command exactly as displayed in the link in this thread. Has anyone else experieinced this or is it just me. I think it worked at least a little, but it's not worth it if I loose phone function.
[G1 Android Development] RogerPodacter:
what exactly did you change in your build prop file? if you have a G1 it looks to have the same hardware as the nexus one, 7.2Mbps download, 2Mbps upload. if you set the value to:

ro.ril.hsxpa=2

then you are enabling the full 7.2Mbps down and 2Mbps up. but if you set it to:

ro.ril.hsxpa=1

then you are limiting (or capping, really) your connection at 3.6Mbps download and 384kbps upload.

basically hsxpa=2 is enabling7.2 HSUPA. and hsxpa=1 is only enabling standard 3.6 HSDPA.
[G1 Android Development] edb0y:
Changed settings to ro.ril.hsxpa=2 and ro.ril.gprsclass=12 via Root Explorer, rebooted, saw baseband changed to U from H

Test Conditions

ROM: CM 5.0.8-t1

Location: Bristol UK

Time: 10:30-11am

Signal: 3G Full 4 Bars

Before

Dl	Ul	Ping

1908	367	(172)

1869	399	(170)

1874	419	(159)

1891	424	(156)

1888	410	(162)

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

Average

Dl	Ul	Ping

1886kbps 404kbps (164)ms

After

Dl Ul Ping

1863	386	(160)

1849	378	(158)

1877	421	(154)

1846	420	(165)

1853	422	(159)

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

Average

Dl Ul Ping

1858kbps 405kbps (159)ms

I would say there was no statistically significant change.
[G1 Android Development] Trial&error:
does this work with CM5.0.x?
[G1 Android Development] Ace42:
I tried it on SuperE and received lower 3G speeds that were horrid(took forever to load engadget).
[G1 Android Development] RogerPodacter:
Your upload speeds are so low and close to 384 kbps that something else is limiting your throughput so its difficult to notice the improvement. Probably network congestion. Here in my area I hit 2 mbps upload always, so when I set the value to hsxpa =1 my upload immediately gets capped.

Also I did not change the gprs value. I only changed one thing, the hsxpa to 2.
[G1 Android Development] Trial&error:
humm i saw a improvement by going from radio 2.22.1926i (500/385) to ---> 2.22.23.02

wondering if i could get more speed then 542kbps down and 426 kbps up
[G1 Android Development] txspaderz:
2G:

Before:

Download: 210kbps

Upload: 109kbps

After:

Download: 206kbps

Upload: 186kbps

2G on AT&T G1 in Houston
[G1 Android Development] tnpapadakos:
2G on AT&T G1 in Houston

therein lies your problem, i believe
[G1 Android Development] CoolWheelChair:
Before:

Download: 572kbps

Upload: 406kbps

After:

Download: 3256kbps :D

Upload: 630kbps

very pleased with the results.

it didnt work at first but i restarted my g1 a few times n it work.

running the latest superD rom.
[G1 Android Development] LucidREM:
build.prop

you could also do this:

TMO US

# sed \
-e 's/\(ro.ril.hsxpa=*\).*/\11/' \
-e 's/\(ro.ril.gprsclass=*\).*/\110/' \
-i /system/build.prop
# reboot

TMO EU

# sed \
-e 's/\(ro.ril.hsxpa=*\).*/\12/' \
-e 's/\(ro.ril.gprsclass=*\).*/\112/' \
-i /system/build.prop
# reboot

the setting can be modified to whatever you need .. these commands are "on-the-fly" meaning no text editor .. no adb .. no PC
[G1 Android Development] Ciborg54:
not working

i typed the commands correctly and had the right files on the root of my sdcard. my g1 restarted and i got a message saying my gapps could not be started. i could not view youtube videos and i tried to download market apps but they wouldn't download. i ran troutrestore.sh and now everything is workin fine. i have T-mobile 3g and i'm running CompleteEclair. can anyone help me?:confused:
[G1 Android Development] tnpapadakos:
in land o'lakes, florida

i think they threw the switch on the hsdpa+, i never had more than 900kbps up here
[G1 Android Development] sleepyfu:
get a root explorer of some kind, estrongs file explorer for example (check root options and mount system writable under settings), find build.prop under system folder, open it in text editor, find those lines and edit them manually.
[G1 Android Development] tnpapadakos:
thats what i did, sleepyfu, and then immediately rebooted 4 times, before doing anything else