GithubHelp home page GithubHelp logo

feicien / android-auto-update Goto Github PK

View Code? Open in Web Editor NEW
1.0K 59.0 293.0 3.69 MB

Android 应用自动更新。Android update checker,download and install apk file

License: Apache License 2.0

Java 100.00%

android-auto-update's Issues

uses or overrides a deprecated API in Android Studio 3.1

Why I am getting this
library\src\main\java\com\loveplusplus\update\CheckUpdateTask.java:
uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.

compileSdkVersion 27
buildToolsVersion '27.0.3'
distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip

适配

有7.0和华为,三星适配吗

1.1 error

Attribute service#com.loveplusplus.update.DownloadService@exported value=(true) from AndroidManifest.xml:32:71-94
is also present at [MobileDemo:AutoUpdate:unspecified] AndroidManifest.xml:16:13-37 value=(false).
Suggestion: add 'tools:replace="android:exported"' to element at AndroidManifest.xml:32:7-97 to override.

在模拟器2.3.3里面安装apk失败

在模拟器2.3.3里面,显示成功下载,但是安装apk失败,提示:there is a problem parsing the package,在4.0跟4.4.2测试没什么问题。

download

I have received update notification but not download apk file...

在Xiaomi 红米note5 android 8.1 api27上报错

使用android-auto-update-v1.2.apk安装后,点击对话框更新报错,本质上你没有处理

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
             //先获取是否有安装未知来源应用的权限
             boolean haveInstallPermission = getPackageManager().canRequestPackageInstalls();
             if (!haveInstallPermission) {
                 //跳转设置开启允许安装
                 Uri packageURI = Uri.parse("package:"+context.getPackageName());
                 Intent intent =new Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES,packageURI);
                 startActivityForResult(intent,1000);
                 return;
             }
         }

处理canRequestPackageInstalls

silent update

can i use this tool to auto update application in silent mode with no user interaction ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.