使用 Google Fit API 问题重新编译 APK

Recompiling APK with Google Fit API Issues

我正在尝试对名为 HeartTrace 的 android 应用程序进行逆向工程,以便以更高的频率提取传感器数据。我反编译,调整参数,重新编译APK。但是,该应用程序不再连接到 Google Fit API。 API 在重新编译之前是否需要来自 Google 的新签名?如果不是,问题是什么?谢谢!

Sign Your App

所述

Android requires that all APKs be digitally signed with a certificate before they can be installed.

因此,您需要使用以下两个选项再次对应用进行数字签名:

  • 如果应用程序已经在应用程序商店中发布,则使用可以在 .keystore 文件中找到的相同密钥,或者
  • 生成用于登录的新密钥

但是,如果您选择使用新密钥,请不要忘记检查 Signing Considerations

我强烈建议阅读给定的文档,其中对这些内容进行了完整的详细讨论:

  • 描述了如何签署您的 APK,包括创建和存储您的证书,
  • 使用不同的证书签署不同的构建配置,并且
  • 配置构建过程以自动签署您的 APK。

有关其他信息,有关 Google Fit for Android: Reading Sensor Data and solution given in this SO post - Google maps does not work after resigning an apk 的与反编译 Android 应用相关的教程也可能有所帮助。