Merge "Tell apps when their rules are de/activated." into main