OS: Android 4.4.2 KitKat

How to find out the date of installation of the application in the smartphone Asus Zenfon 5 A501CG?

  • With absolute accuracy and 100% probability this cannot be done. And it seems from the wording of your question that it is not related to programming. - Yuriy SPb
  • @Yuriy SPb and you can not look at the date of creation of the folder /data/data/package ? - pavel
  • @pavel, in theory, yes. But you need a root and this folder may not be deleted when the application is deleted. Those. maybe it will turn out date of the first installation to learn, but not the last. - Yuriy SPb

1 answer 1

When you click on the button, it will log the list of all installed applications with the date of their first installation on this device.

MainActivity.class

 public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void onBtnClick(View v) { List<PackageInfo> packageInfo = getPackageManager().getInstalledPackages(0); for(PackageInfo a:packageInfo){ Log.d(a.packageName, "Дата первой установки : " + convertTime(a.firstInstallTime)); } } String convertTime(long time){ SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss dd MMMM yyyy"); return dateFormat.format(new Date(time)); } } 

Example:

D / com.viber.voip: Date of first installation: 13:57:33 05 October 2015