Decompile SystemUI.apk và vào theo đường dẫn SystemUI\smali\com\android\systemui\qs\tiles\Mobil eDataTile.smali
Mở file MobileDataTile.smali lên bằng notepad++ hoặc trình soạn thảo văn bản bất kì. Tìm từ khóa .method private setMobileData(Z)V . Hoặc tìm trực tiếp onDisplayMobileDataOffAlert sẽ có 2 kết quả, nhìn đằng trước ko có .method thì đúng(Dài hơn). Nó sẽ như này:
Mã:
.line 473
invoke-direct {p0}, Lcom/android/systemui/qs/tiles/MobileDataTile;->onDisplayMobileDataOnAlert()V
goto/16 :goto_1
.line 475
:cond_a
invoke-direct {p0, p1}, Lcom/android/systemui/qs/tiles/MobileDataTile;->setMobileDataEnabled(Z)V
goto/16 :goto_1
.line 478
:cond_b
invoke-direct {p0}, Lcom/android/systemui/qs/tiles/MobileDataTile;->onDisplayMobileDataOffAlert()V
goto/16 :goto_1
.line 481
:cond_c
invoke-direct {p0, p1}, Lcom/android/systemui/qs/tiles/MobileDataTile;->setMobileDataEnabled(Z)V
- Nhìn về phía dưới onDisplayMobileDataOffAlert sẽ có code dạng ":cond_***"
- Nhìn phía trên nó cũng có code dạng ":cond_yyy"
- Muốn bỏ qua ko hiển thị cảnh báo thì ta cần thêm code "goto :cond_***" phía trên ":cond_yyy" như sau:
- Khi mở 3G sẽ ko có cái popup hiện lên hỏi yes no...
- Sau khi sửa xong thì recompile file UI lại.
- File MobileDataTile.smali đã chỉnh sửa ở phía dưới đính kèm.
View more random threads:
Việc biết về cách sửa chữa UPS (bộ lưu điện) luôn là điều cần thiết, hơn thế nữa còn là địa chỉ sửa chữa uy tín, nhanh chóng. 1. Hướng dẫn sửa chữa ups Khi UPS (Uninterruptible Power Supply) gặp...
Hướng dẫn sửa chữa ups (bộ lưu...