Releases: RobThePCGuy/BlueStacks-Root-GUI
BlueStacks-Root-Gui.v1.2
instance_handler.py changes:
parent_path Parameter: Now takes parent_path as input, which is the BlueStacks Engine directory, ensuring it operates on Android.bstk.in correctly.
Robust Type Modification: More robustly handles cases where "Readonly" or "Normal" might not already exist in the line. It now appends Type="{new_mode}" if no type is found.
File Found Flag: Added file_found_in_bstk flag to avoid rewriting the BSTK file if no target file names were found within it, improving efficiency.
Clearer Logging: Improved logging messages for different scenarios (modification, appending, no changes, errors).
is_instance_readonly Improvements:
Parent Path Determination: Now determines the parent_path from the provided instance_path to correctly locate BSTK files in the Engine directory.
File Existence Check: Checks if the BSTK file exists before trying to open it, and logs a warning if not found, skipping to the next file instead of causing an error for the whole process.
More Robust Path Handling: Uses os.path.join for path construction.
terminate_bluestacks Function (New):
Added a function to terminate common BlueStacks processes using psutil. This aligns with the main GUI script's requirements and allows for controlled termination.
Includes logging for successful terminations, timeouts, and errors during process termination.
Enhancements in registry_handler.py:
Clearer Logging: Improved log messages to include the full registry path (HKLM\SOFTWARE\BlueStacks_nxt) for better context.
Informational Success Log: Changed the success log from debug to info level to highlight successful registry key retrieval.
PermissionError Handling: Added specific handling for PermissionError, suggesting running as administrator in the error message, which is a common issue with registry access.
Debug Exception Details: Added logger.debug("Full exception details:", exc_info=True) in except blocks to log full exception tracebacks at DEBUG level for more detailed debugging when needed.
Enhancements in config_handler.py:
Setting Appending: If the setting is not found in the config file during modify_config_file, it now appends the setting to the end of the file. This is useful if a setting is missing.
Clearer Logging: Improved log messages, especially differentiating between updating an existing setting and appending a new one. Success logs are now at info level.
Debug Exception Details: Added logger.debug("Full exception details:", exc_info=True) in except blocks to log full exception tracebacks at DEBUG level.
Informational Root Status Logs: Changed the log level for root status checks to info to provide more visible feedback on root status. Also added info log when setting is not found, and assuming disabled, which is important to know.
BlueStacks-Root-Gui.v1.1
Added Japanese support. Please let me know if there are issues.