Is <profileable> safe in the production build?

688 views Asked by At

For using macrobenchmark, we need to add <profileable> to AndroidManifest.

<profileable
    android:shell="true"
    tools:targetApi="q" />

Is it safe to include <profileable> in the production build?

2

There are 2 answers

0
mlykotom On BEST ANSWER

It is considered safe. It exposes only limited amount of information that are either obfuscated or lacking symbols in the release build. Some of the Google apps are using it in production.

2
Martin Zeitler On

Why not merge this manifest node with the debug source-set?
One also could remove it from the release source-set, same effect.
This might not answer the question, but it makes it irrelevant.