[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-82786-en":3,"doc-seo-82786-105":30,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":13,"seo_description":14,"update_tm":28,"read_time":29},82786,137441390410,"Hazel","https://ap-avatar.wpscdn.com/avatar/2000252f4ab5702993?_k=1776741390130283984",8,"Research & Report","Spotting Setting Related UI Display Bugs in Android Apps","Android system settings control app runtime behaviors, but mismatches between app logic and the wide set of user-configurable settings lead to setting-related UI display (SUD) bugs that degrade user experience. Existing automated detection methods often miss true issues due to an incomplete understanding of how UI components should adapt across diverse settings. The study identifies recurring adaptation patterns causing SUD bugs and uses them as a test oracle for SUDFinder, which injects a visual test activity to render XML configurations. Evaluation on 29 open-source F-Droid apps finds 98 new bugs with 0.76 precision; 67 confirmed and 37 fixed.","Spotting Setting-Related UI Display Bugs in  \nAndroid Apps  \nHuaxun Huang, Wu Liu, Jiahao Gu, Rongxin Wu  \narXiv :2607 .04 120v 1 [ cs . SE] 5 Jul 2026  \nAbstract—Android provides a wide range of system settings that allow users to control the runtime behaviors of apps, such as screen rotation and UI display. However, setting-related bugs occur when developers do not fully align their apps with the extensive range of system settings that users can define. These bugs can commonly affect apps’ UI, causing setting-related UI display (SUD) bugs that negatively impact user experience. While existing research has explored automated detection of SUD bugs, these approaches often suffer from false negatives. This limitation stems from an incomplete understanding of how app components should adapt UI elements to diverse system settings. To address this gap, we conducted an empirical study to identify common patterns of unexpected setting adaptations that result in SUD bugs. These patterns then served as the test oracle for our proposed automated tool, SUDFinder. To ensure the test coverage, SUDFinder injects a test activity to visually render the XML configuration files of each UI page. We evaluated SUDFinder on 29 popular, open-source apps on F-Droid and found that it effectively identifies 98 previously unknown SUD bugs, achieving a precision of 0.76. So far, 67 have been confirmed and 37 have been fixed by the app developers.  \nIndex Terms—UI Testing, System Settings, Android Apps  \nI. INTRODUCTION  \nANDROID, a popular mobile OS, offers various predefined  \ncomponents that developers utilize through XML to build apps’ UI. A study of 200 top-ranked apps [1] found an average of 25,991.6 XML elements across 663.1 layout files per app, highlighting the complexity and extensive use of XML in defining mobile UIs.  \nThe Android system provides a range of user-configurable system settings to control the runtime behavior of apps. For example, users can change the system language, adjust the system theme, grant or revoke app permissions, or adjust screen orientation. However, setting-related bugs occur when app developers fail to adapt their apps to different types of system settings. Such setting-related bugs often lead to both app crashes and non-crashing functional bugs. We refer to these as Setting-Related UI Display (SUD) bugs. As revealed by Sun et al. [2], [3], SUD bugs are common, accounting for 20.3%(218/1074) of the real-world setting-related bug dataset. Figure 1 illustrates a real-world SUD bug that impacted the app’s functionality. The bug is originally reported in Signal-Android issue \\#11258 [4], a free, open-source private  \nManuscript created January, 2025; Huaxun Huang, Wu Liu, Jiahao Gu and Rongxin Wu are with School of Informatics (National Characteristic Demonstration Software School), Xiamen University, Xiamen, 361005, China (e-mail: [huanghuaxun@xmu.edu.cn](huanghuaxun@xmu.edu.cn); [liuwu@stu.xmu.edu.cn](liuwu@stu.xmu.edu.cn); gujia[hao@stu.xmu.edu.cn](hao@stu.xmu.edu.cn); [wurongxin@xmu.edu.cn](wurongxin@xmu.edu.cn)). Huaxun Huang and Rongxin Wu are also with Fujian Engineering Research Center of High-Performance Intelligent Computing Systems. Rongxin Wu is the corresponding author.  \nFig. 1. A real-world SUD bug is reported in Signal-Android issue \\#11258 [4], where the app developers set the text color in dark mode with insufficient contrast against the background, making the text difficult to read.  \n01 \u003Candroidx.constraintlayout.widget.ConstraintLayout  \n02 xmlns:android=\"[http://schemas.android.com/apk/res/android](http://schemas.android.com/apk/res/android)\"  \n03 android:id=\"@+id/container\"  \n04 android:layout_width=\"match_parent\"  \n05 android:layout_height=\"wrap_content\"  \n06 android:background=\"@drawable/reminder_background_normal \" 07 >  \n08 \u003CTextView  \n09 android:id=\"@+id/reminder_text\"  \n10 android:layout_width=\"0dip\"  \n11 android:layout_height=\"wrap_content\"  \n12 android:layout_marginStart=\"12dp\"  \n13 androi","cbCaijy8Hhy9jEZR","https://ap.wps.com/l/cbCaijy8Hhy9jEZR","pdf",2886351,2,1,17,"English","en",105,"# Introduction\n## Background on Android system settings\n## Definition and impact of SUD bugs\n## Motivation for automated detection","[{\"question\":\"What are Setting-Related UI Display (SUD) bugs in Android apps?\",\"answer\":\"SUD bugs occur when developers do not properly adapt their apps to different user-configurable system settings, resulting in UI display problems that can include crashes or non-crashing functional issues.\"},{\"question\":\"Why do existing SUD bug detection approaches produce false negatives?\",\"answer\":\"They often fail because the approaches do not fully capture how app components should adapt UI elements under a broad range of system settings.\"},{\"question\":\"How does SUDFinder detect SUD bugs and verify the resulting test cases?\",\"answer\":\"SUDFinder injects a test activity that visually renders the XML configuration files for each UI page, using identified unexpected adaptation patterns as a test oracle to guide detection.\"}]",1784182937,43,{"code":4,"msg":31,"data":32},"ok",{"site_id":25,"language":24,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":28},"spotting-setting-related-ui-display-bugs-in-android-apps","",{"@graph":36,"@context":85},[37,53,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,47,50],{"item":41,"name":42,"@type":43,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":20},"https://docshare.wps.com/document/","Document",{"item":48,"name":12,"@type":43,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":43,"position":52},"https://docshare.wps.com/document/spotting-setting-related-ui-display-bugs-in-android-apps/82786/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":24,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":41,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-21","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What are Setting-Related UI Display (SUD) bugs in Android apps?","Question",{"text":75,"@type":76},"SUD bugs occur when developers do not properly adapt their apps to different user-configurable system settings, resulting in UI display problems that can include crashes or non-crashing functional issues.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"Why do existing SUD bug detection approaches produce false negatives?",{"text":80,"@type":76},"They often fail because the approaches do not fully capture how app components should adapt UI elements under a broad range of system settings.",{"name":82,"@type":73,"acceptedAnswer":83},"How does SUDFinder detect SUD bugs and verify the resulting test cases?",{"text":84,"@type":76},"SUDFinder injects a test activity that visually renders the XML configuration files for each UI page, using identified unexpected adaptation patterns as a test oracle to guide detection.","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,128,131,135],{"id":21,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":20,"doc_module":4,"doc_module_name":46,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":46,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":46,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":46,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":46,"category_name":137,"show_sort_weight":106,"slug":138},19,"General","general"]