Repository navigation
android: Disable debuggable on official Android builds - #13553
Conversation
|
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
There was a problem hiding this comment.
Code Review
This pull request introduces conditional configuration for Android builds, setting the debuggable attribute based on whether it is an official build and restricting the <profileable> tag in the manifest template to debug and devel build types. The feedback suggests using Jinja's default filter for the build_type variable to avoid potential UndefinedError exceptions if the template is evaluated by targets where build_type is not defined.
ac56b29 to
9ab4a76
Compare
|
why do we need this change? AFAIK, given manifest is for coat app used for development only |
self-response: 3p-aosp app can use this manifest |
can you update PR title and description?
|
9ab4a76 to
ae578a8
Compare
Official AOSP builds were incorrectly hardcoded to be debuggable and profileable. This manifest was previously assumed to only be used by development shells, but it is also shared by AOSP Evergreen targets. Shipping official builds as debuggable impacts runtime performance due to Android ART overhead and causes failures in partner release security checks. This change restores conditional logic to disable debuggable and profileable tags for non-development build types. Bug: 576136653 Bug: 462494527
ae578a8 to
fd826f6
Compare
|
Hi @kjyoun Updated the comments in BUILD.gn and AndroidManifest.xml.jinja2, cleaned up the PR title/description, and rebased onto latest main (all CI checks green). PTAL and approve when you get a chance, thanks! |
kjyoun
left a comment
There was a problem hiding this comment.
how about this title?
android: Disable debuggable and profileable on AOSP gold builds
"official Android build" can be misleasing, since it includes 1P CoAT app, which still have debuggable on gold build.
|
Hi @ckim1346 @haozheng-cobalt, friendly ping when you get a chance. @andrewsavage1 and @kjyoun already approved this change, and all CI checks are green, so it just needs a CODEOWNERS approval from |
…d builds Refer to original PR: #13553 Official AOSP builds were incorrectly hardcoded to be debuggable and profileable. This manifest was previously assumed to only be used by development shells, but it is also shared by AOSP Evergreen targets. Shipping official builds as debuggable impacts runtime performance due to Android ART overhead and causes failures in partner release security checks. This change restores conditional logic to disable debuggable and profileable tags for non-development build types. Bug: 576136653 Bug: 462494527 (cherry picked from commit 91051c9)
…d builds Refer to original PR: #13553 Official AOSP builds were incorrectly hardcoded to be debuggable and profileable. This manifest was previously assumed to only be used by development shells, but it is also shared by AOSP Evergreen targets. Shipping official builds as debuggable impacts runtime performance due to Android ART overhead and causes failures in partner release security checks. This change restores conditional logic to disable debuggable and profileable tags for non-development build types. Bug: 576136653 Bug: 462494527 (cherry picked from commit 91051c9)
…d builds Refer to original PR: #13553 Official AOSP builds were incorrectly hardcoded to be debuggable and profileable. This manifest was previously assumed to only be used by development shells, but it is also shared by AOSP Evergreen targets. Shipping official builds as debuggable impacts runtime performance due to Android ART overhead and causes failures in partner release security checks. This change restores conditional logic to disable debuggable and profileable tags for non-development build types. Bug: 576136653 Bug: 462494527 (cherry picked from commit 91051c9)
Automated cherry-pick roll to staging. Original pull requests: - #13847 - #13771 - #13851 - #13774 - #13862 - #13852 - #13623 - #13839 - #13854 - #13731 - #13162 - #13841 - #13546 - #13754 - #13277 - #13857 - #13604 - #13805 - #13859 - #13758 - #13902 - #13899 - #13910 - #13825 - #13881 - #13883 - #13914 - #13656 - #13929 - #13558 - #13932 - #13863 - #13845 - #13747 - #13927 - #13885 - #13912 - #13898 - #13879 - #13844 - #13855 - #13715 - #13920 - #13860 - #13924 - #13949 - #13936 - #13553 - #13867 - #13868 - #13945 - #13930 To merge these changes, run the autoroll script: ```bash GITHUB_REPOSITORY=youtube/cobalt python3 cobalt/devinfra/github/autoroll/merge_autoroll.py \ --source-branch main \ --target-branch staging ``` --------- Co-authored-by: johnx <johnx@google.com> Co-authored-by: Adam Walls <avvall@google.com> Co-authored-by: Kyujung Youn <kjyoun@google.com> Co-authored-by: Jesus Horta <jshorta@google.com> Co-authored-by: Xinan Lin <65635777+linxinan-yt@users.noreply.github.com> Co-authored-by: fayev-g <fayev@google.com> Co-authored-by: Austin Osagie <austinosagie@google.com> Co-authored-by: Raphael Kubo da Costa <kubo@igalia.com> Co-authored-by: Yavor Goulishev <yavor@google.com> Co-authored-by: Sunny Tang <tasunny@google.com> Co-authored-by: Xiaoming Shi <xiaomings@google.com> Co-authored-by: Orko Garai <orko@igalia.com> Co-authored-by: Henrique Ferreiro <hferreiro@igalia.com> Co-authored-by: Jelle Foks <jfoks@google.com> Co-authored-by: Bo-Rong Chen <borongchen@google.com> Co-authored-by: Abhijeet Kandalkar <abhijeet@igalia.com> Co-authored-by: Jeremmy <34620271+a8901147@users.noreply.github.com> Co-authored-by: Igor Sarkisov <isarkisov@google.com> Co-authored-by: Vinish Chamrani <vinishc@google.com> Co-authored-by: Roger Zanoni <rzanoni@igalia.com> Co-authored-by: Sherry Zhou <sherryzy@google.com> Co-authored-by: AIdrifter(Pinkus) <aidrifter@gmail.com> Co-authored-by: Andrew Savage <andrewsavage@google.com> Co-authored-by: Charley Kim <charleykim@google.com> Co-authored-by: Ying Yu <yuying@google.com> Co-authored-by: Hao <131711973+haozheng-cobalt@users.noreply.github.com>
…d builds Refer to original PR: #13553 Official AOSP builds were incorrectly hardcoded to be debuggable and profileable. This manifest was previously assumed to only be used by development shells, but it is also shared by AOSP Evergreen targets. Shipping official builds as debuggable impacts runtime performance due to Android ART overhead and causes failures in partner release security checks. This change restores conditional logic to disable debuggable and profileable tags for non-development build types. Bug: 576136653 Bug: 462494527 (cherry picked from commit 91051c9)
Official AOSP builds were incorrectly hardcoded to be debuggable and
profileable. This manifest was previously assumed to only be used
by development shells, but it is also shared by AOSP Evergreen
targets.
Shipping official builds as debuggable impacts runtime performance
due to Android ART overhead and causes failures in partner release
security checks. This change restores conditional logic to disable
debuggable and profileable tags for non-development build types.
Bug: 576136653
Bug: 462494527