package Ġcom . sin ch . metadata . collector . sim Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . tele phony . Tele phony Manager Ċ import Ġcom . sin ch . metadata . collector . Sim s State Collector Ċ import Ġcom . sin ch . metadata . model . sim . Sim State Ċ Ċ /** Ċ Ġ* ĠMetadata Ġcollector Ġresponsible Ġfor Ġcollecting Ġmetadata Ġof Ġtype Ġ[ Sim State ]. Ċ Ġ* Ġ@ param Ġcontext ĠContext Ġreference . Ċ Ġ*/ Ċ class ĠBasic Sim State Collector ( private Ġval Ġcontext : ĠContext ) Ġ: ĊĠĠĠ ĠSim s State Collector Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġtele phony Manager : ĠTele phony Manager Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ Ġcontext . getSystem Service ( Context . TELE PHONY _ SERVICE ) Ġas ĠTele phony Manager ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcollect (): ĠSim State Ġ= ĠSim State . based On ( tele phony Manager . sim State ) Ċ Ċ }