Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Launcher3
Commits
b964f9c5
Commit
b964f9c5
authored
13 years ago
by
Michael Jurka
Browse files
Options
Download
Email Patches
Plain Diff
remove references to google apps
Change-Id: Id373dc701afdd476e125936711bbb040e1451f9e
parent
5f09e62c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
69 deletions
+18
-69
fill_screens.py
fill_screens.py
+4
-5
res/values/strings.xml
res/values/strings.xml
+2
-11
res/xml/default_workspace.xml
res/xml/default_workspace.xml
+4
-48
src/com/android/launcher2/Launcher.java
src/com/android/launcher2/Launcher.java
+8
-5
No files found.
fill_screens.py
View file @
b964f9c5
...
...
@@ -15,13 +15,12 @@ DIR = "db_files"
AUTO_FILE
=
"launcher.db"
APPLICATION_COMPONENTS
=
[
"com.google.android.apps.books/com.google.android.apps.books.app.BooksActivity"
,
"com.android.calculator2/com.android.calculator2.Calculator"
,
"com.google.android.camera/com.android.camera.Camera"
,
"com.google.android.carhome/com.google.android.carhome.CarHome"
,
"com.android.providers.downloads.ui/com.android.providers.downloads.ui.DownloadList"
,
"com.google.android.gallery3d/com.android.gallery3d.app.Gallery"
,
"com.google.android.apps.maps/com.google.android.maps.MapsActivity"
"com.android.settings/com.android.settings.Settings"
,
"com.android.mms/com.android.mms.ui.ConversationList"
,
"com.android.contacts/com.android.contacts.activities.PeopleActivity"
,
"com.android.contacts/com.android.contacts.activities.DialtactsActivity"
]
def
usage
():
...
...
This diff is collapsed.
Click to expand it.
res/values/strings.xml
View file @
b964f9c5
...
...
@@ -153,8 +153,8 @@ s -->
<!-- Noun, menu item used to show help. [CHAR_LIMIT=none] -->
<string
name=
"menu_help"
>
Help
</string>
<!-- URL pointing to help text. [DO NOT TRANSLATE] -->
<string
name=
"help_url"
translatable=
"false"
>
http://www.google.com/support/mobile/?p=help_home
</string>
<!-- URL pointing to help text.
If empty, no link to help will be created
[DO NOT TRANSLATE] -->
<string
name=
"help_url"
translatable=
"false"
></string>
<!-- Strings for the contextual action bar (CAB) in All Apps -->
<skip
/>
...
...
@@ -199,18 +199,9 @@ s -->
<!-- Widgets: -->
<skip
/>
<!-- The Google Apps folder name -->
<string
name=
"google_apps_folder_name"
>
Google
</string>
<!-- Text to show user in place of a gadget when we can't display it properly -->
<string
name=
"gadget_error_text"
>
Problem loading widget
</string>
<!-- URL to use when detecting the current default browser.
Attempts to mimic homepage_base in Browser; {CID} should be replaced
by the client-id, e.g. "android-google". -->
<string
name=
"default_browser_url"
translatable=
"false"
>
http://www.google.com/m?client=ms-{CID}
&
source=android-home-hotseat
</string>
<!-- Text to inform the user that they can't uninstall a system application -->
<string
name=
"uninstall_system_app_text"
>
This is a system application and cannot be uninstalled.
</string>
...
...
This diff is collapsed.
Click to expand it.
res/xml/default_workspace.xml
View file @
b964f9c5
...
...
@@ -29,7 +29,7 @@
<!-- Middle screen [2] -->
<appwidget
launcher:packageName=
"com.
google.
android.deskclock"
launcher:packageName=
"com.android.deskclock"
launcher:className=
"com.android.alarmclock.AnalogAppWidgetProvider"
launcher:screen=
"2"
launcher:x=
"1"
...
...
@@ -37,59 +37,15 @@
launcher:spanX=
"2"
launcher:spanY=
"2"
/>
<favorite
launcher:packageName=
"com.
google.
android.camera"
launcher:packageName=
"com.android.camera"
launcher:className=
"com.android.camera.Camera"
launcher:screen=
"2"
launcher:x=
"0"
launcher:y=
"3"
/>
<folder
launcher:screen=
"2"
launcher:x=
"3"
launcher:y=
"3"
launcher:title=
"@string/google_apps_folder_name"
>
<favorite
launcher:packageName=
"com.google.android.apps.maps"
launcher:className=
"com.google.android.maps.MapsActivity"
/>
<favorite
launcher:packageName=
"com.google.android.gm"
launcher:className=
"com.google.android.gm.ConversationListActivityGmail"
/>
<favorite
launcher:packageName=
"com.google.android.calendar"
launcher:className=
"com.android.calendar.AllInOneActivity"
/>
<favorite
launcher:packageName=
"com.google.android.apps.plus"
launcher:className=
"com.google.android.apps.plus.phone.HomeActivity"
/>
<favorite
launcher:packageName=
"com.google.android.music"
launcher:className=
"com.android.music.activitymanagement.TopLevelActivity"
/>
<favorite
launcher:packageName=
"com.google.android.apps.books"
launcher:className=
"com.google.android.apps.books.app.BooksActivity"
/>
<favorite
launcher:packageName=
"com.google.android.videos"
launcher:className=
"com.google.android.youtube.videos.honeycomb.VideosActivity"
/>
<favorite
launcher:packageName=
"com.android.vending"
launcher:className=
"com.android.vending.AssetBrowserActivity"
/>
<favorite
launcher:packageName=
"com.google.android.talk"
launcher:className=
"com.google.android.talk.SigningInActivity"
/>
<favorite
launcher:packageName=
"com.google.android.youtube"
launcher:className=
"com.google.android.youtube.app.honeycomb.Shell$HomeActivity"
/>
</folder>
<!-- Right screen [3] -->
<appwidget
launcher:packageName=
"com.android.vending"
launcher:className=
"com.android.vending.MarketWidgetProvider"
launcher:screen=
"3"
launcher:x=
"1"
launcher:y=
"1"
launcher:spanX=
"2"
launcher:spanY=
"2"
/>
<favorite
launcher:packageName=
"com.
google.
android.gallery3d"
launcher:packageName=
"com.android.gallery3d"
launcher:className=
"com.android.gallery3d.app.Gallery"
launcher:screen=
"3"
launcher:x=
"1"
...
...
@@ -126,7 +82,7 @@
launcher:x=
"3"
launcher:y=
"0"
/>
<favorite
launcher:packageName=
"com.
google.
android.browser"
launcher:packageName=
"com.android.browser"
launcher:className=
"com.android.browser.BrowserActivity"
launcher:container=
"-101"
launcher:screen=
"4"
...
...
This diff is collapsed.
Click to expand it.
src/com/android/launcher2/Launcher.java
View file @
b964f9c5
...
...
@@ -1302,7 +1302,8 @@ public final class Launcher extends Activity
Intent
settings
=
new
Intent
(
android
.
provider
.
Settings
.
ACTION_SETTINGS
);
settings
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
|
Intent
.
FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
);
Intent
help
=
new
Intent
(
Intent
.
ACTION_VIEW
,
Uri
.
parse
(
getString
(
R
.
string
.
help_url
)));
String
helpUrl
=
getString
(
R
.
string
.
help_url
);
Intent
help
=
new
Intent
(
Intent
.
ACTION_VIEW
,
Uri
.
parse
(
helpUrl
));
help
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
|
Intent
.
FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
);
...
...
@@ -1317,10 +1318,12 @@ public final class Launcher extends Activity
.
setIcon
(
android
.
R
.
drawable
.
ic_menu_preferences
)
.
setIntent
(
settings
)
.
setAlphabeticShortcut
(
'P'
);
menu
.
add
(
0
,
MENU_HELP
,
0
,
R
.
string
.
menu_help
)
.
setIcon
(
android
.
R
.
drawable
.
ic_menu_help
)
.
setIntent
(
help
)
.
setAlphabeticShortcut
(
'H'
);
if
(!
helpUrl
.
isEmpty
())
{
menu
.
add
(
0
,
MENU_HELP
,
0
,
R
.
string
.
menu_help
)
.
setIcon
(
android
.
R
.
drawable
.
ic_menu_help
)
.
setIntent
(
help
)
.
setAlphabeticShortcut
(
'H'
);
}
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment