Android - Integrating Avast Antitheft

Tags: 

I've integrated Avast Antitheft - it works best when installed to the /system partition and this means I don't have yet another ZIP to install. As well as the APK, Antitheft can store its settings "wipe-proof' (I have different settings for each device, so copy a different file for each). Finally, I created a script to ensure that Antitheft and the settings remain even if a standard CM ROM is installed.

  # Antitheft
  PRODUCT_COPY_FILES += \
      pathToAntitheft/Antitheft.apk:system/app/Antitheft.apk \
      pathToAntitheft/90-antitheft.sh:system/addon.d/90-antitheft.sh

  # Antitheft settings
  ifeq ($(TARGET_PRODUCT),cm_galaxysmtd)
  PRODUCT_COPY_FILES += \
      pathToAntitheft/sgs.enc:system/etc/com.avast.android.antitheft.backup.enc
  endif
  ifeq ($(TARGET_PRODUCT),cm_grouper)
  PRODUCT_COPY_FILES += \
      pathToAntitheft/n7.enc:system/etc/com.avast.android.antitheft.backup.enc
  endif
AttachmentSize
Plain text icon 90-antitheft.sh825 bytes