Repository navigation
wfbng: take the files dir from the Context - #141
Conversation
PR Summary by QodoResolve WFB-NG files directory from Android Context
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1.
|
gs.key and devourer's adapter lock lived at a hard-coded /data/user/0/com.openipc.pixelpilot/files, so any other applicationId (a debug suffix, a fork) aborted at start: the aggregator could not open the key. WfbngLink now asks Context.getFilesDir(), the same dir VideoActivity copies gs.key into.
6a56b8f to
ecd9b16
Compare
gs.key and devourer's adapter lock were opened from a hard-coded /data/user/0/com.openipc.pixelpilot/files. Any other applicationId (a debug suffix, a fork) aborted at start because the key couldn't be opened. WfbngLink now gets the dir from Context.getFilesDir(), which is where VideoActivity copies gs.key anyway.
Tested by building with applicationIdSuffix ".prtest" on a Pixel 7 Pro: master aborts at start, with this change the app starts, opens the adapter, and gs.key and the lock file end up in the package's own files dir.