{"id":{"repo_id":"ubc","oai_identifier":"oai:circle.library.ubc.ca:2429/93227"},"canonical_url":"https://search.ndltd.org/etd/ubc/oai:circle.library.ubc.ca:2429/93227","repository":{"repo_id":"ubc","name":"University of British Columbia","base_url":"http://circle.library.ubc.ca/oai/request"},"display":{"title":"Efficient dynamic analysis of Android applications","abstract":"Despite efforts to identify low-quality applications (apps) such as apps that crash or leak sensitive user information, the official Android Google Play app store continues to be infected by such apps. This causes issues ranging from negative user experience to millions of dollars in financial losses. One approach that the store uses to check apps is dynamic program analysis, in which an app is executed, and its runtime behavior is observed. However, existing dynamic analysis techniques often sacrifice the comprehensiveness of the analysis (i.e., do not report all interesting behaviors) in favor of efficiency. This is necessary since Android devices have limited resources, and the system aborts unresponsive or memory-hungry apps, terminating slow analysis prematurely. In this thesis, we propose techniques to improve the comprehensiveness of dynamic analyses while keeping them efficient. Specifically, we focus on two of the most prominent (yet heavy) analysis techniques: (a) slicing, which retrieves a slice: a set of statements that affect the execution of a specific statement (e.g., a buggy line of code), and (b) taint analysis, which identifies whether specific data flows out. Our proposed slicing approach provides more comprehensive slices (more relevant statements) than the state-of-the-art while being ten times more efficient. Our taint analysis approach can report full information flow paths, unlike state-of-the-art approaches that only report flow endpoints. We also showcase the usefulness of reporting full paths by introducing a new approach that classifies suspicious and legitimate information flow paths with high accuracy while remaining efficient. We also introduce new datasets to aid with the evaluation of our approaches for real use-cases and in realistic settings. For slicing, we introduce the first dataset of manually generated slices for real bugs from real apps. For taint analysis, we create a dataset of apps with malicious code that entered the Google Play Store. We characterize their attacks and propose a novel representation for summarizing their activation methods. We use information flows from this dataset in evaluating our path classification approach. Finally, we implement our approaches in open-source tools and make them and our datasets available to the research community.","abstract_html":"Despite efforts to identify low-quality applications (apps) such as apps that crash or leak sensitive user information, the official Android Google Play app store continues to be infected by such apps. This causes issues ranging from negative user experience to millions of dollars in financial losses. One approach that the store uses to check apps is dynamic program analysis, in which an app is executed, and its runtime behavior is observed. However, existing dynamic analysis techniques often sacrifice the comprehensiveness of the analysis (i.e., do not report all interesting behaviors) in favor of efficiency. This is necessary since Android devices have limited resources, and the system aborts unresponsive or memory-hungry apps, terminating slow analysis prematurely. In this thesis, we propose techniques to improve the comprehensiveness of dynamic analyses while keeping them efficient. Specifically, we focus on two of the most prominent (yet heavy) analysis techniques: (a) slicing, which retrieves a slice: a set of statements that affect the execution of a specific statement (e.g., a buggy line of code), and (b) taint analysis, which identifies whether specific data flows out. Our proposed slicing approach provides more comprehensive slices (more relevant statements) than the state-of-the-art while being ten times more efficient. Our taint analysis approach can report full information flow paths, unlike state-of-the-art approaches that only report flow endpoints. We also showcase the usefulness of reporting full paths by introducing a new approach that classifies suspicious and legitimate information flow paths with high accuracy while remaining efficient. We also introduce new datasets to aid with the evaluation of our approaches for real use-cases and in realistic settings. For slicing, we introduce the first dataset of manually generated slices for real bugs from real apps. For taint analysis, we create a dataset of apps with malicious code that entered the Google Play Store. We characterize their attacks and propose a novel representation for summarizing their activation methods. We use information flows from this dataset in evaluating our path classification approach. Finally, we implement our approaches in open-source tools and make them and our datasets available to the research community.","abstract_has_math":false,"creators":["Ahmed, Khaled"],"institution":"University of British Columbia","degree_name":"Doctor of Philosophy - PhD","degree_level":"doctoral","degree_discipline":"Electrical and Computer Engineering","degree_department":null,"school":null,"contributors":["Rubin, Julia","Lis, Mieszko"],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025","date_published":"2025","updated_at":"2026-11-19T15:15:10Z","subjects":[],"languages":["eng"],"rights":["Attribution-NonCommercial-NoDerivatives 4.0 International"],"rights_urls":["http://creativecommons.org/licenses/by-nc-nd/4.0/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"http://hdl.handle.net/2429/93227","outbound_label":"Handle","outbound_source":"dc:identifier","record_url":"http://hdl.handle.net/2429/93227","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier","download_url":"http://circle.library.ubc.ca/bitstream/2429/93227/4/ubc_2026_may_ahmed_khaled.pdf","download_label":"Download PDF","download_source":"dc:identifier","access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"http://circle.library.ubc.ca/oai/request?verb=GetRecord&metadataPrefix=etdms&identifier=oai%3Acircle.library.ubc.ca%3A2429%2F93227","prefix":"etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor","label":"Contributor","values":["Rubin, Julia","Lis, Mieszko"]},{"key":"dc:creator","label":"Author","values":["Ahmed, Khaled"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2025"]},{"key":"dc:publisher","label":"Institution","values":["University of British Columbia"]},{"key":"dc:type","label":"Dc Type","values":["Text"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Electrical and Computer Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["doctoral"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy - PhD"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of British Columbia"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["http://creativecommons.org/licenses/by-nc-nd/4.0/","Attribution-NonCommercial-NoDerivatives 4.0 International"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["http://hdl.handle.net/2429/93227","http://circle.library.ubc.ca/bitstream/2429/93227/4/ubc_2026_may_ahmed_khaled.pdf"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["Despite efforts to identify low-quality applications (apps) such as apps that crash or leak sensitive user information, the official Android Google Play app store continues to be infected by such apps. This causes issues ranging from negative user experience to millions of dollars in financial losses. One approach that the store uses to check apps is dynamic program analysis, in which an app is executed, and its runtime behavior is observed. However, existing dynamic analysis techniques often sacrifice the comprehensiveness of the analysis (i.e., do not report all interesting behaviors) in favor of efficiency. This is necessary since Android devices have limited resources, and the system aborts unresponsive or memory-hungry apps, terminating slow analysis prematurely. In this thesis, we propose techniques to improve the comprehensiveness of dynamic analyses while keeping them efficient. Specifically, we focus on two of the most prominent (yet heavy) analysis techniques: (a) slicing, which retrieves a slice: a set of statements that affect the execution of a specific statement (e.g., a buggy line of code), and (b) taint analysis, which identifies whether specific data flows out. Our proposed slicing approach provides more comprehensive slices (more relevant statements) than the state-of-the-art while being ten times more efficient. Our taint analysis approach can report full information flow paths, unlike state-of-the-art approaches that only report flow endpoints. We also showcase the usefulness of reporting full paths by introducing a new approach that classifies suspicious and legitimate information flow paths with high accuracy while remaining efficient. We also introduce new datasets to aid with the evaluation of our approaches for real use-cases and in realistic settings. For slicing, we introduce the first dataset of manually generated slices for real bugs from real apps. For taint analysis, we create a dataset of apps with malicious code that entered the Google Play Store. We characterize their attacks and propose a novel representation for summarizing their activation methods. We use information flows from this dataset in evaluating our path classification approach. Finally, we implement our approaches in open-source tools and make them and our datasets available to the research community."]},{"key":"dc:format","label":"Dc Format","values":["2209156","application/pdf"]},{"key":"dc:title","label":"Title","values":["Efficient dynamic analysis of Android applications"]}]}],"canonical_facts":{"dc:contributor":["Rubin, Julia","Lis, Mieszko"],"dc:creator":["Ahmed, Khaled"],"dc:date":["2025"],"dc:description":["Despite efforts to identify low-quality applications (apps) such as apps that crash or leak sensitive user information, the official Android Google Play app store continues to be infected by such apps. This causes issues ranging from negative user experience to millions of dollars in financial losses. One approach that the store uses to check apps is dynamic program analysis, in which an app is executed, and its runtime behavior is observed. However, existing dynamic analysis techniques often sacrifice the comprehensiveness of the analysis (i.e., do not report all interesting behaviors) in favor of efficiency. This is necessary since Android devices have limited resources, and the system aborts unresponsive or memory-hungry apps, terminating slow analysis prematurely. In this thesis, we propose techniques to improve the comprehensiveness of dynamic analyses while keeping them efficient. Specifically, we focus on two of the most prominent (yet heavy) analysis techniques: (a) slicing, which retrieves a slice: a set of statements that affect the execution of a specific statement (e.g., a buggy line of code), and (b) taint analysis, which identifies whether specific data flows out. Our proposed slicing approach provides more comprehensive slices (more relevant statements) than the state-of-the-art while being ten times more efficient. Our taint analysis approach can report full information flow paths, unlike state-of-the-art approaches that only report flow endpoints. We also showcase the usefulness of reporting full paths by introducing a new approach that classifies suspicious and legitimate information flow paths with high accuracy while remaining efficient. We also introduce new datasets to aid with the evaluation of our approaches for real use-cases and in realistic settings. For slicing, we introduce the first dataset of manually generated slices for real bugs from real apps. For taint analysis, we create a dataset of apps with malicious code that entered the Google Play Store. We characterize their attacks and propose a novel representation for summarizing their activation methods. We use information flows from this dataset in evaluating our path classification approach. Finally, we implement our approaches in open-source tools and make them and our datasets available to the research community."],"dc:format":["2209156","application/pdf"],"dc:identifier":["http://hdl.handle.net/2429/93227","http://circle.library.ubc.ca/bitstream/2429/93227/4/ubc_2026_may_ahmed_khaled.pdf"],"dc:language":["eng"],"dc:publisher":["University of British Columbia"],"dc:rights":["http://creativecommons.org/licenses/by-nc-nd/4.0/","Attribution-NonCommercial-NoDerivatives 4.0 International"],"dc:title":["Efficient dynamic analysis of Android applications"],"dc:type":["Text"],"thesis:degree_discipline":["Electrical and Computer Engineering"],"thesis:degree_level":["doctoral"],"thesis:degree_name":["Doctor of Philosophy - PhD"],"thesis:institution_name":["University of British Columbia"]},"updated_at":"2026-11-19T15:15:10Z"}