Trying to reland #140115 which I had to revert in #142889 because [it broke the tree](https://github.com/flutter/flutter/pull/140115#issuecomment-1925774719). In this PR I fixed the post-submit following tests:
App using Android Embedding 2
A new Flutter project using the Android embedding 2.
This smoke test uses the following plugins:
| Plugin | Android Embedding |
|---|---|
| battery: 0.3.0+5 | 1 |