Before following this guide, install the Java development kit (JDK)
The first thing that you want to do is install the Android Development Kit. This allows you to use adb (android debug bridge) and also other tools to mod images and apks. After installimg, add the platform-tools folder inside the android sdk folder (make it if not there) to your path (Google how to add a folder to path on windows).
Android Development Kit/SDK: http://developer.android.com/sdk/index.html
I have the sdk in c:/android-sdk/ and that is how it will be referenced to in this tutorial.
Now you should get the apktool.jar and the windows files for the latest version and put it in platform-tools in the sdk folder (make sure to extract the windows files and not just put the archive).
Apktool: http://code.google.com/p/android-apktool/downloads/list
Now open up the sdk manager and install all of the 4.0 stuff and tools.
Now you need to download and extract the latest cm9 version for the epic 4g. Copy the /system/framework/framework-res.apk from cm9 (or whatever rom you are modding) to the platform-tools folder even if you are modding another apk. Also copy the apk you are modding.
Now open up cmd and run these commands:
cd c:/android-sdk/platform-tools/
apktool if framework-res.apk
apktool d apkyouaredecompiling.apk
Now you can mod the apk's files found in its own folder in platform-tools.
After you finish modding, open cmd and run these commands.
cd c:/android-sdk/platform-tools/
apktool b apkyouaremodding.apk
Now your apk should be in the platform-tools folder.
You can do this with .jar files too...
Great job marcusant YAY for two guides being release today lol
Nice job marcusant, everything was explained very well.
Sent from my CM9 Samurai Epic 4G using xda premium
Related
Ok, I must have posted this question somewhere but I would like to know the answer cause no one has answered it. "how do I get the stock phone app to modify?. How would I get it and put it back into my phone? please I would like to know.
38 views and no response?
the .png files for the phone are actually in the contacts.apk.
Are you asking how to modify the apk, or just specifically where are the phone images?
To copy the app from your phone just do: adb pull /system/app/Phone.apk
That will put a copy of the file in your "tools" directory in the android sdk folder
Then when you want to put it back on you should be able to overwrite it with: adb push /system/app/Phone.apk
What exactly are you planning on doing with this file?
Thank you. I want to create my own images to make it look different then the stock colors.
There are 2 apks that contain dialers, one is the Contacts.apk as stated bfore that brings up the phone when the phone icon is pressed the second is in the Phone.apk appears once a call is placed, and the persons picture appears of the person you are calling.
I don't know how to do a adb pull. can you explain?
johnny quest said:
I don't know how to do a adb pull. can you explain?
Click to expand...
Click to collapse
In terminal or command prompt, navigate to the tools directory in the android SDK and run the following commands:
Code:
adb remount
adb pull /system/app/Phone.apk
That will dump the file in you tools directory.
If you are having trouble with this, let me know what operating system you are using and if you have the android SDK installed.
synesthete said:
In terminal or command prompt, navigate to the tools directory in the android SDK and run the following commands:
Code:
adb remount
adb pull /system/app/Phone.apk
That will dump the file in you tools directory.
If you are having trouble with this, let me know what operating system you are using and if you have the android SDK installed.
Click to expand...
Click to collapse
This is confusing. I didn't think it would be so hard. I do UI's for iphone and ipod touch and this is way different. There are so many different things. Its discouraging in some ways. Sorry. I would love to create an app but of course its different. So, I stick to creating themes.
I would love to take a ROM and mod it myself or even modifying Launcher pro but it has that 9.pngs which makes it hard.
Ok, I have the Eris 2.1 rooted with Tenzo Rcmix2.0 installed. I have the SDK installed but don't know what to do with it. I appreciate you taking the time to help me out. I really want to create and mod lots of apps.
this is what I've done to a phone app I downloaded from the market:
-I created my images through Photoshop and saved them to a folder with its correct name used.
-I opened draw9patch and saved the images with the correct name again to a folder.
-I named the folder drawable-hdpi that belongs in the Res folder
-took the files and folder and created a zip out of it.
-opened the AvaboxV2 and signed it.
-loaded to my phone and changed the name to the correct name and installed it
but it keeps saying application not install, I just don't get it. What step did I messed up on?
Anybody? anybody?...............................
This is what you need to do:
1. Open Contacts.apk in 7-zip
2. Copy the images over top of the original images in drawable, drawable-mdpi, and drawable-mdpi-finger (notice I didn't say anything about hdpi)
3. Close the archive.
4. Copy it back onto the device with:
Code:
adb remount
adb push Contacts.apk /system/app
Your phone may not appreciate you pushing Contacts.apk while it is running, so it may become unstable at this point. I would recommend restarting.
icbeer said:
This is what you need to do:
1. Open Contacts.apk in 7-zip
2. Copy the images over top of the original images in drawable, drawable-mdpi, and drawable-mdpi-finger (notice I didn't say anything about hdpi)
3. Close the archive.
4. Copy it back onto the device with:
Code:
adb remount
adb push Contacts.apk /system/app
Your phone may not appreciate you pushing Contacts.apk while it is running, so it may become unstable at this point. I would recommend restarting.
Click to expand...
Click to collapse
thank you but I'm trying to understand what you mean by push ADB. is that the one in the sdk folder? if so, I open it and it just flashes for a few seconds then closes.
ADB is a command line program that allows you to debug and move/edit files on your phone. You need to run those commands from a command prompt (should be a link in the Accessories folder on the Start menu if you can't right-click on the sdk folder and open one). Navigate to the tools folder, then run the remount and push commands like icbeer said to get your modified .apk on your phone:
Code:
C:\users\brtnbrdr> cd c:\android-sdk-windows\tools
C:\android-sdk-windows\tools> adb remount
C:\android-sdk-windows\tools> adb push Contacts.apk /system/app
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
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
what does it mean by placing the.zip files into your adb/fastboot folder
When you install the SDK tool on your hard drive you will end up with a folder called /platform-tools, that is where your files to be flashed should be placed.
If you haven't set up Android SDK yet follow this guide...Install Android SDK Tool
Jerzdre said:
what does it mean by placing the.zip files into your adb/fastboot folder
Click to expand...
Click to collapse
It might be worth your while reading about adb etc
Jerzdre said:
what does it mean by placing the.zip files into your adb/fastboot folder
Click to expand...
Click to collapse
When I set my ADB up I downloaded the SDK bundle , I did to a folder on the C to SDK, then made a folder called ADB then extracted from the bundle where "platform" tools was ,adb/Adb WinApi.dll/Adb WinUSBapi.dll/and fastboot, and put them in the folder Adb. Now when I want to send something to the phone via ADB I download the zip of whatever it is,, copy it to the adb folder and run the adb commands of whatever I want to do at the time. I found some good guides on the forum of the HTC One X on how to use the ADB and set up the SDK bundle, go to that forum and do some searching and reading, that is the best way to learn ADB. I wish I knew more but I am a noobie of a few months and still learning.
Hi guys !
Bored to the death today, really. So I decided to make another guide.
So, here's APKTool Guide & SignAPK Guide for Newbies !
1. Download APKTool, you can download it here.
Also, download APKTool depencies for your OS :
Windows
Mac OSX
Linux
2. Extract files you've download to the same folder.
For Linux, extract it to /usr/local/bin. Correct the permission by adding executable permission.
3. Now, open CMD (Command Prompt). Press Windows Key + R, type cmd.exe
For Linux, just open Terminal Emulator -.-
4. Change directory to where APKTool is placed. Type these :
Code:
cd apktool directory
for example : cd C:\apktool
For Linux, just type apktool
5. Now you can freely decompile APKs, BUT ! for System APK (like SystemUI), you have to install the framework.
Extract the framework-res.apk from your ROM, and type these :
Code:
apktool.exe if framework-res.apk
for Linux :
Code:
apktool if framework-res.apk
6. Now, enjoy decompiling APK. If you're done with modifying APK, type these :
Code:
apktool b apk name
for example :
apktool b SystemUI
Happy Modding !
SignAPK Guide for Newbies
1. Download signapk.jar and testkey.zip, you need Java for your OS if you don't have it yet.
2. Place signapk.jar in the same folder as APKTool, so you can instantly sign modded APK after modding it. Also extract testkey.zip in the same folder.
3. Type these :
Code:
java -jar signapk.jar testkey.x509.pem testkey.pk8 original_apkname.apk signed_apkname.apk
4. Congrats ! You can now install the APK normally or via adb.
Ooh, I think I've seen a lot of your moddings out there (if I'm not wrong). :thumbup::thumbup::thumbup:
Sent from my LG-P705 using Tapatalk
Thanks! It's really friendly! Will give it a shot when you post the signing guide!!
Keep up the good work!!!
Sent from my LG-E610 using Tapatalk
Added SignAPK guide on the second post.
Thanks for reading the tutorial.
Services.jar for Mtk Tecno S5
Please patch it for me and mail it at [email protected]
Sparda15 said:
Please patch it for me and mail it at [email protected]
Click to expand...
Click to collapse
Ha
Sent from above using xparent tapatalk blue
Sparda15 said:
Please patch it for me and mail it at [email protected]
Click to expand...
Click to collapse
its not possible,because youre odexed,we need the device connected via adb to patch it,ive say it to you in my thread,why u dont believe me bro?
Posted here 1st