├── settings.gradle ├── app ├── .gitignore ├── src │ ├── main │ │ ├── ic_launcher-web.png │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── unknow.png │ │ │ │ ├── ic_baseline_hourglass_top_24.xml │ │ │ │ ├── ic_info_black_24dp.xml │ │ │ │ ├── ic_apps_black_24dp.xml │ │ │ │ ├── ic_search_24dp.xml │ │ │ │ ├── ic_search_black_24dp.xml │ │ │ │ ├── ic_rounded_corner_black_24dp.xml │ │ │ │ ├── bg_buttom_border_only.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── colors.xml │ │ │ │ └── strings.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── splash_activity.xml │ │ │ │ ├── applist_item.xml │ │ │ │ ├── applist_activity.xml │ │ │ │ ├── appbeta_activity.xml │ │ │ │ └── activity_setting.xml │ │ │ └── values-zh │ │ │ │ └── strings.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── tumuyan │ │ │ │ └── fixedplay │ │ │ │ ├── App │ │ │ │ ├── Item.java │ │ │ │ ├── ItemAdapter.java │ │ │ │ └── SelectOne.java │ │ │ │ ├── Beta │ │ │ │ ├── IntentFilter.java │ │ │ │ ├── mixAdapter.java │ │ │ │ ├── readFile.java │ │ │ │ └── SelectApp.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── SettingActivity.java │ │ └── AndroidManifest.xml │ └── test │ │ └── java │ │ └── com │ │ └── tumuyan │ │ └── fixedplay │ │ └── ExampleUnitTest.java ├── proguard-rules.pro └── build.gradle ├── demo.jpg ├── screen_chs.jpg ├── screen_eng.jpg ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── README.md ├── gradlew.bat └── gradlew /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /release/ 3 | -------------------------------------------------------------------------------- /demo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/demo.jpg -------------------------------------------------------------------------------- /screen_chs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/screen_chs.jpg -------------------------------------------------------------------------------- /screen_eng.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/screen_eng.jpg -------------------------------------------------------------------------------- /app/src/main/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/ic_launcher-web.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/unknow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/drawable/unknow.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea 5 | /.gradle 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tumuyan/AnyLauncher/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008375 4 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_hourglass_top_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_info_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/test/java/com/tumuyan/fixedplay/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.tumuyan.fixedplay; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_apps_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/splash_activity.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_search_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_search_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_rounded_corner_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AnyLauncher 2 | You can choose any Android application and set it as a Launcher. 3 | 4 | ## Download | 下载 5 | [Github Release](https://github.com/tumuyan/AnyLauncher/releases) 6 | 7 | ## About | 关于 8 | ![](demo.jpg) 9 | ![english](screen_eng.jpg) 10 | ![chinese](screen_chs.jpg) 11 | 可以选择任意一个应用把他设置为Launcher. 12 | 似乎并没有什么卵用? 13 | 如果你把一台安卓设备当成专用机(电子相册、电子菜单、手持终端),使用AnyLauncher就可以一定程度屏蔽home键,让用户哪怕误操作跳到其他应用中后,一按home又回来了。 14 | 当然如果你花钱订制了专用机的软硬件,这样的功能应该有了吧 吧 吧 吧 吧。 15 | 16 | 有两个工作模式: 17 | 1. 按下Home键,启动指定应用 18 | 2. 连续快速按下三次Home键,启动备用启动器 19 | 20 | 工作模式1又有多种设置模式: 21 | 1. 每次按下home键,都重新打开选中的应用的默认Activity; 22 | 2. 每次按下home键,把选中的应用切换到前台 23 | 3. 打开指定网页、地图、电话拨号、应用的具体Activity、快捷方式等 24 | 25 | 目前无法保证能跳转到系统默认Launcher选择器的界面,百度到的方法似乎都不怎么好用。如果有简单的demo请联系我 26 | 27 | 28 | ## Build Environment 29 | * Android Gradle Plugin 3.2.1 30 | * Gradle 4.6 31 | * Oracle OpenJDK 1.8 -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_buttom_border_only.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 34 5 | buildToolsVersion '29.0.2' 6 | defaultConfig { 7 | applicationId "com.tumuyan.fixedplay" 8 | minSdkVersion 9 9 | targetSdkVersion 29 10 | versionCode 14 11 | versionName "1.13" 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 | vectorDrawables.useSupportLibrary = true 14 | } 15 | buildTypes { 16 | release { 17 | minifyEnabled false 18 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 19 | } 20 | } 21 | android.applicationVariants.all { 22 | variant -> 23 | variant.outputs.all { 24 | outputFileName = "Anylauncher-${variant.versionName}.apk" 25 | } 26 | } 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_8 29 | targetCompatibility JavaVersion.VERSION_1_8 30 | } 31 | } 32 | 33 | dependencies { 34 | implementation fileTree(include: ['*.jar'], dir: 'libs') 35 | // implementation 'com.android.support.constraint:constraint-layout:1.1.3' 36 | implementation 'com.android.support:support-v4:25.4.0' // support-v4:26 need minSdkVersion 14 37 | // implementation 'com.android.support:appcompat-v7:25.0.0' 38 | // implementation 'com.android.support:support-v4:28.0.0' 39 | // implementation 'com.android.support:support-vector-drawable:28.0.0' 40 | testImplementation 'junit:junit:4.13.2' 41 | // androidTestImplementation 'com.android.support.test:runner:1.0.2' 42 | // androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 43 | implementation 'net.dongliu:apk-parser:2.6.4' 44 | 45 | implementation 'com.github.bumptech.glide:glide:3.8.0' 46 | } 47 | -------------------------------------------------------------------------------- /app/src/main/res/values-zh/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | AnyLauncher 4 | 设置任意应用为启动器 5 | 选择启动模式 6 | 当前选中应用 7 | 切换后台应用 8 | 打开应用主界面 9 | 设置桌面 10 | 选择应用 11 | 此应用可能无法设置为Launcher 12 | 这个功能看可能并没什么卵用,\n还是手动在系统里设置吧\n有解决问题的demo请联系我 13 | 搜索 14 | 15 | 模式%1$s启动应用时发生了错误" 16 | 17 | 18 | 优先从后台切换到前台 19 | 重新打开应用Activity 20 | 浏览网页 21 | 打开地图 22 | 拨打电话 23 | 打开文件 24 | 特定Activity 25 | 快捷方式 26 | 备用启动器 27 | 28 | 29 | 30 | 延迟时间(毫秒) 31 | 图片的文件路径或网址 32 | 33 | 34 | 网址链接 35 | 地图坐标 36 | 电话号码 37 | 文件路径 38 | 39 | 确定 40 | 取消 41 | 42 | 备用启动器 43 | 延迟启动 44 | 延迟(开机后第一次用Anylauncher启动应用时,做延时处理) 45 | 三击Home生效 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /app/src/main/res/layout/applist_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 17 | 18 | 25 | 26 | 34 | 35 | 42 | 43 | 44 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /app/src/main/java/com/tumuyan/fixedplay/App/Item.java: -------------------------------------------------------------------------------- 1 | package com.tumuyan.fixedplay.App; 2 | 3 | import android.graphics.drawable.Drawable; 4 | 5 | public class Item { 6 | private String name; 7 | private String packageName; 8 | private String className=""; 9 | private Drawable appIcon; 10 | private String ext=""; 11 | 12 | /* 13 | private int position=0; 14 | 15 | public void setPosition(int position) { 16 | this.position = position; 17 | } 18 | 19 | public int getPosition() { 20 | return position; 21 | }*/ 22 | public Item(){ 23 | 24 | } 25 | public Item(String name, String packageName){ 26 | this.name=name; 27 | this.packageName=packageName; 28 | 29 | } 30 | public Item(String name, String packageName, Drawable appIcon){ 31 | this.name=name; 32 | this.packageName=packageName; 33 | this.appIcon=appIcon; 34 | } 35 | 36 | public Item(String name,String packageName, String className,Drawable appIcon){ 37 | this.name=name; 38 | this.packageName=packageName; 39 | this.className=className; 40 | this.appIcon=appIcon; 41 | } 42 | 43 | public Item(String name,String packageName, String className,Drawable appIcon,Object ext){ 44 | this.name=name; 45 | this.packageName=packageName; 46 | this.className=className; 47 | this.appIcon=appIcon; 48 | this.ext=""+ext; 49 | } 50 | 51 | public void setClassName(String className) { 52 | this.className = className; 53 | } 54 | 55 | public String getClassName() { 56 | return className; 57 | } 58 | 59 | public Drawable getAppIcon() { 60 | return appIcon; 61 | } 62 | 63 | public String getPackageName() { 64 | return packageName; 65 | } 66 | 67 | public String getName() { 68 | return name; 69 | } 70 | 71 | public void setExt(Object ext) { 72 | this.ext = ""+ext; 73 | } 74 | 75 | public String getExt() { 76 | return ext; 77 | } 78 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/applist_activity.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | 15 | 25 | 26 | 36 | 37 | 38 |