diff --git a/README.md b/README.md index 261585c..c9cb759 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -系统检测更新器 +新版系统检测更新器 =========== 开源说明 @@ -8,28 +8,37 @@ 2.如果你对本项目感兴趣或者有什么意见或建议,欢迎联系[510146422@qq.com](mailto:510146422@qq.com) +3.因为最近在更新魔趣,所以用魔趣图片作为样例 + 使用教程 --------------- 1.申请github账号,将我的的OTA_TEST开源项目Fork -2.了解安卓开发的朋友可以直接将我的项目导入,进行修改编译(签名需要使用系统签名) +2.了解安卓开发的朋友可以直接将我的项目导入,进行修改编译 -3.普通机油可以反编译我提供的成品(MIUI版本,需要导入MIUI资源框架),打开 +注意:调用SystemProperties.get("ro.mk.version"); + 需要导入layoutlib.jar 具体可以参考http://blog.sina.com.cn/s/blog_6b597ccb0100ywrw.html -res\values\strings.xml,修改version_url(版本号),update_info_url(更新日志), +3.普通机油可以反编译SudaUpdater\bin中的成品 -disk_url(百度网盘),最后别忘了用我提供的工具签名 +打开res\values-zh-rCN\strings.xml,修改base_url(基准地址) -https://raw.githubusercontent.com/ghbhaha/OTA_TEST/Server/version +https://raw.githubusercontent.com/ghbhaha/OTA_TEST/bacon_mokee/ -(将ghbhaha改成你的账号,该地址为打开version后点击raw得到的) +解释:https://raw.githubusercontent.com/你的账号/项目名/分支名/ -https://raw.githubusercontent.com/ghbhaha/OTA_TEST/Server/update_info +4.在github中编写更新日志,版本号,更新定位网址 -(将ghbhaha改成你的账号,该地址为打开update_info后点击raw得到的) +version:当前版本 -当你需要更新时,修改OTA_TEST/version,uodate_info就可以了 +info_版本号:相应版本对应日志 -网盘可以分享出一个文件夹专门用来存放刷机包(ota或整包) +ydss_url:更新下载所需定位的网址 +具体可以参考https://github.com/ghbhaha/OTA_TEST/tree/bacon_mokee +界面截图 +--------------- +![Image text](https://github.com/ghbhaha/OTA_TEST/blob/Android_New/screenshots/Screenshot_2014-12-29-14-19-55.png) +![Image text](https://github.com/ghbhaha/OTA_TEST/blob/Android_New/screenshots/Screenshot_2014-12-29-14-19-59.png) +![Image text](https://github.com/ghbhaha/OTA_TEST/blob/Android_New/screenshots/Screenshot_2014-12-29-14-20-04.png) diff --git a/Sign_Tools/platform.pk8 b/Sign_Tools/platform.pk8 deleted file mode 100644 index e27a393..0000000 Binary files a/Sign_Tools/platform.pk8 and /dev/null differ diff --git a/Sign_Tools/platform.x509.pem b/Sign_Tools/platform.x509.pem deleted file mode 100644 index 087f02e..0000000 --- a/Sign_Tools/platform.x509.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIEqDCCA5CgAwIBAgIJALOZgIbQVs/6MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYD -VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g -VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE -AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe -Fw0wODA0MTUyMjQwNTBaFw0zNTA5MDEyMjQwNTBaMIGUMQswCQYDVQQGEwJVUzET -MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G -A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p -ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI -hvcNAQEBBQADggENADCCAQgCggEBAJx4BZKsDV04HN6qZezIpgBuNkgMbXIHsSAR -vlCGOqvitV0Amt9xRtbyICKAx81Ne9smJDuKgGwms0sTdSOkkmgiSQTcAUk+fArP -GgXIdPabA3tgMJ2QdNJCgOFrrSqHNDYZUer3KkgtCbIEsYdeEqyYwap3PWgAuer9 -5W1Yvtjo2hb5o2AJnDeoNKbf7be2tEoEngeiafzPLFSW8s821k35CjuNjzSjuqtM -9TNxqydxmzulh1StDFP8FOHbRdUeI0+76TybpO35zlQmE1DsU1YHv2mi/0qgfbX3 -6iANCabBtJ4hQC+J7RGQiTqrWpGA8VLoL4WkV1PPX8GQccXuyCcCAQOjgfwwgfkw -HQYDVR0OBBYEFE/koLPdnLop9x1yh8Tnw48ghsKZMIHJBgNVHSMEgcEwgb6AFE/k -oLPdnLop9x1yh8Tnw48ghsKZoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE -CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH -QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG -CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJALOZgIbQVs/6MAwGA1Ud -EwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBAFclUbjZOh9z3g9tRp+G2tZwFAAp -PIigzXzXeLc9r8wZf6t25iEuVsHHYc/EL9cz3lLFCuCIFM78CjtaGkNGBU2Cnx2C -tCsgSL+ItdFJKe+F9g7dEtctVWV+IuPoXQTIMdYT0Zk4u4mCJH+jISVroS0dao+S -6h2xw3Mxe6DAN/DRr/ZFrvIkl5+6bnoUvAJccbmBOM7z3fwFlhfPJIRc97QNY4L3 -J17XOElatuWTG5QhdlxJG3L7aOCA29tYwgKdNHyLMozkPvaosVUz7fvpib1qSN1L -IC7alMarjdW4OZID2q4u1EYjLk/pvZYTlMYwDlE448/Shebk5INTjLixs1c= ------END CERTIFICATE----- diff --git a/Sign_Tools/signapk.jar b/Sign_Tools/signapk.jar deleted file mode 100644 index b484270..0000000 Binary files a/Sign_Tools/signapk.jar and /dev/null differ diff --git "a/Sign_Tools/\350\257\267\345\260\206apk\346\226\207\344\273\266\346\213\226\345\210\260\346\210\221\350\272\253\344\270\212.bat" "b/Sign_Tools/\350\257\267\345\260\206apk\346\226\207\344\273\266\346\213\226\345\210\260\346\210\221\350\272\253\344\270\212.bat" deleted file mode 100644 index 194a6c3..0000000 --- "a/Sign_Tools/\350\257\267\345\260\206apk\346\226\207\344\273\266\346\213\226\345\210\260\346\210\221\350\272\253\344\270\212.bat" +++ /dev/null @@ -1,3 +0,0 @@ - -java -jar signapk.jar platform.x509.pem platform.pk8 %1 %~n1_signed.apk -pause diff --git a/SudaRomUpdate.apk b/SudaRomUpdate.apk deleted file mode 100644 index 136e6f2..0000000 Binary files a/SudaRomUpdate.apk and /dev/null differ diff --git a/SudaRomUpdate/.settings/org.eclipse.jdt.core.prefs b/SudaRomUpdate/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index b080d2d..0000000 --- a/SudaRomUpdate/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/SudaRomUpdate/AndroidManifest.xml b/SudaRomUpdate/AndroidManifest.xml deleted file mode 100644 index 7d0904b..0000000 --- a/SudaRomUpdate/AndroidManifest.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/SudaRomUpdate/bin/AndroidManifest.xml b/SudaRomUpdate/bin/AndroidManifest.xml deleted file mode 100644 index 7d0904b..0000000 --- a/SudaRomUpdate/bin/AndroidManifest.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/SudaRomUpdate/bin/SudaRomUpdate.apk b/SudaRomUpdate/bin/SudaRomUpdate.apk deleted file mode 100644 index ab1de06..0000000 Binary files a/SudaRomUpdate/bin/SudaRomUpdate.apk and /dev/null differ diff --git a/SudaRomUpdate/bin/classes.dex b/SudaRomUpdate/bin/classes.dex deleted file mode 100644 index 1ccf4f4..0000000 Binary files a/SudaRomUpdate/bin/classes.dex and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/tools/SteamTools.class b/SudaRomUpdate/bin/classes/com/sudarom/tools/SteamTools.class deleted file mode 100644 index ae07b97..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/tools/SteamTools.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/tools/UrlTools.class b/SudaRomUpdate/bin/classes/com/sudarom/tools/UrlTools.class deleted file mode 100644 index c46eb83..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/tools/UrlTools.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/BuildConfig.class b/SudaRomUpdate/bin/classes/com/sudarom/update/BuildConfig.class deleted file mode 100644 index d6bed78..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/BuildConfig.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/R$attr.class b/SudaRomUpdate/bin/classes/com/sudarom/update/R$attr.class deleted file mode 100644 index 0048ab8..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/R$attr.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/R$dimen.class b/SudaRomUpdate/bin/classes/com/sudarom/update/R$dimen.class deleted file mode 100644 index 339a5a2..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/R$dimen.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/R$drawable.class b/SudaRomUpdate/bin/classes/com/sudarom/update/R$drawable.class deleted file mode 100644 index c44a8bf..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/R$drawable.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/R$id.class b/SudaRomUpdate/bin/classes/com/sudarom/update/R$id.class deleted file mode 100644 index 26faa98..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/R$id.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/R$layout.class b/SudaRomUpdate/bin/classes/com/sudarom/update/R$layout.class deleted file mode 100644 index b99eebf..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/R$layout.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/R$string.class b/SudaRomUpdate/bin/classes/com/sudarom/update/R$string.class deleted file mode 100644 index 335ccaf..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/R$string.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/R$style.class b/SudaRomUpdate/bin/classes/com/sudarom/update/R$style.class deleted file mode 100644 index 7f7d68b..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/R$style.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/R.class b/SudaRomUpdate/bin/classes/com/sudarom/update/R.class deleted file mode 100644 index 3118381..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/R.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$1.class b/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$1.class deleted file mode 100644 index cc145d3..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$1.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$2.class b/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$2.class deleted file mode 100644 index 82ce9aa..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$2.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$3.class b/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$3.class deleted file mode 100644 index 271e54b..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$3.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$4.class b/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$4.class deleted file mode 100644 index b019a02..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity$4.class and /dev/null differ diff --git a/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity.class b/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity.class deleted file mode 100644 index 3007f45..0000000 Binary files a/SudaRomUpdate/bin/classes/com/sudarom/update/UpdateActivity.class and /dev/null differ diff --git a/SudaRomUpdate/bin/dexedLibs/android-support-v4-368952fdbcf09a76da0eb20ba638b03d.jar b/SudaRomUpdate/bin/dexedLibs/android-support-v4-368952fdbcf09a76da0eb20ba638b03d.jar deleted file mode 100644 index 883eab0..0000000 Binary files a/SudaRomUpdate/bin/dexedLibs/android-support-v4-368952fdbcf09a76da0eb20ba638b03d.jar and /dev/null differ diff --git a/SudaRomUpdate/bin/res/drawable-xhdpi/icon.png b/SudaRomUpdate/bin/res/drawable-xhdpi/icon.png deleted file mode 100644 index 52937b2..0000000 Binary files a/SudaRomUpdate/bin/res/drawable-xhdpi/icon.png and /dev/null differ diff --git a/SudaRomUpdate/bin/resources.ap_ b/SudaRomUpdate/bin/resources.ap_ deleted file mode 100644 index f41bde5..0000000 Binary files a/SudaRomUpdate/bin/resources.ap_ and /dev/null differ diff --git a/SudaRomUpdate/gen/com/sudarom/update/R.java b/SudaRomUpdate/gen/com/sudarom/update/R.java deleted file mode 100644 index 3ce8f88..0000000 --- a/SudaRomUpdate/gen/com/sudarom/update/R.java +++ /dev/null @@ -1,85 +0,0 @@ -/* AUTO-GENERATED FILE. DO NOT MODIFY. - * - * This class was automatically generated by the - * aapt tool from the resource data it found. It - * should not be modified by hand. - */ - -package com.sudarom.update; - -public final class R { - public static final class attr { - } - public static final class dimen { - /** Default screen margins, per the Android Design guidelines. - */ - public static final int activity_horizontal_margin=0x7f040000; - public static final int activity_vertical_margin=0x7f040001; - } - public static final class drawable { - public static final int icon=0x7f020000; - public static final int ota_btn_bkg=0x7f020001; - public static final int ota_btn_pressed_bkg=0x7f020002; - public static final int selector=0x7f020003; - } - public static final class id { - public static final int buttoncheck=0x7f070000; - public static final int buttondisk=0x7f070002; - public static final int buttoninfo=0x7f070001; - public static final int current_version=0x7f070003; - public static final int latest_version=0x7f070004; - public static final int scrollView1=0x7f070005; - public static final int update_info=0x7f070006; - } - public static final class layout { - public static final int activity_main=0x7f030000; - } - public static final class string { - public static final int about=0x7f05000c; - public static final int app_name=0x7f050000; - public static final int author_info=0x7f050011; - public static final int cancel=0x7f050010; - public static final int check_version=0x7f050001; - public static final int confirm=0x7f05000f; - public static final int current_version=0x7f050004; - public static final int disk=0x7f050002; - public static final int disk_url=0x7f05000b; - public static final int isnew=0x7f050007; - public static final int lates_version=0x7f050005; - public static final int net_error=0x7f050006; - public static final int nisnew=0x7f050008; - public static final int reboot_recovery=0x7f05000e; - public static final int recovey=0x7f05000d; - public static final int update_info_url=0x7f05000a; - public static final int updateinfo=0x7f050003; - public static final int version_url=0x7f050009; - } - public static final class style { - /** - Base application theme, dependent on API level. This theme is replaced - by AppBaseTheme from res/values-vXX/styles.xml on newer devices. - - - Theme customizations available in newer API levels can go in - res/values-vXX/styles.xml, while customizations related to - backward-compatibility can go here. - - - Base application theme for API 11+. This theme completely replaces - AppBaseTheme from res/values/styles.xml on API 11+ devices. - - API 11 theme customizations can go here. - - Base application theme for API 14+. This theme completely replaces - AppBaseTheme from BOTH res/values/styles.xml and - res/values-v11/styles.xml on API 14+ devices. - - API 14 theme customizations can go here. - */ - public static final int AppBaseTheme=0x7f060000; - /** Application theme. - All customizations that are NOT specific to a particular API-level can go here. - */ - public static final int AppTheme=0x7f060001; - } -} diff --git a/SudaRomUpdate/libs/android-support-v4.jar b/SudaRomUpdate/libs/android-support-v4.jar deleted file mode 100644 index cf12d28..0000000 Binary files a/SudaRomUpdate/libs/android-support-v4.jar and /dev/null differ diff --git a/SudaRomUpdate/res/drawable-xhdpi/btn_bg_pressed.png b/SudaRomUpdate/res/drawable-xhdpi/btn_bg_pressed.png deleted file mode 100644 index 54d6ad5..0000000 Binary files a/SudaRomUpdate/res/drawable-xhdpi/btn_bg_pressed.png and /dev/null differ diff --git a/SudaRomUpdate/res/drawable-xhdpi/icon.png b/SudaRomUpdate/res/drawable-xhdpi/icon.png deleted file mode 100644 index 52937b2..0000000 Binary files a/SudaRomUpdate/res/drawable-xhdpi/icon.png and /dev/null differ diff --git a/SudaRomUpdate/res/drawable-xhdpi/ota_btn_bkg.9.png b/SudaRomUpdate/res/drawable-xhdpi/ota_btn_bkg.9.png deleted file mode 100644 index 30ca202..0000000 Binary files a/SudaRomUpdate/res/drawable-xhdpi/ota_btn_bkg.9.png and /dev/null differ diff --git a/SudaRomUpdate/res/drawable-xhdpi/ota_btn_pressed_bkg.9.png b/SudaRomUpdate/res/drawable-xhdpi/ota_btn_pressed_bkg.9.png deleted file mode 100644 index 7d4ba2e..0000000 Binary files a/SudaRomUpdate/res/drawable-xhdpi/ota_btn_pressed_bkg.9.png and /dev/null differ diff --git a/SudaRomUpdate/res/layout/activity_main.xml b/SudaRomUpdate/res/layout/activity_main.xml deleted file mode 100644 index 21173fd..0000000 --- a/SudaRomUpdate/res/layout/activity_main.xml +++ /dev/null @@ -1,82 +0,0 @@ - - -