def get_bool_resources(self, package_name, locale='\x00\x00'):
        """
        Get the XML (as string) of all resources of type 'bool'.

        Read more about bool resources:
        https://developer.android.com/guide/topics/resources/more-resources.html#Bool

        :param package_name: the package name to get the resources for
        :param locale: the locale to get the resources for (default: '\x00\x00')
        """
        self._analyse()

        buff = '<?xml version="1.0" encoding="utf-8"?>\n'
        buff += '<resources>\n'

        try:
            for i in self.values[package_name][locale]["bool"]:
                buff += '<bool name="{}">{}</bool>\n'.format(i[0], i[1])
        except KeyError:
            pass

        buff += '</resources>\n'

        return buff.encode('utf-8')
def get_bool_resources ( self , package_name , locale = '\x00\x00' ) : self . _analyse ( ) buff = '<?xml version="1.0" encoding="utf-8"?>\n' buff += '<resources>\n' try : for i in self . values [ package_name ] [ locale ] [ "bool" ] : buff += '<bool name="{}">{}</bool>\n' . format ( i [ 0 ] , i [ 1 ] ) except KeyError : pass buff += '</resources>\n' return buff . encode ( 'utf-8' )
Get the XML (as string) of all resources of type 'bool'.

        Read more about bool resources:
        https://developer.android.com/guide/topics/resources/more-resources.html#Bool

        :param package_name: the package name to get the resources for
        :param locale: the locale to get the resources for (default: '\x00\x00')