docs: def fix_base(fix_environ):
      """Activate the base compatibility."""
      def _is_android():
          import os
  
          vm_path = os.sep+"system"+os.sep+"bin"+os.sep+"dalvikvm"
          if os.path.exists(vm_path) or os.path.exists(os.sep+"system"+vm_path):
              return True
          try:
              import android
              del android  # Unused import (imported only for Android detection)
              return True
          except ImportError:
              pass
          return False
  
      def _fix_android_environ():
          import os
  
          if "LD_LIBRARY_PATH" not in os.environ:
              os.environ["LD_LIBRARY_PATH"] = ""
  
          lib_path = os.pathsep+"/system/lib"+os.pathsep+"/vendor/lib"
          if sys.python_bits == 64:
              lib_path = os.pathsep+"/system/lib64"+os.pathsep+"/vendor/lib64" + lib_path
  
          os.environ["LD_LIBRARY_PATH"] += lib_path
  
      if sys.platform.startswith("linux") and sys.platform != "linux-android":
          if _is_android():
              sys.platform = "linux-android"
          elif "-" not in sys.platform:
              sys.platform = "linux"
  
      sys.platform_codename = sys.platform
      if sys.platform_codename == "win32":
          sys.platform_codename = "win"
      elif sys.platform_codename == "linux-android":
          sys.platform_codename = "android"
  
      if 'maxsize' in sys.__dict__:
          if sys.maxsize > 2**32:
              sys.python_bits = 64
          else:
              sys.python_bits = 32
      else:
          import struct
          sys.python_bits = 8 * struct.calcsize("P")
          if sys.python_bits == 32:
              sys.maxsize = 2147483647
          else:
              sys.maxsize = int("9223372036854775807")
  
      if fix_environ and sys.platform == "linux-android":
          _fix_android_environ()