/** * Returns true if the specified item has been registered as purchased in local memory, false * otherwise. Also note that the item might have been purchased in another installation, but not * yet registered in this one. * * @param context * @param itemId item id. * @return true if the specified item is purchased, false otherwise. */ public static boolean isPurchased(Context context, String itemId) { final byte[] salt = getSalt(); itemId = salt != null ? Security.obfuscate(context, salt, itemId) : itemId; return TransactionManager.isPurchased(context, itemId); }