package Ġorg . graph ene os . apps . client . utils Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . os . User Manager Ċ import Ġorg . graph ene os . apps . client . App Ċ Ċ fun ĠContext . is Install Blocked By Admin (): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġum Ġ= Ġget System Service ( User Manager :: class . java ) ĊĊĠĠĠ Ġreturn Ġif Ġ(( application Context Ġas ĠApp ). is Privilege Mode ) Ġ{ ĊĠĠĠĠĠĠĠ Ġum . has User Restriction ( User Manager . DIS ALLOW _ INSTALL _ APPS ) ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠ Ġum . has User Restriction ( User Manager . DIS ALLOW _ INSTALL _ APPS ) Ġ|| ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġum . has User Restriction ( User Manager . DIS ALLOW _ INSTALL _ UNKNOWN _ SOURCES ) Ġ|| ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġum . has User Restriction ( User Manager . DIS ALLOW _ INSTALL _ UNKNOWN _ SOURCES _ GLOB ALLY ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun ĠContext . is Un install Blocked By Admin (): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġum Ġ= Ġget System Service ( User Manager :: class . java ) ĊĠĠĠ Ġreturn Ġum . has User Restriction ( User Manager . DIS ALLOW _ UN INSTALL _ APPS ) Ċ }