Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7414197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:03:54+00:00 2026-05-29T07:03:54+00:00

The comment for the class BillingService recommends that: You should modify and obfuscate this

  • 0

The comment for the class BillingService recommends that:

You should modify and obfuscate this code before using it.

OK, but what must be modified?

The class name? The TAG used for logging? Method names and data members? The logic and program flow itself? Other?

In other words, I can understand the need for obfuscation, but how can I get away with implementing the recommendation without rewriting everything from scratch (potentially with bugs that are worse than not modifying anything)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:03:55+00:00Added an answer on May 29, 2026 at 7:03 am

    I’m working on this at this moment and my approach, so far, is as follows:

    1. I’m using the BillingReceiver, Billing Service, PurchaseObserver and ResponseHandler.
    2. I’ve moved all the Constants into my own Constants class and all the above classes are included in my own package.
    3. I’ve done away with the PurchaseDatabase class and integrated parts of it into my own SQLite database, DBAdapter and data access classes.
    4. I’ve changed the CatalogEntry into my own model object and my UI will be quite different to the example e.g. RadioButton group rather than Spinner for product items (I only have 4).
    5. It says in the Security class ‘For a secure implementation, all of this code should be implemented on a server that communicates with the application’. I’m ‘fortunate’ that my app has to contact my server anyway so I’ll be implementing these security measures on the server and I’ll be doing my own validation of the purchase info passed to the server. I’m looking to secure this part of the comms using SSL and I already require a prior username/password (hashed and salted) which is stored on my server.
    6. I’m cutting out any other superfluous code which I’m not using e.g. payload editing.
    7. Some of the methods have 5 or 6 parameters in their signature e.g. onPurchasestateChanged() – I was thinking about combining these into a single wrapper object (but haven’t done so yet).
    8. I’m testing it slowly and thoroughly, so that I understand what’s going on, and following the recommendations. I used the complete sample at first to make sure it worked and tested the static responses. Then I started making my own changes while still doing static testing. I’m still testing with static responses and I will follow the flow of messages to understand the interchanges going on. Once I’m happy with this I’ll test with my own product Id’s and try and satisfy myself on the data and its security.
    9. I’ve thought that the developerPayload string could also be signed and encypted and when returned to my server, decrypted and checked for integrity.
    10. Finally, I’ll obfuscate the code using ProGuard and follow some of the tips for doing so which are available on StackOverflow.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

take a look at this example code: public class Comment { private Comment() {
This is the model I am using: class Comment(MPTTModel): comment = models.CharField(max_length=1023) resource =
I am writing this comment class: class Comment { public $id; public $post_id; public
class Followup < ActiveRecord::Base belongs_to :post belongs_to :comment end This model needs to only
I have this model and modelform: class Comment(models.Model): text = models.CharField(max_length=100) def clean_text(self): print
Let's say I'm building an Article / Comment system like this: class Article(models.Model): title
Assume that there are Post and Comment models. class Post < ActiveRecord::Base has_many :comments
I have this models: class Comment(models.Model): text = models.TextField(max_length = 300) author = models.ForeignKey(User)
I realize that this is probably a very basic question, but I have spent
I have a Comment class with a :foreign_key of post_id in the Post class.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.