Post Reply

HALF-ASSED ONEPLUS ONE TOOLKIT v1.0 BETA in Python - OSX, Linux, and Windows!

17th August 2014, 01:22 PM   |  #1  
eudemonics's Avatar
OP Senior Member
Thanks Meter: 7
 
103 posts
Join Date:Joined: Jan 2007
Donate to Me
More
i present to you the latest pre-release from vvn's secret underground laboratory.......

THE HALF-ASSED ONE PLUS ONE TOOLKIT v1.0 BETA!

screenshot from HALF-ASSED ONE PLUS ONE TOOLKIT

STILL IN BETA TESTING. tested most functions on my macbook pro (running OSX mountain lion) and they all seem to be working, except the uninstall APK function, but i'm pretty sure i'm sending the wrong parameters. also, the latest OTA updates (30O) aren't installing from the fastboot update method. you can install them by rebooting into recovery and choosing the ADB sideload method - then just enter "adb sideload <path to update zip>" into your terminal or command prompt. i haven't tested the sync, wipe, restore, or unlock bootloader functions yet. they should all be working though, except maybe the sync (as i don't completely understand the ADB command myself). there's a few bugs i still need to sort out, but most of the functions should be working.

USE AT YOUR OWN RISK. i'm not responsible for anything that might happen to your device as a result of using the toolkit. i assume if you are able to make it far enough to install python, the android SDK, and run the script, then you've got a pretty good idea of what you're doing already. if you need help, send me a message.

requirements: python 2.7, android SDK, opotoolkit.py, pyadb.py

you can either supply the files referenced in the script, or download them from my site. links are in the opotoolkit.py source code pastebin link.

opotoolkit.py source code: http://pastebin.com/ciAj8NJy
pyadb.py source code: http://pastebin.com/g2Z08JN1

for your convenience, i put together a ZIP file with most of the files you need - scripts, superSU, recovery images, apps, adb/fastboot binaries, etc. all that's missing are the stock images referenced in option #8.
download package here: http://notworth.it/opo/1plus1-halfassedtoolkit_v1.zip

uploading ZIP files with the stock images right now. they should be up and ready in about an hour tops. links are in the source code comments.

installation:

download and install python 2.7: https://www.python.org/downloads/
download and install android SDK: https://developer.android.com/sdk/
download toolkit package: http://notworth.it/opo/1plus1-halfassedtoolkit_v1.zip
-or-
download the python scripts/copy + paste source code from pastebin links above into a text editor and save them as:
opotoolkit.py
pyadb.py

extract files from the ZIP package or save the *.py scripts to a new directory, "opotoolkit" or whatever you want to name it.

it should work with the adb and fastboot binaries provided in the ZIP, but if not, you should install the android SDK. i recommend even MORE that you create an environmental path variable to the android SDK so you can run the commands from any directory.

setting up an environmental path variable (optional - recommended):

if you're on windows you can go to my pastebin, find the only powershell script on there, and steal/adapt the code to create your own environment path variable. but it's much easier to configure in system properties - i'm not on windows right now so these may not be exact instructions, but you should be able to right click on "my computer", select "properties", go to the "environment" tab in system settings, and add the environment path there. linux and OSX users just need to add the android SDK directory to their ~/.bash_profile or ~/.bashsrc or wherever environment paths are defined. if you still don't understand environmental path variables or symbolic links, i highly recommend google (or startpage.com, the private version).

if you don't want to go to the trouble of creating the environmental path variables, and you want to use the android SDK on your computer, then just extract all the files from the ZIP into your android SDK directory.

how to run the toolkit:

plug phone to computer via USB, turn on android debugging.

open command prompt or terminal window to scripts directory. start toolkit by entering:
"python opotoolkit.py"

if everything is installed and in the right places, you should see a menu like the attached screenshot.

i'll continue working on it and adding more when i can so keep checking this space, as well as the pastebin links (i'll add to github eventually). everything's open source; use, share, steal whatever you want from the code. some credit would be nice, though.

not gonna ask for donations - if you'd like to donate, please do so by purchasing my EP:
buy it here: http://dreamcorp.bandcamp.com
or search for it on itunes, google play, amazon, spotify, last.fm, cdbaby, blah blah blah.

there are also links in the description for my video:
https://www.youtube.com/watch?v=2i-F4jiKtGg
17th August 2014, 01:22 PM   |  #2  
eudemonics's Avatar
OP Senior Member
Thanks Meter: 7
 
103 posts
Join Date:Joined: Jan 2007
Donate to Me
More
RESERVED
***space reserved***
17th August 2014, 01:23 PM   |  #3  
eudemonics's Avatar
OP Senior Member
Thanks Meter: 7
 
103 posts
Join Date:Joined: Jan 2007
Donate to Me
More
Prompt Reserved again
***space reserved***
Post Reply Subscribe to Thread

Tags
linux, oneplus one, osx, python, toolkit
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in ONE Android Development by ThreadRank