Abstract
Human values are an important aspect of life and should be supported in ubiquitous technologies such as mobile applications (apps). There has been a lot of focus on fixing certain kinds of violation of human values, especially privacy, accessibility, and security while other values such as pleasure, tradition, and humility have received little focus. In this paper, we investigate the relationship between human values and Android API services and developed algorithms to detect potential violation of these values. We evaluated our algorithms with a manually curated ground truthset resulting in a high performance, and applied the algorithms to 10,000 apps. Our results show a correlation between violation of values and the presence of viruses. Our results also show that apps with the lowest number of installations contain more violation of values and the frequency of the violation of values was highest in social apps.
Introduction
In the current landscape of software engineering, significant resources are dedicated to identifying functional bugs and security vulnerabilities. However, a critical dimension of user experience is often overlooked: human values. These are the guiding principles—such as autonomy, pleasure, and fairness—that dictate what users find important in their daily lives. While privacy and security have become mainstream concerns, other fundamental values like self-direction or hedonism are frequently undermined by application behavior.
This research addresses the lack of automated tools for identifying "value smells"—patterns in code that suggest a violation of these human principles. For instance, an application that forces unskippable, repetitive advertisements may violate a user's sense of Self-direction (autonomy) or Hedonism (pleasure). By formalizing these violations into detectable patterns within Android API usage, the authors aim to move toward "value-based software engineering."
Methodology: Mapping Values to Code
The core of this study involves bridging the gap between social science and static code analysis. The researchers utilized the Schwartz theory of basic human values, a standard framework in social science, to define the target values for detection.
The research team developed a three-step approach based on the AIR (Annotation, Inspection, and Recommendation) framework:
- API Mapping: Twelve value categories were mapped to six common Android API packages, including
android.media,android.nfc, andandroid.telephony. - Algorithm Design: Ten rule-based detection algorithms were created to analyze an app's Abstract Syntax Tree (AST). For example, the Media API algorithm flags violations of Self-direction if an app includes advertisement libraries but lacks user controls to pause or stop media playback. Similarly, the Animation API flags Hedonism violations if animations are set to infinite loops or exceed a reasonable duration.
- Static Analysis: Using APKtool, the researchers decompiled apps to perform AST analysis, allowing for the identification of these patterns without the need for dynamic execution.
The study was validated using a manually curated "truthset" of 46 apps and then scaled to a dataset of 10,000 APK files randomly selected from the AndroZoo repository.
Key Findings: The Value-Malware Link
One of the most striking results of the large-scale analysis is the significant correlation between value violations and malicious behavior. The study found a high degree of overlap—approximately 63%—between violations of Security and Conformity values and reports of actual viruses from VirusTotal.
This correlation suggests that developers who neglect fundamental human values in their code are also more likely to produce malicious or poorly secured software. Other key insights include:
- The Popularity Shield: Apps with fewer than 50,000 installations were significantly more likely to contain value violations. This suggests that popular apps are more "value-compliant," likely due to the higher reputational and financial risks associated with poor user experiences.
- Monetization Conflicts: Social, Music, and Dating apps exhibited the highest violation rates (25% to 30%). This is largely driven by aggressive video advertising strategies, where the financial incentive to capture user attention directly conflicts with the user's values of pleasure and autonomy.
Performance and Limitations
The proposed algorithms demonstrated strong performance on the manually annotated truthset, achieving an average accuracy of 0.93 and a recall of 0.84. This proves that "soft" human concepts can be effectively codified into "hard" rules for static analysis.
However, the research acknowledges several limitations. The current rule-based approach may be too rigid to capture subtle or complex violations that do not follow specific API patterns. Furthermore, human values are inherently subjective; what one user perceives as a violation of hedonism, another might find acceptable.
Conclusion
This study represents a significant first step toward automating the detection of value-violating defects in mobile applications. By identifying the link between value violations and malware, the research highlights the importance of considering human values not just as a "soft" requirement, but as a critical component of software quality and security. Future work will focus on developing more sophisticated detection methods and conducting empirical studies to better understand user perceptions of these violations.
Summary updated