yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] LuvinAndroid:
Hi Everyone,

Using the SkeletonApp default code, how would I insert a void or whatever (sorry not knowing the terminology yet) that would run each cycle of the program like a counter or something?

Just keep it simple, just a "run this always" loop while maintaining the button functions would be great.

OR-

I did read something on the web that said Java/Android does not use a main run void() like C#,C++ and others do, but in fact it uses more than one function/class or something as it's loop.

Is that true? :confused:

EDIT: why is this in the windows forum, I posted in the Android...since a mod missed it I will re-post in Android.
[G2 and Desire Z General] Gattling:
T-Mobile throttled my speed on my G2 which sucked.... I was exploring the the system files on the device with root explorer and noticed a folder that said throttle and delted it after switching to R/W and my speeds instantly came back. Can someone else try and see if they have the same results my speeds were right around 2mb down before now I'm back around 8-9mb
[G2 and Desire Z General] sna66:
Whats the location of the folder?
[G2 and Desire Z General] Gattling:
Data/ system/ Throttle
[G2 and Desire Z General] TL24:
Hhhmm interesting, I've deleted the folder but I have ****ty reception here at work "EDGE" so i'll have to try this later on my lunch break.
[G2 and Desire Z General] Gerson2407:
Tried it, I still only get 2-3 mbps.
[G2 and Desire Z General] dhkr123:
I'm not sure I believe this... that would be the lamest implementation of throttling I've ever heard of. Dependent on the phone OS? Yuck. They'd have to be genuinely retarded to implement it like this.
[G2 and Desire Z General] Gerson2407:
I noticed mine came back after a reboot. Went to look for it again and there it was. Data/system/throttle.
[G2 and Desire Z General] Christopher3712:
This would be incredibly convenient and extremely amusing if it were the case. I deleted the folder in my directory and got pretty much the same crappy speeds that I have at my job (600 down, 100 up). I'll have to wait until I get home for further testing. Hmmm... I'm going to reboot and take a good look at those files. I wonder (assuming these truly are referenced in a data throttle) if the files can be modified so they're not replaced upon reboot?

***Edit*** Opening file /data/system/throttle/698285108 reveals values of

1:6:29006:982164224:198106875:0:0:0:17008:166777478:21947529:0:0:0:2:1290751200000:1293343200000

***Edit2*** Rebooted and opened directory again, to see /data/system/throttle/temp which revealed different values

1:6:0:0:0:0:0:0:0:0:0:0:0:0:0:1291140294223:1291140294223

ran a speed test and obtained basically the same results I had before. However, after the test, I checked the directory again and found a new copy of the old file - /data/system/throttle/698285108, which had the value of

1:6:382479:0:0:0:0:0:52205:0:0:0:0:0:1:1290751200000:129334320000

When I ran few speed tests after I saw this file and saw significantly lower speeds (300-400 down, 50 up). However, I'm still at work and my signal often fluctuates, so I cannot attest to the validity of these trials. My question is, if this directory is created in the G2 and the MT4G, does it exist in pre-HSPA+ devices? Does the Nexus One see throttling like we do? If not, that could give strength to the theory that throttling is software-based and not necessarily controlled at the data source. If I were T-Mobile, it would make reasonable sense to me to send out a signal (or command if you will) to an individual GSM device once conditions were met (exceeding data limit) that would force the device to throttle down. This raises the idea that the signal would have to be sent again with a reverse command once that billing cycle is completed. Is this practical? We all probably have different billing cycles (unless you're on a business account). I'm just speculating here, so try not to put too much stock into this.
[G2 and Desire Z General] floepie:
You could try putting a bit of non-recognizable gibberish in there and change its permissions so it can't be overwritten.
[G2 and Desire Z General] sino8r:
Lol! you arent being throttled! throttled speeds are 50-60kbps...
[G2 and Desire Z General] sino8r:
Yeah, EDGE/GPRS isnt affected by throttling. In fact, edge becomes much faster of the the two when throttled. Stupid 3G throttled at 60kbps....
[G2 and Desire Z General] sino8r:
Deleting the folder entirely might work.... I know I saw some references to throttling in services.jar when themeing the other day. could unpack the jar and delete them and repack and push.

The data folder is just logging stuff so that wont work. services.jar is what needs to be attacked.
[G2 and Desire Z General] Gattling:
I'm a heavy data user I'm well over the 5 gig data throttling cap check your data usage you might not be throttled, checking back the file was rewritten but with different values. Checked on my vibrant and the folder was not present maybe just in the 4G devices so far.
[G2 and Desire Z General] Gattling:
Also noticed that if your tethering to another mobile device for instance I use my vibrant strictly as a tablet tethered to my G2 they don't notice that your tethering whichis useful if you have multiple devices and want to pay only one data plan.
[G2 and Desire Z General] screwthe49ers:
Don't you think if the throttle file actually throttled your data speeds, it would have been named something besides "throttle?"
[G2 and Desire Z General] sino8r:
They claimed deleting it un-throttles data and it regenerates following a reboot.... so, yes they named it throttle and it works. there is more to it that just that folder but its good enough for temp. use...

What in the world would you expect it to be named? Secret folder or some code name, lol? Remember, the security on this phone is so high... I doubt they even thought to try and hide it.
[G2 and Desire Z General] funkeee:
Those of you who are deleting the throttle file, are you rooted?
[G2 and Desire Z General] sino8r:
They would have to be in order to delete it from the data folder...

Good news everyone! (lol! I love the professor from Futurama;)) I found where everything is taking place. In services.jar (system/framework), there are several lines referring to throttling. I gonna see what I can edit out and will need someone is somewhat knowledgeable enough to push the services.jar into their system/framework folder. I would do it myself but I'm not throttled ATM. I will be later this month, I sure so if I have to wait.... I will. Also, when I have it ready... I need the name of your ROM so I can get the correct services.jar. Mine is themed so I doubt mine will match your phone.
[G2 and Desire Z General] sino8r:
TESTER!

...........
[G2 and Desire Z General] sino8r:
I'm beginning to wonder if you where even throttled... 2MB isn't throttled. The throttle speed is 60kbps. Did you get the throttled text message? I know for sure because it happened to me last month. I was at 9-12MB and got the text message. Then was throttled to 60kbps... It disappeared at the beginning of the new bill cycle.
[G2 and Desire Z General] Gattling:
Recived the text a few days ago my speeds dropped to like 1-2 mb from what I was normally getting 7-9 mb
[G2 and Desire Z General] tankmorph:
You're lucky you got throttled to "only" 1-2mbps speeds. After I went over 5GB last month, I was throttled to 60kbps. I could get 160kbps or so by switching to 2G only.
[G2 and Desire Z General] sino8r:
Same here... thats the usual throttle speed... hey, maybe they changed the throttle speed! that would be nice because 56k is insane.
[G2 and Desire Z General] slinky1914:
Here is a screen shot from my.tmobile.com account that shows how much data I have used. That is from this morning so I think I have gone over the 5Gb cap my speeds just havent been throttled yet.

So I think they track it thru your account.
[G2 and Desire Z General] Gattling:
This only worked untill I rebooted my device.......
[G2 and Desire Z General] sino8r:
Try pushing my services.jar after making a Nandroid backup of course. It should kill the throttle completely. It's on page 2 of this thread...
[G2 and Desire Z General] Chadastrophic:
Silly people, it's so easy to defeat being throttled. Totally stock MT3G and MT4G. No I won't tell you how to do it. I don't need the hole patched by T-Mobile quicker than it probably will be.

I'm on HSPA+ in Birmingham, when I get throttled I drop to 50-60kb, turn off 3G and I get double those speeds 100-120kb, do my trick and I'm back up to 5-10mb. My billing cycle ends in a hour and I'm at 16GB data so far.
[G2 and Desire Z General] Levito:
^ Proof or it didn't happen.

**edit**

I've been working my own voodoo to deal with the throttling issue. Last month I went up to 37gb data usage, hell I could probably screen cap that from my account summary. I have been trying to pinpoint the way to consistently achieve a restoration of speed. With my old MT3G (biffmod) I always assumed the bottleneck was coming from the phones inability to keep processing all that data; theorizing that Tmobile's throttling was a paper tiger, and fiddling with reboots and battery pulls with a fair degree of success. I don't *know* the precise methodology to achieve this yet, but I do my little 4g dance to God and it seemed to work eventually.

Point is I'm not convinced that it wasn't my old phone taking a crap in the first place. You say you have the juice? Prove it.

**Edit Again**

Here's my usage 10-11 to 11-11 55 gig. I was hobbled for about a week until I stumbled upon the voodoo. Got hobbled again here and there for about an hour till I started tinkering and brought things back up.

Again, I think it was the 3G not having enough cajones to handle streaming and torrenting etc, I would LOOOOVE to be proven wrong. Haven't had enough time with my 4g to find this out yet, had it for a day.
[G2 and Desire Z General] theratdude64:
Can Cyanogen RC3 kill Data speeds? I doubt it... but lately I've been running about 15kbps down, IF that. Is it possible that I'm getting throttled and didn't know it?
[G2 and Desire Z General] J-Hop2o6:
co-sign.. i have to switch to 2G/EDGE to get a bit faster.. from dial-up speeds to year-2000 DSL speeds.
[G2 and Desire Z General] mr.pnutt:
I thought if the phone was rooted, they couldn't slow down the speed; I might b thinking about bandwith that they slow for video feed playback.
[G2 and Desire Z General] J-Hop2o6:
Weird.. I just switched back to 3G, and I'm not throttled.. I'm getting up to 7mbps right now.. I'm sure once I restart my phone, it'll get throttled again.. if so, I'll try the trick again.. hopefully it'll work.
[G2 and Desire Z General] jloescher2010:
When I was throttled on my last billing cycle I changed my APN to internet2.voicestream.com (they never deactivated this) throttling didn't work when using this as my APN. Hope this helps someone.
[G2 and Desire Z General] ratchetrizzo:
That's a good idea, but remember, mms doesn't work when you switch to internet2, so don't use it permanently.

Edit--

May have spoke prematurely about that cause i changed it to internet2 again and mms are going through.
[G2 and Desire Z General] sino8r:
Yeah, I kinda knew about the internet2.voicestream.com since last month. I didn't want to tell anyone about it because I didn't want stupid tmobile to patch it somehow by some damn blogger writing an article about how to stop tmobile's throttling. yeah, kinda paranoid and selfish not to tell you guys. I am sorry. I felt so guilty about it I have been working on the services.jar to remove the tether completely from the rom. I need someone to test it because I'm sure they'll patch internet2 & 3 eventually. I can do it myself later in a couple weeks if no ones interested. If you wanna test the service.jar I patched, it would be best to tell me what rom you use so I can get the one that matches your rom. let me know if anyones interested...

and again, I am sorry for holding out on you guys! I feel like such an asshole...
[G2 and Desire Z General] sino8r:
Yeah make sure you copy and paste the MMSC url from epc.tmobile.com apn to your new internet2.voicestream.com. oh and be sure you name your new apn, **** T-MOBILE, lol! again, a tester would be nice so we can remove this crap from the rom. one reason, is internet2.voicestream.com can really screw up from time to time so... be sure to use it only when you get throttled and switch back to epc.tmobile.com when your billing cycle starts over.

in other words, although it might work better than deleting /data/system/throttle, its not a complete solution. who ever meationed that about CM not having it... that might be a good idea for me to look and see what I can rip out to use for us stock/sense users.
[G2 and Desire Z General] ratchetrizzo:
I agree, I want to make a seperate apn for internet2 but there are two settings that have values set that are *'s and when I try and make the new apn I don't know what to put or if I should just leave them blank. Under the first username I have "Server" with **** and then "Password" with *. Are correct values for those important?
[G2 and Desire Z General] sino8r:
Nah, the only things set on my extra apn is name, apn, MMSC, MCC, & MNC. The name can be whatever (you know my prefered one lol), the apn is obviously internet2 or 3 .voicestream.com, MMSC is http://mms.msg.eng.t-mobile.com/mms/wapenc, MMC is 310, and MNC is 260.
[G2 and Desire Z General] Chadastrophic:
Sino8r hit the nail on the head with everything. Exactly what I did except I keep mine set to i2. I'm afraid to change it for another reason I'm not going to blab.
[G2 and Desire Z General] sino8r:
I think when the throttle is turned on, it effects only the epc apn. If I understand the services.jar correctly, then they can't correct this flaw except if they sent an OTA that changed things around a bit. So we are pretty safe on our alternate apn. I'm still working on removing it from the rom completely and won't know for a few more weeks until I get throttled again but this alternate apn will do for now. I was wondering how they were implementing this and I am so glad we can control it on our end. This will be good enough for tmobile to feel better about their new HSPA+ network and keep the majority of the users from hogging all the bandwidth. Let's face the facts though... 5 GB is way too low. It should have been 10 and they need to offer a cheap tethering plan addon for like 10 bucks and quit calling it unlimited. To us, it doesn't matter, we'll always find a way around things but I was speaking about the general smartphone user. To be honest this alternate apn could be used for those getting errors when tethering too.

Hey Chad, which Birmingham are you from? I know the two biggest ones are Birmingham, England & Birmingham, Alabama... are from one of those or a different one?
[G2 and Desire Z General] ratchetrizzo:
Here is a question, does internet2 track datausage yet? When I had total internet on my dumb phone I used internet2 when I tethered and it never tracked data

Sent from two solo cups and a really long string connected to the innerwebs
[G2 and Desire Z General] Chadastrophic:
AL, check your PM as well please.
[G2 and Desire Z General] Chadastrophic:
Yeah data usuage is still tracked. Little less then 2 weeks in I was throttled at 5GB so I hunted around for a bypass, I ended the cycle last night at 16GB.

Hoover to be more exact.
[G2 and Desire Z General] ALAMO695:
i cant get 3g on the voicestream apn =[
[G2 and Desire Z General] ratchetrizzo:
I dont think the APN has anything to do with what signal the tower gives your radio.
[G2 and Desire Z General] ALAMO695:
but where i would get 3g with the regular apn i dont with the internet2 and 3 apn
[G2 and Desire Z General] ratchetrizzo:
can do anything at all on internet2.voicestream.com or internet3.voicestream.com?

and how old is your sim?

internet3.voicestream.com was for VPNs and I never had access to that one
[G2 and Desire Z General] ALAMO695:
i get edge and everything works but just no 3g

sim is about 6months to 1yr old

then let me try internet2 again because this cap is so annoying lol 10gb used
[G2 and Desire Z General] ratchetrizzo:
Yeah i tried three of the tmobile apns. epc, internet2 and internet3 and they all give me hsdpa in my house and they all work. I did not try wap.voicestream.com though :)
[G2 and Desire Z General] sino8r:
Try this.... enter *#*#4636#*#* in the dialer. Go to phone info and select WCDMA Only. That should set it to 3G only and not 3G preferred. Or an easier way is to download Phone Info by SC@Taiwan from the market.
[G2 and Desire Z General] ALAMO695:
got it working guys with internet2, only get 1mb/s butt anything is better than those 60kb :p thankss
[G2 and Desire Z General] djsinco:
TMo C/S told me throttling due to being over 5GB/month amounts to allowing only 75% of 3.5G. Does anyone know if this is true? I have heard reports of everyone getting bumped down to 2G...
[G2 and Desire Z General] androidcues:
Two things...

@sino8er Do you still need a tester? I was throttled at day four of this cycle and I still have two weeks left of this probationary ****.

I am rooted and running cm or virtuous but I still have two tmobile rom backups the first one was the morning clockwork was released for vision.

So I'm happy to go to whatever rom you want. I'm in Boston where hspa is kickass.

Second thing....I visited a tmo kiosk last night and chatted up twotmo dudes. They showed me the playbook (I shuda snagged it and started running) but alllllll their phones and tablets are at five gb cap. Even their tablets save for one is at ten gigs. Both adamantly state there's no reason for anyone to be anywhere near three gigs after one month and that the two gig was a gift. I complimented them on being such good bull**** artists. They then showed me the script that tmo told them what to say. Then rolled their eyes. As if to say "ya..bull****"

Anyway I detest this throttle image..its crap. Waste of time and energy.

vision
[G2 and Desire Z General] j.youngberg:
This is what my home signal is like :p
[G2 and Desire Z General] SkullNBones19:
Today I felt the speeds of 60kbps its supper slowwwww :-(
[G2 and Desire Z General] J-Hop2o6:
U guys try this.. turn on 2G only, turn off 2G only.. it should turn off the throttling for a great amount of time (~2 days or when u reboot).. this works for me right now.
[G2 and Desire Z General] sino8r:
Sure, what rom do you want it for? Just give me one, please. whatever you use daily or whatever will have on their tomorrow. also, nandroid backup right before you push the service.jar... I'll post it up tonight for your rom. Errr... today. Its morning now but been up late watching movies and a bit of celebrating Auburn Tiger's SEC Champanionship victory, lol! Time to do some Duck hunting at the NCAA Football National Championship game! Yeah, I'm a bit excited! But... yeah... it won't take but 10 minutes to edit the file for you to push via adb. just let me know what rom you want it for....
[G2 and Desire Z General] androidcues:
right now im running enomther's official vision

http://xdaforums.com/showthread.php?t=860296&page=2

ive made a nandroid of that so i can just go back if you use this rather than CM#50 nightly for vision

However im itching to do one more flash this weekend on my drive home and itll be the CM Nightly #50

http://mirror.teamdouche.net/?device=vision&type=nightly

so --- id prefer to get back on Cyanogenmod if I am going to run this for a couple weeks lets do CM #50 and I will stay on it, pronto!

uhmm may be easier to contact me on gtalk /gmail at joshcues if you wish. Looking forward to it. Until I get this jar file I will try the APN switch. Let me know what tests to run on it if you have some specifics other than fcc broadband an dspeedtest.net.
[G2 and Desire Z General] T.C.P:
I'm throttled also right now I'm using the apn switch ill test the jar I'm running nighlty 50
[G2 and Desire Z General] sino8r:
...........
[G2 and Desire Z General] T.C.P:
Doesn't work man it boot loops
[G2 and Desire Z General] sino8r:
You must have used root explorer, right? check your pm so we can figure this out real quick...
[G2 and Desire Z General] J-Hop2o6:
Why don't u guys do the 2G on, off trick to turn off throttling? Working for me right now.
[G2 and Desire Z General] sino8r:
Hey J-Hop, I remember you from tmonews! anyways, yeah... that will work but disabling it would always be better... Besides, the apn change is much longer lasting fix for now. basically, you change your apn from epc.tmobile.com to internet2.voicestream.com but only when you have been throttled currently. after billing cycle ends and throttle is lifted, you should manually switch back to epc.tmobile.com. works perfectly but disabling the throttle from the phone is even better.... which is what I'm working on...
[G2 and Desire Z General] J-Hop2o6:
I remember u also.. I'm still over there.. what about u? Lol, but anyways, someone said that internet2 knocks out mms (until u fix the mms apn settings?).. and it seems like the throttle disable fix/file isn't working yet.
[G2 and Desire Z General] sino8r:
Yeah you have to add the MMS url to the internet2 apn. Its listed as MMSC and the url is http://mms.msg.eng.t-mobile.com/mms/wapenc. You can just copy and paste it from the epc one (aka tmobile data apn when creating an alternate apn using internet2.voicestream.com. But yeah, I visit tmonews from time to time for blog news and the forum on occasion.
[G2 and Desire Z General] J-Hop2o6:
Ok thx sino.. added a new apn named T-Mobile Data #2 using internet2 and added that mmsc line from my Tmo MMS apn.. works w/o the 2G on/off trick! And yea, same here.
[G2 and Desire Z General] sino8r:
Good! I'm glad it works well... I just am worried tmobile will do away with that apn eventually. So I need to find how to remove that code in the phones software. Its only turned on by tmobiles data counter but all the stuff that controls the on and off swtich resides in the phones OS. So far I have found several lines of code all over the phone. One is in data which is just a log but their are controlled in frameworks and maybe something with a data counter in settings.apk... its a ton of crap to go through but it will be worth it in the end.
[G2 and Desire Z General] J-Hop2o6:
Well good luck sino.
[G2 and Desire Z General] sino8r:
Thanks! See ya around, I'm sure...
[G2 and Desire Z General] sino8r:
okay folks... here's the update. it LOOKS like its working but we are going to test it for 24 hours, just to be sure...

then I'll post some instructions on how to disable throttling permanently!

I'll be posting a how to soon!
[G2 and Desire Z General] bbv203:
I've been doing some reading in this forum for a friend, I'm on Sprint with a Evo, currently running cm6.1(no 4g at my current location) but I have that exact same files in /data/system/ but with different values. Also restored a nandroid of Fresh rom same files, but yet again different values. I know this really in no way relates to you guys situation, just found it interesting that it's in Sprints as well. My speeds have been horrific but I was always assuming it is because of my location currently.
[G2 and Desire Z General] androidcues:
If you are still throttled -- would you consider doing a little test and seeing if this works for you? All you need to do is add smali/baksmali to your tools folder and rip out the throttling files from a brand new untouched services.jar and then push it into /system/framework and thats it. I think this could be evident of an industry-wide throttle campaign and I would like to see if it works.

The new thread for this is

http://xdaforums.com/showthread.php?t=863923
[G2 and Desire Z General] drzplaya1121:
none of this works anymor :(
[G2 and Desire Z General] shady503403:
You can just call tmobile and get truely unlimited as of today... :)