Pick the fix
A team puts a payment provider's secret key in local.properties and reads it through BuildConfig. Is it safe?
Hint 1 of 1
Where does BuildConfig end up?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A No. It ships in the APK; move the call to your backend
Correct. local.properties only keeps it out of git.
Why not the others?
- B Yes, because local.properties isn't committed. The value is still compiled into the app.
- C Yes, if R8 is enabled. R8 doesn't encrypt strings.
- D Yes, if the key is split into parts. Parts are easy to reassemble.