Can someone take a look and see if this works
Sent from my SGH-T679 using Tapatalk 2
Hello to all Developers and XDA members! I have come here to give you a guide on how you can use native tethering without restrictions and here is how you can do it!
What Is Required...
★ First you need to have experience and know how to decompile/recompile apks with Apktools, apkmanager, smali, and baksmali
★ Have 7-zip installed onto your computer/laptop
★ Make sure you have Notepad++ also installed!
★HOW TO EVADE/REMOVE DATA CAP THROTTLING★
This guide will show you how you can evade/remove data cap throttling and this is good for the people who don't have a unlimited data plan for their phone's carrier so here is how you can do it!
STEP 1
★ Go into your system/framework folder and take out your "services.jar"
★ Then use one of the applications such as apktool and then use baksmali commands to decompile and extract the classes.dex from the services.jar
★ Once you have decompiled the services.jar, go to:
Now open up "ThrottleService.smali" with your notepad++ for editing.
Once your in here go and find:
Code:.method static synthetic access$1002(Lcom/android/server/ThrottleService;J)J
And then you will see something like this:
Code:.method static synthetic access$1002(Lcom/android/server/ThrottleService;J)J .registers 3 .parameter "x0" .parameter "x1" .prologue .line 71 iput-wide p1, p0, Lcom/android/server/ThrottleService;->mMaxNtpCacheAge:J return-wide p1 .end method
Now what your going to need to do is add an empty space below ".line 71" and then above "iput-wide" your going to add "const-wide/16 p1, 0x0", once you do it will look something like this:
Code:.method static synthetic access$1002(Lcom/android/server/ThrottleService;J)J .registers 3 .parameter "x0" .parameter "x1" .prologue .line 71 [B]const-wide/16 p1, 0x0[/B] iput-wide p1, p0, Lcom/android/server/ThrottleService;->mMaxNtpCacheAge:J return-wide p1 .end method
By adding that, this will invoke the ".method private checkThrottleAndPostNotification(J)V" and also the clearThrottleAndNotification()V which are both in the "ThrottleService$MyHandler.smali" which looks like this:
Code:.method private checkThrottleAndPostNotification(J)V .registers 28 .parameter "currentTotal" .prologue .line 588 move-object/from16 v0, p0 iget-object v0, v0, Lcom/android/server/ThrottleService$MyHandler;->this$0:Lcom/android/server/ThrottleService; move-object/from16 v21, v0 #getter for: Lcom/android/server/ThrottleService;->mPolicyThreshold:Ljava/util/concurrent/atomic/AtomicLong; invoke-static/range {v21 .. v21}, Lcom/android/server/ThrottleService;->access$500(Lcom/android/server/ThrottleService;)Ljava/util/concurrent/atomic/AtomicLong; move-result-object v21 invoke-virtual/range {v21 .. v21}, Ljava/util/concurrent/atomic/AtomicLong;->get()J move-result-wide v15 .line 589 .local v15, threshold:J const-wide/16 v21, 0x0 cmp-long v21, v15, v21 if-nez v21, :cond_18 .line 590 invoke-direct/range {p0 .. p0}, Lcom/android/server/ThrottleService$MyHandler;->clearThrottleAndNotification()V .line 663 :cond_17 :goto_17 return-void .line 596 :cond_18 move-object/from16 v0, p0
Now once your done with modifying the "ThrottleService.smali", Recompile your services.jar using apktool and smali commands and your DONE!
IMPORTANT REMINDER - This mod works best for the people who DON'T have a unlimited data plan so it will be good for devs to make a flashable.zip in their OP with this mod with their roms services.jar which could be different "since some devs maybe did other mods/tweaks into their roms services.jar" so the users that be having any throttling issues can flash it. Also use at your own risk!
Sent from my SGH-T679 using Tapatalk 2
Last edited: