目的 學(xué)習(xí)一下反編譯 就企業(yè)微信2.7.0做實(shí)驗(yàn)對(duì)象 如有侵犯之處 及時(shí)通知 好刪掉相關(guān)資料
jar合并包口令:jar -cvf name.jar .
查看當(dāng)前activity windows上adb 命令 adb shell dumpsys activity | findstr "mFocus"
聊天界面是:
com.tencent.wework.msg.controller.MessageListActivity
整個(gè)最外層 RelativeLayout
name 16進(jìn)制
ab 0x7f110024
右邊紅包部分 層數(shù)從最外層開(kāi)始
cn0 0x7f1111fc
cn2 0x7f1111fe
"開(kāi)" 圖片資源為b2q
打開(kāi)紅包界面為:
com.tencent.wework.enterprise.redenvelopes.controller.RedEnvelopeCollectorActivity
方法為:
//查詢(xún)
public static void a(RedEnvelopesQueryDetailResult redEnvelopesQueryDetailResult, long j, long j2) {
if (redEnvelopesQueryDetailResult == null || redEnvelopesQueryDetailResult.getInfo() == null) {
bmc.d("RedEnvelopeCollectorActivity", new Object[]{"openRedEnvelope invalid result"});
return;
}
dpc.a(redEnvelopesQueryDetailResult);
Intent intent = new Intent(cuk.cgk, RedEnvelopeCollectorActivity.class);
intent.putExtra("popupAnimation", true);
intent.putExtra("extra_key_open_result_red_envelope", redEnvelopesQueryDetailResult.getInfo().hongbaoid);
intent.putExtra("extra_key_red_envelope_conversation_id", j);
intent.putExtra("extra_key_red_envlope_msg_id", j2);
intent.putExtra("extra_key_red_open_type", 3);
intent.addFlags(268435456);
cuk.ap(intent);
}
//搶
public static void a(RedEnvelopesGrabHongBaoResult redEnvelopesGrabHongBaoResult, long j, long j2, int i) {
if (redEnvelopesGrabHongBaoResult == null || redEnvelopesGrabHongBaoResult.getInfo() == null) {
bmc.d("RedEnvelopeCollectorActivity", new Object[]{"grabRedEnvelope invalid result"});
return;
}
dpc.a(redEnvelopesGrabHongBaoResult);
Intent intent = new Intent(cuk.cgk, RedEnvelopeCollectorActivity.class);
intent.putExtra("popupAnimation", true);
intent.putExtra("extra_key_open_result_red_envelope", redEnvelopesGrabHongBaoResult.getInfo().hongbaoid);
intent.putExtra("extra_key_red_envelope_conversation_id", j);
intent.putExtra("extra_key_red_envlope_msg_id", j2);
intent.putExtra("extra_key_red_open_type", 2);
intent.putExtra("extra_key_red_envelope_vid_ticket", i);
intent.addFlags(268435456);
cuk.ap(intent);
}
boE() 方法
"開(kāi)"
d8r 0x7f111520 2131825952
文件在com.tencent.wework.enterprise.redenvelopes.view.RedEnvelopeCollector
fXT
點(diǎn)擊事件:
case 2131825952:
if (this.fXN != null) {
bqU();
this.fXN.onAnimationStart();
this.fXT.setClickable(false);
return;
}
return;
public void bqU() {
this.fXN.boH();//setCollectorEventListener
cpo = ObjectAnimator.ofFloat(this.fXT, "alpha", new float[]{1.0f, 0.0f});
cpo.setDuration(400).start();
new Handler().post(new Runnable() {
public void run() {
RedEnvelopeCollector.this.bqV();
}
});
this.fYm.postDelayed(this.fYn, 100000);
}
RedEnvelopeCollectorActivity fXN.boh調(diào)用
方法找到 在RedEnvelopeCollectorActivity 調(diào)用boB 方法 RedEnvelopesService
protected void boB() {
this.fSW.removeCallbacks(this.fSX);
RedEnvelopesService.getService().unWrapHongBao(this.fSw, this.fSx, this.fSV, this);
}
參數(shù)
protected void cZ(Context context) {
this.mContext = context;
this.fSv = new ctq(this.mContext);
this.fSv.C(new int[]{2131296550});
this.bTJ = getIntent().getLongExtra("extra_key_red_envelope_conversation_id", 0);
long longExtra = getIntent().getLongExtra("extra_key_red_envlope_msg_id", 0);
this.fSV = getIntent().getIntExtra("extra_key_red_envelope_vid_ticket", 0);
this.duY = getIntent().getIntExtra("extra_key_red_open_type", 2);
this.fSw = getIntent().getStringExtra("extra_key_open_result_red_envelope");
this.bSA = MessageManager.cpc().X(this.bTJ, longExtra);
}
注釋
public static void a(Context paramContext, int paramInt, RedEnvelopesQueryDetailResult paramRedEnvelopesQueryDetailResult)
{
if (paramInt == -1900014)
{
dpc.da(paramContext); // RedEnvelopeDataHelper classdex4里面
return;
}
if ((paramInt == -1900015) && (paramRedEnvelopesQueryDetailResult != null) && (paramRedEnvelopesQueryDetailResult.getInfo() != null) && (!cts.dG(cts.ct(paramRedEnvelopesQueryDetailResult.getInfo().errmsg))))
{
dpc.aq(paramContext, cts.ct(paramRedEnvelopesQueryDetailResult.getInfo().errmsg));
return;
}
if (paramInt == -1900005)
{
dpc.ap(paramContext, cuk.getString(2131369595)); //微信授權(quán)信息已經(jīng)過(guò)期,無(wú)法領(lǐng)取紅包钞翔,請(qǐng)進(jìn)行“微信登錄”后再試
return;
}
if (paramInt == -1900001)
{
dpc.ap(paramContext, cuk.getString(2131367707));//拆紅包前需要在企業(yè)微信中綁定你的微信帳號(hào)
return;
}
if (paramInt == -1900018)
{
//你的微信帳號(hào)已被限制使用仔粥,請(qǐng)?jiān)趲ぬ?hào)解封后诫尽,重新通過(guò)“微信登錄”進(jìn)入企業(yè)微信培廓,即可使用紅包功能
crz.a(paramContext, cuk.getString(2131367803), null, cuk.getString(2131363788), null, new DialogInterface.OnClickListener()//
{
public void onClick(DialogInterface paramDialogInterface, int paramInt)
{
switch (paramInt)
{
case -2:
case -1:
}
}
});
return;
}
if (paramInt == -1900036)
{
//根據(jù)央行監(jiān)管要求筐咧,你需要在“微信->我->錢(qián)包->銀行卡”中通過(guò)添加銀行卡進(jìn)行實(shí)名認(rèn)證济欢,才能領(lǐng)取紅包
crz.a(paramContext, cuk.getString(2131367804), null, cuk.getString(2131363788), null, new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface paramDialogInterface, int paramInt)
{
switch (paramInt)
{
case -2:
case -1:
}
}
});
return;
}
cty.cV(2131367824, 0);//獲取紅包詳情失敗憔儿,請(qǐng)稍后再試
}
進(jìn)入紅包界面 綁定參數(shù)
protected void cZ(Context paramContext)
{
this.mContext = paramContext;
this.fSv = new ctq(this.mContext);
this.fSv.C(new int[] { 2131296550 });
this.bTJ = getIntent().getLongExtra("extra_key_red_envelope_conversation_id", 0L);
long l = getIntent().getLongExtra("extra_key_red_envlope_msg_id", 0L);
this.fSV = getIntent().getIntExtra("extra_key_red_envelope_vid_ticket", 0);
this.duY = getIntent().getIntExtra("extra_key_red_open_type", 2);
this.fSw = getIntent().getStringExtra("extra_key_open_result_red_envelope");
this.bSA = MessageManager.cpc().X(this.bTJ, l);
}
com.tencent.wework.msg.views.MessageListRedEnvelopeAckItemView
紅包view item
private void cwe()
{
ees localees = getMessageItem();
if ((localees == null) || (localees.cnA() == null))
{
bmc.d("MessageListBaseItemView", new Object[] { "handleOpenRedEnvlopeDetail, get messageItem error" });
return;
}
on(true);
String str1 = localees.cnA().hongbaoid;
String str2 = cts.ct(localees.cnA().hbticket);
Object[] arrayOfObject = new Object[4];
arrayOfObject[0] = "open redEnvelopeDetail ";
arrayOfObject[1] = str1;
arrayOfObject[2] = Integer.valueOf(localees.cnA().hongbaotype);
arrayOfObject[3] = str2;
bmc.d("MessageListBaseItemView", arrayOfObject);
RedEnvelopesService.getService().queryHongBaoDetail(str1, str2, new IRedEnvelopesQueryDetailCallBack(localees, str2)
{
public void onResult(boolean paramBoolean, int paramInt, RedEnvelopesQueryDetailResult paramRedEnvelopesQueryDetailResult)
{
Object[] arrayOfObject = new Object[3];
arrayOfObject[0] = "open HongBao result";
arrayOfObject[1] = Boolean.valueOf(paramBoolean);
arrayOfObject[2] = Integer.valueOf(paramInt);
bmc.d("MessageListBaseItemView", arrayOfObject);
MessageListRedEnvelopeAckItemView.a(MessageListRedEnvelopeAckItemView.this, false);
if (paramRedEnvelopesQueryDetailResult.getReceiveInfoList() != null)
for (int i = 0; i < paramRedEnvelopesQueryDetailResult.getReceiveInfoList().length; i++)
{
long l = paramRedEnvelopesQueryDetailResult.getReceiveInfoList()[i].getInfo().vid;
if ((MessageListRedEnvelopeAckItemView.a(MessageListRedEnvelopeAckItemView.this)) || (l != dwq.getVid()))
continue;
MessageListRedEnvelopeAckItemView.b(MessageListRedEnvelopeAckItemView.this, true);
}
if ((paramBoolean) && (paramRedEnvelopesQueryDetailResult.getInfo() != null))
{
if (paramRedEnvelopesQueryDetailResult.getInfo().subhongbaotype == 7)
{
LishiDetailActivity.a(paramRedEnvelopesQueryDetailResult, this.etw.clL(), this.iaU, MessageListRedEnvelopeAckItemView.a(MessageListRedEnvelopeAckItemView.this), eco.cex().ix(MessageListRedEnvelopeAckItemView.this.bTJ), new UserSceneType(11, 0L));
return;
}
RedEnvelopeDetailActivity.a(paramRedEnvelopesQueryDetailResult, this.etw.clL(), this.iaU, MessageListRedEnvelopeAckItemView.a(MessageListRedEnvelopeAckItemView.this), eco.cex().ix(MessageListRedEnvelopeAckItemView.this.bTJ), new UserSceneType(MessageListRedEnvelopeAckItemView.this.bTJ));
return;
}
if (paramInt == -1900014)
{
dpc.da(MessageListRedEnvelopeAckItemView.this.getContext());
return;
}
if ((paramInt == -1900015) && (paramRedEnvelopesQueryDetailResult != null) && (paramRedEnvelopesQueryDetailResult.getInfo() != null) && (!cts.dG(cts.ct(paramRedEnvelopesQueryDetailResult.getInfo().errmsg))))
{
dpc.aq(MessageListRedEnvelopeAckItemView.this.getContext(), cts.ct(paramRedEnvelopesQueryDetailResult.getInfo().errmsg));
return;
}
if (paramInt == -1900005)
{
crz.a(MessageListRedEnvelopeAckItemView.this.getContext(), cuk.getString(2131367766), null, cuk.getString(2131367793), cuk.getString(2131363518), new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface paramDialogInterface, int paramInt)
{
switch (paramInt)
{
case -2:
default:
return;
case -1:
}
MessageListRedEnvelopeAckItemView.b(MessageListRedEnvelopeAckItemView.this);
}
});
return;
}
if (paramInt == -1900018)
{
crz.a(MessageListRedEnvelopeAckItemView.this.getContext(), cuk.getString(2131367803), null, cuk.getString(2131363788), null, new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface paramDialogInterface, int paramInt)
{
switch (paramInt)
{
case -2:
case -1:
}
}
});
return;
}
cty.cV(2131367824, 0);
}
});
}
private boolean h(Intent paramIntent, String paramString)
{
bmc.d("MessageListBaseItemView", new Object[] { "handleIntentSpan ", paramIntent, paramString });
if (paramIntent == null);
do
return false;
while
((!paramIntent.getComponent().getClassName().equalsIgnoreCase(RedEnvelopeDetailActivity.class.getName())) || ((!cuk.getString(2131367706).equalsIgnoreCase(paramString)) && (!cuk.getString(2131367894).equalsIgnoreCase(paramString))));
cwe();
return true;
}
//cuk.getString(2131367706) :紅包
//!cuk.getString(2131367894) :紅包
- 最后你問(wèn)我企業(yè)微信搶紅包外掛 實(shí)現(xiàn)了嗎忆植?
- 抱歉不能透露太多
- 有基于無(wú)障礙輔助的助手在github上有