Android10 Developer Frequently Asked Questions of Summary

  • 2021-11-13 18:19:07
  • OfStack

Q 1: Specifying SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION does not seem to hide the navigation bar and status bar?

A: You need to tell the system what layout you want. SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN: Full screen, status bar floating above application; SYSTEM_UI_FLAG_LAYOUT_STABLE: Keep the view stable and use the most extreme layout.
setSystemUiVisibility () takes effect only if the specified view is visible. More specifically, the specified view must remain visible in order for the navigation bar to remain hidden.

Q 2: Optimization in Hardening and Thermal Repair, do you have a detailed document?

A: These may not be special features that most developers need to touch, and different hardening and hot repair schemes have different designs and implementations. We have worked directly with most of the commonly used hardening and hot repair vendors to ensure that their solutions guarantee maximum compatibility and performance. If you have more specific questions, please contact your hardening or hot repair solution provider.

Q 3: After the MAC address is random, if the router sets the MAC address whitelist, the mobile phone cannot connect to the router. How to solve this problem?

A: The system knows the real MAC address, but does not report it to the application. You can view the real MAC address in the setup interface of the system and add it to the white list of routers.

Q 4: Android 10 security features have changed greatly. Are there technical documents that can guide developers to upgrade and adapt?

A: Refer to the Android Developer's official website (in particular the Privacy Enhancement, Behavior Change, and Migration Guide) and the 1 Best Practices.

Q 5: After the system is upgraded from Android P to Android 10, (non-login) application reinstallation, how to track users?

A: Use SSAID (Secured Settings Android Id). This ID is 1 between applications signed by the same developer signature key under the same system user. But it will be changed after the factory settings are restored.

Q 6: What is the scope of SAF access for one application?

A: In Android 10 and previous versions, the application can access any specified directory with the user's consent. As we mentioned earlier, in a major version of Android, specific directories will not be accessible. If this causes problems with your application, please tell us the specific use case.

Q 7: Non-SDK interface limitation: Will changes to this limitation in future Android versions make it difficult for developers to maintain? Will static scanning tools be added to the compilation process in the future?

A: We will continue to provide documentation and technical support for non-SDK interface changes. The static scan tool requires only one line of command to run, and you can add one postbuild command to the compilation process.

Q 8: Equipment ID: Android ID can ensure that all devices do not repeat each other. According to the statistics of other departments of the company, Android ID has some duplication phenomena.

A: Android ID has a statistically low repetition probability. If you find two devices with one ID, please let us know the equipment manufacturer and model.

Q 9: Sandbox storage: Path access to media resources is allowed on Android 10. Is the DATA column in the media resource information queried through ContentResolver available?

A: DATA has been deprecated and you should not use it. If you want to use paths to access media resources, you can use the class java. io. File. You can use it to access media files that belong to the application itself or that the application is authorized to access.

Q 10: Is Single 1/Temporary Authorization currently supported?

A: Not at present, but we are considering providing support.

Q 11: Permissions: Do you provide authorization logs/records?

A: Under what circumstances do you need to use it? From the perspective of privacy protection, applications should not obtain permission request records of other applications.

Q 12: Screen content access is restricted. Does screen capture function belong to "screen content access"?

A: Protection of screen content access means that one application accesses the screen content of another application. If this refers to the application accessing its own drawing cache (DrawingCache), no special permissions are required.

Q 13: How can activity detection and screen recording be compatible with old versions of devices? Is the restriction on Android 10 for applications with targetApi 29 or for all applications running on Android 10?

A: Refer to this document for the relationship between the permissions associated with activity discovery and the targetSdkVersion of the application.

Q 14: Does the next version preview mentioned in the file storage lecture mean the next minor version of Android 10?

A: This refers to the next major release.

Q 15: Does the collapsible device have a callback to know whether it is currently in collapse mode or expansion mode?

A: No, we want the application to be more generic with support for different screen resolutions. Please use onConfigurationChanged, or tell us more specific requirements.


Related articles: