ads

jeudi 17 septembre 2015

[Guide] Disable Hotspot warning popup (5.0.2)



What does this mod do?
This mod disables the popup that warns about disabling wifi when you enable the Hotspot feature from the Notification panel quicksetting toggle. The popup normally only occurs when wifi is enabled, so this will prevent that popup.
This does not disable the warning if you enable hotspot from the Settings menu.


What app needs modifying?
SecSettings2.apk - must be deodexed app because we will be editing smali code.


The mod:
  1. Decompile your deodexed SecSettings2.apk

  2. Open smali\com\android\settings\wifi\mobileap\WifiApWar ning.smali with a text editor

  3. Search for

    Code:


    .local v1, "wifiState":I


  4. Enter the following code on a new line just below that line

    Code:


    goto :cond_5


  5. Save and recompile.



How does this mod work?
When the hotspot is enabled, a check is performed to see if wifi is enabled, and if it is, a popup message is displayed to warn the user that wifi will be disabled while the hotspot is enabled.
By inserting the "goto :cond_5", the comparision checks of "wifiState" are skipped, so the warning does not get created.


Tips:
If you have trouble recompiling the resources after making the mod:
  • The classes.dex normally get compiled before the resources

  • Simply find the newly compiled classes.dex in the output folder and copy it back into the old deodexed app (7zip).




Aucun commentaire:

Enregistrer un commentaire