locked iphone device purchased legally
If I were to purchase an iphone legally through a police auction, or a liquidation service, and have proof of purchase of the device from either the police auction or the liquidation service, can it be unlocked if it is activation locked or icloud locked?