What's the usage of tools:targetApi="m"?
From the docs you can read:
Indicates that Lint should treat this type as targeting a given API level, no matter what the project target is
This means it will affect only the annotated one.
Other attributes with tools
won't be affected. tools
is a namespace, from which you can get attributes, an attribute won't affect the entire namespace.