-2

How to do silent update in Android App

it's possible to update the app in silently. i.e (no user interaction)

what is the best way to achieve that? thank you in advance

NatheemYousf
  • 97
  • 1
  • 2
  • 11
  • 2
    This is a bad idea in regions where mobile plans have quotas... – d33j Jun 12 '17 at 06:33
  • 1
    only system apps can in theory do it. You can't do it in a regular app in common way. But there still is a way, but it is hard. You can use dynamic class loading to do that. You can dynamically load the compiled DEX file, which you can download whenever you want, and run the code from it. – Vladyslav Matviienko Jun 12 '17 at 06:40
  • @VladMatvienko thank you I'll try my best i'm come back with my experience – NatheemYousf Jun 12 '17 at 06:45
  • The best way to do is build a web view/native app which changes it's functionality depending upon a pre-built API server instructions. Quora is one of them. – Leap Hawk Jun 12 '17 at 06:51

1 Answers1

0

If you have published your app in playstore and you want to update your app , then there is no way except the user has turned on AutoUpdate and update will run in background.

But if you have not published your android app in playstore and you want to update your app , then you should run Service in background and should link some flags from your database to notify the app about update. and after that your app should have background Service for updating the app but that will also need permission for update. So practically I think it is Impossible without permission.

NIKUNJ KHOKHAR
  • 791
  • 6
  • 17
  • but this doesn't answer the question. The question ishow to update app without user interaction. Not how to notify user about an update. – Vladyslav Matviienko Jun 12 '17 at 06:47
  • yes @NIKUNJ KHOKHAR I'm not going published app in Playstore. my updated version also in my local memory. how to update that APK – NatheemYousf Jun 12 '17 at 06:53