"Error installing Insular -126: Package com.oasisfeng.island.fdroid attempting to redeclare permission group com.oasisfeng.island.permission-group.PACKAGE_ACCESS already owned by com.oasisfeng.island
Summary
When installing insular from fdroid or adb install after removing the work profile and uninstalling island (to switch to insular) it results in the error. Tried the manual setup and once you try pm install -r --user <user-id> <path to package>
you get the same error
Steps to reproduce
Install insular via fdroid or adb install and you get the error
or setup manually and once you do pm install -r --user <user-id> <path to package>
you get Failure [-126: Package com.oasisfeng.island.fdroid attempting to redeclare permission group com.oasisfeng.island.permission-group.PACKAGE_ACCESS already owned by com.oasisfeng.island]
What is the current bug behavior?
On Fdroid
Error installing Insular -126: Package com.oasisfeng.island.fdroid attempting to redeclare permission group com.oasisfeng.island.permission-group.PACKAGE_ACCESS already owned by com.oasisfeng.island
On adb
Failure [-126: Package com.oasisfeng.island.fdroid attempting to redeclare permission group com.oasisfeng.island.permission-group.PACKAGE_ACCESS already owned by com.oasisfeng.island]
What is the expected correct behavior?
The app installs
Relevant logs and/or screenshots
When doing adb shell pm list permission-groups
it shows permission group:com.oasisfeng.island.permission-group.PACKAGE_ACCESS
When doing adb shell pm list permissions -g -d
Dangerous Permissions:
group:com.oasisfeng.island.permission-group.PACKAGE_ACCESS
and just the group and no permissions under it. The rest of it is other groups for other applications.
Environment information
Android version: 14 Insular version: 6.4-66cd8034
Possible fixes
engine/src/main/AndroidManifest.xml
7
<permission-group android:name="com.oasisfeng.island.permission-group.PACKAGE_ACCESS" android:label="@string/permission_group_control_island_apps_label" android:description="@string/permission_group_control_island_apps_description" android:icon="@drawable/ic_landscape_black_24dp" />
8
9
<permission android:name="com.oasisfeng.island.permission.FREEZE_PACKAGE" android:permissionGroup="com.oasisfeng.island.permission-group.PACKAGE_ACCESS" android:protectionLevel="dangerous" android:label="@string/permission_freeze_app_label" android:description="@string/permission_freeze_app_description" />
10
11
<permission android:name="com.oasisfeng.island.permission.LAUNCH_PACKAGE" android:permissionGroup="com.oasisfeng.island.permission-group.PACKAGE_ACCESS" android:protectionLevel="dangerous" android:label="@string/permission_launch_app_label" android:description="@string/permission_launch_app_description" />
12
13
<permission android:name="com.oasisfeng.island.permission.SUSPEND_PACKAGE" android:permissionGroup="com.oasisfeng.island.permission-group.PACKAGE_ACCESS" android:protectionLevel="dangerous" android:label="@string/permission_suspend_app_label" android:description="@string/permission_suspend_app_description" />