Skip to content

Commit 2888eab

Browse files
author
Diego Jardon
committed
Add docstring to write_data_to_file
1 parent 450b66e commit 2888eab

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • src/clusterfuzz/_internal/platforms/android

src/clusterfuzz/_internal/platforms/android/adb.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,14 @@ def write_command_line_file(command_line, app_path):
881881

882882

883883
def write_data_to_file(contents, file_path, should_reboot=True):
884-
"""Writes content to file."""
884+
"""Writes content to file.
885+
886+
Args:
887+
contents: The string content to write.
888+
file_path: The path to the file on the Android device.
889+
should_reboot: Whether to reboot the device if a system file is modified.
890+
Defaults to True.
891+
"""
885892
# If this is a file in /system, we need to remount /system as read-write and
886893
# after file is written, revert it back to read-only.
887894
is_system_file = file_path.startswith('/system')

0 commit comments

Comments
 (0)