A method, comprising: generating, by a computing system and based on code of a software component of an unmanaged mobile application from a public application store, a managed mobile application configured for execution within an application management agent of an application-management framework, wherein the generating comprises: parsing, by the computing system, the code to identify, in the code, one or more calls corresponding to a call to a method of an operating system, OS, application program interface, API; and replacing the one or more calls corresponding to the call to the method of the OS API, in the code, with a reference to a stub for a proxy of the call to the method of the OS API, wherein the stub comprises policy enforcement logic indicating one or more conditions for invoking the call corresponding to the method of the OS API; and building, based on the code, the managed mobile application; generating, by the computing system, metadata associated with the managed mobile application, wherein the metadata comprises one or more uniform resource locators, URLs, indicating locations from which the managed mobile application can be downloaded; and transmitting (608, 609), by the computing system and to an enterprise application store associated with the application-management framework, the managed mobile application and the metadata. generating, by a computing system and based on code of a software component of an unmanaged mobile application from a public application store, a managed mobile application configured for execution within an application management agent of an application-management framework, wherein the generating comprises: parsing, by the computing system, the code to identify, in the code, one or more calls corresponding to a call to a method of an operating system, OS, application program interface, API; and replacing the one or more calls corresponding to the call to the method of the OS API, in the code, with a reference to a stub for a proxy of the call to the method of the OS API, wherein the stub comprises policy enforcement logic indicating one or more conditions for invoking the call corresponding to the method of the OS API; and building, based on the code, the managed mobile application; parsing, by the computing system, the code to identify, in the code, one or more calls corresponding to a call to a method of an operating system, OS, application program interface, API; and replacing the one or more calls corresponding to the call to the method of the OS API, in the code, with a reference to a stub for a proxy of the call to the method of the OS API, wherein the stub comprises policy enforcement logic indicating one or more conditions for invoking the call corresponding to the method of the OS API; and building, based on the code, the managed mobile application; generating, by the computing system, metadata associated with the managed mobile application, wherein the metadata comprises one or more uniform resource locators, URLs, indicating locations from which the managed mobile application can be downloaded; and transmitting (608, 609), by the computing system and to an enterprise application store associated with the application-management framework, the managed mobile application and the metadata.