Collections of pre-written sections of code that developers can use to add functionality to their apps without having to write it from scratch.
Libraries can contain hidden malware and other vulnerabilities that hackers can exploit to attack apps. Attacks via libraries are sometimes referred to as supply chain attacks.
Real-World Examples
Developers use libraries like Retrofit for networking in Android apps to simplify API integration.