Long-press menu in the app drawer, with Uninstall

Long-pressing an app in the drawer now opens a menu (Add to home or
Remove from home, App info, Uninstall) instead of adding it straight to
home. Uninstall fires ACTION_DELETE for the app's package (needs
REQUEST_DELETE_PACKAGES) and is hidden for system apps, which apps.json
now flags. When the uninstalled app leaves the reloaded list, its home
slot is removed too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XicVK7N1cmDdm1ZwpHAxFD
This commit is contained in:
Claude committed 2026-10-22 07:30:57 +00:00
1 parent c3f3e4eedb
commit 8e2f2e8192
8 files changed
+105 -10

No files matched your search

+2
View File
@@ -25,6 +25,7 @@
const host = window.Android || {
launch: (c) => toast("Open " + c),
appInfo: (c) => toast("App info for " + c),
uninstall: (c) => toast("Uninstall " + c),
addWidget: () => setTimeout(() => window.ultraHome.widgetAdded(demoWidget++), 0),
removeWidget: () => {},
placeWidgets: () => {},
@@ -122,6 +123,7 @@
imports: ({ strs }) => ({
launch: (h) => host.launch(strs[h]),
app_info: (h) => host.appInfo(strs[h]),
uninstall: (h) => host.uninstall(strs[h]),
add_widget: (h) => host.addWidget(strs[h]),
remove_widget: (id) => host.removeWidget(id),
open_settings: () => host.openSettings(),