Are the two synonymous?
No. <uses-permission>
says "hey, Android (and associated distribution channels), please ask the user to allow me to do X". <uses-feature>
says "hey, Android (and associated distribution channels), I am interested in running on hardware with feature Y".
<uses-feature>
may filter you out of the Play Store (and other channels), if the hardware does not meet your requirements, but the user doesn't get involved.
Does one imply the other?
Sometimes. If you request certain permissions, like CAMERA
, Android assumes by default that you need the corresponding hardware. You can use <uses-feature>
and android:required="false"
to override that default behavior, if needed.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…