[Android Software/Hacking General [Developers Only]] sil3ntki11:
Root Packager

Hey everyone! So for some reason, I hate batch files... They are ugly and I think it makes some users turn away from rooting their phones. So I went ahead and made a graphical UI that can be used for any root methods (non-Odin). The idea is that anyone who comes up with a method to root phones will have an easy way to throw together a GUI for rooting the phone instead of using a batch file.

This will work on Windows, Mac, and Linux. I haven't done the build on the Linux version or Mac yet but it is written in Qt so it will compile for all of the machines. So here is the deal:

There is a main structure to the program:

RootPackager

|

| -> root/ -- files used for the root method

| -> root.script

| -> tools/ -- location of adb (android debugger bridge)

| -> device/

| -> phone.txt -- name of the device you are rooting in the text file

| -> credits.txt -- HTML of credits for whoever made the root method

| -> drivers.txt -- links and names of carriers with the url to the driver for the phone

| -> html/

phone.txt

Simply put the name of the phone in this text file

credits.txt

You may put any HTML in this document crediting the people who made the root method.

Please keep the HTML relatively short, I recommend a <ul> list

drivers.txt

This file contains the carrier name and url to download the USB driver of the phone

On each line, you put the carrier name (no spaces) separated by whitespace and then the URL to the download.

Example:

Verizon url_goes_here

TMobile url_goes_here

root/ folder inside of the main folder

You may put all the files required to perform the root method here so they can be accessed by the script.

root/root.script

The 'root.script' file inside the root folder is where all the magic happens. This is essentially your batch script, but in a much simpler syntax. There is an example root.script in the folder provided, but here are the methods I have implemented so far:

# Commands Available For Root Packager:

# sleep - example: sleep 2 (sleeps for 2 seconds) - sleeps for a determined amount of time in seconds

# move - example: move /data/local/file /data/local/file2 - moves files on Android device

# shell - example: shell /data/local/debugfs - executes commands on the adb shell

# delete - example: delete /data/local/tmp.bak - deletes a file on Android device

# waitfordevice - example: waitfordevice - wait for the device to connect

# push	- example: push su /data/local/ - pushes a file from the root/ folder to the Android device

# reboot	- example: reboot - restarts the device

# adb	- example: adb shell /data/local/su - execute any adb command you want

Please look at the example I have provided to make sense of it all.

Notice that if you are pushing a file, there is no need to add the directory, as the directory is the root/ folder. This is why it is important to put all root method files in here.

After all methods are executed, the program will verify that the device has been rooted.

The example I have provided will root the Samsung Galaxy S3 USA Variants on Android 4.0.4.

I hope you find this useful and I hope that this leads to less batch scripts floating around!!!

Here is the download:

mediafire.com/?l559tse4ztzc47d

Here are some screenshots:

imgur.com/a/7Eq48