92mey吧 关注:402贴子:10,162
  • 4回复贴,共1

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、以下为找到的整段代码:
.method public static checkForNeedOverLay(Landroid/content/Context;Lcom/htc/libfeedframework/FeedData;I)Z
.locals 7
const/4 v6, 0x3
const/4 v2, 0x0
const/4 v3, 0x1
invoke-virtual {p1, v3, v3}, Lcom/htc/libfeedframework/FeedData;->getViewType(II)I
move-result v4
const/16 v5, 0x68
if-eq v4, v5, :cond_1
:cond_0
:goto_0
return v2
:cond_1
const-string/jumbo v4, “image_width”
invoke-virtual {p1, v4, v2}, Lcom/htc/libfeedframework/FeedData;->getIntExtra(Ljava/lang/String;I)I
move-result v1
const-string/jumbo v4, “image_height”
invoke-virtual {p1, v4, v2}, Lcom/htc/libfeedframework/FeedData;->getIntExtra(Ljava/lang/String;I)I
move-result v0
const/4 v4, 0x2
if-ne p2, v4, :cond_2
invoke-static {p0, p1, p2}, Lcom/htc/libmosaicview/FeedGridLayoutHelper;->getApproxLineCount(Landroid/content/Context;Lcom/htc/libfeedframework/FeedData;I)I
move-result v4
if-ge v4, v6, :cond_2
move v2, v3
goto :goto_0
:cond_2
if-ne p2, v3, :cond_0
if-eqz v1, :cond_3
if-nez v0, :cond_4
:cond_3
move v2, v3
goto :goto_0
:cond_4
int-to-float v4, v1
int-to-float v5, v0
div-float/2addr v4, v5
const v5, 0x3f99999a
cmpl-float v4, v4, v5
if-gtz v4, :cond_0
invoke-static {p0, p1, p2}, Lcom/htc/libmosaicview/FeedGridLayoutHelper;->getApproxLineCount(Landroid/content/Context;Lcom/htc/libfeedframework/FeedData;I)I
move-result v4
if-gt v4, v6, :cond_0
move v2, v3
goto :goto_0
.end method
5、把上面这段代码换成以下代码:
.method public static checkForNeedOverLay(Landroid/content/Context;Lcom/htc/libfeedframework/FeedData;I)Z
.locals 1
const/4 v0, 0x1
return v0
.end method
6、最后重新回编译打包,然后替换到手机的:/system/priv-app/Prism/目录下,修改权限,重启手机即可!


来自Android客户端1楼2015-08-28 21:43回复
    转至魂客


    来自Android客户端2楼2015-08-28 21:43
    回复
      前排


      来自Android客户端3楼2015-08-29 05:26
      回复
        顶,不过我并不是htc


        IP属地:广东来自Android客户端4楼2015-08-29 07:36
        回复
          华为安卓2.3.5路过
             --来自「天生慢性子」版华为Y220-T10 卡 · 慢 · 必等待!


          IP属地:江苏来自Android客户端5楼2015-09-03 14:43
          回复