改变全局变量aaaa,生成的补丁没有生效。
- Dominant language
- C++
- Stars
- 7k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
改变全局变量aaaa,生成的补丁没有生效。
String aaaa = "right";
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView textView = (TextView) findViewById(R.id.textView1);
textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Log.e("star", "click");
try {
// .apatch file path
String patchFileString = Environment.getExternalStorageDirectory()
.getAbsolutePath() + MainApplication.APATCH_PATH;
MainApplication.mPatchManager.addPatch(patchFileString);
Log.e(TAG, "apatch:" + patchFileString + " added.");
} catch (IOException e) {
Log.e(TAG, "", e);
}
}
});
textView.setText("i am "+aaaa);
}
Contributor guide
No contributing guide indexed for this repository
Research direction
Start from the Android onCreate entry point and the MainApplication.mPatchManager.addPatch call shown in the issue. Reproduce the patching flow for the global variable aaaa and inspect whether the generated .apatch file is loaded. Done means the patched value is reflected when the TextView displays aaaa.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100