1. File path
vendor/go-gms/apps_go/GmsSampleIntegrationGo/res/xml/partner_default_layout.xml
2. Screen division
The bottom and middle screens are separate. The bottom icons are on screen 0 / 1 / 2 / 3, and the middle screen and the right screen are on screen 0 / 1.
2.1 single icon at the bottom
<!-- Hotseat (We use the screen as the position of the item in the hotseat) --> <!--FileManager--> <favorite className="com.mediatek.filemanager.FileManagerOperationActivity" container="-101" packageName="com.mediatek.filemanager" screen="0" />//The first icon is on screen 0 <!--Chrome--> <favorite className="com.google.android.apps.chrome.Main" container="-101" packageName="com.android.chrome" screen="1"/>//The second icon is on screen 1 <!--Gmail--> <favorite className="com.google.android.gm.ConversationListActivityGmail" container="-101" packageName="com.google.android.gm.lite" screen="2"//The second icon is on screen 1 x="0" //Independent of x/y coordinates y="9" /> <!--Camera--> <favorite className="com.android.camera.CameraLauncher" container="-101" packageName="com.mediatek.camera" screen="3" x="8" y="0" />
2.2 add documents to the middle part
<folder screen="0" title="@string/google_folder_title" x="0" y="3"> //(0, 3) on screen 0 <!--Google Go--> <favorite className="com.google.android.apps.searchlite.ui.SearchActivity" packageName="com.google.android.apps.searchlite" /> <!--Assistant Go--> <favorite className="com.google.android.apps.assistant.go.MainActivity" packageName="com.google.android.apps.assistant"/> </folder> <folder screen="0" title="@string/google_folder_title" x="3" y="3">//(3, 3) on screen 0 <favorite className="com.android.vending.AssetBrowserActivity" packageName="com.android.vending"/> </folder>
3. Check whether mtk's launcher or Google's launcher is used
File path: alps/device/mediatek/common/ago/device.mk
ifeq (yes,$(strip $(MTK_GMO_RAM_OPTIMIZE))) PRODUCT_PACKAGES += Launcher3Go else PRODUCT_PACKAGES += Launcher3 # Add MtkLauncher3 to replace Launcher3 when vendor code is available ifneq ($(wildcard vendor/mediatek/proprietary/packages/apps/Launcher3/Android.mk),) PRODUCT_PACKAGES += MtkLauncher3 endif endif
In the corresponding project, check whether MTK? GMO? Ram? Optimize is open. as
device/mediateksample/k80hd_bsp_fwv_512m/ProjectConfig.mk
MTK_GMO_RAM_OPTIMIZE = yes
4
adb shell pm clear com.android.launcher3
5. Database corresponding to launcher
1) cd to / data/data/com.android.launcher3/databases
2) ls
app_icons.db launcher.db widgetpreviews.db
3) sqlite3 launcher.db
SQLite version 3.19.4 2017-08-18 19:28:12
Enter ".help" for usage hints.
4) sqlite> .tables
android_metadata favorites workspaceScreens
5) SQLite > select * from favorites; / / SQL statement should be provided with;