This is simply not possible for a custom application. Not in vain - imagine that a malicious application has appeared on the market that cannot be removed!
The only way to do this would be with root privileges, like with media, with crapware pre-installed, which is stored in the system partition for read-only purposes of your phone.
, , (?). root . , , , .