HTC Sense7 BlinkFeed新闻界面大图、图片铺满修改方法教程

HTC Sense7 BlinkFeed新闻界面大图、图片铺满修改方法教程


1、首先提取并反编译:“Prism.apk

2、反编译后找到并打开:com\htc\libmosaicview\FeedGridLayoutHelper.smali
3、搜索以下代码:.method public static checkForNeedOverLay(Landroid/content/Context;Lcom/htc/libfeedframework/FeedData;I)Z
4、以下为找到的整段代码:

  1. .method public static checkForNeedOverLay(Landroid/content/Context;Lcom/htc/libfeedframework/FeedData;I)Z
  2.     .locals 7
  3.     const/4 v6, 0x3
  4.     const/4 v2, 0x0
  5.     const/4 v3, 0x1
  6.     invoke-virtual {p1, v3, v3}, Lcom/htc/libfeedframework/FeedData;->getViewType(II)I
  7.     move-result v4
  8.     const/16 v5, 0x68
  9.     if-eq v4, v5, :cond_1
  10.     :cond_0
  11.     :goto_0
  12.     return v2
  13.     :cond_1
  14.     const-string/jumbo v4, “image_width”
  15.     invoke-virtual {p1, v4, v2}, Lcom/htc/libfeedframework/FeedData;->getIntExtra(Ljava/lang/String;I)I
  16.     move-result v1
  17.     const-string/jumbo v4, “image_height”
  18.     invoke-virtual {p1, v4, v2}, Lcom/htc/libfeedframework/FeedData;->getIntExtra(Ljava/lang/String;I)I
  19.     move-result v0
  20.     const/4 v4, 0x2
  21.     if-ne p2, v4, :cond_2
  22.     invoke-static {p0, p1, p2}, Lcom/htc/libmosaicview/FeedGridLayoutHelper;->getApproxLineCount(Landroid/content/Context;Lcom/htc/libfeedframework/FeedData;I)I
  23.     move-result v4
  24.     if-ge v4, v6, :cond_2
  25.     move v2, v3
  26.     goto :goto_0
  27.     :cond_2
  28.     if-ne p2, v3, :cond_0
  29.     if-eqz v1, :cond_3
  30.     if-nez v0, :cond_4
  31.     :cond_3
  32.     move v2, v3
  33.     goto :goto_0
  34.     :cond_4
  35.     int-to-float v4, v1
  36.     int-to-float v5, v0
  37.     div-float/2addr v4, v5
  38.     const v5, 0x3f99999a
  39.     cmpl-float v4, v4, v5
  40.     if-gtz v4, :cond_0
  41.     invoke-static {p0, p1, p2}, Lcom/htc/libmosaicview/FeedGridLayoutHelper;->getApproxLineCount(Landroid/content/Context;Lcom/htc/libfeedframework/FeedData;I)I
  42.     move-result v4
  43.     if-gt v4, v6, :cond_0
  44.     move v2, v3
  45.     goto :goto_0
  46. .end method

5、把上面这段代码换成以下代码:

  1. .method public static checkForNeedOverLay(Landroid/content/Context;Lcom/htc/libfeedframework/FeedData;I)Z
  2.     .locals 1
  3.     const/4 v0, 0x1
  4.     return v0
  5. .end method

6、最后重新回编译打包,然后替换到手机的:/system/priv-app/Prism/目录下,修改权限,重启手机即可!

大图效果如下图:

360手机助手截图0528_04_06_01

原文链接:,转发请注明来源!