Post Reply

[TOOL][ANDROID]Dark_Multitool-CyanogenMod building.kernel developMent.ADB tool..etc..

OP Dark Wraith

9th December 2013, 08:57 PM   |  #1  
Dark Wraith's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 649
 
252 posts
Join Date:Joined: Feb 2013
Donate to Me
More
******* Hi all ********

I have developed this little tool containing a few utilities that should help anyone do a host of stuff like building Cyanogenmod..Compiling kernels..Play with ADB..GIt tools..etc


DARK_Multitool1.0


My tool is divided into five Modules(More to come in future if people find it useful)


Module 1 : CyanogenMod Tools

- Installing the necessary libraries for compiling Cyanogenmod

- Initializing your repository and getting the Cyanogenmod source code

- Getting prebuilt apps/Device proprietary blobs

- Building Cyanogenmod for your device

Module 2 : ADB tools

- Creating logcat to debug your phone

- Installing apps via ADB

- Push/Pull stuff to/from your android device

Module 3 : Kernel tools

-Sony Kernel

Unpack Kernel Source

Create zImage of various devices(any Xperia)

Extract kernel.sin from ftf file

Unpack kernel.sin(to get zImage and ramdisk)

Make dt.img(For Xperia Z1 and Z ultra)

Make kernel.elf or boot.img depending on device

Test your kernel.elf/boot.img without flashing fully(Test run)

-Nexus Kernel

Getting the source code

Checkout the source code

Building zImage

-Samsung kernel

(Is under development as i develop for Xperia devices and not too familiar with samsung atm)

-Download toolchains

-Unpack boot.img to get zImage and Ramdisk

pearl script unpack or umkbootimg unpack

-Unpack or Repack ramdisk

-Build zImage for a generic kernel(Experimental)

-Take kernel log : Thanks @ricky310711 for the commit

Module 4 : Backup TA partition for Sony or EFS partition on samsung

-Backup TA partition for Sony(By dd Method only)

-Backup or restore efs partition for Samsung(tar or dd method)

Module 5 : GIT tools

-Download GIT package on your linux

-Change directory where you want to initialize git

-Git repository setup(New git setup/Changes to old git setup)

-Update your local and remote git repository

-Commit your additions/deletions

-Push/Pull to/from your github repository

-Automatic push commits to your repository(After git setup is done)

-Download any repository using GIT

Download link

Dark_multitool1.0(With Update 1)

Update 2 added...Will upload soon..You can download this and update via tool to the latest version

Its better to download from XDA DevDB. You can either use the link above or click on downloads on top of the thread to download

How to install??

Download the tar.gz file from the link above..Place it in your home directory and run the following command in your terminal

tar -xjvf dark_multitool1.0.gz

How to run it??

cd to the folder dark_multitool1.0 and type ./menu in your terminal and execute

This tool is only for any linux based distro(Ubuntu,fedora etc) atm and i dont know if it will work in cygwin(Tested on Cygwin by kevinrus123 : Some utilities are working)

You can install vitualbox and install ubuntu or any other linux based distro to use the tool if you are running windows


Credits

-xda and its wonderful devs for teaching me everything

-Doomlord for his exceptional threads and tutorials on Xperia devices

-Rickwyatt and Rekoil for Ta partition backup tutorial for Xperia

-Google.com

If i have forgotten anyone then please let me know


Donations

Running a 512 mb laptop with a semi crashed hard disk.....So any kinds of donations are welcome if you like the tool

>Just donate to my email ID : somik.chowhdury1926@gmail.com

>I am from India..so personal payment wont work

>Select buy me goods/services and it should work

>You can donate via tool as well.....


Sources

My github source : https://github.com/Smk1989/dark_multitool1.0

Mods : Please Move the thread if its in the inappropriate section

Updates

Latest update = Update 1

-I will keep the thread updated with the latest tool and you can also update the tool through the tool itself


FAQs in the second post

Changelogs in the third post

XDA:DevDB Information
[TOOL][ANDROID]Dark_Multitool-CyanogenMod building.kernel developMent.ADB tool..etc.., a Tool/Utility for the Android General

Contributors
Dark Wraith

Version Information
Status: Alpha

Created 2013-12-11
Last Updated 2014-01-03
Last edited by Dark Wraith; 11th December 2013 at 10:32 AM.
The Following 52 Users Say Thank You to Dark Wraith For This Useful Post: [ View ]
9th December 2013, 08:58 PM   |  #2  
Dark Wraith's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 649
 
252 posts
Join Date:Joined: Feb 2013
Donate to Me
More
FAQs

>Why is it giving errors while compiling zImage for Xperia devices????

Answer : You need to add the various makefile and defconfig fixes for the toolchain to work properly

Please refer to this excellent thread by doomlord for various fixes

http://forum.xda-developers.com/show....php?t=2447310

>TA partition and EFS partition backup doesn't work properly

Answer : Please remember to specify the memory block correctly. If you still get an error then please tell me the error so that i can check if the error is from the tool's end

>How to add a toolchain????

Answer : Add it under android_toolchains folder in your home directory

Open the tool and navigate to toolchain_selector script under scripts folder

Add the toolchain name and the correct path as given there in the following format

toolchain_name[the number after the last toolchain name]=
toolchain_path[the number after the last toolchain path] =

>How to clean your kernel or Cyanogenmod work directory?

Answer ; Navigate to the kernel or Cyanogenmod work directory and type in Terminal : make clean

I will incorporate this in the next release

>Download toolchains or update tool doesnt work

Answer : make sure you have the git package installed. You can install from the tool itself under GIT tools

>Libraries missing while compiling kernel or cyanogenmod build errors on 64 bit machine??

Answer : Download libraries from cyanogenmod import libraries option( I will incorporate this in the next release) and for 64 bit compile error type : BUILD_HOST_32bit=1(Fixed and added in update 1)



Bugs and Suggestions

Please let me know
Last edited by Dark Wraith; 22nd December 2013 at 05:16 PM.
The Following 10 Users Say Thank You to Dark Wraith For This Useful Post: [ View ]
9th December 2013, 08:59 PM   |  #3  
Dark Wraith's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 649
 
252 posts
Join Date:Joined: Feb 2013
Donate to Me
More
Changelogs

Update 2

>Added Xperia J in the build list of the tool

>Added Take kernel log in kernel options..Thanks @ricky310711 for the commit

>Added dry run option for Sony
-Lets you test your kernel.elf/boot.img(In case the kernel doesnt boot up..just restart phone and try again)

Update 1

>Cm-11.0 branch added while initializing repo(thanks mithun shanoj for the commit)

>Added umkbootimg unpack method

>Added import libraries option

>Added BUILD_HOST_32BIT=1 for 64 bit machines
Last edited by Dark Wraith; 2nd January 2014 at 08:50 PM.
The Following 4 Users Say Thank You to Dark Wraith For This Useful Post: [ View ]
9th December 2013, 08:59 PM   |  #4  
Dark Wraith's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 649
 
252 posts
Join Date:Joined: Feb 2013
Donate to Me
More
Last one
The Following 4 Users Say Thank You to Dark Wraith For This Useful Post: [ View ]
10th December 2013, 05:45 AM   |  #5  
Dark Wraith's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 649
 
252 posts
Join Date:Joined: Feb 2013
Donate to Me
More
No one tried??

Sent from my Micromax A110 using xda app-developers app
The Following 3 Users Say Thank You to Dark Wraith For This Useful Post: [ View ]
22nd December 2013, 11:07 AM   |  #6  
Senior Member
Thanks Meter: 991
 
2,068 posts
Join Date:Joined: Jun 2012
Maybe I am blind but where do I get the download?
22nd December 2013, 11:18 AM   |  #7  
adityak74's Avatar
Member
Flag Chennai
Thanks Meter: 23
 
91 posts
Join Date:Joined: Jan 2013
More
Download Link?
Dude where is the download link???
22nd December 2013, 11:21 AM   |  #8  
rharshit's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 864
 
551 posts
Join Date:Joined: Jul 2012
More
I had always been waiting for a tool like this one. Great job

---------- Post added at 04:51 PM ---------- Previous post was at 04:50 PM ----------

Quote:
Originally Posted by Dovidhalevi

Maybe I am blind but where do I get the download?

Quote:
Originally Posted by adityak74

Dude where is the download link???

To download, sync this repository
https://github.com/Smk1989/dark_multitool1.0
Thats it. navigate to the local repository and run run menu from terminal
22nd December 2013, 11:25 AM   |  #9  
shree_tejas's Avatar
Senior Member
Thanks Meter: 292
 
2,111 posts
Join Date:Joined: Jun 2012
Well well well.:beer: cheers.
The Following User Says Thank You to shree_tejas For This Useful Post: [ View ]
22nd December 2013, 11:29 AM   |  #10  
Dark Wraith's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 649
 
252 posts
Join Date:Joined: Feb 2013
Donate to Me
More
Quote:
Originally Posted by Dovidhalevi

Maybe I am blind but I'll alwhere do I get the download?

Quote:
Originally Posted by rhar****

I had always been waiting for a tool like this one. Great job

---------- Post added at 04:51 PM ---------- Previous post was at 04:50 PM ----------





To download, sync this repository
https://github.com/Smk1989/dark_multitool1.0
Thats it. navigate to the local repository and run run menu from terminal

Quote:
Originally Posted by adityak74

Dude where is the download link???

Guys see the download tab on top of the thread.. I'll also add a download link if u want

Edit: Added a download link to the post
Last edited by Dark Wraith; 22nd December 2013 at 01:06 PM.

The Following User Says Thank You to Dark Wraith For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
cyanogenmod development, kernel kitchen, tool, xperia
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software and Hacking General [Developers Only] by ThreadRank