| With the rapid popularization of Android system around the world, more and more malwares of Android platform appeared and post serious threats to the security of users’Android device and the privacy stored in it. At the same time, many trusted third-party institutions (such as military, government, research institutions, etc.) need to customize the security policy of the large amount of Android devices they allotted for their staffs, but most of them do not have this capability.To defend against kinds of growing security threats to Android, This paper proposes and implements an environment adaptive security mechanism(called EAdroid) for Android platform, which providing a simple way for users or trusted third-party institutions to customize the security policy of Android devices. EAdroid improves the framework layer and kernel layer of Android system and synthetically applies Smack security module of Linux. At the same time, the security rules of the framework layer and kernel layer in EAdroid can adapt to the current environment context.Results of exprements and tests show that EAdroid can efficiently prevent multiple kinds of attacks (such as privacy leakage, money stealing) and protect the security of user’s devices and privacy. Compared with the AOSP Android, the small overhead of performance that EAdroid implementation brings is acceptable. |