talira

Hot-fix library for Android apps from Tencent

open sourceBSD-3-Clausefree

Tinker is Tencent's hot-fix library for Android: it patches an installed app's dex code, native libraries and resources without reinstalling the APK. A Gradle plugin builds the patch as a diff between the old and new APK, and the app applies it through Tinker's Application wrapper.

Problems it solves

  • push a bug fix to my Android app without a new release
  • hot patch an Android app's code at runtime
  • update Android app resources without reinstalling the APK

Features

  • patch dex, native libraries and resources without reinstalling
  • Gradle plugin that builds patches from two APKs
  • command-line patch tool
  • Ark compiler support

Limitations

  • It can't update AndroidManifest.xml, so a patch can't add Android components.1
  • It doesn't support some Samsung models on Android 5.0 (API 21).1
  • Google Play's Developer Distribution Agreement doesn't allow apps distributed there to update themselves this way.1