[GUIDE] How I port

I thought I'd share http://www.google.com/gwt/x?gl=us&c...2012/02/how-to-deodex-rom-sdx-developers.html

Its all about deodexing and I noticed at the bottom it says that apps deodexed using scripts will force close if they have sound files because the files are compressed and they malfunction. It suggests manually deodexing them instead (using baksmali). I thought this was interesting since I know alot of you people that are porting are experiencing force closes with apps.;)
 
For MIUIv4, for phone FC, I had to decompile the framework.jar in /system/framework (for both BASE and PORT) and go to com/internal/android/telephony/cdma and replace all the files with the ones from BASE.

What method are you using to decompile framework.jar? I'm trying to use the jadclipse plugin with Eclipse to decompile, but I am new to Eclipse and coming up with no good help on the Google. Am I over-complicating this?

As a side-note, I am using Ubuntu 12.04. All of the windows-based java-class decompilers are less-helpful for me.

Thank you for any help you can offer.
 
What method are you using to decompile framework.jar? I'm trying to use the jadclipse plugin with Eclipse to decompile, but I am new to Eclipse and coming up with no good help on the Google. Am I over-complicating this?

As a side-note, I am using Ubuntu 12.04. All of the windows-based java-class decompilers are less-helpful for me.

Thank you for any help you can offer.

Here is how I would work with the jar files for porting if I decompiled anything it Linux.

first unzip the jar file, in this case framework.jar
Code:
[SIZE="2"]unzip -q framework.jar classes.dex[/SIZE]
next decompile the classes.dex using a baksmali.jar and set the api level to o/s version.
Code:
[SIZE="2"]java -Xmx512m -jar baksmali.jar -a 10 classes.dex[/SIZE]
Replace the files needed and compile and compress a smali.jar is used to compile.
Code:
[SIZE="2"]java -Xmx512m -jar smali.jar -a 10 out -o classes.dex
zip -r -q framework.jar classes.dex[/SIZE]
 
  • Like
Reactions: RyanJKremer
Thanks for the quick reply! Looks like I've got some learning to do! I'll google my way through these steps and see where I get.

Sent from my LG-VM670 using Android Central Forums
 
Thanks for the quick reply! Looks like I've got some learning to do! I'll google my way through these steps and see where I get.

Sent from my LG-VM670 using Android Central Forums

No problem :)

Just a note I would not use apktool.jar to decompile a jar file, it is better to unzip it and use a baksmile.jar/smaile.jar to decompile the classes.dex and zip it back up. That way if the jar is signed, the META-INF is not messed with.
Of course the only time I use baksmile.jar/smaile.jar apktool.jar is with my Cygwin built tool. I'm adding a porting function for LeWa and MIUIv4 ROM'S.
 
  • Like
Reactions: RyanJKremer
Do the processors of the two devices have to be an exact match?

I don't think so because I ported backside to my droid with few problems.

Sent from my Shole using Tapatalk.
 
I'm curious too, there's an appalling lack of development for my wife's WFS, and I've thought about trying to port BACKside to it.

thus he spake.
 
OK, thanks. Will I have problems with my phone's resolution?

Just the boot animation.





I'm curious too, there's an appalling lack of development for my wife's WFS, and I've thought about trying to port BACKside to it.

thus he spake.

Development for the Droid is almost dead that's why I ported it and CyanogenMod didn't have the customiazation like backside.

Sent from my Shole using Tapatalk.
 
I'm curious too, there's an appalling lack of development for my wife's WFS, and I've thought about trying to port BACKside to it.

thus he spake.

You could do that in 10 minutes. MDPI device makes it easy :)

Sent from my LG-VM670 using Tapatalk 2
 
I probably will, once I get caught up on everything. Kids, work, making themes, and running DHoT keeps me pretty busy!

thus he spake.
 
  • Like
Reactions: ThatGuyLurkin

Latest posts

Trending Posts

Forum statistics

Threads
956,915
Messages
6,970,592
Members
3,163,651
Latest member
pns11