Can LPR’s be denied entrance for refusing to unlock?
(a) They are regarded as seeking admission and they are found inadmissible. Refusing to unlock their device will not make an LPR regarded as seeking admission as it’s not a reason listed in INA 101 (a)(13)(C): https://www.uscis.gov/ilink/docView/SLB/HTML/SLB/0-0-0-1/0-0...
(b) They are deportable. Simply refusing to unlock a device in itself will not make someone deportable as it’s not listed in INA 237 “General Classes of Deportable Aliens”: https://www.uscis.gov/ilink/docView/SLB/HTML/SLB/0-0-0-1/0-0...
Saying that, the only people who cannot be denied entry to the US are indeed USC.