What does billing.properties do in .apk files?

Salvare000

Member
Feb 21, 2021
162
18
I've downloaded an android H game but it was downloaded as a .zip file accidentally so when I accidentally opened it I saw this "billing.properties" file. What does it do when I install & run the .apk file, is it safe? I couldn't find anything about it on the internet.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,398
15,312
What does it do when I install & run the .apk file, is it safe?
I'll present the problem otherwise: Do you really think that, if someone was putting malicious code in a game, he would give it such obvious name ?


I couldn't find anything about it on the internet.
Well, I did better than you. Not much, but enough to find that billing.properties is (part of?) Google Play billing library ; perhaps the specific implementation for Unity, but my guess goes for the generic implementation since Unity already have it's own In-App Purchasing (IAP) library.

Therefore it's what permit to manage the in-game payments, if there's. Is it totally safe ? Well, not at 100%, no code is safe a 100%. But believe me, if it was possible for an app to use this library to make payment without your consent, it would have been done since years, quickly known, and quickly fixed.
Unlike other kind of vulnerability, it's not something that can pass unnoticed, since it create an entry in your bank account. Thousands of people would suddenly complain about one (or more) payment they didn't approved. Banks would quickly notice that they are all related to Google Apps, then turn to Google for explanation. Google would quickly discover that all the fraudulent payments come from the same App(s), study them, possibly with help from the major computer security companies, and find where the error lie.
Apps and smartphones never were, and will never be, really safe, but them being unsafe to this point would endanger a whole business model, as well as a whole societal habit. No one would let this happen.
 

Salvare000

Member
Feb 21, 2021
162
18
I'll present the problem otherwise: Do you really think that, if someone was putting malicious code in a game, he would give it such obvious name ?




Well, I did better than you. Not much, but enough to find that billing.properties is (part of?) Google Play billing library ; perhaps the specific implementation for Unity, but my guess goes for the generic implementation since Unity already have it's own In-App Purchasing (IAP) library.

Therefore it's what permit to manage the in-game payments, if there's. Is it totally safe ? Well, not at 100%, no code is safe a 100%. But believe me, if it was possible for an app to use this library to make payment without your consent, it would have been done since years, quickly known, and quickly fixed.
Unlike other kind of vulnerability, it's not something that can pass unnoticed, since it create an entry in your bank account. Thousands of people would suddenly complain about one (or more) payment they didn't approved. Banks would quickly notice that they are all related to Google Apps, then turn to Google for explanation. Google would quickly discover that all the fraudulent payments come from the same App(s), study them, possibly with help from the major computer security companies, and find where the error lie.
Apps and smartphones never were, and will never be, really safe, but them being unsafe to this point would endanger a whole business model, as well as a whole societal habit. No one would let this happen.
Thanks for the quick & detailed reply! Yeah maybe it was a dumb question but I just wanted to ask it anyway since I really couldn't find anything about it on the internet (didn't know where to look & find it). I have almost no knowledge about coding either so yeah..