NJNataniel Pereira Borges Jr

Nataniel Pereira Borges Jr

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Nataniel Pereira Borges Jr has a total of 25 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    DroidMate-2: A Platform for Android Test Generation (Source Code)

    by Nataniel P. Borges Jr., Jenny Hotzkow, Andreas Zeller

  • Open Access

    Testing Apps With Real-World Inputs

    by Tanapuch Wanwarang, Nataniel P. Borges, Leon Bettscheider, Andreas Zeller

    To test mobile apps, one requires realistic and coherent test inputs. The Link approach for Web testing has shown that knowledge bases such as DBPedia can be a reliable source of semantically coherent inputs. In this paper, we adapt and extend the Link approach towards test generation for mobile applications: (1) We identify and match descriptive labels with input fields, based on the Gestalt principles of human perception; (2) We then use natural language processing techniques to extract the concept associated with the label; (3) We use this concept to query a knowledge base for candidate input values; (4) We cluster the UI elements according to their functionality into input and actions, filling the input elements first and then interacting with the actions. Our evaluation shows that leveraging knowledge bases for testing mobile apps with realistic inputs is effective. On average, our approach covered 9% more statements than randomly generated text inputs.


  • Open Access

    Learning user interface element interactions

    by Christian Degott, Nataniel P. Borges Jr., Andreas Zeller

    When generating tests for graphical user interfaces, one central problem is to identify how individual UI elements can be interacted with—clicking, long- or right-clicking, swiping, dragging, typing, or more. We present an approach based on reinforcement learning that automatically learns which interactions can be used for which elements, and uses this information to guide test generation. We model the problem as an instance of the multi-armed bandit problem (MAB problem) from probability theory, and show how its traditional solutions work on test generation, with and without relying on previous knowledge. The resulting guidance yields higher coverage. In our evaluation, our approach shows improvements in statement coverage between 18% (when not using any previous knowledge) and 20% (when reusing previously generated models).


  • Up-To-Crash: Evaluating Third-Party Library Updatability on Android

    by Jie Huang, Nataniel Borges, Sven Bugiel, Michael Backes

    Buggy and flawed third-party libraries increase their host app's attack surface and put the users' privacy at risk. To avert this risk, libraries have to be kept updated to their newest versions by the app developers that integrate them into their projects. Recent researches revealed that the prevalence of outdated third-party libraries in Android apps is indeed a rampant problem, but also suggested that there is a great opportunity for drop-in replacements of outdated libraries, which would not even require cooperation by the app developers to update the libraries. However, all those conclusions are based on static app analysis, which can only provide an abstract view. In this work, we extend the updatability analysis to the runtime of apps. We implement a solution to update third-party libraries with drop-in replacements by their newer versions. To verify the feasibility of this developer-independent update mechanism, we dynamically test 3,000 real world apps for 3 popular libraries (78 library versions) for runtime failures stemming from incompatible library updates. To investigate the updatability of libraries in-depth, exploration enhanced dynamic testing is adopted to monitor the runtime behaviors of 15 apps before and after library updating. From our test, we find that the prior reported updatability rate is under real conditions overestimated by a factor of 1.57-2.06. Through root cause analysis, we find that the underlying problems prohibiting easy updates are intricate, such as deprecated functions, changed data structures, or entangled dependencies between different libraries and even the host app. We think our results not only put a more realistic light on the library updatability problem in Android, but also provide valuable insights for future solutions that provide automatic library updates or that try to support the app developers in better maintaining their external dependencies.


  • Why Does this App Need this Data? Automatic Tightening of Resource Access

    by Nataniel P. Borges, Andreas Zeller

    On mobile operating systems, apps may access resources that are not be needed for their primary functionality. Which are the resources an app actually needs for its core functionality? And what happens if we deny access to other resources? Using a test generator for user interaction, we systematically explore app behavior under varied resource constraints and determine the impact of access restrictions, yielding a minimal set of required privileges for each app and functionality. In our proof of concept on Android apps, our TIARA prototype could block up to 69% of resource accesses while retaining all previously explored functionality.


  • Open Access

    AccessiLeaks: Investigating Privacy Leaks Exposed by the Android Accessibility Service

    by Mohammad Naseri, Nataniel P. Borges, Andreas Zeller, Romain Rouvoy

    To support users with disabilities, Android provides the accessibility services, which implement means of navigating through an app. According to the Android developer’s guide: “Accessibility services should only be used to assist users with disabilities in using Android devices and apps”. However, developers are free to use this service without any restrictions, giving them critical privileges such as monitoring user input or screen content to capture sensitive information. In this paper, we show that simply enabling the accessibility service leaves 72 % of the top finance a nd 80 % of the top social media apps vulnerable to eavesdropping attacks, leaking sensitive information such as logins and passwords. A combination of several tools and recommendations could mitigate the privacy risks: We introduce an analysis technique that detects most of these issues automatically, e.g. in an app store. We also found that these issues can be automatically fixed in almost all cases; our fixes have b een accepted by 70 % of the surveyed developers. Finally, we designed a notification mechanism which would warn users against possible misuses of the accessibility services; 50 % of users would follow these notifications.


  • Horizontal highway segmentation optimisation using genetic algorithms

    by Nataniel P. Borges Jr, Nicolas P. Borges, Alexandre H. Coelho, Jorge Destri Jr, Amir M. Valente

    This paper presents the use of genetic algorithms (GAs) for optimising different global positioning system-based procedures for horizontal roadway alignment extraction. Two algorithms are proposed – one uses design information to guide the GA, aiming to evaluate the segmentation procedures' precision, while the other uses curve-similarity measures. The linear matching model, the discrete Fréchet distance and the modified Hausdorff distance were tested for guiding the optimisation algorithm in cases when there is no design information available. This paper also presents an extension to a segmentation method available in the literature for increasing the optimisation performance. The proposed algorithms were evaluated on a synthetic data set with 2100 curves. In the experiments, both algorithms correctly identified all the curves, with the best segmentation precision achieved by the algorithm with design information, closely followed by the curve-similarity metrics. Compared with manual segmentation, all showed good results.


  • Open Access

    DroidMate-2: a platform for Android test generation

    by Nataniel P. Borges Jr., Jenny Hotzkow, Andreas Zeller


  • Open Access

    Guiding app testing with mined interaction models

    by Nataniel P. Borges, Maria Gómez, Andreas Zeller


  • Open Access

    Data flow oriented UI testing: exploiting data flows and UI elements to test Android applications

    by Borges Jr., Nataniel P.

    Testing user interfaces (UIs) is a challenging task. Ideally, every sequence of UI elements should be tested to guarantee that the application works correctly. This is, however, unfeasible due to the number of UI elements in an application. A better approach is to limit the evaluation to UI elements that affect a specific functionality. In this paper I present a novel technique to identify the relation between UI elements using the statically extracted data flows. I also present a method to refine these relations using dynamic analysis, in order to ensure that relations extracted from unreachable data flows are removed. Using these relations it is possible to more efficiently test a functionality. Finally, I present an approach to evaluate how these UI-aware data flows can be used as an heuristic to measure test coverage.