1

我想为 Android Core 的文件打一个非常小的补丁,但即使我非常精通编写 Android 应用程序,我也很迷茫如何去做。

我要修补的文件行在这里:https://github.com/android/platform_frameworks_base/blob/master/core/java/android/provider/CallLog.java#L357

我想修改代码,使其永远不会被调用。(想象一下它被注释掉了。)

我该怎么办?是否可以为此创建补丁?我最后的手段是使用 Xposed 框架。

4

2 回答 2

4

You cannot alter internal parts of the framework simply by installing an apk or something.

You will require root at a minimum, and even then I doubt you can make this kind of change.

The only way I can think of to do this would be to change the line in Android's source, build a ROM image and flash that onto your device, like you would with Cyanogen and other custom flavors of Android.

于 2013-05-08T10:00:36.377 回答
0

以干净的方式完成此任务的唯一方法似乎是使用 Xposed 框架: http: //forum.xda-developers.com/showthread.php?t =1574401

于 2013-06-25T13:31:47.900 回答