This paper explores the automation of Android penetration testing using artificial intelligence (AI) and large-scale language models (LLMs), specifically the detection and execution of rooting techniques using PentestGPT. We compare existing manual rooting processes with AI-based exploit generation methods to evaluate the efficiency, reliability, and scalability of AI-based automated penetration testing. We use the Genymotion Android emulator to implement both manual and AI-generated scripts for automated rooting, and develop a web application integrating the OpenAI API to automate LLM-based script generation. We evaluate the effectiveness of AI-based exploits, analyze their strengths and weaknesses, and provide security recommendations, including ethical aspects and exploitability. Our findings demonstrate that while LLMs simplify the exploitation process, human intervention is necessary for accuracy and ethical application.