HTC sense3.5归属地添加教程还是很简单的需要改三个地方,下面我们就一起看看HTC sense3.5归属地添加教程。
1.加入googlelocation.apk
2.修改 CityIdInfo.smali
这个文件一般在 system \framework下面的 下面的 HTCExtension.jar 下面 ,用解压缩软件打开 jar. 把classes.dex提取出来反编译进入 com\htc\util \phone \ CityIdInfo.smali
或者在.com.htc.framework.jar下面,用解压软件打开jar把classes.dex提取出来进入反编译
\com\htc\idlescreen \base\reminderview\IncomingCallView.smali
constructor()中
.line 48
sput-boolean v3, Lcom/htc/util/phone/CityIdInfo;->CALL_LOCATION:Z
.line 85
sget-boolean v0, Lcom/htc/util/phone/CityIdInfo;->CALL_LOCATION:Z
if-nez v0, :cond_79
move v0, v3
原本的v2改成v3即可。
第三步 : 这个是锁屏显示的加 Idlescreen_Base.apk
路径: system/app/Idlescreen_Base.apk
提取 classes.dex反编译进入 \com\htc\idlescreen \base\reminderview\IncomingCallView.smali
iget-object v8, v15, Lcom/htc/lockscreen/telephony/PhoneState;->mLocation:Ljava/lang/String;(1693)
后,
iget-object v3, v15, Lcom/htc/lockscreen/telephony/PhoneState;->mEventDesp:Ljava/lang/String;(1696)
前,加入
move-object/from16 v0, p0
iget-object v0, v0, Lcom/htc/idlescreen/base/reminderview/IncomingCallView;->mContext:Landroid/content/Context;
new-instance v1, Lcom/htc/util/phone/CityIdInfo;
invoke-direct {v1}, Lcom/htc/util/phone/CityIdInfo;-><init>()V
const/4 v2, 0x0
invoke-virtual {v1, v0, v11, v2}, Lcom/htc/util/phone/CityIdInfo;->doLookup(Landroid/content/Context;Ljava/lang/CharSequence;Z)V
invoke-static {v2, v1}, Lcom/htc/util/phone/CityIdInfo;->getCityIdDisplay(Landroid/widget/TextView;Lcom/htc/util/phone/CityIdInfo;)Ljava/lang/String;
move-result-object v8
HTC sense3.5归属地添加教程到这里就结束了,感谢大家支持。
转载请注明:半夏月 » HTC sense3.5归属地添加教程