some adaptions in brain.
Removed appIndex storage. Fixed installed apps matching