The document proposes a context-based access control mechanism for Android systems that allows users to set configuration policies controlling applications' access to device resources and services based on context such as location and time. It implements this access control framework on the Android operating system, allowing users to define physical places and link them to logical locations. The access controller then enforces the defined policies by granting or restricting privileges to applications dynamically based on the device's detected context. Experimental results show this mechanism can accurately detect contexts using Wi-Fi signals and effectively enforce access control policies with minimal performance impact.