原始版本在分支里面:launcher3_6.0
-
Android studio 2.3.1
-
classpath 'com.android.tools.build:gradle:2.3.1'
-
distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip
-
build.gradle中的 applicationId 'com.android.launcher3'改成对应包名
-
AndroidManifest.xml中的所有"com.android.launcher3"的改成对应的包名
-
代码中ProviderConfig.java中的"com.android.launcher3.settings"改成对应包名,同时修改AndroidManifest中的 provider中的android:authorities="com.android.launcher3.settings"以及 android:name="com.codemx.launcher3.LauncherProvider" 改成对应包名,以及provider中的writePermission和readPermission权限的包名也要改成对应包名,这个权限对应:
这个权限和provider中的权限是对应的,都需要改包名,如果不改都不改。
-
protos包中的launcher_log.proto中的option java_package = "com.android.launcher3.userevent.nano"改成对应包名
-
xml文件夹中文件修改:所有文件中的xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3" 里面的"com.android.launcher3"改成你对应的包名,另外,backupscheme.xml中 中的"com.android.launcher3"改成对应包名
-
其实就是所有"com.android.launcher3"的都改,没有"3"的都不改