Open alfredonodo opened 1 year ago
I've played around with this and the only way to remove active admin that doesn't have the android:testOnly="true"
in the manifest is to factory wipe the device.
You can try this deprecated API to see if it works on your device: https://developer.android.com/reference/android/app/admin/DevicePolicyManager#clearDeviceOwnerApp%28java.lang.String%29
Source: https://stackoverflow.com/questions/49128293/how-to-remove-set-device-owner-in-android-dpm
Thank you for your reply. Lineage os 20 aka android 13 uses API level 33. I unpacked the apk with apktool and can confirm that there is no android:testOnly="true" in the manifest. I have tried to add it and rebuild, but I cannot install the package. Can the maintainer provide a package with this flag? Or are there any contraindications? Thank you
dev should add a different app signed with the same keys and this android:testOnly="true" flag in the manifest, to make it removable
Thank you for your reply. Lineage os 20 aka android 13 uses API level 33. I unpacked the apk with apktool and can confirm that there is no android:testOnly="true" in the manifest. I have tried to add it and rebuild, but I cannot install the package. Can the maintainer provide a package with this flag? Or are there any contraindications? Thank you
The application needs to be installed with adb using "adb install -t sentry.apk". Also make sure that you signed the apk file.
Thank you for your reply. Lineage os 20 aka android 13 uses API level 33. I unpacked the apk with apktool and can confirm that there is no android:testOnly="true" in the manifest. I have tried to add it and rebuild, but I cannot install the package. Can the maintainer provide a package with this flag? Or are there any contraindications? Thank you
The application needs to be installed with adb using "adb install -t sentry.apk". Also make sure that you signed the apk file.
won't work because signing certificate will be different
@x13a can you provide a signed apk with android:testOnly="true"
in the manifest so that users can uninstall the app without a factory reset ?
I incorrectly set sentry as profile owner and now i can't have a work profile.
Edit: backups and find my device also don't work now
@aly-k ok, will add soon
Thanks!
app-release.apk.zip @aly-k you can try this
@x13a Thanks for providing the build. Unfortunately, The update fails with error code INSTALL_FAILED_UPDATE_INCOMPATIBLE
. It seems that you can't update a production build to debug. Factory reset is the only way to remove profile or device owners.
Hi, I just found sentry and found out that it is written by the same developer as wasted. I have a device with lineage os 13 rooted with magisk and no google services, so I'm looking for a way to protect it in case of loss. On sentry safe boot, USB data signalling and controller are disabled and I can't access them.
Thank you
Edit: I already tried with this and by removing all admin apps.