Meituan-Dianping / Meituan-Dianping/Robust

在启动页面的onCreate方法内进行修改无效

Open
#448 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.5k
Forks
806
PR merge metrics
No merged PRs in 30d

Description

@Modify
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_login);

    ToastUtils.show("修改测试");

    ii("packagename:" + getApplication().getPackageName());
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the startup page Activity and its onCreate method shown in the report, then reproduce the change using the displayed @Modify code. No source file or test is named, so locate the relevant Activity and inspect how this hook is processed. Done means the modified onCreate behavior takes effect, including the displayed toast and package-name log.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.