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:
Đại lý thiết bị tự động hóa chuyên cung cấp Mô đun giám sát Mayr Roba tại Việt Nam. Mayr Roba là nhà sản xuất hàng đầu về mô đun, phanh an toàn, khớp nối an toàn và khớp nối trục. Danh mục sản...
Mô đun giám sát Mayr Roba Việt Nam