How to Reach Place to Patch Trough revenuecat
━━━━━━━━━━━━━━━━━━━
Points:
1. Determining the subscription status of a user can be done using the
CustomerInfo (Also known an PurchaserInfo) and EntitlementInfo objects.
2. The EntitlementInfo object gives you access to all of the information about the status of a user's entitlements.
3. "pro" access will be granted if user has active entitlement.
4. CustomerInfo will be empty if no purchases have been made and no transactions have been synced.
━━━━━━━━━━━━━━━━━━━
Codes:
// Check if the specified entitlement is active
if (customerInfo.getEntitlements().get(<my_entitlement_identifier>).isActive()) {
// Grant user "pro" access
// We can reach the actual location through the code flow here, where we can apply our patch.
}
━━━━━━━━━━━━━━━━━━━
Documentations:
1. https://www.revenuecat.com/docs/making-purchases
2. https://www.revenuecat.com/docs/customer-info#checking-if-a-user-is-subscribed
3. https://www.revenuecat.com/docs/getting-started#%EF%B8%8F-check-subscription-status
4. https://www.revenuecat.com/docs/purchaserinfo#section-get-entitlement-information
━━━━━━━━━━━━━━━━━━━
Class
Lcom/revenuecat/purchases/CustomerInfo;
Or
Lcom/revenuecat/purchases/PurchaserInfo;
Method
getEntitlements()
Regex to Search:
invoke-virtual \{([pv]\d+)\}, Lcom/revenuecat/purchases/(CustomerInfo|PurchaserInfo);->getEntitlements\(\)Lcom/revenuecat/purchases/EntitlementInfos;([\w\W])*?move-result-object ([pv]\d+)
Note: Sometime it will be obfuscated. So, that time this keyword will help you.
Keyword: activeEntitlements: .
👉 For Practical Video on this Method
https://t.me/TDOhex/415
━━━━━━━━━━━━━━━━━━━
💥💥💥💥💥💥💥💥💥💥
✍ by @Its_me_MuhammadRizwan
♻️ Join @TDOhex
💗 Follow @Android_Patches
🐞 Feedback @TDOhex_Discussion
💥💥💥💥💥💥💥💥💥💥08 سپتامبر 2023, 21:53
