check root and bb in mainactivity

Signed-off-by: Grarak <williye97@gmail.com>