What package or event can I use so that my apk can not uninstall or execute an action when it wants to uninstall?
This is impossible.
You can provide messaging to the user and make it slightly more difficult when uninstalling using the admin api.
have a look here - https://stackoverflow.com/a/7540037/1856361