Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by PanCrucian · Feb 15, 2014 at 02:36 PM · android iphoneprotectionhacking

Protection from hacking "In app purchase" on Android/iOS

Hey. How to protect your application from hacking "in app purchase" on Android/iOS, which are used by programs such as "Freedom"?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by MakeCodeNow · Feb 15, 2014 at 06:18 PM

If someone has rooted their device, your options are pretty limited, and the right solution depends on the kind of hacks you're trying to avoid. However, most solution revolve routing purchases through a server you control. Here are the Apple docs on that. You can actually set something like that up pretty easily w/ Google App Engine.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by lilboylost · Aug 07, 2014 at 08:41 AM

1) You can setup a server for receipt verification 2) Once you get a purchase response from server, send another request to Google server to get all Purchase products for the user. This will cross verify the purchase. 3) Don't allow your app to run on rooted devices. 4) Freedom fake transaction id corresponds to Billing format 2. Upgrade to Google billing format 3 and easily validate the transaction id format

Good luck. Let me know which solution worked for you.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image PanCrucian · Aug 07, 2014 at 08:51 AM 0
Share

server receipt verification - best solution, thx u

avatar image lilboylost · Aug 18, 2014 at 04:27 AM 0
Share

As per my understanding, server can only protect you if you are not hosting content on device. If content is already on device, client can fake server response as well. Can you please help me in understanding your solution?

avatar image
0

Answer by cgutierrez71 · Aug 11, 2015 at 06:53 PM

Hi lilboylost, could you tell me how to implement the point 3?

"Don't allow your app to run on rooted devices."

I've tested several on the net but don't work.

Thanks a lot.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lilboylost · Aug 11, 2015 at 07:00 PM 0
Share

https://www.google.com/search?q=android+dev+check+rooted

I am not using rooted check as I want my app to run on rooted devices. I am doing a server side RSA validation of transaction receipt, which is sufficient. In order to fake server response, hacker need to create a cheat code app specific to your application.

avatar image cgutierrez71 · Aug 11, 2015 at 07:03 PM 0
Share

Ok but, do you know how to implement the point 3 in Unity?

Thanks,

avatar image lilboylost · Aug 11, 2015 at 07:33 PM 0
Share

You can only do it in Android Native code (java), and need to expose it into Unity via plugin or reflection.

avatar image cgutierrez71 · Aug 11, 2015 at 08:02 PM 0
Share

Thanks lilboylost, your answer has been very useful for me.

I'm serching on the assets store and there is a plugin that I think that works for this. Is called "A$$anonymous$$97 Soft Android Root Checker" I'm going to try it.

avatar image whaleinthesea · Aug 11, 2015 at 08:55 PM 0
Share

See my answer on http://answers.unity3d.com/questions/1012407/detecting-rootedjail-broken-devices.html for free root and jailbraik detection.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Anti-Hacking 2 Answers

Protection from Reverse Engineering/Hacking 1 Answer

Logged Into Unity Account with gmail and everything was in Chinese. Should I be concerned about hacking? 0 Answers

UIManager.gameRulesOne cannot be used as a method or delegate/ is inaccessible due to its protection level 1 Answer

Android specific statement 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges