Skip to content

Commit

Permalink
Add OOS Launcher && Recents Provider
Browse files Browse the repository at this point in the history
"Port by @MrSluffy
  • Loading branch information
sherifrahim committed Jan 31, 2021
0 parents commit 06b6b72
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 0 deletions.
9 changes: 9 additions & 0 deletions OPLauncher.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include $(call first-makefiles-under,$(LOCAL_PATH))

PRODUCT_COPY_FILES += \
vendor/oplauncher/etc/permissions/privapp-permissions-op-launcher.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-op-launcher.xml \
vendor/oplauncher/etc/sysconfig/op-launcher-hiddenapi-package-whitelist.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/op-launcher-hiddenapi-package-whitelist.xml

PRODUCT_PACKAGES += \
OnePlusRecentsProvider \
OPLauncher
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OPLauncher Port for Android 11 Roms

// Ported by @MrSluffy && inlined by @sherifrahim
27 changes: 27 additions & 0 deletions etc/permissions/privapp-permissions-op-launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This XML file declares which signature|privileged permissions should be granted to privileged
applications on GMS or Google-branded devices.
It allows additional grants on top of privapp-permissions-platform.xml
-->
<permissions>
<privapp-permissions package="net.oneplus.launcher">
<permission name="android.permission.BIND_APPWIDGET"/>
<permission name="android.permission.CONTROL_REMOTE_APP_TRANSITION_ANIMATIONS"/>
<permission name="android.permission.DEVICE_POWER"/>
<permission name="android.permission.FORCE_STOP_PACKAGES"/>
<permission name="android.permission.GET_APP_OPS_STATS"/>
<permission name="android.permission.INTERACT_ACROSS_USERS"/>
<permission name="android.permission.MANAGE_USERS"/>
<permission name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
<permission name="android.permission.REQUEST_INSTALL_PACKAGES"/>
<permission name="android.permission.SET_WALLPAPER_COMPONENT"/>
<permission name="android.permission.STATUS_BAR"/>
<permission name="android.permission.STOP_APP_SWITCHES"/>
<permission name="android.permission.UPDATE_APP_OPS_STATS"/>
<permission name="android.permission.USE_RESERVED_DISK"/>
<permission name="android.permission.WRITE_MEDIA_STORAGE"/>
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
</privapp-permissions>
</permissions>
7 changes: 7 additions & 0 deletions etc/sysconfig/op-launcher-hiddenapi-package-whitelist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This XML file declares which platform apps that need to access internal APIs.
-->
<config>
<hidden-api-whitelisted-app package="net.oneplus.launcher" />
</config>
12 changes: 12 additions & 0 deletions priv-app/OPLauncher/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := OPLauncher
LOCAL_MODULE_STEM := OPLauncher.apk
LOCAL_SRC_FILES := OPLauncher.apk
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT)/priv-app/OPLauncher
LOCAL_OVERRIDES_PACKAGES := PixelLauncher TrebuchetQuickStep Launcher3 NexusLauncherPrebuilt NexusLauncherRelease ParanoidQuickStep Launcher3QuickStep

include $(BUILD_PREBUILT)
Binary file added priv-app/OPLauncher/OPLauncher.apk
Binary file not shown.
11 changes: 11 additions & 0 deletions product/overlay/OnePlusRecentsProvider/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := OnePlusRecentsProvider
LOCAL_MODULE_STEM := OnePlusRecentsProvider.apk
LOCAL_SRC_FILES := OnePlusRecentsProvider.apk
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT)/product/overlay/OnePlusRecentsProvider
LOCAL_OVERRIDES_PACKAGES := PixelLauncherOverlay
include $(BUILD_PREBUILT)
Binary file not shown.

0 comments on commit 06b6b72

Please sign in to comment.