[TOOL] CM Tool - Android General

Hi all
I have created a simple tool to help automate the CM7/9/10 build from source, this tool sets up everything.. just check it out and give some feedback
Open terminal, navigate to cm tool dir and type ./CM_tool
For source code please PM me
Cheers,
h4ck3dm1nd.

h4ck3dm1nd said:
Hi all
I have created a simple tool to help automate the CM7/9/10 build from source, this tool sets up everything.. just check it out and give some feedback
Open terminal, navigate to cm tool dir and type ./CM_tool
For source code please e-mail me to [email protected].
Cheers,
h4ck3dm1nd.
Click to expand...
Click to collapse
now that's what I call an excellent first post
well done +1

not working
unable to execute the binary file. did chmod on the file.. still not working. is the binary from 64bit linux os?. I am using Ubuntu 12.04 32bit version..
See d following output:
$ ./CM_tool
bash: ./CM_tool: cannot execute binary file
$ sudo chmod a+x CM_tool
$ ./CM_tool
bash: ./CM_tool: cannot execute binary file

Yes this is a 64bit binary.
Sent from my GT-N7000 using xda app-developers app

I can build this tool for 32bit systems but the problem is that this tool config all your OS to be ready to build AOSP so i think that to build AOSP in 32bit you need some other deb packages, i will work on this and port this APP to 32bit but i cant test it because i only have 64bit systems here @ my home. I will work on this tomorow and when its complete i will post it here for tests.
Sent from my GT-N7000 using xda app-developers app

I've just checked in AOSP website...
"For Gingerbread (2.3.x) and newer versions, including the master branch, a 64-bit environment is required. Older versions can be compiled on 32-bit systems."
So there is no point in porting this to 32bit unless some one explain me how to set up ubuntu 32bits to build AOSP 2.3.x+.
Sent from my GT-N7000 using xda app-developers app

h4ck3dm1nd said:
Hi all
I have created a simple tool to help automate the CM7/9/10 build from source, this tool sets up everything.. just check it out and give some feedback
Open terminal, navigate to cm tool dir and type ./CM_tool
For source code please e-mail me to [email protected].
Cheers,
h4ck3dm1nd.
Click to expand...
Click to collapse
I think this is not N7000 specific, post it in Android Gen section, you will get more audience there, just a suggestion

I dont wont to double post so if a mod por an admin can move the threat i will be grateful
Sent from my GT-N7000 using xda app-developers app

From the Moderator
Good work !!!.......... and your wish is done..... Moved to Android General
~~ Oka1
h4ck3dm1nd said:
I dont wont to double post so if a mod por an admin can move the threat i will be grateful
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse

h4ck3dm1nd said:
I dont wont to double post so if a mod por an admin can move the threat i will be grateful
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
No problem, moved to android development and hacking general.

original_ganjaman said:
No problem, moved to android development and hacking general.
Click to expand...
Click to collapse
Thanks!
I will apreciate any feedback to improve this tool
Cheers.
h4ck3dm1nd

Related

[HOWTO]Kitchen for i9001

Could someone do the HOWTO(step by step) and upload kitchen for i9001? I think more people will cook roms SGS +. I know it's time consuming but worth it. What do you think about it?
LINUX(Ubuntu, Kubuntu, Debian - .deb distros)
1. Java installation:
Code:
sudo apt-get install sun-java6-bin sun-java6-jre
2. Java veryfication, if OK(version can be different):
Code:
java -version
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
3. Kitchen downloading:
Download latest kitchen zip.
4. Making dir for develop:
Code:
mkdir ~/android-devel
5. Moving and unziping kitchen:
Code:
mv ~/Download/I9001_test1.zip ~/android-devel/
cd ~/android-devel/
unzip ./I9001-test1.zip
mv ./dsixda-Android-Kitchen-5da2e95 ./kitchen
6. Downloading custom ROM for developing:
Download XXKPS from this thread.
7. Unpack ROM:
Code:
mv ~/Download/I9001XXKPS_I9001SERKP6_I9001XXKPG_236.rar ~/android-devel
cd ~/android-devel
unrar e ./I9001XXKPS_I9001SERKP6_I9001XXKPG_236.rar
mv ~/android-devel/I9001XXKPS_I9001SERKP6_I9001XXKPG_HOME.tar.md5 ~/android-devel/I9001XXKPS_I9001SERKP6_I9001XXKPG_HOME.tar
tar vxf ./I9001XXKPS_I9001SERKP6_I9001XXKPG_HOME.tar
8. Copy files to the kitchen dir:
Code:
cp ./boot.img ./cache.img.ext4 ./system.img.ext4 ~/android-devel/kitchen/oryginal_update/
9. Running kitchen:
Code:
cd ~/android-devel/kitchen
./menu
10. Importing ROM:
In kitchen menu go to:
Code:
1 - Set up working folder from ROM
then:
Code:
s - Show supported formats
ENTER and select:
Code:
(1) system.img.ext4, cache.img.ext4 and boot.img
to be continued.............
I hope this helps someone.
Thanks for: dsixda
oisis said:
Could someone do the HOWTO(step by step) and upload kitchen for i9001? I think more people will cook roms SGS +. I know it's time consuming but worth it.
What do you think about it?
Click to expand...
Click to collapse
Agree but bit too early as none exists yet...
Ok but some of you cooking roms, so you could create mini howto and add some information later. I am linux user but i don't know howto cook and with howto i will start. That is the point .
Sent from my GT-I9001 using XDA App
oisis said:
Ok but some of you cooking roms, so you could create mini howto and add some information later. I am linux user but i don't know howto cook and with howto i will start. That is the point .
Sent from my GT-I9001 using XDA App
Click to expand...
Click to collapse
There are tons of different sources on how to cook ROMs. If you've never noticed before, there are two search bars on the top of this very page. The leftmost is what you need. Four words will help you. If it's not obvious enough: HOW TO COOK ROMS
regards
I've used dsixda's Android Kitchen once. It's not fully functional but it can help you.
I had problem with prepearing orginal stock rom to start working with the kitchen. I did this in that way:
1. I changed the file name from .tar.md5 to .tar
2. I unpacked .tar using Winrar
3. I changed filenames of some files from .img.ext4 to .img
And the kitchen was able to impost the rom files and to start working with them.
Many functions were not working becouse kitchen was not able to cerate file to flash boot.img. But flashing /system was possible so i managed to deodex and zipalign the rom, disable boot sound etc.
That I managed to do. I will write soon how to do this with the environment installation on Linux and file preparation. I hope someone will help me develop the topic and we will create a howto for dummies .
As long as android development is concerned I'm as dummy as possible
I can help you by giving the feedback if your explanation is uderstandable.
oisis said:
That I managed to do. I will write soon how to do this with the environment installation on Linux and file preparation. I hope someone will help me develop the topic and we will create a howto for dummies .
Click to expand...
Click to collapse
+1 here me too!
I can try.. you guys want to give feedback on a beta version?
dsixda said:
I can try.. you guys want to give feedback on a beta version?
Click to expand...
Click to collapse
Thanks. I am ready to give you 100% feedback, I already tired and i think its very near to be done, but only needs your touch .
Give this a try. I don't have this device, so your feedback will help a lot.
http://www.mediafire.com/?ysd2m55ek5ua5pu
also dsixda,your rom kitchen somehow always fails to deodex i9001 firmwares....
would be freat if u could look into that matter!
sakindia123 said:
also dsixda,your rom kitchen somehow always fails to deodex i9001 firmwares....
would be freat if u could look into that matter!
Click to expand...
Click to collapse
Well it also doesn't deodex Maps and VoiceSearch in other Samsung ROMs. Nothing I can do about it. I9001 may be my last project.
dsixda said:
Well it also doesn't deodex Maps and VoiceSearch in other Samsung ROMs. Nothing I can do about it. I9001 may be my last project.
Click to expand...
Click to collapse
can you please upload with magaupload, mediafire has problems cant download.
EDIT: Its ok... downloading
Thx dsixda for making your kitchen available for us. I tried to make a rom for I9001 with your latest version of the kitchen and some things worked. I just had to dd the system.img.ext4 in system.img and so I could use some functions. But because I'm new to the hole thing- Espacially I don't know how I handle the updater-script in the right way - I gave this up. So keep up the good work to make it fully working for us.
p.s. Someone could provide a tutorial or just a link for making an updater-script.
Sent from my GT-I9001 using XDA App
crybert said:
Thx dsixda for making your kitchen available for us. I tried to make a rom for I9001 with your latest version of the kitchen and some things worked. I just had to dd the system.img.ext4 in system.img and so I could use some functions. But because I'm new to the hole thing- Espacially I don't know how I handle the updater-script in the right way - I gave this up. So keep up the good work to make it fully working for us.
p.s. Someone could provide a tutorial or just a link for making an updater-script.
Sent from my GT-I9001 using XDA App
Click to expand...
Click to collapse
@crybert :u can use mine
there are apps(pc ones) for makin updater-script,like "Update-script Manager"
sakindia123 said:
@crybert :u can use mine
there are apps(pc ones) for makin updater-script,like "Update-script Manager"
Click to expand...
Click to collapse
Okay thx. Is there a possibility to format the hole system-partition ? I tried format("ext4" ; "/dev/block/mmcblk0p15"); but this doesnt work. Or you mean this is not a good idea?
You mean something like this app: forum.xda-developers.com/showthread.php?t=717437
Sent from my GT-I9001 using XDA App
formatting partitions line by line is much better
i've never used those apps for updater-script,only from signing
crybert said:
Okay thx. Is there a possibility to format the hole system-partition ? I tried format("ext4" ; "/dev/block/mmcblk0p15"); but this doesnt work. Or you mean this is not a good idea?
You mean something like this app: forum.xda-developers.com/showthread.php?t=717437
Sent from my GT-I9001 using XDA App
Click to expand...
Click to collapse
The kitchen already formats the system partition in the updaterscript. Just build a basic ROM with root permissions, flash it and check for errors.
If someone here has used the kitchen before on other device ROMs, please let me know how it goes with the I9001.
dsixda said:
The kitchen already formats the system partition in the updaterscript. Just build a basic ROM with root permissions, flash it and check for errors.
If someone here has used the kitchen before on other device ROMs, please let me know how it goes.
Click to expand...
Click to collapse
i used it intitially for cooking rom for i9003(Samsung Galaxy sl)
worked pretty well,even deodexing!

Droid Tools V1 - Sign APK's , Make Release Keys , Sign Roms! [FOR NEWBIES]

Welcome to the Droid Tools Project!
I made this for Noobs!
Well I got bored and made this on my phone when I got bored , it was written in a txt editor but has a easy to use UI! Its still basic and has more features to come so don't judge!
What the the tool includes in v1:-
- Sign APK's
- Release Keys
- Sign ROM's
More coming in V1.1
Instructions:-
1. Click the desired version download link.
2. Wait 5 seconds and click SKIP AD.
3. Download and extract.
4. Read the ReadMe and run the .bat.
Credits:-
In the folder the tool is contained within.
Downloads:-
Mod Edit: Link removed
Another thread?
apktool is still the best
and yes it is,
another thread
another thread to be closed? lol! kidding!
deathnotice01 said:
apktool is still the best
and yes it is,
another thread
Click to expand...
Click to collapse
Can you give me the apktool app???
Sent from my GT-S5360 using xda premium
jerryn70 said:
Can you give me the apktool app???
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
as you wish
http://forum.xda-developers.com/showthread.php?t=1310151
Featured!! :O
HOLY SH*T!! This thing got featured!!
EliTSamsunG said:
Another thread?
Click to expand...
Click to collapse
No its a potatoe
This app is very useful.
But you forgot to add the procedure to add 'PATH' environment variable for newbies in the Readme.
And the Zipalign function is not working for the people like me, who use portable version of Android SDK. It should also be mentioned in Readme.
Hope that you'll definitely fix it in next version.
Good Job !
[email protected]
Sent from my GT-S5360 using xda premium
And then???????
GREEEEEETZ!!!
download link dead..OP please replace a new working link..
thanks
here is the file!i think he never updates the post.
i used zip signer from market.. its very friendly.
Sent from my Android System using Busybox Command.
My work
========================
- AndroBot SGY tweaks
- Nandroid md5 Fixer
- Ext4 to RFS Converter
what is the use of this tool? sorry just a noob
Sent from my GT-S5360 using xda premium
markmellarpes said:
what is the use of this tool? sorry just a noob
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Mostly for 'signing' apps i.e after editing. Every app has to be 'signed' to be useful. If you editing app (i.e for localisation) you have to signing it afterwards. So one of this app function is signing app's. Custom ROM's has to be signed either.
For signing you have to use 'key'. There you can generate your own key for signing your own apps. Bear in mind - you can seamlessly upgrade app to new version only if it is signed with the same key as older version. Otherwise you have to uninstall older version and then install new one. This app can generate keys too.

[TUTORIAL] Compiling CM10 with Adam Repo

Hi All,
As everybody wants to test the build, now you can do by yourself by following the procedure.
Follow the below link:
http://forum.xda-developers.com/showthread.php?t=1813924
Still point 4.4
Now include adam repo by editing the manifest.xml in (android/system/.repo/manifest.xml)..
Edit using below command
nano manifest.xml
Copy the below line:
"<project path="device/samsung/galaxyr" name="Adam77Root/android_device_samsung_galaxyr" />"
before
"</manifest>"
thats it...
Do the repo sync again...
Better use
repo sync -j1
sometimes all files won't download
Now you have CM10 build with Adam repo
go to /android/system
type below commands:
. build/envsetup.sh
Now connect your mobile in USB (enable USB debugging).
execute the envsetup.sh
cd android/system/device/samsung/galaxyr
. extract-files.sh
Now you got all the vendor files.
in vendor/cm folder execute the get-prebuilts
which will give you the Term.apk
Now go back to your system directory:
execute below commands
brunch cm_galaxyr-eng
repo sync and brunch take hell of time.. u need good internet connection and UBUNTU with 64 bit...
if you want to build freshly...
type below command in ur system folder:
make clean
then do the brunch again...
Any help you can PM me.. if I am unable to reply i will forward u to Adam
Best of Luck...
Sorry for not saying thanks.. Not sure how i forgot it..
Special Thanks to pmso69 for the wonderful thread..
And as always for Adam
Awesome Kathik !! It will be very useful for my JB journey. One quick q, are you sure it is "brunch full_galaxyr-eng" not "brunch full_galaxyr"
Not sure why as full_galaxyr-eng.. Hope the last 3 is for language.. which we use as english.. Not sure.. it is my guess..
As adam advices.. till now using full_galaxyr-eng
All the best buddy..
Hope after reading it.. we will get lot of developers
The 'eng' flag at the end of 'full_galaxyr-eng' (I just adopted to CM standards and it'll be 'cm_galaxyr-eng' from now!!! Karthik pls add it to the OP!) stands for an ENGineering build. It can be 'debug' ,'userdebug' or 'user' as well, but the engineering build is the best in my opinion.
Edit: I changed my branch name on GitHub to jellybean to follow the CM standards. Karthik pls add this as well.
Whre i want download this rom cm10
Sent from my GT-I9103 using xda app-developers app
Adam77Root said:
The 'eng' flag at the end of 'full_galaxyr-eng' (I just adopted to CM standards and it'll be 'cm_galaxyr-eng' from now!!! Karthik pls add it to the OP!) stands for an ENGineering build. It can be 'debug' ,'userdebug' or 'user' as well, but the engineering build is the best in my opinion.
Edit: I changed my branch name on GitHub to jellybean to follow the CM standards. Karthik pls add this as well.
Click to expand...
Click to collapse
Done! Sorry for the delay...
Updated the OP with the CM Changes... Anybody trying it?
Can anyone tell me whats the size of the download and is there a way to download some limited compressed file. Last evening I kept the repo sync on for more than 1 hr and the .repo folder size grew upto 5gb and was still running.
The thing is I have a limited data connection
Sent from my GT-I9103 using xda app-developers app
parajsinghal said:
Can anyone tell me whats the size of the download and is there a way to download some limited compressed file. Last evening I kept the repo sync on for more than 1 hr and the .repo folder size grew upto 5gb and was still running.
The thing is I have a limited data connection
Sent from my GT-I9103 using xda app-developers app
Click to expand...
Click to collapse
It's about 6-7 GB's the whole, but I've never measured it. You will see the files only after it is fully downloaded, before that point the files are saved into the .repo folder.
Adam77Root said:
It's about 6-7 GB's the whole, but I've never measured it. You will see the files only after it is fully downloaded, before that point the files are saved into the .repo folder.
Click to expand...
Click to collapse
Is it absolutely must to sync evrything from git://github.com/CyanogenMod/android.git -b jellybean. It was written somewhere on a forum that the .repo grows upto 18-19GB. I dont have that much limit. Is there anything that can be done?
Damn!! I hate these stupid fair usage policies from Indian ISPs
Sent from my GT-I9103 using xda app-developers app
Total 22 GB after brunch.. so hope it will be around 18 to 19 GB.. for me it took 2 weeks for repo sync
im kind of new in compiling CM10.
how can i know what is adam repo (what features does it include) to know whather i wanna use it
Thanks for the thought for trying... Hope u r not a newbie who doesnt know how to flash and what is github? Check it adam dev thread for cm10, it tell what is working....
Sent from my GT-I9103
karthik050782 said:
Thanks for the thought for trying... Hope u r not a newbie who doesnt know how to flash and what is github? Check it adam dev thread for cm10, it tell what is working....
Sent from my GT-I9103
Click to expand...
Click to collapse
thank you for the quick reply.
any chance for supplying a link for that thread
avibiter said:
thank you for the quick reply.
any chance for supplying a link for that thread
Click to expand...
Click to collapse
Here is the link .http://forum.xda-developers.com/showthread.php?t=1870260
BTW. Hitting thanks speak louder then words in XDA. so please do it if someone helped you.

[DEV][TOOL] Kernel Tool Version 3 [22-5-2013]

Hey everyone !
I just made a simple tool for unpacking and packing kernels for Linux using bash scripts ..
Maybe helpful for start up devs and others alike !
I hope this tool will be beneficial to devs / kernel devs / ROM devs too.. for cutting down the time in typing a lot of stuff.
#include<disclaimer.h>
NOTE : Keep a backup of your kernel / boot.img always in hand.. I am not responsible for bootloops. Whatever you do.. Its your responsiblity. If you point a finger at me.. I will laugh at you !
Click to expand...
Click to collapse
How to use this tool ??
Download the zip !
Extract it to the suitable directory.
Copy boot img too the directory.
Open terminal.
Change directory to kernel tools directory.
Run init.sh only if your running the script for the first time!​
Type code :
Code:
./init.sh
Now tool is configured !
To extract boot.img :
Code:
./unpack.sh
To repack boot.img :
Code:
./pack.sh
To start from fresh again for new kernel build :
Code:
./fresh.sh
I am adding a blank zip to flash any kernel:
Just add modules to system > lib > modules
and add boot img to the zip along with meta-inf folder and system folder .
Hope this helps the whole community !
Those who have issues with " Permission denied problems " ... Right click on the .init.sh and give it suitable permissions.. or do a chmod +x on init.sh and then run it..
Kernel Tool Version 2 !
With new GUI and no hassles !
Worth a try View attachment K-EX-2.zip
New version : Version 3
Great Work Mate :good::good:
Re: [DEV][TOOL] Kernel Tool [19-3-2013]
Nice trick Will be helpful altrough, I actually have it for myself already
Re: [DEV][TOOL] Kernel Tool [19-3-2013]
galaxyfreak said:
Nice trick I actually have it for myself already
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
+1 hope it helps those who can't do it / don't know about it . cheers..
Sent from my Nexus 7 using xda app-developers app
nice work released just in time needed it for my work tested and worked good
Re: [DEV][TOOL] Kernel Tool [19-3-2013]
Thanks brother...
Had to use dsi xda kitchen only for unpacking kernels..
This tool will save some time..
Sent from my HTC Explorer A310e using xda app-developers app
What I was searching for, Thanks :good:
View attachment K-EX-2.zipUpdate ! New UI and feature and fixed old bugs ! Thanks Vineeth for informing me about the bug .
If I wasn't limited to 8 thanks a day...
Sorry guys, but, this tool is recommended for everyone, dev and n00b alike...
Dev's may like to use commands, but newbies, take some time to learn...
This tool, makes your work easier, and faster...
p.s. use the original commands twice-thrice to get the flow of it... then, consider using this tool
Re: [DEV][TOOL] Kernel Tool Version 2 [31-3-2013]
For changing ramdisk(cm9 to 10/10.1etc. ) ~after boot.img split into kernel and ramdisk.cpio.gz,
Is it enough to replace the ramdisk.cpio.gz from the older working one without opening ramdisk.cpio.gz/messing with it?
LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E.
If I haven't given you link, it's above. Just click it
Re: [DEV][TOOL] Kernel Tool Version 2 [31-3-2013]
Yeah that's fine.. no need to open and unpack it ..
Ps newer version has a kernel Porter.. just name the kernel as instructed in the tool it automatically ports the kernel according to what you want to do .. from boot Img to boot IMG..
And for the kernel devs from a new zimage to another bootimg from which ramdisk is req
Newer tool took a really long time to type .. lol no response (
Sent from my HTC Explorer A310e using xda app-developers app
Re: [DEV][TOOL] Kernel Tool Version 2 [31-3-2013]
akshat.shenoy said:
Yeah that's fine.. no need to open and unpack it ..
Ps newer version has a kernel Porter.. just name the kernel as instructed in the tool it automatically ports the kernel according to what you want to do .. from boot Img to boot IMG..
And for the kernel devs from a new zimage to another bootimg from which ramdisk is req
Newer tool took a really long time to type .. lol no response (
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
Actually, the newer version didn't have init.sh ...is that ok?
And I can't probably use any of that stuff.. so can't report on that (coz I burnt my PC some time back ~literally )
LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E.
If I haven't given you link, it's above. Just click it
Re: [DEV][TOOL] Kernel Tool Version 2 [31-3-2013]
ptcpayme said:
Actually, the newer version didn't have init.sh ...is that ok?
And I can't probably use any of that stuff.. so can't report on that (coz I burnt my PC some time back ~literally )
LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E.
If I haven't given you link, it's above. Just click it
Click to expand...
Click to collapse
No need for that.. As I have simplified everything into a single persistent menu based GUI... Just needs a chmod +x in case it doesn't run..
Sent from my Nexus 7 using Tapatalk HD
:good:
Nice work.. Works perfectly..
:good::good: +1 mate
Too good man!! Keep up the awesome work!!:thumbup:
Sent from my HTC Explorer using xda premium
New Version
Hey.
Here is a new version of kernel tool by me...
Source : Here Github
Source : Here Google Code
How to Install?
Download as zip from Here
OR
Code:
git clone [email protected]:russelldias98/Kernel-Tool.git
Instructions Here
Changes : made a script to make a flashable zip and changed UI a bit
Preparing a new GUI Version
Thank you!
Great job
Sent from my ST21i2 using Tapatalk 2

Adb for ubuntu

Hi everyone i want to run my device as an emulator for app development.. Im on Ubuntu 12.04
..so the problem is i can't list my device in adb it shows
??????? No permissions...
Things i already did
Created /51–android.rules file
I couldn't find my vendor on google dev site so i copied vendor id by listing all usb devices attached to my computer.. But even that didn't work.. Please help
Sent from my A89 using xda app-developers app
shahharis said:
Hi everyone i want to run my device as an emulator for app development.. Im on Ubuntu 12.04
..so the problem is i can't list my device in adb it shows
??????? No permissions...
Things i already did
Created /51–android.rules file
I couldn't find my vendor on google dev site so i copied vendor id by listing all usb devices attached to my computer.. But even that didn't work.. Please help
Sent from my A89 using xda app-developers app
Click to expand...
Click to collapse
on linux you should run adb as root then it would work , if using eclipse , run it using root user .. and it would also detect phone then..

Categories

Resources