[Q] building cm 7 from source - Samsung Galaxy Mini

1>First of all I would like to know how to sign the custom-rom again after adding or deleting some of the apps. I added G-apps and signed with testsign jar it worked. But I add any other apk in to the rom and sign with testsign it signs the zip but at recovery installation gets aborted.. please Help
2>I wanted to start build cm7 for my galaxy mini from source I followed the steps given in cyanogen.wiki site but when i am cloing the repo it is giving only htc saphire device. Please help by giving a tutorial how to proceed ..........
3> I was wondering how to get ring lock for tjstlye cm7 ...? I can i copy cmsettings apk to tj rom from 7.2 by SQADZONE will it work or should i do any more changes? or it is not possible at all? because tj was 2.3.5 and SQADZONE version is 2.3.7
i am newbie here so I can not post in developement thread.
thank you in advance ..........

It will also clone Galaxy Mini (tass), just wait for it to finish.

You can still search in Dev section :
squadzone said:
Requirements :
1. OS linux Ubuntu 11.04 64bits ( recommended ) or above
2. 2Gb RAM with 3Gb swap or above
3. Processor Centrino Duo or above
4. 120Gb Harddisk or above
5. Fast internet connection ( i have no this )
First download this file
Installer SDK and Build packages by me
Password : squadzone
you will get installerBuildRomGalmin.sh , run this file via Terminal on Ubuntu
follow all instruction that appears,
after Finish, now we goto download repository
still on Terminal
type
mkdir -p ~/android/system
sudo curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > /bin/repo
sudo chmod a+x /bin/repo
cd /android/system
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
repo sync -j32
now you can build the rom, and choose what device that you want to build
for reference , READ THIS
have fun to build the rom
Click to expand...
Click to collapse
---------------------------------
Sent from my Samsung Galaxy Mini GT-S5570 via xda-dev app
CyanogenMod 7.2.0-RC2-KANG by squadzone

Thank you, I will try to do it..........

You can skip signing your zip file. Let's say you have a CM7 flash zip file, and have WinRAR installed.
1. EXTRACT CM7 zip, and make a backup of your zip file. In the extracted folder you'll get META-INF folder, system folder and boot.img
2. Add / remove any .apk in system/app folder. Just be cautious with several apk such as mms and phone and contacts, these are needed and should not be replaced. Gallery and music is safe to replace.
3. Add any library files (.so) you want
4. When you're done with above steps, using WinRAR, OPEN (do not extract again) CM 7 zip
5. In WinRAR you'll see the contents of your CM 7 zip. DELETE system folder.
6. Back to Windows Explorer, DRAG your extracted system folder (which now contains whatever it is that you modified) into the WinRAR window (that shows the content of your CM 7 zip file).
7. A window will pop-up asking you to change archive name. Just click OK to proceed. It will be a brief moment before your CM 7 zip has the new system folder.
8. Close the WinRAR window, and proceed with flashing.
One more thing, in folder META-INF you can look for file updater-script, which contains the syntax for flashing (mounting system and or data partition, extracting zip file contents to designated folders, setting permission and ownership for files and folders, installing busybox if any, flashing boot.img, etc.) You can open it using Notepad++. Don't mess with it yet until you figure out how things work.
Good luck !
---------------------------------
Sent from my Samsung Galaxy Mini GT-S5570 via xda-dev app
CyanogenMod 7.2.0-RC2-KANG by squadzone

Related

[HOWTO] Cook your custom rom for LG P500

Hi there, we are going to use excellent dsixda's HTC Android Kitchen to cook our custom ROMs for LG P500. The list of the things we are going to need:
Original ROM (Check this thread)
LG Utils 0.4.2 (Check this URL)
DzDecryptor v1.0b(Check this thread)
Cygwin (Check this URL
Unyaffsmbn (Check this thread)
Dsixda's HTC Android Kitchen (Check this thread)
Note: I have a "romcooking" folder on my home (C:\Users\Patricio\romcooking), inside i have all the utils needed, and the .kdz file for the stock ROM. I recommend to use tab to complete filenames since they are too long.
First we need to get a dz from the kdz (original firmware), extract LG Utils 0.4.2 and open KP500-Utils-EN.exe (You need to run this as administrator, or else you are getting an empty .cab file), select the I option (Extract files from KDZ file), and type the route to your .kdz file (Mine is C:\Users\Patricio\romcooking\V10A_00.kdz). Now, you must have a V10A_00.cab (Or another name, it depends on the stock rom you downloaded), open it with a extractor like 7zip or similar and extract the file "LGP500AT-00-V10a-EUR-XX-SEP-25-2010+0.dz" or similar to our romcooking folder.
Then we are going to uncompress the .dz with DZDecrypt (Press Win + R, type cmd and enter, then you cd to the folder where DzDecrypt is located (ex:
Code:
cd C:\Users\Patricio\romcooking\DZDecryptor_v1.0b
then we type:
Code:
DZDecrypt.exe "C:\Users\Patricio\romcooking\LGP500AT-00-V10a-EUR-XX-SEP-25-2010+0.dz" C:\Users\Patricio\romcooking\stockrom
This is going to create a "stockrom" folder in our original romcooking folder, you are going to see a lot of files in the stockrom folder, the important ones are boot.img and system.mbn (DZDecrypt should have merged your system.mbn_0, system.mbn_1 and system.mbn_2)
We need to install cygwin, open the setup.exe, just keep hitting next until you are on the select packages screen, go to "Devel" menu and select to install gcc, gdb and make, in "Interpreters" check perl, in "Archive" check zip and unzip, in "Web" check wget, in "Editors" check nano and vim and in "Utils" select cpio, util-linux and ncurses. Make some tea and wait for the cygwin install to finish and we are ready to go to the next step.
We are going to compile unyaffsmbn, copy the extracted files from unyaffsmbn, system.mbn and boot.img to C:\cygwin\home\Patricio, now fire up cygwin and compile unyaffsmbn with:
Code:
gcc -o unyaffsmbn unyaffsmbn.c
Now uncompress system.mbn, delete symlinks of bin/ and zip everything with:
Code:
mkdir system
cd system
../unyaffsmbn.exe ../system.mbn
find bin -type l -exec rm {} +
cd ..
zip -r stockrom.zip boot.img system/
We are ready to go to the kitchen (We have a stockrom.zip on C:\cygwin\home\Patricio, remember that)
Now we are going to use dsixda's HTC Android Kitchen, we need to have installed JDK. After we have downloaded and uncompressed the kitchen (Mine is in C:\cygwin\home\Patricio\kitchen), we need to put the ziped file we got in the previous step into the original_update folder of the kitchen. We are ready to go! fire up cygwin and cd to the kitchen location and exec ./menu , select option 1, you should see the zip file, put the number of it, and you are ready to go (It will create a WORKING_XXXXXX_XXXXXX folder, you can modify the files in WORKING_XXXX_XXXXX/system, add APKs, modify the apns file, etc).
This command also gives us a lot of options for our rom: enable root, add busybox, deodex our files, zipalign, etc. If you are going to edit text files, use an editor like Notepad++ or any other program that can open/edit/save files in linux compliant style. It's pretty easy to use the kitchen, just check the official thread for options or help
The common options i use are:
Add root permission (option 2), press f when asked and you are done
Add Busybox
Change name of the rom, easy cake
Advanced options, press 0
Add /data/app functionality
Add Apps2SD
Add custom boot animation functionality
Deodex files in your ROM
And Finally: Zipalign all *.apk files to optimize RAM usage
That should do the trick, when you are ready to cook your rom, just type 99, wait for it to build and it should be in the OUTPUT_ZIP folder in your kitchen folder.
Took info from this thread (About decompressing .dz and .mbn, and making it to work with the kitchen), and info from ruigui and tritant in this thread. The awesome android kitchen by dsixda. Sorry if i forgot to mention any work, just post it or pm me
If you have anything you want to add to the guide, just post it
You don't need to dual boot to linux. It can be done with cygwin.
When you follow dsixda's guide to install kitchen, do as said but don't install cygwin from that guide.
Instead, download from official site, choose default options, but add these packages (it will be compliant with kitchen and give a little extra funcionality):
Devel: gcc, gdb, make
Interpreters: perl
Utils: cpio, util-linux, ncurses
Archive: zip, unzip
Web: wget
Editors: vi, nano
Good guide, nicely done
EDIT:
In my wife's machine (using windows 7 64bit. i'm without computer, for now....), i've installed cygwin as said above.
Then added two folders to my home dir:
kitchen and unyaffsmbn
In kitchen, use the kitchen
In unyaffsmbn, copy the files from unyaffsmbn.zip to that dir, then compile it there
EDIT2:
If you edit text files under windows, USE NOTEPAD++, or any other program that can open/edit/save files in linux compliant style.
There are differences in Windows and Linux when ENTER is pressed, and you'll have issues when trying to flash or run your custom ROM
hi there... thanks a lot for your guide.
I'm trying to do the things you wrote step by step... I have extracted the dz file successfully, then I extracted the content using DZDecrypter... I found three files called system.mbn0, system.mbn1 and system.mbn2. The first and second are 80 Mbytes, the third just 17... Which one is the correct? When I try to use the command "unyaffsmbn system.mbn" (obviously I renamed the first and then the second) I get an error message ("impossible to execute binary file", or somenthing like that... I don't know how's in english because I'm italian).. Is that concerning to the presence of those three different files? Did somethind go wrong with the extracting process? Or maybe I didn't do somenthing important? Before doing this, I installed "build-essential" and did "gcc -o unyaffsmbn unyaffs.h" but apparently nothing happend... I got neither errors nor processes...
can you help me?
Awesome bro, I can try to make custom rom with indian version, ty.
vinnux said:
hi there... thanks a lot for your guide.
I'm trying to do the things you wrote step by step... I have extracted the dz file successfully, then I extracted the content using DZDecrypter... I found three files called system.mbn0, system.mbn1 and system.mbn2. The first and second are 80 Mbytes, the third just 17... Which one is the correct? When I try to use the command "unyaffsmbn system.mbn" (obviously I renamed the first and then the second) I get an error message ("impossible to execute binary file", or somenthing like that... I don't know how's in english because I'm italian).. Is that concerning to the presence of those three different files? Did somethind go wrong with the extracting process? Or maybe I didn't do somenthing important? Before doing this, I installed "build-essential" and did "gcc -o unyaffsmbn unyaffs.h" but apparently nothing happend... I got neither errors nor processes...
can you help me?
Click to expand...
Click to collapse
you shouldn't get three system.mbn files, did you used the 1.0b of DzDecryptor? when i used it, it said something about merging, i think that it gets the three files and then combines them to get a proper system.mbn
I used the downloaded version from the link you posted. At least I guess... :/ Well I'm going to try again soon! Thanks a lot again for your guide!
Sent from my LG-P500 using XDA App
Other methode for exctract mbn file, not need to connect the phone.
Windows only....
(1) Download LG-Utils 0.4.2: http://www.assembla.com/spaces/ks360...tils-0.4.2.zip
(2) Run KP500-Utils-EN.exe (or whatever language you prefer out of the available choices) and select I to extract the KDZ.
(3) Open the resulting CAB file and extract the DZ file.
(4) Download DZExtract: http://www.frenchcoder.com/upload/DZExtract-V0.2.zip
(5) Use DZExtract to extract the MBN files:
DZExtract -x GW620RAT-V10c-OCT-21-2009-RGS-CA_DZ+0.dz C:\extractedTo\
after compiling and chmod I do:
Code:
[email protected]:~/work/unyaffsmbn$ unyaffsmbn system.mbn
unyaffsmbn: command not found
both files are in that folder. Am I doing anything wrong?
Cheers.
@tritant - LG-Utils link not working
So.... You MUST compile unyaffsmbn first. Only then you'll have an "executable".
Code:
gcc unyaffsmbn.c -o unyaffsmbn
Then copy system.mbn to unyaffsmbn folder.
After that, do:
Code:
cd PATH_TO_UNYAFFSMBN
./unyaffsmbn system.mbn
You missed the ./
You can download lg utils from here
tuxcomputing said:
after compiling and chmod I do:
Code:
[email protected]:~/work/unyaffsmbn$ unyaffsmbn system.mbn
unyaffsmbn: command not found
both files are in that folder. Am I doing anything wrong?
Cheers.
@tritant - LG-Utils link not working
Click to expand...
Click to collapse
'course I compiled
of course your method worked and the one in the first post didn't...
exist only a windows version of dzextract?
ioshi said:
exist only a windows version of dzextract?
Click to expand...
Click to collapse
couldn't find a linux version, sorry.
btw, i'm rewriting the guide, hope to update it soon
please add the compiling method from ruigui (in the previous page). For some reason that's the only way I was able to compile on Ubuntu 10.
Cheers
It was a typo in first post (he switched file to be used in gcc).
Give the man some time to reorganize his thread
I did not mean to be rude by any means!
I appreciate the effort to create the how-to! Hopefully people will read the thread if they get stuck and use the right commands so that they don't abandon the idea of creating their own ROM
I also didnt want to call you rude... Sorry...
But we were exhanging some pms and he is redoing this tutorial.
Sometimes we make mistakes while typing long posts
installation aborted
thanks for this great tutorial
everything works like a charm , but when i flash my new rom i have an error says no enough space while writing boot image
any idea?
Update: okay i solved the problem, it seems that i missed up with the boot settings!
I finally made the zip file, but when I start the kitchen and select it, i find this:
"Warning: No META-INF folder found under working folder!
Warning: No META-INF/com/google/android folder found, creating it.
Did not find an update-script. Shall I create one (y/n)? (default: y): "
is that normal? and what should I do? :/
vinnux said:
I finally made the zip file, but when I start the kitchen and select it, i find this:
"Warning: No META-INF folder found under working folder!
Warning: No META-INF/com/google/android folder found, creating it.
Did not find an update-script. Shall I create one (y/n)? (default: y): "
is that normal? and what should I do? :/
Click to expand...
Click to collapse
yes this is normal, i got that warning, and i entered "yes" to create one, and everything went just fine!
good luck
For me, work with wine on linux mandriva 2010.2
[[email protected] rootlg]$ wine DZDecrypt.exe "LGP500AT-00-V10b-EUR-XX-OCT-01-2010+0-DZ.dz" rom
DZ-Decryptor v1.0b *ALPHA RELEASE* by BIGB0SS from COPS.
[■] Opening file "LGP500AT-00-V10b-EUR-XX-OCT-01-2010+0-DZ.dz".
[■] Allocated memory: 280 Mo.
[■] Unpacking informations:
- Unpacking "amss.mbn" (Packed:008D2935 - Unpacked:010F6000).
- Unpacking "partition.mbn" (Packed:000000E9 - Unpacked:00000390).
- Unpacking "qcsblhd_cfgdata.mbn" (Packed:00000240 - Unpacked:00002534).
- Unpacking "qcsbl.mbn" (Packed:00007D88 - Unpacked:0000DFF0).
- Unpacking "oemsblhd.mbn" (Packed:00000026 - Unpacked:00000028).
- Unpacking "oemsbl.mbn" (Packed:0002C637 - Unpacked:0005EFB4).
- Unpacking "amsshd.mbn" (Packed:00000028 - Unpacked:00000028).
- Unpacking "appsboothd.mbn" (Packed:00000022 - Unpacked:00000028).
- Unpacking "appsboot.mbn" (Packed:00008A6F - Unpacked:0000D484).
- Unpacking "boot.img" (Packed:00385B3F - Unpacked:0038A800).
- Unpacking "system.mbn_0" (Packed:0307280E - Unpacked:05000000).
- Merging "system.mbn_1" (Packed:028EAA5A - Unpacked:05000000).
- Merging "system.mbn_2" (Packed:00738F81 - Unpacked:01003F40).
- Unpacking "recovery.img" (Packed:003BE683 - Unpacked:003C3800).
- Unpacking "splash.img" (Packed:00001C3A - Unpacked:0004B000).
[■] SubFiles: 0x780C3E84. (DzCreator)
[■] Closing file "LGP500AT-00-V10b-EUR-XX-OCT-01-2010+0-DZ.dz".

[Q] building a rom

I have builded my rom I've zipaligned it and deodexed. I've packed rom with cygwin and tried to flash it via CWM but it won't flash. does anybody knows how to pack a rom?
Not sure if i am understanding you correct .
Rezip and sign a rom i use . signing -zip posted here sorry cannot find the link .
jje
Details
his script has 2 main uses:
1. Modify an update.zip
2. Create an update.zip
For #1 - You just extract the contents of an update.zip into the placehere folder, modify its contents, and run the script stating to create an update.zip
For #2 - So far these are the options i have in there for create the update-script
1. Copy directories
2. Copy files
3. Create Symlinks
4. Delete file
5. Delete directory
6. Flash boot image
7. Set permissions for file
8. Set permissions for directory
New Features in 2.0 :
- Set java heap size / compression level for zip
- New drag/drop mode.
>>> - If you drag a folder onto the script's icon (as in Script.bat) it will compress the contents of the folder into a zip and sign it.
>>> - If u drag a zip onto the script's icon (as in Script.bat) it will sign the zip for you.
So this script guides u as u select each option, and adds the appropriate command to the update-script file. Then u exit that sub-menu and create update.zip
I've fixed it already anyway thanks for help
Sent from my GT-I9000 using XDA Premium App

[Q] Customized ROM

Is there a guide how to put your own apps in system\app??
i tried searching closes to this is a kitchen but i'm having some problems understanding it...
if there is a guide please do paste some links i want to learn how to edit and personalize the best roms that the devs here has created
thanks in advance
sorry this is not an answer but i know what you mean.. i tried just putting the apk in the app folder than zipping and signing the rom but the app never installs on boot... so please someone answer this question.. lol
Its pretty simple, all you have to do is
Unzip ROM, remove APK(s) from /system/app, add APK(s) to /system/app (or /data/app if you want them to be removable), rezip ROM, flash it.
but heres a more indepth explanation:http://www.askabouthugo.com/mobile-technology/how-to-remove-unused-android-apps-from-custom-rom/
heres another good link:
http://forum.xda-developers.com/showthread.php?t=639726
I strongly recommended installing dsxidia's rom kitchen, probably the best kitchen for customizing roms.http://forum.xda-developers.com/showthread.php?t=633246
Thanks for your answer... ill check it out,
i tried installing the ROM Kitchen but i cant get it running...
i wonder why...
im using windows 7 64bit...
when i run the icon on my desktop the cmd quickly appears and disappears
i tried to edit the batch file... added pause just so i could see the error message
'bash' is not a recognized as an internal or external command, operable program or batch file.
i check the location of what this batch file was trying to call
nothings under the bin on the installation path
any suggestions? ^_^
marchking said:
i tried installing the ROM Kitchen but i cant get it running...
i wonder why...
im using windows 7 64bit...
when i run the icon on my desktop the cmd quickly appears and disappears
i tried to edit the batch file... added pause just so i could see the error message
'bash' is not a recognized as an internal or external command, operable program or batch file.
i check the location of what this batch file was trying to call
nothings under the bin on the installation path
any suggestions? ^_^
Click to expand...
Click to collapse
some apps can be put in data/app folder instead of system/app
ldrifta said:
some apps can be put in data/app folder instead of system/app
Click to expand...
Click to collapse
some apps can be put in data/app folder instead of system/app
well my real issue is i want to fix some bugs with froyo by laszlo... which seems that the applications installed in sd - ext or external disappears when usb mass storage is used... im not completely sure that the usb mass storage is the one that triggers the bug... but what im thinking of is putting the apps that i want in system/app... coz when the bug happens it seems like it on safe mode only system apps are running then the app that are in data/app disappears
marchking said:
i tried installing the ROM Kitchen but i cant get it running...
i wonder why...
im using windows 7 64bit...
when i run the icon on my desktop the cmd quickly appears and disappears
i tried to edit the batch file... added pause just so i could see the error message
'bash' is not a recognized as an internal or external command, operable program or batch file.
i check the location of what this batch file was trying to call
nothings under the bin on the installation path
any suggestions? ^_^
Click to expand...
Click to collapse
Did you install exactly as instructed? Did you install jdk before you installed cygwin as instructed? Did you follow the kitchen.readme in the cygwin file when setting up cygwin? I say reinstall it but make sure you do every step correctly.
Sent from my COS-DS using XDA App
maximo360 said:
Did you install exactly as instructed? Did you install jdk before you installed cygwin as instructed? Did you follow the kitchen.readme in the cygwin file when setting up cygwin? I say reinstall it but make sure you do every step correctly.
Sent from my COS-DS using XDA App
Click to expand...
Click to collapse
i did follow the instructions carefully...
im not sure why nothing gets installed on the cygwin folder...
if i check the files inside the folder nothings there...
ill try to install it again tomorrow once i get home from work...
marchking said:
i did follow the instructions carefully...
im not sure why nothing gets installed on the cygwin folder...
if i check the files inside the folder nothings there...
ill try to install it again tomorrow once i get home from work...
Click to expand...
Click to collapse
theres 2 kitchen.readme's one in the kitchen , and one in the cgywin.zip you downloaded, when installing cygwin, follow the directions in the kitch.readme in the cygwin.zip
this is what mine says:
1) Unzip the contents of this archive
2) Run Setup.exe
3) Select "Install from Local Directory"
4) The root directory can be C:\Cygwin if you want, but ensure there are NO SPACES in the folder name
5) Local Package Directory *must* be the path to the cygwin_packages folder that you just extracted
6) When it shows all the package names, go to the top and select "All <-> Default" until it changes to "All <-> Install" (you must click on the arrows)
7) Click on Next and it will install everything you need for the Android Kitchen
This Cygwin installation includes the following packages, required for the kitchen to work:
* Devel / gcc
* Interpreters / perl
* Utils / cpio
* Utils / util-linux
* Utils / ncurses
* Archive / zip
* Archive / unzip
* Web / wget
Also, dont forget to rename the dsxidia folder to "kitchen", makes things easier.
maximo360 said:
theres 2 kitchen.readme's one in the kitchen , and one in the cgywin.zip you downloaded, when installing cygwin, follow the directions in the kitch.readme in the cygwin.zip
this is what mine says:
1) Unzip the contents of this archive
2) Run Setup.exe
3) Select "Install from Local Directory"
4) The root directory can be C:\Cygwin if you want, but ensure there are NO SPACES in the folder name
5) Local Package Directory *must* be the path to the cygwin_packages folder that you just extracted
6) When it shows all the package names, go to the top and select "All <-> Default" until it changes to "All <-> Install" (you must click on the arrows)
7) Click on Next and it will install everything you need for the Android Kitchen
This Cygwin installation includes the following packages, required for the kitchen to work:
* Devel / gcc
* Interpreters / perl
* Utils / cpio
* Utils / util-linux
* Utils / ncurses
* Archive / zip
* Archive / unzip
* Web / wget
Also, dont forget to rename the dsxidia folder to "kitchen", makes things easier.
Click to expand...
Click to collapse
yeah ive followed carefully the instructions...
but im getting bothered with this part
6) When it shows all the package names, go to the top and select "All <-> Default" until it changes to "All <-> Install" (you must click on the arrows)
when i click on it it changes to install then click again uninstall then default then something else... i made sure that install is selected...
still nothing gets installed in the cygwin folder... there are folders there but under bin and other folders not much is there...
btw i was wondering where i should put the dsxidia kitchen folder?
maximo360 said:
theres 2 kitchen.readme's one in the kitchen , and one in the cgywin.zip you downloaded, when installing cygwin, follow the directions in the kitch.readme in the cygwin.zip
this is what mine says:
1) Unzip the contents of this archive
2) Run Setup.exe
3) Select "Install from Local Directory"
4) The root directory can be C:\Cygwin if you want, but ensure there are NO SPACES in the folder name
5) Local Package Directory *must* be the path to the cygwin_packages folder that you just extracted
6) When it shows all the package names, go to the top and select "All <-> Default" until it changes to "All <-> Install" (you must click on the arrows)
7) Click on Next and it will install everything you need for the Android Kitchen
This Cygwin installation includes the following packages, required for the kitchen to work:
* Devel / gcc
* Interpreters / perl
* Utils / cpio
* Utils / util-linux
* Utils / ncurses
* Archive / zip
* Archive / unzip
* Web / wget
Also, dont forget to rename the dsxidia folder to "kitchen", makes things easier.
Click to expand...
Click to collapse
got it fixed! yeah!
the problem was...
when i extracted the files...
5) Local Package Directory *must* be the path to the cygwin_packages folder that you just extracted
ok its there...
but the when i open the cygwin_packages folder there is another folder containing all the things it needs...
i cut those things and moved it to cygwin_packages folder
before it was like cygwin_packages/$#@%^dsakjdgaskd%[email protected]#%^ folder
Time to cook! ^_^
marchking said:
Time to cook! ^_^
Click to expand...
Click to collapse
glad to hear it worked

[Q] apktool

how do you install apktool on windows for noobs? i dont understand the instructions on apktools website so i was wondering if you guys could help.
Any help is appreciated.
----edit----
sorry i wasn't more descriptive. so i think i am supposed to download apktool install windows and the apktool file itself. on the apktool download page it says to unpack into windows directory. so im asking, do i download both files and move them to c: windows\ apktool (new folder created). how do i unpack them in the first place. i tried winrar and it gave back errors. Please help.
please? 46 view anyone? im sure some of you have apktool on windows 7
Took me 2 sec to find it.
[UTIL][15.05.11] Apktool v1.4.1 - a tool for reengineering apk files
Don't know if that is what you are looking for or not.
Also here, took the same amount of time to find it.
Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
BeenAndroidized said:
Took me 2 sec to find it.
[UTIL][15.05.11] Apktool v1.4.1 - a tool for reengineering apk files
Don't know if that is what you are looking for or not.
Click to expand...
Click to collapse
Thanks, but thats not what im looking for. know about that. it doesn't have instructions on the thread of how to install it on the thread. i have it downloaded. both the install windows file and the apktool file. now how do i install them? They are tar.bz2 files which windows can't do anything with so i dont know how to install it. please help
Download the tar extractor.
Here is one http://www.7-zip.org/
http://code.google.com/p/android-apktool/
Requirements
•JRE 1.6 (Java Runtime Environment)
•aapt command in a PATH
•basic knowledge of what is SDK, aapt, PATH, smali and Google search engine may be useful
Installation for noobs
•Windows:
1.Download apktool-install-windows-* file
2.Download apktool-* file
3.Unpack both to your Windows directory
•Linux:
1.Download apktool-install-linux-* file
2.Download apktool-* file
3.Unpack both to /usr/local/bin directory (you must have root permissions)
•Mac OS X:
1.Download apktool-install-macos-* file
2.Download apktool-* file
3.Unpack both to /usr/local/bin directory (you must have root permissions)
Installation of framework files
•See FrameworkFiles
Usage
•Open terminal/command line and type "apktool <enter>". Then you should see usage help.
Discuss it: Google Groups or XDA
ldrifta said:
http://code.google.com/p/android-apktool/
Requirements
•JRE 1.6 (Java Runtime Environment)
•aapt command in a PATH
•basic knowledge of what is SDK, aapt, PATH, smali and Google search engine may be useful
Installation for noobs
•Windows:
1.Download apktool-install-windows-* file
2.Download apktool-* file
3.Unpack both to your Windows directory
•Linux:
1.Download apktool-install-linux-* file
2.Download apktool-* file
3.Unpack both to /usr/local/bin directory (you must have root permissions)
•Mac OS X:
1.Download apktool-install-macos-* file
2.Download apktool-* file
3.Unpack both to /usr/local/bin directory (you must have root permissions)
Installation of framework files
•See FrameworkFiles
Usage
•Open terminal/command line and type "apktool <enter>". Then you should see usage help.
Discuss it: Google Groups or XDA
Click to expand...
Click to collapse
so do i download the files and extract them with 7zip to c:\windows\apktool\?
not sure if you need 7zip. think you can just extract it to rood of C: drive.. the link i put on last post is where i got those directions from... just try it, if it dont work than i will look more into it for you
windows cant do anything with the tar.bz2 files so you need a third party program. i tried extracting with 7zip and winrar but it gives back an error so it doesnt extract.
I think your answer lies here
http://forum.xda-developers.com/showthread.php?t=1466100

[HOW TO] Turn an RUU into a "custom" de-odexed ROM

I first wrote this guide here on my site and thought I should put it here as well.
I am going to write this post to show how "easy", yet time-consuming, converting an RUU into a custom, de-odexed ROM can be as long as you can follow directions. I am doing this to hopefully help with development of ROMs for people who may be a bit intimidated on doing this. Before you start, you’ll need:
1. A Windows installation
2. VirtualBox installed in Windows
3. Ubuntu 10.04 (at least) installed in VirtualBox
4. dsixda’s Android Kitchen set up properly in Ubuntu
5. Java JDK installed in Ubuntu (Search openjdk in Synaptic Package Manager)
6. No fear of taking your time with this
I am suggesting the above because that’s what I’ll be using for this guide. Some devs frown at the use of kitchens but de-odexing manually can be a real pain in the ass and very time consuming.
First things first, you need to have Ubuntu up and running inside VirtualBox and you’ll need to get the Android Kitchen set up properly. To do this, extract the Android Kitchen zip file you downloaded. Rename the extracted folder to just “kitchen”. Copy that folder into your Ubuntu “home” directory. The final path will be “/home/username/kitchen”. You can test this by opening Terminal and typing:
Code:
cd kitchen
./menu
If the Android Kitchen starts, then you’re good to go. It’s that easy.
Now, going back to your Windows installation, download the RUU you want to build from. Once downloaded, you’ll need to double-click the RUU to run it. You’ll get a window that opens to allow you to continue installing the RUU. You need to not click anything there. Leaving that window open, open a Windows Explorer window. In the address bar type:
Code:
%temp%
and hit enter. This will take you into your Temp directory where the rom.zip is extracted. You can now do a search for rom.zip. Once found, copy the rom.zip to another directory (ie. Desktop). You can now close out of the RUU installer.
You’ll need to now copy your rom.zip to your Ubuntu virtual machine. How you do that is up to you. The easiest way is to set up Shared Folders in VirtualBox and copy it from within Ubuntu.
Once you have this file in Ubuntu, for simplicity, copy it to your desktop. Next, you’ll need to extract it. Simply right-click the rom.zip and select “Extract Here”.
If you now open you extracted folder, you should see a bunch of .img files. The 2 we are looking for are system.img and boot-signed.img. For now, create a new folder on your desktop, we’ll call it “custom”, and copy the boot-signed.img into that folder (I usually rename boot-signed.img to boot.img). Also create a folder called “system” in the same directory. Next we need to mount the system.img so we can extract the contents into the “system” folder you just created. Back in Terminal, type:
Code:
sudo mkdir -p /mnt/temp
sudo mount -o loop ~/Desktop/rom/system.img /mnt/temp
and then
sudo cp -r /mnt/temp/* ~/Desktop/custom/system
After several minutes, you should have a folder called “custom” on your desktop and inside of that should be “boot.img” and a “system” folder with a bunch of files and folders in it. You now need to change permissions on the folder so you can zip it up and copy it all. Back in Terminal type:
Code:
sudo chown -R username ~/Desktop/custom
Next step is to zip it all up so we can get it into the kitchen. Highlight both the “boot.img” and “system” folders, right-click them, and select “Compress”. Change the extension to .zip and click OK. Once zipped, drag (or copy) that folder into /home/username/kitchen/original_update.
Open Terminal and type:
Code:
cd ~/kitchen
./menu
Once the kitchen starts, you’ll need to set up a Working Folder, so select option “1″. If you only have 1 ROM zip in there you can just hit Enter. Follow through the prompts to rename your working folder if you want. I’m not going to guarantee that it will always work but it has worked for me in the past to select option “2″ from the main menu to “Add root permissions”. Moving on to de-odexing, select option “0 – ADVANCED OPTIONS”. Next, select option “11 – Deodex files in your ROM”. I usually do this by deodexing framework first and then system. If you’re de-odexing the ATT ROM, “PirateGhost” from xda clued me in that you need to temporarily remove the “com.att.vmm.sharedlib.jar” from /system/framework otherwise de-odexing will fail. When you get into the de-odexing option it will have you set your API level. The default is 10 which is Android 2.3.4 however, ICS can be 14 or 15. If on the latest 4.0.3, it’s API Level 15. Google can also help you here. If you’ve done everything right it will de-odex for 20 minutes or so depening on your hardware and should say “0 .odex files remain”. If you have any that remain, you can do them manually or not at all. Up to you on how you do it.
Since that’s basically all we’re discussing for right now on creating this ROM, we’ll continue on to building a flashable zip. Back at the main menu, select option “99 – Build ROM from working folder”. I recommend using the default “Interactive Mode”. Select yes to optimizing/zip-aligning all apks. When asked to add Updater-script to ROM, select yes. Here’s the thing with the updater-script that it builds. It’s only partially right. You need to fix the partition format section for the Vivid (or for whatever phone you’re building for). It’s best to look at some other’s scripts to see how it’s done. When asked by the wizard to sign your ROM, don’t do it. It’s not necessary. Feel free to rename it to whatever you want. After you’ve fixed the updater-script and I do mean AFTER, you can try flashing the ROM. And don’t forget to flash the boot.img as well.
There you have it. You now have a base ROM for you to work from. Obviously, this is just scratching the surface of what can be done but it’s a start. This is just how I do it. There are other ways to accomplish the same thing but this method has worked for me. Attached is a sample updater-script that I pulled from my AT&T stock ICS ROM. Use it only as a template and modify it to fit your needs and obviously, remove the txt extension.
Jirv311 said:
I first wrote this guide here on my site and thought I should put it here as well.
I am going to write this post to show how "easy", yet time-consuming, converting an RUU into a custom, de-odexed ROM can be as long as you can follow directions. I am doing this to hopefully help with development of ROMs for people who may be a bit intimidated on doing this. Before you start, you’ll need:
1. A Windows installation
2. VirtualBox installed in Windows
3. Ubuntu 10.04 (at least) installed in VirtualBox
4. dsixda’s Android Kitchen set up properly in Ubuntu
5. Java JDK installed in Ubuntu (Search openjdk in Synaptic Package Manager)
6. No fear of taking your time with this
I am suggesting the above because that’s what I’ll be using for this guide. Some devs frown at the use of kitchens but de-odexing manually can be a real pain in the ass and very time consuming.
First things first, you need to have Ubuntu up and running inside VirtualBox and you’ll need to get the Android Kitchen set up properly. To do this, extract the Android Kitchen zip file you downloaded. Rename the extracted folder to just “kitchen”. Copy that folder into your Ubuntu “home” directory. The final path will be “/home/username/kitchen”. You can test this by opening Terminal and typing:
Code:
cd kitchen
./menu
If the Android Kitchen starts, then you’re good to go. It’s that easy.
Now, going back to your Windows installation, download the RUU you want to build from. Once downloaded, you’ll need to double-click the RUU to run it. You’ll get a window that opens to allow you to continue installing the RUU. You need to not click anything there. Leaving that window open, open a Windows Explorer window. In the address bar type:
Code:
%temp%
and hit enter. This will take you into your Temp directory where the rom.zip is extracted. You can now do a search for rom.zip. Once found, copy the rom.zip to another directory (ie. Desktop). You can now close out of the RUU installer.
You’ll need to now copy your rom.zip to your Ubuntu virtual machine. How you do that is up to you. The easiest way is to set up Shared Folders in VirtualBox and copy it from within Ubuntu.
Once you have this file in Ubuntu, for simplicity, copy it to your desktop. Next, you’ll need to extract it. Simply right-click the rom.zip and select “Extract Here”.
If you now open you extracted folder, you should see a bunch of .img files. The 2 we are looking for are system.img and boot-signed.img. For now, create a new folder on your desktop, we’ll call it “custom”, and copy the boot-signed.img into that folder (I usually rename boot-signed.img to boot.img). Also create a folder called “system” in the same directory. Next we need to mount the system.img so we can extract the contents into the “system” folder you just created. Back in Terminal, type:
Code:
sudo mkdir -p /mnt/temp
sudo mount -o loop ~/Desktop/rom/system.img /mnt/temp
and then
sudo cp -r /mnt/temp/* ~/Desktop/custom/system
After several minutes, you should have a folder called “custom” on your desktop and inside of that should be “boot.img” and a “system” folder with a bunch of files and folders in it. You now need to change permissions on the folder so you can zip it up and copy it all. Back in Terminal type:
Code:
sudo chown -R username ~/Desktop/custom
Next step is to zip it all up so we can get it into the kitchen. Highlight both the “boot.img” and “system” folders, right-click them, and select “Compress”. Change the extension to .zip and click OK. Once zipped, drag (or copy) that folder into /home/username/kitchen/original_update.
Open Terminal and type:
Code:
cd ~/kitchen
./menu
Once the kitchen starts, you’ll need to set up a Working Folder, so select option “1″. If you only have 1 ROM zip in there you can just hit Enter. Follow through the prompts to rename your working folder if you want. I’m not going to guarantee that it will always work but it has worked for me in the past to select option “2″ from the main menu to “Add root permissions”. Moving on to de-odexing, select option “0 – ADVANCED OPTIONS”. Next, select option “11 – Deodex files in your ROM”. I usually do this by deodexing framework first and then system. If you’re de-odexing the ATT ROM, “PirateGhost” from xda clued me in that you need to temporarily remove the “com.att.vmm.sharedlib.jar” from /system/framework otherwise de-odexing will fail. When you get into the de-odexing option it will have you set your API level. The default is 10 which is Android 2.3.4 however, ICS can be 14 or 15. If on the latest 4.0.3, it’s API Level 15. Google can also help you here. If you’ve done everything right it will de-odex for 20 minutes or so depening on your hardware and should say “0 .odex files remain”. If you have any that remain, you can do them manually or not at all. Up to you on how you do it.
Since that’s basically all we’re discussing for right now on creating this ROM, we’ll continue on to building a flashable zip. Back at the main menu, select option “99 – Build ROM from working folder”. I recommend using the default “Interactive Mode”. Select yes to optimizing/zip-aligning all apks. When asked to add Updater-script to ROM, select yes. Here’s the thing with the updater-script that it builds. It’s only partially right. You need to fix the partition format section for the Vivid (or for whatever phone you’re building for). It’s best to look at some other’s scripts to see how it’s done. When asked by the wizard to sign your ROM, don’t do it. It’s not necessary. Feel free to rename it to whatever you want. After you’ve fixed the updater-script and I do mean AFTER, you can try flashing the ROM. And don’t forget to flash the boot.img as well.
There you have it. You now have a base ROM for you to work from. Obviously, this is just scratching the surface of what can be done but it’s a start. This is just how I do it. There are other ways to accomplish the same thing but this method has worked for me. Attached is a sample updater-script that I pulled from my AT&T stock ICS ROM. Use it only as a template and modify it to fit your needs and obviously, remove the txt extension.
Click to expand...
Click to collapse
Thanks, I've De-odexed ICS 4.0.3 ROM from WEE RUU. But. When I flash to Phone. The boot was successfully. And Everything works. But in the Sense Desktop. Any of ICON's Title Couldn't Display in the Sense Homescreen. It's totally naked!! including widgets. What's Problem? The others text display is work.
My Lab: Windows 7 with JDK&JRE
Cygwin+Kitchen 1.92
---------- Post added at 11:26 AM ---------- Previous post was at 11:24 AM ----------
Should I Cooking ICS with Ubuntu?
ChunD.K said:
Thanks, I've De-odexed ICS 4.0.3 ROM from WEE RUU. But. When I flash to Phone. The boot was successfully. And Everything works. But in the Sense Desktop. Any of ICON's Title Couldn't Display in the Sense Homescreen. It's totally naked!! including widgets. What's Problem? The others text display is work.
My Lab: Windows 7 with JDK&JRE
Cygwin+Kitchen 1.92
---------- Post added at 11:26 AM ---------- Previous post was at 11:24 AM ----------
Should I Cooking ICS with Ubuntu?
Click to expand...
Click to collapse
Can you grab a screenshot? Seems pretty strange.
I find problems out。When I tried to Extract All files form a Stock RUU。Than pack it up without any touching。flash to phone。Boot Successfully...
But IT'S JUST NAKED!!! I really confused!
RUU Version:Australian RUU-HOLIDAY-ICS-35-S-Telstra-WWE-3.25.841.4-Radio-3.02.4740.09-34.20.701040.19
Everything is fine when I Run RUU.exe to update。
Jirv311 said:
Can you grab a screenshot? Seems pretty strange.
Click to expand...
Click to collapse
Where you are? I need your Reply.
ChunD.K said:
Where you are? I need your Reply.
Click to expand...
Click to collapse
I need your screenshot.
Jirv311 said:
I need your screenshot.
Click to expand...
Click to collapse
Finally, Here is the Problem Screenshot. SO WERIED
I‘ve also use the latest Touch RECOVERY。 Problem is still。。。
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You gotta help me!
I mean i Pack them pu without any touching。
Where are you?
If I had to guess, I'd say you're using an unsupported language? I honestly am not sure.
Sent from my HTC PH39100 using xda premium
No, Itried switch to English. It jut naked.
Thanks alot for the thread! Is there anyway you could go into more detail about fixing the updater script for vivid?
bennykudos said:
Thanks alot for the thread! Is there anyway you could go into more detail about fixing the updater script for vivid?
Click to expand...
Click to collapse
I attached the updater-script to the OP. The main thing that needs fixing when your building it is putting in the correct format commands for the Vivid.
Do you know how to decompile the apks? I have expiernce with decompiling
Apks on the Samsung infuse but I can not figure out how do it for this phone...I can't even successfully install the framework...and yes I'm using an ics apktool...I've tried on both windows 7 and ubuntu 11.04
Could someone please link me to an apktool that works with this phones stock ics apks and tell me any special/extra steps I need to do to install framework and decompile apks
Sent from my HTC PH39100 using xda app-developers app
mg2195 said:
Do you know how to decompile the apks? I have expiernce with decompiling
Apks on the Samsung infuse but I can not figure out how do it for this phone...I can't even successfully install the framework...and yes I'm using an ics apktool...I've tried on both windows 7 and ubuntu 11.04
Could someone please link me to an apktool that works with this phones stock ics apks and tell me any special/extra steps I need to do to install framework and decompile apks
Sent from my HTC PH39100 using xda app-developers app
Click to expand...
Click to collapse
i think its called apk manager now.. sorry to revive

Categories

Resources