I have a Nexus One and have successfully gotten OpenGL ES 2.0 up and running. I wanted to see if I could find someone with a rooted Droid who'd be willing to give me some info so I can find out if/how the same thing will work on it.
So far I have what I need. For those of you who have a Droid and want to start working with OpenGL ES 2.0 on it: You can do so through the Android NDK with a little hackery.
-You'll need to pull /system/lib/egl from your phone and put that in the ndk directory at: (ndklocation)/build/platforms/android-4/arch-arm/usr/lib/.
-Then download the opengl es 2.0 headers(you can find that at http://www.khronos.org/registry/gles/) and put gl2.h, gl2ext.2, and gl2platform.h in (ndklocation)/build/platforms/android-4/arch-arm/include/GLES2. Put khrplatform.h in "/"/"/"/"/"/KHR.
-Then setup your application to link to libGLESv2_POWERVR_SGX530_121.so by adding it to LOCAL_LDLIBS in your Android.mk file.
-Then just include gl2.h and you can start using 2.0!
If you want to build for the Nexus One, you'll have to get our libGLESv2_adreno200.so, which I'll make available here when I get hope today. Basically, you'll have to link against that instead.
If you want your app to work on both, you'll have to do some trickery with having two separate libraries so that if it's running on the Nexus One then it'll use it's library. I might work on making an open source library that'll load the right library so everyone can just load that before loading their own, but it'll be time consuming and I do have my own large project I'm working on, so I wouldn't count on that.
Well, us Nexus One folks shouldn't get all the fun, right? You'll now find a .zip containing an apk for an OpenGL ES 2.0 app which should(assuming what everyone here told me before was true) work on the Droid. It's pretty basic, just displays a triangle with some custom fragment shader graphics applied, but it does prove the ES 2.0 is running. Let me know if there's any problems(post it here, I'd rather not get 100000000 PMs/emails). Aside from that, enjoy!
Oh and I threw in the Nexus One ES 2.0 shared object file just in case anyone wants it.
The Droid's 2.1 Rom will go OTA soon with Open GL 2.0 support so roms will probably have this too.
Ace42 said:
The Droid's 2.1 Rom will go OTA soon with Open GL 2.0 support so roms will probably have this too.
Click to expand...
Click to collapse
The Nexus One doesn't really have ES2.0 support(despite having android 2.1; I had to hack the crap out of it to get it to work) so I doubt it would have support in the Droid(the SDK still doesn't have support). That aside, that really wasn't what I was asking. I want to know if these libraries already exist in the droid. As far as I can see, nobody has bothered looking yet and I suspect they're already in there.
[email protected] said:
The Nexus One doesn't really have ES2.0 support(despite having android 2.1; I had to hack the crap out of it to get it to work) so I doubt it would have support in the Droid(the SDK still doesn't have support). That aside, that really wasn't what I was asking. I want to know if these libraries already exist in the droid. As far as I can see, nobody has bothered looking yet and I suspect they're already in there.
Click to expand...
Click to collapse
I thought you meant it was native in nexus sorry.Droid has similar GPu to Iphone so Open Gl 2 should be capable on the droid.
Ace42 said:
I thought you meant it was native in nexus sorry.Droid has similar GPu to Iphone so Open Gl 2 should be capable on the droid.
Click to expand...
Click to collapse
No problem. Ya, I'm fairly sure it is opengl ES 2.0 capable. Just want to know where the libraries are located to see if it's the same as on the N1. On a side note, I know there are plenty of talented devs on the Droid side, so if anyone can find a way to get an app made with the ndk to link with the /system/lib/egl folder, that'd be awesome as well.
[email protected] said:
I have a Nexus One and have successfully gotten OpenGL ES 2.0 up and running(it currently requires root privileges and a bit of setup). I wanted to see if I could find someone with a rooted Droid who'd be willing to give me some info so I can find out if/how the same thing will work on it.
If you have root privileges on your Droid please run the following in a terminal emulator and post the results(or you can PM/email me if necessary, but this won't have any personal information in it):
Code:
su
cd /system/lib
ls
cd egl
ls
That should let me know what libraries the Droid has, so I can try to match them up with the ones on the Nexus One and see what we're working with. I'm hoping it'll have the identical structure to the N1, which would make development and testing of ES 2.0 apps much easier.
Click to expand...
Click to collapse
Damn beat me here LOL.
I'm on Motorola Milestone, Android 2.0.
/system/lib/egl includes:
egl.cfg
libEGL_POWERVR_SGX530_121.so
libGLESv1_CM_POWERVR_SGX530_121.so
libGLESv2_POWERVR_SGX530_121.so
libGLES_android.so
eldis said:
I'm on Motorola Milestone, Android 2.0.
/system/lib/egl includes:
egl.cfg
libEGL_POWERVR_SGX530_121.so
libGLESv1_CM_POWERVR_SGX530_121.so
libGLESv2_POWERVR_SGX530_121.so
libGLES_android.so
Click to expand...
Click to collapse
Alright, any chance you can post that libGLESv2_POWERVR_SGX530_121.so(or PM/email it to me if you want to do it that way)? We may need it in order to make 2.0 apps for the Droid.
Also, any chance I could recruit you for some eventual testing?
do you rally want to know what is in /system/lib? there are so many files ...
same here, in /system/lib/egl:
egl.cfg
libEGL_POWERVR_SGX530_121.so
libGLESv1_CM_POWERVR_SGX530_121.so
libGLESv2_POWERVR_SGX530_121.so
libGLES_android.so
owner of Milestone 2.0 rooted
Here
I dont know if he already posted it but here you go. i just renamed it for times sake.
Droid Running 2.0.1
jjcd51590 said:
I dont know if he already posted it but here you go. i just renamed it for times sake.
Droid Running 2.0.1
Click to expand...
Click to collapse
Thanks. I'll need that library since I have to link against it in the ndk in order to make ES 2.0 work on the Droid.
kniffo80 said:
do you rally want to know what is in /system/lib? there are so many files ...
same here, in /system/lib/egl:
egl.cfg
libEGL_POWERVR_SGX530_121.so
libGLESv1_CM_POWERVR_SGX530_121.so
libGLESv2_POWERVR_SGX530_121.so
libGLES_android.so
owner of Milestone 2.0 rooted
Click to expand...
Click to collapse
Nah, that's ok, /system/lib/egl works for me. I just wasn't sure if it had the same structure on the Droid.
Anything else you need just let me know.
jjcd51590 said:
Anything else you need just let me know.
Click to expand...
Click to collapse
Alright. That's it at the moment. The only other thing I'll need is testing(I'll let you know when I get to that point).
On a side note, people developing for the Droid/Milestone can check my first post which has been updated with build instructions for OpenGL ES 2.0 apps for the Droid/Milestone.
You should update the first post to say it can run w/o root. Could this info be added to a wiki of some sort. It would be nice to have developer info in one place.
xdarkfirex said:
You should update the first post to say it can run w/o root. Could this info be added to a wiki of some sort. It would be nice to have developer info in one place.
Click to expand...
Click to collapse
Good point and done. Agreed on the wiki part. Could get exhausting transferring info back and forth between here and the N1 development forum.
I'm happy to test on a 2.0.1 Droid. Let me know what you need.
eldis said:
I'm on Motorola Milestone, Android 2.0.
/system/lib/egl includes:
egl.cfg
libEGL_POWERVR_SGX530_121.so
libGLESv1_CM_POWERVR_SGX530_121.so
libGLESv2_POWERVR_SGX530_121.so
libGLES_android.so
Click to expand...
Click to collapse
These are my results also on a Motorola Droid, 2.0.1
I make regular nandroid backups, so I'd be happy to test.
I'm running Sholes.info 2.01 with compcache disabled.
Also familiar with Linux so terminal stuff won't be a problem.
I'm more then willing to test it too. I have a droid running bugless beauty 2.01 v.5
Related
ok peeps here is the system dump ... Thanks to Maxisma, who helped me get this done!!!!
http://www.androidspin.com/downloads.php?dir=maxisma/ROM/&file=system.rar
Also here are the init scripts
http://www.androidspin.com/downloads.php?dir=maxisma/ROM/&file=939init.zip
P>S> this post is for devs only please keep on topic and dev questions or help only please!!!
here are a ton of screenshots from the device too...
http://www.4shared.com/file/148588825/9d7dc1e6/939screenshots.html
tried out the cube app yet?
im wondering if this could just be installed, or if its exclusive just to the behold 2 b/c it has some files to run with er something
alexjzim said:
tried out the cube app yet?
im wondering if this could just be installed, or if its exclusive just to the behold 2 b/c it has some files to run with er something
Click to expand...
Click to collapse
i have had this device for a while now havn't tried to run the cube on my g1 or mt3g yet may try tomorrow...
Sammydroid said:
i have had this device for a while now havn't tried to run the cube on my g1 or mt3g yet may try tomorrow...
Click to expand...
Click to collapse
i needed a break from 2.0
Anyone try this yet? I would love to see the "cube" on my phone
cube
Tried to install the cube on my g1 (running cm 4.2.3.1) does not work. Told me it could not be installed on this device.
elfblackdeath said:
Tried to install the cube on my g1 (running cm 4.2.3.1) does not work. Told me it could not be installed on this device.
Click to expand...
Click to collapse
I'm pretty sure it's because it is odexed and a system file. You'd need to push both the apps odex and the apk to something like /system/app or wherever your system apps are being stored
JAguirre1231 said:
I'm pretty sure it's because it is odexed and a system file. You'd need to push both the apps odex and the apk to something like /system/app or wherever your system apps are being stored
Click to expand...
Click to collapse
im pretty sure its bad to push an odex file unless its for the rom you currently have .. bad things can happen ... just have to wait til someone de-odexes them (JF says that he's working on that)
xidominicanoix said:
im pretty sure its bad to push an odex file unless its for the rom you currently have .. bad things can happen ... just have to wait til someone de-odexes them (JF says that he's working on that)
Click to expand...
Click to collapse
Awesome, this is great to hear, doesn't seem to much thought is really being put into this dump, guessing all the other choices out there has every one busy.
Welldone Maxisma waiting the new rom release
Just thought I should let you know that there's a diner dash demo and the houdini app is actually telenav in the /system/app
Brut.all said:
It is a tool for reengineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step. Also it makes working with app easier because of project-like files structure and automation of some repetitive tasks like building apk, etc.
It is NOT intended for piracy and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms and other GOOD purposes. Just try to be fair with authors of an app, that you use and probably like.
Features:
decoding resources to nearly original form
smali debugging: SmaliDebugging
helping with some repetitive tasks
Click to expand...
Click to collapse
http://code.google.com/p/android-apktool/
Brut.all said:
http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
Oh this may well be excellent. I've got a 3rd-party Market app which desperately needs sensor orientation disabled (good ol' FC on rotate). Will check it out!
Brut.all said:
http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
heh! cool man ... will look into this one! TY
~enom~
this.. could.. be.. godly..
I don't have time to try this right now, but I'm PUMPED.
Ok, now I see, that it still doesn't work for many apps. But you can try your luck ;-)
I've just released 0.9.1 version with wider apps support.
Subscribed! Thanks Brut.All! Will play around with this one
Brut.all said:
http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
Vaooo!!! Megathanx!
Use it first and then thank. Still I don't have any confirmation from anyone that it works :-/
Brut.all said:
Use it first and then thank. Still I don't have any confirmation from anyone that it works :-/
Click to expand...
Click to collapse
working for me under ubuntu karmic, great work as ever Brut.all
Had the chance to set this up and make my edit. Absolutely painless. Great work. Thanks!
Android 1.5 can also work?
itanczos said:
Android 1.5 can also work?
Click to expand...
Click to collapse
Why not? It just builds apps, not run them, so it's a question like: "Do smali can also work with Android 1.5?" ;-)
That "Android SDK installed with 2.1 platform" requirement doesn't mean, that it will build apps for 2.1 . It will just use 2.1 resources, but these are (must be) backward compatible.
Brut.all said:
Why not? It just builds apps, not run them, so it's a question like: "Do smali can also work with Android 1.5?" ;-)
That "Android SDK installed with 2.1 platform" requirement doesn't mean, that it will build apps for 2.1 . It will just use 2.1 resources, but these are (must be) backward compatible.
Click to expand...
Click to collapse
Okay, I'll try!
Another question: The framwork-res.apk could not be decrypted. It will be possible later on?
itanczos said:
Another question: The framwork-res.apk could not be decrypted. It will be possible later on?
Click to expand...
Click to collapse
Maybe much later :-/
Even if we will be able to decode it and rebuild, we'll have FC after FC. The point is: framework resources must have constant resName<->resID mappings (eg. @android:string/day must be a 0x01040298), because they are referenced by all apps and unfortunately aapt doesn't give us control over resIDs mappings. I think framework-res.apk and other system files are built using some Google's private tools.
We need to create aapt-like tool, that will use custom resIDs mappings - it should be possible and maybe not so hard, but currently I have other things to do.
want a windows version >.<
lolmensch said:
want a windows version >.<
Click to expand...
Click to collapse
I must buy one ;-)
For now you need VirtualBox (free) + Ubuntu (free) + ~5GB of space (nearly free) and you will be able to use it
could this be used to modify this skype .apk to allow use on other carriers?
http://forum.xda-developers.com/showthread.php?t=585211&highlight=skype
ekeefe41 said:
could this be used to modify this skype .apk to allow use on other carriers?
http://forum.xda-developers.com/showthread.php?t=585211&highlight=skype
Click to expand...
Click to collapse
I don't know, what are these "iskoot", "3 network" and other things - I don't use Skype. But if you need to change something in XML files, then you definitely want to try out apktool
Here is the apk for flash i got on my nexus.... seen lots of requests for it
Thread already started. http://forum.xda-developers.com/showthread.php?t=686578
prettyboy85712 said:
Thread already started. http://forum.xda-developers.com/showthread.php?t=686578
Click to expand...
Click to collapse
It didn't have the .apk but rather the link for 2.2 users, this is for <2.2. Nice up
its on the market... flash player 10.1 BETA (froyo only)
now all i need is some info on what the build.prop needs to say and then maybe i can attempt to install on the droid just to satisfy my own curiousity lol. can anyone help me out with that? all the screenshot i see only show the version number and nothing else as though it's some big secret
Sweet man! Really appreciate the apk!
Now we just need a flash block app
Update: I guess its in there, changing the browser plugin setting to on demand works like flashblock
Legacystar said:
now all i need is some info on what the build.prop needs to say and then maybe i can attempt to install on the droid just to satisfy my own curiousity lol. can anyone help me out with that? all the screenshot i see only show the version number and nothing else as though it's some big secret
Click to expand...
Click to collapse
Why don't you download it and look?
It wouldnt install on android 2.1 or is it just on me?
Rafase282 said:
It wouldnt install on android 2.1 or is it just on me?
Click to expand...
Click to collapse
me too.....
Rafase282 said:
It wouldnt install on android 2.1 or is it just on me?
Click to expand...
Click to collapse
its only for 2.2 froyo
Rafase282 said:
It wouldnt install on android 2.1 or is it just on me?
Click to expand...
Click to collapse
It installed on Cyanogen 5.0.6.2 for me (on Droid), but since I couldn't get the 2.2 browser installed, I couldn't do anything with it.
won't even allow me to download this on my Diamond running 2.1 figured. It wouldn't work but get error not supported when downloading.
DAMN ADOBE TO HELL!!!
Lol
Thanks for this upload. Downloading now
And I know people keep reciting "it's in the Market, get it there..."
It really helps me out that you uploaded this since I'm currently deployed in the desert and don't have reliable/affordable data access. 4.1MB that I don't have to download over the air is a huge deal to me.
Thanks again!
codesplice said:
Thanks for this upload. Downloading now
And I know people keep reciting "it's in the Market, get it there..."
It really helps me out that you uploaded this since I'm currently deployed in the desert and don't have reliable/affordable data access. 4.1MB that I don't have to download over the air is a huge deal to me.
Thanks again!
Click to expand...
Click to collapse
glad I could help
Here's recompiled APK for 2.1. It installs, but browser does not "see" it. Here's explanation why.
Android 2.2 has a new feature called com.google.android.feature.GOOGLE_PLUGIN. And Flash usesit to embed itself inside browser. So browser in 2.1 does not see plugin.
BUT!There's another thing inside - a permission called android.webkit.permission.PLUGIN. It is already used by Flash Lite on HTC devices. So my APK will work and replace Flash Lite. But I did not test, because I do own... Acer Liquid!
So! HTC users! Try this one! And if it will work instead of your flash lite - report. Your help will be used to port full-blown Flash to other 2.0 and 2.1 devices (yeah! 2.0 is also supported!).
View attachment flash_for_21.apk
Then...it's possible to port 2.2 browser?
I'm working on it...
I can't open the market app on 2.2!
Says its installed but open box is grayed out...can't open.
Rebooted...reflashed.
Anyone have a clue?
Thanks
(Went from KangoRama to full wipe to Paul's prerooted froyo.
You can't "open" flash, use the browser, go to a website with flash and it will work.
So this is the Avabox. original title i know
I put this to together back with the hero during some hard forums times in order to push further development with customizations. and it worked.
so here it is for the Evo devs. I set it up for windows but of course perl scripts run in linux so its universal. But if you want to learn/work on some customizations for the evo but you dont wanna dual boot linux or w/e here is something for you.
im hoping to see some good things soon any issues with this just comment or pm. good luck.
Avabox Download
What is it?
Avalaunchmods said:
So this is the Avabox. original title i know
I put this to together back with the hero during some hard forums times in order to push further development with customizations. and it worked.
so here it is for the Evo devs. I set it up for windows but of course perl scripts run in linux so its universal. But if you want to learn/work on some customizations for the evo but you dont wanna dual boot linux or w/e here is something for you.
im hoping to see some good things soon any issues with this just comment or pm. good luck.
Avabox Download
Click to expand...
Click to collapse
You are really doing us a favor. The Avabox's in the Hero forum were a life saver(but I lost the links to them).
Putting this in my Resources Guide. A must-have toolbox.
Decad3nce said:
You are really doing us a favor. The Avabox's in the Hero forum were a life saver(but I lost the links to them).
Putting this in my Resources Guide. A must-have toolbox.
Click to expand...
Click to collapse
good to hear. im staying busy so its hard to work on the evo. im honestly happy stock haha. but anyways yes lets keep this alive and get everyone in on some evo love
mrono said:
What is it?
Click to expand...
Click to collapse
its a compilation of scripts for windows to cook a rom and create/modify/extract/compile/unzip/deodex/sign/everything android 1.5 and up.
works with linux too.
Good timing. I'm here trying to remove yxplayer's trial / 2min time limit. Managed to decompile, edited smali files, recompile, sign. So far so good, worked as expected (re-mapping various functions to different buttons). Now gotta hunt down the code which actually triggers that 2min play limit, and with some luck, maybe the whole validate-the-serial-number routine
PS: was using only APKTool & Auto-Sign. Will check out the tools in Avabox and see if they will be useful.
This includes the installer for 64-bit ActivePerl. Here's the link for the 32-bit installer in case anyone needs it: http://downloads.activestate.com/Ac...ActivePerl-5.10.1.1007-MSWin32-x86-291969.msi
bump for life.
maybe a bump maybe not this is awesome is this the latest version? Oh stupid question? Someones gonna ask. this is great for unpacking boot.img signing zips everything to make your own rom. Wow even has a deodexer
This package is literally everything you need to make your own custom rom. So use it.
Thank you so much
I tried doing a search to see if anyone had the problem I am currently having, but I could not find anything (on the hero forums as well). So, I thought I would ask the community.
I am trying to deodex an apk. The program says that it deodexed it, but there is no classes.dex file in the apk. I am getting an error running it though. Here is the error:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: java.lang.RuntimeException: error while dumping fiel
ds
at org.jf.dexlib.Util.Deodexerant.sendMultilineComman d(Deodexerant.java:
241)
at org.jf.dexlib.Util.Deodexerant.access$200(Deodexer ant.java:44)
at org.jf.dexlib.Util.Deodexerant$ClassData.loadField s(Deodexerant.java:
521)
at org.jf.dexlib.Util.Deodexerant$ClassData.lookupFie ld(Deodexerant.java
:473)
at org.jf.dexlib.Util.Deodexerant.lookupField(Deodexe rant.java:142)
at org.jf.dexlib.Util.DeodexUtil.deodexInstruction(De odexUtil.java:566)
at org.jf.dexlib.Util.DeodexUtil.deodexerizeCode(Deod exUtil.java:205)
at org.jf.baksmali.Adaptors.MethodDefinition$MethodIt emList.generateMeth
odItemList(MethodDefinition.java:183)
at org.jf.baksmali.Adaptors.MethodDefinition.getMetho dItems(MethodDefini
tion.java:144)
at org.jf.baksmali.Adaptors.MethodDefinition.makeTemp late(MethodDefiniti
on.java:61)
at org.jf.baksmali.Adaptors.ClassDefinition.getDirect Methods(ClassDefini
tion.java:272)
at org.jf.baksmali.Adaptors.ClassDefinition.makeTempl ate(ClassDefinition
.java:74)
at org.jf.baksmali.baksmali.disassembleDexFile(baksma li.java:112)
at org.jf.baksmali.main.main(main.java:183)
Caused by: java.lang.RuntimeException: error while dumping fields
at org.jf.dexlib.Util.Deodexerant.sendMultilineComman d(Deodexerant.java:
232)
... 13 more
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.jf.dexlib.DexFile$2.placeAt(DexFile.java:733)
at org.jf.dexlib.DexFile.place(DexFile.java:608)
at org.jf.smali.main.main(main.java:177)
Any clues? Thanks in advance for any response and help you might be able to offer.
Could a complete nub download this and make a ROM? I've been interested in getting into development, but I have no clue where to start. I catch onto things quickly, and I'm willing to learn. I just don't know where to begin.
athanos said:
I tried doing a search to see if anyone had the problem I am currently having, but I could not find anything (on the hero forums as well). So, I thought I would ask the community.
I am trying to deodex an apk. The program says that it deodexed it, but there is no classes.dex file in the apk. I am getting an error running it though. Here is the error:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: java.lang.RuntimeException: error while dumping fiel
ds
at org.jf.dexlib.Util.Deodexerant.sendMultilineComman d(Deodexerant.java:
241)
at org.jf.dexlib.Util.Deodexerant.access$200(Deodexer ant.java:44)
at org.jf.dexlib.Util.Deodexerant$ClassData.loadField s(Deodexerant.java:
521)
at org.jf.dexlib.Util.Deodexerant$ClassData.lookupFie ld(Deodexerant.java
:473)
at org.jf.dexlib.Util.Deodexerant.lookupField(Deodexe rant.java:142)
at org.jf.dexlib.Util.DeodexUtil.deodexInstruction(De odexUtil.java:566)
at org.jf.dexlib.Util.DeodexUtil.deodexerizeCode(Deod exUtil.java:205)
at org.jf.baksmali.Adaptors.MethodDefinition$MethodIt emList.generateMeth
odItemList(MethodDefinition.java:183)
at org.jf.baksmali.Adaptors.MethodDefinition.getMetho dItems(MethodDefini
tion.java:144)
at org.jf.baksmali.Adaptors.MethodDefinition.makeTemp late(MethodDefiniti
on.java:61)
at org.jf.baksmali.Adaptors.ClassDefinition.getDirect Methods(ClassDefini
tion.java:272)
at org.jf.baksmali.Adaptors.ClassDefinition.makeTempl ate(ClassDefinition
.java:74)
at org.jf.baksmali.baksmali.disassembleDexFile(baksma li.java:112)
at org.jf.baksmali.main.main(main.java:183)
Caused by: java.lang.RuntimeException: error while dumping fields
at org.jf.dexlib.Util.Deodexerant.sendMultilineComman d(Deodexerant.java:
232)
... 13 more
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.jf.dexlib.DexFile$2.placeAt(DexFile.java:733)
at org.jf.dexlib.DexFile.place(DexFile.java:608)
at org.jf.smali.main.main(main.java:177)
Any clues? Thanks in advance for any response and help you might be able to offer.
Click to expand...
Click to collapse
What apk are you trying to deodex? Are you using the right BOOTCLASSPATH?
tjohnsonjr said:
What apk are you trying to deodex? Are you using the right BOOTCLASSPATH?
Click to expand...
Click to collapse
I'm a noob, so please forgive me. I am not sure about the BOOTCLASSPATH. I am trying to deodex htcmailwidgets.apk. I know there are already deodexed ones out there, but I wanted to deodex the one from the legend (it has a couple of options for the widget which are not able to be done with the standard mail widget) to use on my hero without changing to the Legend ROM. Hope that makes sense.
athanos said:
I'm a noob, so please forgive me. I am not sure about the BOOTCLASSPATH. I am trying to deodex htcmailwidgets.apk. I know there are already deodexed ones out there, but I wanted to deodex the one from the legend (it has a couple of options for the widget which are not able to be done with the standard mail widget) to use on my hero without changing to the Legend ROM. Hope that makes sense.
Click to expand...
Click to collapse
Sense bootclasspath is: core.jar:ext.jar:framework.jar:android.policy.jar:services.jar:com.htc.framework.jar:com.htc.android.pimlib.jar:com.htc.android.easopen.jar:com.scalado.util.ScaladoUtil.jar
I haven't used Avabox yet. I hope this helps until I can play around with this tonight.
athanos said:
Any clues? Thanks in advance for any response and help you might be able to offer.
Click to expand...
Click to collapse
That is a fairly old version of smali/baksmali. You really should either use smali/baksmali directly, or at least find a tool/script that has/uses an up to date version
JesusFreke said:
That is a fairly old version of smali/baksmali. You really should either use smali/baksmali directly, or at least find a tool/script that has/uses an up to date version
Click to expand...
Click to collapse
THE JesusFreke!!!?! Good reading ya,the original Android dev, much respect.
Sent telepathically via my Evo.
-_-
May not ever use this personally, but thanks for this.
Sent from my PC36100 using XDA App
I may have completely misread the OP, and forgive me if I did, but aren't there supposed to perl scripts in the package that would allow me to use this in Linux? I am not seeing anything but .exe and .bat files. I dont use Windows, and wouldnt trust wine to do development work. Is there another version of this floating around I can use?
Edit: I found the code repository http://code.google.com/p/smali/
Edit2: NM. I finally opened my eyes and found the perl scripts in Boot Scripts. The above code repo is the updated version of Smali.
Looking to unpack the data.img files that are created when you do a backup of your phone. Not seeing that this will work - do you have ideas on how?
Here is something I put together to enable arabic on any device without changing any linked library in /system/lib which means it'll work cross-devices. This means that your android will be able to connect arabic letters properly to enable read/writing. Note: this will enable shaping for all android menu's and for writing, this will not fix the browser's problem. for that, we need to compile individual libwebcore.so files for each ROM. so we're out of luck there. You can get Persian Browser or the new Firefox browser to fix this problem.
Requirements:
1. your rom has to be deodexed. (if you have /system/framework/framework.odex, this will NOT work).
2. you must be rooted !
3. your android must be version 2.2, 2.2.1 or 2.3 (not tested on 2.3 yet but should work).
Steps:
1. Pull framework.jar from your phone's /system/framework
1. Download the file from the following link:
http://blog.devasque.com/?page_id=11
2. Extract it somewhere
3. Put your phone's framework.jar inside of the extracted folder's framework folder.
4. Click on commands.exe and wait ! eventually you'll get a framework.jar inside subfolder "generated". copy that back to your phone in /system/framework and restart.
Note: if you get a bunch of FCs after restarting, you'll need to factory reset your device.
this should work. It was tested successfully on a bunch of deodexed roms for the samsung galaxy S, and two roms on the G2.
Credits:
I got the script files from iAndroid, a hebrew patching thread that does something very similar to what this does. so hats off to the great minds over there.
The arabic patching files were compiled from source from Y6b's github. So thanks to his great work as well.
Finally arabic is supported across all devices.
hi madmack ! thank a lot
this is a very useful thread.
i test it on deodexed galaxy s (wxJS5 rom) and it worked almost flawlessly.now i have some question. please help me. you are only guy i know to answer these questions.this patch (mod) has some problem to render persian/farsi characters correctly.i am a java programmer and can edit java files and fix this errors.the only problem i face is : how can i apply my modification and (re)compile the source again ? because this files (framework.jar) are in java , can i use eclipse IDE to compile ? i already made and developed some programs and aaps for android os using eclipse . please if you have any ( just any ) information , please help me . again i have no any source and reference to ask these question .this is not a first time for me to ask a guy this question but nobody yet give me useful answer .
hamedpc007 said:
hi madmack ! thank a lot
this is a very useful thread.
i test it on deodexed galaxy s (wxJS5 rom) and it worked almost flawlessly.now i have some question. please help me. you are only guy i know to answer these questions.this patch (mod) has some problem to render persian/farsi characters correctly.i am a java programmer and can edit java files and fix this errors.the only problem i face is : how can i apply my modification and (re)compile the source again ? because this files (framework.jar) are in java , can i use eclipse IDE to compile ? i already made and developed some programs and aaps for android os using eclipse . please if you have any ( just any ) information , please help me . again i have no any source and reference to ask these question .this is not a first time for me to ask a guy this question but nobody yet give me useful answer .
Click to expand...
Click to collapse
hey hamedpc. didn't think i would get any reply anytime soon here, lol.
you'll need to learn how to compile android from source, then apply patches etc.. this is not something i am willing or able to discuss on a reply post here so you got some research to do before you can attempt that.
anyways, if you want to know which files you should look into, simply look at the subfolder "files/froyo" and look at all the .smali files. Then, find the equivalent in the android source but they should be .java. These are the files that are patched.
sorry for not being more helpful
so if i have framework.odex should i just delete it and move on?
jaguar4002 said:
so if i have framework.odex should i just delete it and move on?
Click to expand...
Click to collapse
you can't do that. you'll need to get a deodexed ROM or google around for how to deodex it yourself.
I'm using the leaked 2.2 rom for the epic. Is there any rom. That u recommend?
Sent from my SPH-D700 using XDA App
jaguar4002 said:
I'm using the leaked 2.2 rom for the epic. Is there any rom. That u recommend?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
I use an I9000, so not sure what options you guys have for the Epic.
But I'm pretty sure that a lot of custom roms are out there that are (1) Froyo and (2) deodexed. Almost all custom roms are deodexed.
this isnt working on the epic. i did everything was suppose to be done.
i have arabic but the letters are disconnected. which is nothing new from froyo update.
am i doing anything wrong?
jaguar4002 said:
this isnt working on the epic. i did everything was suppose to be done.
i have arabic but the letters are disconnected. which is nothing new from froyo update.
am i doing anything wrong?
Click to expand...
Click to collapse
Yea, most likely you are.
It really should work with all 2.2 and 2.2.1 roms. specially the samsung ones. I tried it on JS3, Darky's, JS5 and Doc's ROM for the I9000 and it works.
Just make sure you got a deodexed rom. (no framework.odex file), and also verify that the generated framework.jar is actually bigger than the original framework.jar by about 1MB. (sometimes the process stalls for some reason, so you'll have to redo it if the size is not bigger by 1MB).
im using this rom . http://forum.xda-developers.com/showthread.php?t=963845
and it is deodexed.
it shows the letters but they arent connected. just like how i was before doing all this.
And yes the size was larger.
i would love if u can pm me ur yahoo or something so we can go over it.. if i get this thing working, my phone would be PERFECT!!
and thanks for ur quick responses!
bro nevermind!
i wasnt enabled root access for my file manager, thats y i wasnt able to paste the net .jar file.
it works great!! i love u to death.. no homo lol
but i noticed FB is kinda laggy when theres arabic letters.
just saying.. dont really care.
ZT-180
I am using the ZT-180 with 2.2 but this didn't work for me do you have any suggestion for me
vitonline said:
I am using the ZT-180 with 2.2 but this didn't work for me do you have any suggestion for me
Click to expand...
Click to collapse
if you know how to use logcat, post it here and I can have a look at it.
I am new at this if you can explean more
Thanks
vitonline said:
I am new at this if you can explean more
Thanks
Click to expand...
Click to collapse
this is probably why you couldn't get it working on your device.
this topic is a little advance, and i really don't recommend applying it if you're not familiar with rooting, replacing system files and recovery.
there are many steps you need to learn to be able to apply this patch, which is beyond the topic of this thread. sorry but I can't help you with that.
madmack said:
this is probably why you couldn't get it working on your device.
this topic is a little advance, and i really don't recommend applying it if you're not familiar with rooting, replacing system files and recovery.
there are many steps you need to learn to be able to apply this patch, which is beyond the topic of this thread. sorry but I can't help you with that.
Click to expand...
Click to collapse
I already rooted my ZT-180 and I apply the steps but still the Arabic
vitonline said:
I already rooted my ZT-180 and I apply the steps but still the Arabic
Click to expand...
Click to collapse
Read around.. its out there.
Its not too difficult.
Sent from my SPH-D700 using XDA App
@madmack
i tried your method on a rom for my htc hero and it worked just like you said, except for the web browser.. is there a way to patch libwebcore.so so that it could also support arabic?!
jaikat said:
@madmack
i tried your method on a rom for my htc hero and it worked just like you said, except for the web browser.. is there a way to patch libwebcore.so so that it could also support arabic?!
Click to expand...
Click to collapse
unfortunately not. these .so libraries require recompiling of the source code.
the patch for libwebcore is up on my github account (same nickname). If you get your hands on your source code for the webcore libraries. Then you can try the patch yourself
I've already patched libwebcore.so for a 2.2.1 ROM for the Galaxy S I9000. It worked pretty well.
that was quick
madmack said:
unfortunately not. these .so libraries require recompiling of the source code.
the patch for libwebcore is up on my github account (same nickname). If you get your hands on your source code for the webcore libraries. Then you can try the patch yourself
I've already patched libwebcore.so for a 2.2.1 ROM for the Galaxy S I9000. It worked pretty well.
Click to expand...
Click to collapse
i'll look into it, although i must say i don't have any experience on compiling from source, but i'm willing to learn...
great work anyway, and thank you.