Create folder at build time

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Create folder at build time

Mushahid Gillani
Is there any way to customize AOSP to create a folder and add apps in it at build time ? 

Thanks!

Regards,
Mushahid

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/dfbc9bcf-a1f4-4f18-97d9-570295f2cf2dn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Create folder at build time

Mushahid Gillani
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


On Sunday, July 26, 2020 at 1:26:11 AM UTC+5 [hidden email] wrote:
Is there any way to customize AOSP to create a folder and add apps in it at build time ? 

Thanks!

Regards,
Mushahid

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/df04e470-c4de-4dad-80cf-ce0654c46622n%40googlegroups.com.