Android APK version update download and install, support 7.0 installation

Function:

1: Download APK. 2: Install APKCopy the code

How to add

1. Add the warehouse address in the build.gradle file of Project

	allprojects {
		repositories {
			..
			maven { url "https://jitpack.io"}}}Copy the code

*** For details about 7.0 adaptation, see Library (already configured in library):

2:res/xml/file_provider.xml:

        <?xml version="1.0" encoding="utf-8"?>
        <paths>

            <!--upgrade-->
            <external-cache-path
                name="mn_update_external_cache"
                path="" />

            <cache-path
                name="mn_update_cache"
                path="" />

        </paths>Copy the code

Usage:

Default download path:

     /Android/data/The package name/cache/
Copy the code