Android 4.0 SDK system rip - Android Software Development

Here is the android 4.0 SDK system rip!
Odex version:
http://www.multiupload.com/3LAX55ZV81
Please enjoy!

Interesting. Wish I new something about developing to use this... Thanks.?

Problem is, it fails to deodex =(

ybinnenweg said:
Problem is, it fails to deodex =(
Click to expand...
Click to collapse
ye i made a port but its getting stuck trying to optain the .odex files from framewokrs/apps, its just ignoring them
here a copy of the error.
10-19 04:40:18.174: E/dalvikvm(1453): /system/framework/android.policy.jar odex has stale dependencies
10-19 04:40:18.174: I/dalvikvm(1453): Zip is good, but no classes.dex inside, and no valid .odex file in the same directory
btw im using a gb boot.img/libs

It won't deodex until the current smali/baksmali tools are updated.

^Fs said:
It won't deodex until the current smali/baksmali are updated.
Click to expand...
Click to collapse
indeed, patiently wating

Related

how do i deoxed single apks?

iv been looking but cant figure it out, no one gives instructions on how to use there deodex tools
Download AvaboxV2 Here
Unzip the download somewhere, open up the 'De-odexer' and view the readme.
I think you just put the apk and odex file inside the "de-odexer" folder and double-click the ''deodexall.bat" or "deall.bat", something along those lines.
Can't check right now since I'm on my phone
i down loaded an used but its not creating a Classes.dex
DubsideWICKED said:
i down loaded an used but its not creating a Classes.dex
Click to expand...
Click to collapse
AvaboxV2 won't do that, it will take both the APPNAME.apk & APPNAME.odex files and make it into a single de-odexed APPNAME.apk
If you want the classes.dex file check out smali tools I believe that should do it for you. It may decompile as out.dex, if it does just rename it back to classes.dex
Edit: instructions for it are HERE
I think apk manager will let you deodex files as well.... I think....
theimpaler747 said:
I think apk manager will let you deodex files as well.... I think....
Click to expand...
Click to collapse
if it does i have never seen it
i thought when u de-odexed a file that it created a classes dex. im still having problemswith all methods mentioned
attach the apk and the odex files in a zip so I can download them. when I have time I'll see if I can get the classes.dex file for you and let you know what I did to get it
kyouko said:
attach the apk and the odex files in a zip so I can download them. when I have time I'll see if I can get the classes.dex file for you and let you know what I did to get it
Click to expand...
Click to collapse
i think its the systemUI he is trying to deodex everything i have tried to deodex it errors out.
however i have circumvented it and i am excited
ya im tryin to do what kyle said. i just wanna edit the signal bars. is it possible to make a odex file for a apk.

[TOOL][ROMDEV] working baksmali for honeycomb

I recently made a discovery regarding the RETURN_VOID_BARRIER issues encountered while trying to deodex honeycomb's framework. Here is a working version of baksmali based on JesusFreke's 1.2.7 patch with the difference that it now produces compliant smali code that can be recompiled by smali.jar 1.2.6. This means that there is no need to edit the smali code to be able to recompile it.
I tried recompiling with smali 1.2.7 and got a nice box of bootloops so stick with 1.2.6 until a proper fix is implemented in the official smali tools.
Thanks! This was most useful for my project today!
I'm really amazed more people haven't noticed/commented on this TBH.
NetworkLocation.odex still give errors.
Thats the error:
Code:
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Lcom/android/location/provider/GeocodeProvider;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:784)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:668)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:282)
Error while loading class Lcom/google/android/location/GeocodeProvider; from file NetworkLocation.odex
Error while loading ClassPath class Lcom/google/android/location/GeocodeProvider;
I'm also getting errors on galaxy tab 10.1, framework was done without any problem but many of system app can not deodex
Thanks,the proeblem I meet is solved.
trying to download this file, it downloads as a zip, shouldnt it be a jar? I have tried renaming it to jar and it says its corrupt. help?
fallingup said:
trying to download this file, it downloads as a zip, shouldnt it be a jar? I have tried renaming it to jar and it says its corrupt. help?
Click to expand...
Click to collapse
I think you have to unzip it first. Have a peek inside.
sent from my cyanogen(mod) vision
gee one said:
I think you have to unzip it first. Have a peek inside.
sent from my cyanogen(mod) vision
Click to expand...
Click to collapse
its the contents of a .jar file...
fallingup said:
its the contents of a .jar file...
Click to expand...
Click to collapse
It's a zip of a jar file. The jar file is a zip like format, so maybe whatever you are using to unzip is a bit aggressive? Try something milder
sent from my cyanogen(mod) vision
gee one said:
It's a zip of a jar file. The jar file is a zip like format, so maybe whatever you are using to unzip is a bit aggressive? Try something milder
sent from my cyanogen(mod) vision
Click to expand...
Click to collapse
Thanks for gettin me outta my n00b moment silly osx unzipped it and made it seem like just one zip file, its been too long since ive done any dev work on my mac
Yeah, it happens. When I want to peek at something on my mac, sometimes it goes into a loop where it unzips to a tar.gz and then when I try to open that, it opens up a zip. Infinite loop!
It works fine from the terminal command line and zipeg seems to do a good job.
sent from my cyanogen(mod) vision

[Guide]Complete Android ROM development and essential tutorials ~~ By Nero Young ~~

Hi,
If you willing to learn to build custom ROM then you should have following things
Basic Knowledge about handling Command Promt
Basic Windows software knowledge
PC with all tools properly installed
And a mobile with bootloader unlocked
This tutorial is for "Windows OS (Windows 7 x64 in my case)" And Android 2.3+ OS (2.3.4 GingerBread in my case).
But Dxda Kitchen also supports Ubuntu/Linux and also can support Ice cream sandwich
In this whole post you will learn How To -
Make custom ROM - Done
Unpack .ftf packages - Done
Use Cygwin - Done
Setup Android Kitchen - Done
Edit .apk files - Done
Edit .jar files - Done
Edit .9.png files - Done
Rooting System - Done
Writing scripts
Making flashable zips - Done
Porting apk software
A2SD Techs - Dropped ( Outdated now )
Editing build.prop - Done
Editing init.d tweaks
Information of every customizable file
Making Hosts
apn configs
editing boot.img
converting png to rle or vice versa
Writing updater-script
Making Aroma Installer
How to set default Settings after ROM installations
more and more things to arrive
Tools Required : (Update them manually and report me dead links please)
Download the tools as per your need.Link is given in the name itself below....
Flashtool - For Flashing stock ROM if anything goes wrong (Download link in the installation tab of website)
apktool Direct Download- for editing apk files and jar files (you can use APK manager but apktool is simpler)
Cywign Direct Download- Linus Terminal For Windows
ROM Kitchen (ROM Development Tool) Direct Download- For Cooking custom ROM + boot.img related tools - to edit boot.img files (Its inside the ROM Kitchen Files, Please update this Kitchen to latest version its out dated now,for this use inbuilt updater of kitchen)
Official Link to kitchen dxda Kitchen - Official Thread and Github source Please refer FAQ on official thread for Kitchen related problems
ftf-extractor Direct Download- It will extract system files from the ftf package which you will use to make your ROM
fastboot Direct Download- For flashing kernel to your device
DoomLords Easy Root Kit v4 Direct Download- To Root Stock/Custom ROM
Demo META-INF Folder Direct Download- For Making Flashable zip files
DroidExplorer - For advance tools regarding real time phone memory handling through windows.
Flashable Zip Demo Direct Download- For those who want to just apply some stuffs through CWM
Customized build.prop demo - Download Build.prop
Post #9 download link - All In One Tweaker By Nero Young
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Special Thanks to -
dsixda for his awesome kitchen Please Hit Thanks button for him
DooMLoRD for providing root files
Please kindly remind me if i have forgotten to write your name in thanks section, i have collected all things from many many sources and with modification.
Tools Overview​
Introduction​
This video gives information about the basic tools for ROM development.
Tools will be uploaded once the tutorial is completed.And the links will be posted in 1st post.This tutorial is for all kinds of devices.No matter what your device is ... you can use this tutorial...
Though ftf files are only for Xperia devcies which are used in flashtool to flash stock ROMs to Xperia devices.If you have other device the don't get confused if you will not ftf file for your device.Try other sources to get system files.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Settings Up Cygwin And Kitchen​
This video teaches you how to setup Cygwin And Kitchen.The softwares told in this video can be downloaded from first post
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Setting Up Remaining Tools (ftf extractor,flashtool,fastboot etc)​
This video teaches you how to setup all remaining files and folders...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Getting System Folder​
Universal method for obtaining system folder (Root needed)​This tutorial guides you how to extract system folder from .ftf packages and get system folder for your custom ROM easily.
For this we have used ftf extractor.
Though you can flash your device,install stock ROM root it and then copy all system file to SD Card and get the system folder.This is universal method and can be done easily using terminal emulator.
For this simply download Terminal Emulator from Android Market.
Install it on your freshly flashed device as stated above.
Open it and type:
su
This will give root permission to your terminal emulator.
Then type:
tar -c system/* >> sdcard/system.tar
This will copy all your /system folder to your SDcard with name System.tar
This will take some time to finish so be patient.
After it's done you should have a tar file in your /sdcard named system.tar
You can extract it using Winrar or 7zip software. But yes this will have huge size , as it has other useless folders so you will have to delete them. After extracting this system.tar file you will get following folders (Similar one)
Code:
/app
/bin
/etc
/fonts
/framework
/lib
[COLOR="Red"]/lost-found[/COLOR]
/media
[COLOR="Red"]/sd[/COLOR]
/semc
/usr
/xbin
build.prop
[COLOR="Red"]And some other files and folders like ""autorooted,kernel files" etc[/COLOR]
Now simply delete the folders marked in red color and its done.Don't worry if you don't have folders with red colors above,we don't need them.
And the final files that we will have in our system folders will be
Code:
/app
/bin
/etc
/fonts
/framework
/lib
/media
/semc
/usr
/xbin
build.prop
Now thats all...
Use this pre rooted ROM as your base now and have fun in tweaking and customizing .... Hope this is simplest method that you could ever find...
Click to expand...
Click to collapse
Extracting .FTF File
Only For GB ROM AND XPERIA DEVICES !​Try this method if ftf extractor is failing for ICS. And note that ftf files are only for sony models.
You can optinally try flashtool to edit .sin files from ftf files. Just install latest flashtool and go to advance menu. then choose sin file editor, choose desired ftf file and then dump the system folder.
Another methods to get system folder.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Working With Android Kitchen​
Getting Started​This tutorial will tell you how to setup working folder in kitchen and how to root your ROM,change name,add busy box etc.
This is pre requirement on ROM development.So this video will continue after total customization is done !
After this video you can jump to next post to proceed with customization and then come back to setup to second video in this post so you can continue packing of system folder in flashable zip
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Finalizing ROM​This video shows you how to finalize making zip file of your ROM and use it for flashing.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Working With APKTOOL​
Editing .APK Files​​
This video teaches you how to setup APKTOOL folder as well as teaches you how to edit .apk files.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Editing .JAR Files​In this next video you will get information on how to edit .jar files like services.jar using APKTOOL.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Customization Tutorials​
Dealing With .9.png Files​​
This video teaches you how to edit draw9 i.e .9.png image files easily without any errors.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Performance,Battery Life Using Build.prop Tweaks!​
Editing Build.prop​​
This video will guide you for editing build.prop of your device but make sure you don't copy my build.prop.Edit yours build.prop and use syntax from my build.prop
Here is download link for you - Download Build.prop
Click to expand...
Click to collapse
Click to expand...
Click to collapse
GIMP Tutorial
Using GIMP For Editing Images​
Refer This Thread !​​
Remaining posts​
This post contains​​
Editing init.d tweaks
Making Hosts
apn configs
How to set default Settings after ROM installations
Download Link in 1st Post
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Reserved for more work 9
Looks super awesome MSN, just what I've been looking for! Gonna have a closer look when I'm out of bed
Sent from my Desire HD using XDA
Very nice!!! This is the first time I have searched for Android ROM development and look what I find, the KING, of all Android ROM development posts! Thank you SO much for the time you have put in to this...
Very nice, will take a look at it for a nice refreshment.
Looks pretty good and detailed, nice guide.
How about finding another file host. I don't like being forced to download crap that I don't need.
"The way is known to all, but not all know it."
Sent from my modded LG-P506 using XDA App
Here is how tolearn to compile rom from sources if anyone is interested http://forum.xda-developers.com/showthread.php?t=1667551
Sent from my Optimus Me using xda premium
Awesome Tut!
Waiting for more!
Just great!
Thanks a lot for awesome Tut.
In the ftf-extractor.rar i found only the aIUP.exe. what about the other file 'SKI7i.....ftf'
Also when i execute the './menu' in the cgwin/kitchen folder, i have "error: The application "clear" is not installed ...
wilowfr said:
Thanks a lot for awesome Tut.
In the ftf-extractor.rar i found only the aIUP.exe. what about the other file 'SKI7i.....ftf'
Also when i execute the './menu' in the cgwin/kitchen folder, i have "error: The application "clear" is not installed ...
Click to expand...
Click to collapse
That SK17i...ftf package is stock firmware for my Xperia Mini Pro.By opeing it i have extracted system.sin file.
You will need ftf package of stock firmware of your Galaxy3 as you mentioned in your signature.
Also re install cygwin Completely and add kitchen files in cygwin/home/<YourUserNameOf PC>/kitchen to remove that error.
Great!! Thank u!!!

[GUIDE]Deodex An Application

Hey Guys,
This is a small tutorial for those who want to Deodex a Single Application manually.
Deodex And Odex:
The APKs or JARs of Android contain certain .odex files whose supposed function is to save space. These ‘odex’ files are actually collections of parts of an application that are optimized before booting. Doing so speeds up the boot process, as it preloads part of an application. On the other hand, it also makes hacking those applications difficult because a part of the coding has already been extracted to another location before execution.It will make your faster theoretically even though it would be too small to notice.When deodexing the .odex file is changed to classes.dex file. Deodexing also allows us to theme and install mods.Many of the Stock Roms and CyanogenMod 7 roms are now odexed and to theme them or to add mods we need to have it deodexed. So lets learn how!!
Deodexing:
Preparation:
Hope you have Java Development Kit installed on your computer to run the scripts.Get it from: here.Select you OS from the list and download the suitable package.(We would need the full thing and not the Demo versions.)
Download the Attached .zip File
Extract its Contents to a Folder.(Extracting to a New Folder in the Desktop is Preferred for Ease)
We will name this Folder with the Extracted Contents as Deodex(or any name that you like)
Procedure And Explanations:
First of all copy the Application file that you need to Deodex.A Android Application file is the .apk file found in the system/app directory.Copy the .apk file and the .odex file of the application that you want to Deodex and paste in the Deodex folder(Folder to which the attachment's contents was extracted)
Now go to your system/framework directory and you can see a lot of .jar and .odex files in this folder and copy all its contents to the folder to which the attachment's contents was extracted.
Before doing anything more backup your rom and the application file(If anything goes wrong you can use it then)
To Deodex a application you need to specify its "BOOTCLASSPATH" files. BOOTCLASSPATH are files that contain the classes for an application or in simple language BOOTCLASSPATH files are those files that are required by a android application to run properly. They are actually those files that we have copied from the system/framework directory to our Deodex folder. There are mainly 5 BOOTCLASSPATH files for every android rom.They are: android.policy.jar , core.jar , bouncycastle.jar , ext.jar , framework.jar
All apps are dependent on these files but some apps are dependent on some other BOOTCLASSPATH files.So sometimes the problem is that we actually dont know to which of these files is a particular app dependent to.So we will have to specify all the BOOTCLASSPATH files or the .jar files in the system/framework directory.So problem solved!! Now enough with the theory class,lets proceed to the practical classes!!!!!
Open Command Prompt.
As an example we will Deodex Settings.apk
Type in this command in Command Prompt:
Code:
java -Xmx1024m -jar baksmali.jar -c :am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:
com.android.location.provider.jar:com.google.android.maps.jar:sonyericsson.suquashi.jar:
core.jar:corej-unit.jar:ext.jar:framework.jar:ime.jar:input.jar:java.awt.jar:javax.obex.jar:monkey.jar:pm.jar:
:services.jar:sqlite-jdbc.jar:svc.jar -x Settings.odex
Here:
-Xmx says the heap memory needed.In the above command it is given to 1024m. Sometimes deodexing may have errors due to the low heap memory.So set it to 1024m itself.
-jar baksmali.jar says the program to run baksmali.jar file.
-c says that the following files are the BOOTCLASSPATH files of the application we are deodexing.
-x says the name of the application that we are deodexing.It should end with .odex extension.
Note:
When you specify the .jar files just add all those .jar file names in the system/framework folder(only add the .jar files and not the .odex files).Ensure that you have added the .jar extension at the end of each file. Separate the .jar files with colon " : " symbol.
If you have made no spelling errors and have done everything mentioned you will get a folder named "out".
Now we have to smali the out folder into classes.dex file.
So again type in the Command Prompt:
Code:
java -Xmx1024m -jar smali.jar out -o classes.dex
Here:
-o says what the output file should me named to.Dont rename the classes.dex file into anything else.
Now you will have a file in our Deodex folder(Folder to which the attachment's contents was extracted) called "classes.dex".
Finalizing:
Now open the application's .apk file(which you were trying to deodex) with WinRar.
Move the classes.dex file that you got to this .apk file.(Just drag and drop it to the .apk file opened with WinRar.)
Now you will have a deodexed .apk file.
Note: After deodexing you will have to delete the .odex file of the particular application which you had deodexed.
I will make a guide to Odex back a Deodexed application soon!
Hope this guide helps you....
For any doubts or questions please post it here in this forum and I will try to attend to it.........
Re: Deodex A Single Application
Thanks bro..
Good tut..
sent from my phone using hands and brain...
thanks
Re: Deodex A Single Application
Good tut...
But quite long
Sent from my W8 using xda app-developers app
hey...nice tutorial and nice explanation :good:
thanks
Re: Deodex A Single Application
But helpful too...
sent from my phone using hands and brain...
Gogeta said:
Good tut...
But quite long
Sent from my W8 using xda app-developers app
Click to expand...
Click to collapse
I made it long so that everyone understands.Even those who are very new to android
i'm stucked when i try to deodex settings.odex..
any suggestions???
Hidzrie said:
i'm stucked when i try to deodex settings.odex..
any suggestions???
Click to expand...
Click to collapse
you must deodex
settings.apk + settings.odex.....
i've already follow exactly like the tutorial above but cmd just stucked...
in 'out' folder there are \com\android\settings\ folder and these files were in it and nothing more:
AccessibilitySettings$1.smali
AccessibilitySettings$2.smali
AccessibilitySettings$3.smali
AccessibilitySettings$4.smali
AccessibilitySettings$5.smali
AccessibilitySettings$6.smali
AccessibilitySettings.smali
please anyone help..
Credit/thanks: http://forum.xda-developers.com/showthread.php?t=1208320 ?
Hidzrie said:
i've already follow exactly like the tutorial above but cmd just stucked...
in 'out' folder there are \com\android\settings\ folder and these files were in it and nothing more:
AccessibilitySettings$1.smali
AccessibilitySettings$2.smali
AccessibilitySettings$3.smali
AccessibilitySettings$4.smali
AccessibilitySettings$5.smali
AccessibilitySettings$6.smali
AccessibilitySettings.smali
please anyone help..
Click to expand...
Click to collapse
follow the highlighted lines and try again and deodexing takes time according to your computer's ram.so be patient.if you still cant do it then just upload the system=>framework folder and the app you want to deodex and its odex file and Private Message me the links. I will check whats the problem.
L_S said:
Credit/thanks: http://forum.xda-developers.com/showthread.php?t=1208320 ?
Click to expand...
Click to collapse
this can be found in the android sources site but it not so easy to understand for beginners so i made it a little easier to understand and i didnt refer that guide because all is clearly written in the android sources site.
i understood why some of you are making mistakes when trying to deodex a apk or jar file.
its because you are copying exactly the same bootclasspath files that i specified in the guide.
it varies depending on your device and your rom. So I have made some changes in my guide.some lines are highlighted in red.
follow those lines.
Hidzrie said:
i'm stucked when i try to deodex settings.odex..
any suggestions???
Click to expand...
Click to collapse
Specify your device and rom that you use. Are you sure that you followed what i told itself? Try it once more as I have made some more changes in the guide to help you guys.
Still if you cant do it then just copy your framework folder and the apk and .odex file that you want to deodex and pm me. I will try to deodex it.
fotak-x said:
you must deodex
settings.apk + settings.odex.....
Click to expand...
Click to collapse
no fotak we dont need to deodex settings.apk. We only need to deodex the .odex file but we will have to keep the apk file also in the same folder.
Leon1234 said:
Specify your device and rom that you use. Are you sure that you followed what i told itself? Try it once more as I have made some more changes in the guide to help you guys.
Still if you cant do it then just copy your framework folder and the apk and .odex file that you want to deodex and pm me. I will try to deodex it.
Click to expand...
Click to collapse
I'm using samsung gt-s5830i.. Rom simplicity v4..
I've tried like many times..still wont work..
Hidzrie said:
I'm using samsung gt-s5830i.. Rom simplicity v4..
I've tried like many times..still wont work..
Click to expand...
Click to collapse
dont worry,we can figure it our!
what error are you getting in command prompt?
can you give the lines that come up in command prompt?
Leon1234 said:
dont worry,we can figure it our!
what error are you getting in command prompt?
can you give the lines that come up in command prompt?
Click to expand...
Click to collapse
There are no error appear on cmd..
After I insert a command to deodex settings.odex and press enter, it just like nothing happen...
There are no error appear on cmd..
After I insert a command to deodex settings.odex and press enter, it just like nothing happen...
Click to expand...
Click to collapse
you will have to wait for some time when deodexing depending on the ram of your device.
what is the ram of your computer?
and do you have java 7?

Apktool retain signature with smali modifications

Hi all,
I 've just noticed that using apktool is possible to keep the original signature after hacking the smali code of an apk file.
I've tested it on one of my apks, and I've noticed that, after building the modified apk with the -c option, the new apk fail to install on my device:
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
Click to expand...
Click to collapse
Why?
Many thanks

Categories

Resources