xiaoxiangyeyu123 / Heavenlyupdate
apk以及安装的简单封装
Stars: ✭ 120
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Heavenlyupdate
Transmission Trackers
Script to automatically add trackers from a list to all torrents in Transmission
Stars: ✭ 55 (-54.17%)
Mutual labels: update
Appsmartupdate
a smart lib for updating app / Android版本更新,支持增量更新
Stars: ✭ 88 (-26.67%)
Mutual labels: update
Base
Base is the foundation for creating modular, unit testable and highly pluggable, server-side node.js applications.
Stars: ✭ 67 (-44.17%)
Mutual labels: update
Kill Update
Prevents Windows 10 from updating. Can be manually disabled when updating is convenient.
Stars: ✭ 81 (-32.5%)
Mutual labels: update
Progress Bot
High-tech weaponized moe progress delivery bot for IRC, Discord, and web
Stars: ✭ 38 (-68.33%)
Mutual labels: update
Xupdate
🚀A lightweight, high availability Android version update framework.(一个轻量级、高可用性的Android版本更新框架)
Stars: ✭ 1,688 (+1306.67%)
Mutual labels: update
Rescript React Update
useReducer with updates and side effects!
Stars: ✭ 79 (-34.17%)
Mutual labels: update
Recyclerviewpresenter
RecyclerView Adapter Library with different models and different layouts as convenient as possible.
Stars: ✭ 86 (-28.33%)
Mutual labels: update
Fwupd
A simple daemon to allow session software to update firmware
Stars: ✭ 1,176 (+880%)
Mutual labels: update
Unityandroidhotupdate
(Unity3D热更新) provide a way to hot update Unity app on Android, support code&resources, not need lua js or IL runtime etc..., will not disturb your project development; just loading the new version apk file to achieve.
Stars: ✭ 85 (-29.17%)
Mutual labels: update
Evilgrade
Evilgrade is a modular framework that allows the user to take advantage of poor upgrade implementations by injecting fake updates.
Stars: ✭ 1,086 (+805%)
Mutual labels: update
Android Inapp Update
A lightweight implementation of Android In-app Update
Stars: ✭ 81 (-32.5%)
Mutual labels: update
Uptane
Uptane: Secure Framework for Automotive Software Updates: Reference Implementation and Demonstration code
Stars: ✭ 112 (-6.67%)
Mutual labels: update
Android Prince Of Versions
Android library for handling application updates.
Stars: ✭ 94 (-21.67%)
Mutual labels: update
Simpleupload
Simple upload system in PHP, compatible with AWS S3, Dropbox, Azure and others.
Stars: ✭ 85 (-29.17%)
Mutual labels: update
HeavenlyUpdate
Heavenlyupdateapk是Heavenlymoudle的一个子模块 下载链接:https://github.com/xiaoxiangyeyuHeaven/HeavenlyModule
Heavenlyupdate是对下载apk以及安装的简单封装
混淆
-dontwarn com.heavenly.updateapk.**
-keep class com.heavenly.updateapk.**{*;}
##基本配置 权限
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
初始化
heavenlyUpadate = HeavenlyUpadate.getInstance()
.init(this);
application配置(可选)
例如:android:installLocation = "auto"
auto:表示先查看手机内存是否足够,如果够就安装在手机内存上,不够就安装在外部储存卡卡上;
internalOnly:表示安装在手机内存上.
preferExternal:表示安装在外部储存卡卡上
HeavenlyUpdate(方法调用)
方法名 | 描述 |
---|---|
setUpadeUrl | 设置下载apk地址 |
setDownLoadManager | 设置是否使用DownLoadManager |
setFileName | 设置apk文件名 |
setUpdateDirectory | 设置下载路径 |
setIcon | 设置下载时显示图标 |
setTitle | 设置下载时显示文字 |
startUpdate | 开始下载 |
requestPermission | 申请6.0权限 |
setProviderName | provider的authorities |
注意
android7.0FileProvider和android6.0权限问题
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].