tut hướng dẫn mod tin nhắn samsung kitkat/lollipop
copyright 2015 by **************. all provided by [img]data/avatars/s/6/6902.jpg?1467795374[/img]@mạnh_it
[color=rgb(255, 0, 0)]
fix lỗi hiển thị sai thời gian gửi và nhận tin[/color]
mở file smsreceiverservice.smali (smali/com/android/mms/transaction/)
tìm:
Mã:
invoke-static {}, ljava/lang/system;->currenttimemillis()j
nó thuộc đoạn sau:
Mã:
.line 1760
:cond_137
const-string v3, "date"
invoke-static {}, ljava/lang/system;->currenttimemillis()j
move-result-wide v4
invoke-static {v4, v5}, ljava/lang/long;->valueof(j)ljava/lang/long;
move-result-object v4
invoke-virtual {v1, v3, v4}, landroid/content/contentvalues;->put(ljava/lang/string;ljava/lang/long;)v
goto/16 :goto_56
.end method
[img]http://**************/attachments/upload_2015-3-7_23-15-45-png.17185/[/img]
xóa đoạn invoke-static {}, ljava/lang/system;->currenttimemillis()j thay bằng:
Mã:
invoke-virtual {p1}, landroid/telephony/smsmessage;->gettimestampmillis()j
[img]http://**************/attachments/upload_2015-3-7_23-17-1-png.17186/[/img]
save, rồi compile apk mới!
mod bật - tắt sáng màn hình khi có thông báo tin nhắn mới
[img]http://**************/attachments/mod-mms-png.16816/[/img]
1, smali\com\android\mms\settings
otificationsettings.smali
tìm pref_key_backlight thuộc đoạn:
Mã:
invoke-virtual {p0}, lcom/android/mms/settings/notificationsettings;->getpreferencescreen()landroid/preference/preferencescreen;
move-result-object v0
const-string v1, "pref_key_backlight"
invoke-virtual {p0, v1}, lcom/android/mms/settings/notificationsettings;->findpreference(ljava/lang/charsequence;)landroid/preference/preference;
move-result-object v1
invoke-static {v0, v1}, lcom/android/mms/settings/notificationsettings;->removepreference(landroid/preference/preferencescreen;landroid/preference/preference;)v
[color=rgb(128, 128, 128)]mod bật - tắt sáng màn hình bởi [img]data/avatars/s/6/6902.jpg?1467795374[/img]@mạnh_it - **************[/color]
[img]http://**************/attachments/upload_2015-2-16_13-12-58-png.16817/[/img]
2. thêm vào dưới dòng const-string v1, "pref_key_backlight" code sau:
Mã:
# on-off backlight - mod by manhit
const/4 v1, 0x0
[img]http://**************/attachments/upload_2015-2-16_13-20-37-png.16820/[/img]
tương tự cho pref_key_backlight_sim2
[img]http://**************/attachments/upload_2015-2-16_13-20-53-png.16821/[/img]
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++
mod backup - restore tin nhắn
sửa csc thêm đoạn code sau:
Mã:
<!-- backup - restore mms by manhit -->
<cscfeature_message_enablesaverestoresdcard>true</cscfeature_message_enablesaverestoresdcard>
hướng dẫn mod csc tại đây: http://**************/threads/43651/
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++
mod unlimit 3 tin nhắn và unlimit số ký tự khi trở lời ở của sổ pup-up
1. mod pup-up:
smali/com/android/mms/replyservice/quickreplyservice$1.smali
tìm access$602 thuộc
Mã:
# setter for: lcom/android/mms/replyservice/quickreplyservice;->mencodingtype:i
invoke-static {v11, v12}, lcom/android/mms/replyservice/quickreplyservice;->access$602(lcom/android/mms/replyservice/quickreplyservice;i)i
[img]http://**************/attachments/upload_2015-2-16_13-53-10-png.16825/[/img]
sửa dòng const/4 v2, 0x1 thành const/4 v2, 0x0
[img]http://**************/attachments/upload_2015-2-16_13-55-15-png.16826/[/img]
2. mod unlimit 3 tin nhắn:
smali/com/android/mms/mmsconfig.smali
tìm
Mã:
sput v0, lcom/android/mms/mmsconfig;->ssmstommstextthreshold:i
sửa const/4 v0, 0x4
Mã:
.line 176
sput-boolean v3, lcom/android/mms/mmsconfig;->sallowattachaudio:z
.line 179
const/4 v0, 0x4
sput v0, lcom/android/mms/mmsconfig;->ssmstommstextthreshold:i
thành const/16 v0, 0x3e8
Mã:
.line 176
sput-boolean v3, lcom/android/mms/mmsconfig;->sallowattachaudio:z
.line 179
const/16 v0, 0x3e8
sput v0, lcom/android/mms/mmsconfig;->ssmstommstextthreshold:i
tìm
Mã:
.method public static getsmstommstextthreshold()i
sửa sget v0, lcom/android/mms/mmsconfig;->ssmstommstextthreshold:i
Mã:
.method public static getsmstommstextthreshold()i
.registers 1
.prologue
.line 691
sget v0, lcom/android/mms/mmsconfig;->ssmstommstextthreshold:i
return v0
.end method
thành const/16 v0, 0x3e8
Mã:
.method public static getsmstommstextthreshold()i
.registers 1
.prologue
.line 691
const/16 v0, 0x3e8
return v0
.end method
tìm
Mã:
sput v1, lcom/android/mms/mmsconfig;->ssmstommstextthreshold:i
thêm trên nó const/16 v1, 0x3e8
Mã:
const/4 v2, 0x4
invoke-interface {v0, v1, v2}, landroid/content/sharedpreferences;->getint(ljava/lang/string;i)i
move-result v1
const/16 v1, 0x3e8
sput v1, lcom/android/mms/mmsconfig;->ssmstommstextthreshold:i
.line 2117
const-string v1, "mms/mmsconfig"
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