Install time for Android application?

后端 未结 3 924
迷失自我
迷失自我 2021-01-15 05:44

Is there any way to determine programmatically the time at which an Android application was installed? I don\'t see anything in PackageInfo, etc.

--EDIT-- To clarify

3条回答
  •  礼貌的吻别
    2021-01-15 06:17

    When you install/update a non-protected app, it's apk file gets written to /data/app/package.name.apk, confusingly referenced as sourceDir (from my answer) resetting the timestamp to the current one. That's it.

提交回复
热议问题