Create folder at build time

252 views
Skip to first unread message

mushahidg...@gmail.com

unread,
Jul 25, 2020, 4:26:11 PM7/25/20
to android-platform
Is there any way to customize AOSP to create a folder and add apps in it at build time ? 

Thanks!

Regards,
Mushahid

mushahidg...@gmail.com

unread,
Jul 27, 2020, 12:15:14 PM7/27/20
to android-platform
I got the solution by myself, we can customize in following file
platform/packages/apps/Launcher3/res/xml/default_workspace_4x4.xml

My device supports 4x4 screen size, default_workspace_4x4.xml so i made changes in it

<folder title="@string/google_folder_title" screen="0" x="0" y="-1">
    <favorite packageName="com.google.android.googlequicksearchbox" className="com.google.android.googlequicksearchbox.SearchActivity"/>
    <favorite packageName="com.android.chrome" className="com.google.android.apps.chrome.Main"/>
    <favorite packageName="com.google.android.gm" className="com.google.android.gm.ConversationListActivityGmail"/>
    <favorite packageName="com.google.android.apps.maps" className="com.google.android.maps.MapsActivity"/>
    <favorite packageName="com.google.android.youtube" className="com.google.android.youtube.app.honeycomb.Shell$HomeActivity"/>
    <favorite packageName="com.google.android.apps.docs" className="com.google.android.apps.docs.app.NewMainProxyActivity"/>
    <favorite packageName="com.google.android.apps.youtube.music" className="com.google.android.apps.youtube.music.activities.MusicActivity"/>
    <favorite packageName="com.google.android.videos" className="com.google.android.youtube.videos.EntryPoint"/>
    <favorite packageName="com.google.android.apps.tachyon" className="com.google.android.apps.tachyon.MainActivity"/>
    <favorite packageName="com.google.android.apps.photos" className="com.google.android.apps.photos.home.HomeActivity"/>
  </folder>

But if you have gms module then you need to make changes in following file based on your path to reflect the changes on the launcher3
partner_gms/apps/GmsSampleIntegration/res_dhs_full/xml/partner_default_layout.xml 

Thanks

Regards,
Mushahid


Reply all
Reply to author
Forward
0 new messages