yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] drellisdee:
Help deodexing sense rom

I'm trying to deodex the last eris leaked rom http://www.megaupload.com/?d=A3PKRSPL.

Using the sense script it doesn't deodex core.odex, framework.odex, ext.odex in framework and bluetooth.odex, htclocationpicker.odex, and htcfootprints.odex in app.

I manually deodexed those jars using :

java -Xmx512m -jar baksmali-1.2.2.jar x- (odexname).odex
java -jar smali-1.2.2.jar out -o classes.dex

Using any of the htc sense boothpath jars with a -c switch caused errors on those 3 jars.

I then used 7zip gui to insert the classes.dex into the jar.

The apps I had to just add a missing class to deodex.

I have checked all framework and apps to make sure I have a classes.dex in them and I do except for framework-res.apk that didn't have an odex.

Im using dsixda's kitchen and it build fine for my device. The only changes I made were deodexing the rom and it will not boot. It loads the boot splashes, carrier splash and then vibrates then reboots. I made sure settings.apk and framework-res.apk were not zipaligned as I've read it can cause a no boot. The point that it vibrates and reboots is right before the lockscreen would have loaded.

bootclasspath is here:

BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/com.htc.framework.jar:/system/framework/com.htc.android.pimlib.jar:/system/framework/com.htc.android.easopen.jar:/system/framework/com.scalado.util.ScaladoUtil.jar
[G1 Android Development] drellisdee:
Been a week and still looking for help on above post
[G1 Android Development] Daneshm90:
K I've updated my script. Now theres no sense option. Just an option where u can put in a custom bootclasspath. So this is the steps i took to deodex ur rom tht u linked, didnt get any errors so assumed its fine.

Placed odexed framework in framework folder, ran the script

Selected option 2 and put

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

Now took the left over, framework-res.apk and placed it in deodexed_jar, and placed the non de-odexed apk from framework folder and placed it in apk and ran the script, with same classpath.

then took the deodexed apk and placed in deodexed_jar folder, now placed all the odexed apks n placed them inside apk folder and ran the script with same classpath

I added another feature where if a file has errors while deodexing, its left behind, so u'll know wht files had errors.
[G1 Android Development] j_r0dd:
thanks for the error detecting feature! now i don't have to stare at command prompt through the whole process looking for errors. Also, i don't believe it is necessary to specify core.jar:ext.jar:framework.jar:android.policy.jar: services.jar when deodexing other roms with special bootclass paths, since baksmali looks for these by default.
[G1 Android Development] Daneshm90:
Yea i know, i just did it cuz i remember reading this in his description :

So correct, its not needed for most sense roms, but hey why not cover all bases ;) Let me know of other features you'd like to see.
[G1 Android Development] j_r0dd:
this script has been perfected now! a linux version would be great, but that's what VirtualBox is for!:D
[G1 Android Development] Daneshm90:
Lol trust me ur not the first to want a linux version. Theres this script and recovery changer both of which ppl want in linux version, im not experienced in linux enough to do it but this xda member farmatito is, he brought apk manager over to linux and he did an excellent job with it. Heres to hoping he read this :D
[G1 Android Development] troyboytn:
getting error....cant find the file Deodexer.odex cant figure out what the problem might be
[G1 Android Development] zach.xtr:
Deodexed Eris ROM

Wanted to say thanks for such a wonderful tool and report back that I have been able to fully deodex an Eris ROM!

The only issues I had with the process where the Bluetooth.odex, HtcLocationServices.odex, and HtcFootprints.odex did not work with the auto script similar to drellisdee (even after adding javax.obex.jar for Bluetooth and com.google.android.maps.jar for HtcLocationServices and HtcFootprints to the bootclasspath). I was able to manually deodex them.

Interestingly once I built the ROM and flashed it to my phone HTC_IME.apk would force close so I had to manually deodex this one as well and adb pushed it to the phone which resolved the issue.

Thanks again for such a cool time saving tool! :cool:
[G1 Android Development] snakebitezz:
link broke

this file does not exist according to mediafire could you please upload elsewhere,, or maybe reupload thanks!!!

http://www.multiupload.com/7U5GOKN2PQ is an alternative on multiupload thanks @shaydlife
[G1 Android Development] Daneshm90:
Try again, the link works fine for me.

-------------------------------------

Sent via the XDA Tapatalk App
[G1 Android Development] jcarrz1:
so what's the current working classpath for sense roms? is it that long gibberish you posted earlier when helping the droid eris guy, or is it just the one in the op?
[G1 Android Development] Daneshm90:
Gimme ur boot.img n ill tell u ;) Otherwise the standard one 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

Its always better to double check inside ur init.rc
[G1 Android Development] jcarrz1:
thanks a bunch, i got it tho. and super-quick response. I'm deodexing the HTC Aria RUU. Exciting stuff! gotta see what's inside. It's not done yet.
[G1 Android Development] jcarrz1:
Is this normal?

Is this normal?

Optimizing framework: services...

7-Zip (A) 4.65 Copyright (c) 1999-2009 Igor Pavlov 2009-02-03

Processing archive: C:\Users\SciencePro\Desktop\Deodexer_2.0\framework\services.
jar

Extracting META-INF
Extracting META-INF\MANIFEST.MF

Everything is Ok

Folders: 1
Files: 1
Size: 71
Compressed: 345
Deodexing JAR...
Error while disassembling method Lcom/android/server/ConnectivityService;-><init
>(Landroid/content/Context;)V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: class Lcom/htc/connectivity/Dum
myStateTracker; cannot be resolved.
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.unresolvedVa
lidationException(ClassPath.java:535)
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.getClassDept
h(ClassPath.java:543)
at org.jf.dexlib.Code.Analysis.ClassPath.getCommonSuperclass(ClassPath.j
ava:383)
at org.jf.dexlib.Code.Analysis.RegisterType.merge(RegisterType.java:275)

at org.jf.dexlib.Code.Analysis.AnalyzedInstruction.mergeRegister(Analyze
dInstruction.java:185)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.propagateRegisterToSuccess
ors(MethodAnalyzer.java:444)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setPostRegisterTypeAndProp
agateChanges(MethodAnalyzer.java:424)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInvokeDirectCommon(
MethodAnalyzer.java:2937)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInvokeDirectRange(M
ethodAnalyzer.java:2896)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:825)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:208)
at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMetho
dItems(MethodDefinition.java:351)
at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefini
tion.java:290)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:130)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:322)
at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefi
nition.java:291)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:135)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:187)
at org.jf.baksmali.main.main(main.java:278)
opcode: invoke-direct/range
CodeAddress: 721
Method: Lcom/android/server/ConnectivityService;-><init>(Landroid/content/Contex
t;)V

Optimizing framework: svc...

7-Zip (A) 4.65 Copyright (c) 1999-2009 Igor Pavlov 2009-02-03

Processing archive: C:\Users\SciencePro\Desktop\Deodexer_2.0\framework\svc.jar

Extracting META-INF
Extracting META-INF\MANIFEST.MF

Everything is Ok

Folders: 1
Files: 1
Size: 71
Compressed: 345
Deodexing JAR...

7-Zip (A) 4.65 Copyright (c) 1999-2009 Igor Pavlov 2009-02-03
Scanning

Creating archive C:\Users\SciencePro\Desktop\Deodexer_2.0\deodexed_JAR\svc.jar

Compressing classes.dex
Compressing META-INF\MANIFEST.MF

Everything is Ok
Cleaning up...
svc framework optimized...

That's just an example. the following weren't optimized:

Uploaded with ImageShack.us

and here's the boot.img: http://www.mediafire.com/file/0xz5kfndxwk/aria-boot.img
[G1 Android Development] Daneshm90:
The leftovers(as in the ones that caused errors) will be left in which ever folder u put em in, so they wont be transfered over to deodexed_blah blah. That error is not normal, imma try to take a shot at deodexing ur dump.
[G1 Android Development] jcarrz1:
I actually had to extract the ruu... to save you some time, here's a link to the system img that I uploaded (check previous post of mine for boot link) http://www.mediafire.com/file/x3mhun...ria-system.img
[G1 Android Development] jcarrz1:
ok well i'm officially a douche... I didn't get that you pretty much NEED to do both the apps and framework at the same time... lol i'm redoing the whole thing.
[G1 Android Development] Daneshm90:
Ugh only com.htc.rss.jar is giving me troubles, the rest of the framework is deodexed.
[G1 Android Development] jcarrz1:
mgwz.dll? lol but that's just for zipalign i think.... and yea, htc.rss is the only one troubling for me as well

what bootclasspath did you use?
[G1 Android Development] Daneshm90:
lol wht do u mean mgwz.dll ? and wow the system/apps are taking long lol.:rolleyes:
[G1 Android Development] jcarrz1:
um it can't deodex the apps because it says that dll is missing... what bootclasspath did you use?
[G1 Android Development] Daneshm90:
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

the dll is cuz its zipaligning the apks as they're being deodexed. If dont want them to b zipaligned, just remove it from deoapk.bat *accordingly*
[G1 Android Development] jcarrz1:
yes, that's what I did. I'll run coolbho3000's aptopt script later. The classpath you specified leaves a lot more behind than just com.htc.rss... but I did those manually (idk if they'll work though.)
[G1 Android Development] jcarrz1:
have you sorted out the rss framework yet? if so, can you upload the framework folder somewhere for me... This is really difficult to figure out.

Thanks for any help. IF i release my rom at all, and with these deodexed frameworks, I'll be sure to give you HUGE credit/props :)
[G1 Android Development] jcarrz1:
I found this... might it help?

http://xdaforums.com/showthread.php?t=667818
[G1 Android Development] Daneshm90:
K so besides rss.apk/odex and com.htc.rss.jar/odex all other framework/app is deodexed. If u've already accomplished what i have then no need for me to upload, otherwise let me know. Im quite certain the system will boot fine without the two, i just cannot find the classpath its lookin for, i even included in the classpath all possible jar's :(
[G1 Android Development] jcarrz1:
i meant this, sorry.

I'm not too sure about what I manually did with services.jar. Also, did you have any trouble with HtcLocationPicker.apk, HtcFootprints.apk, and RSS.apk(i assume this one is related to the framework)??
[G1 Android Development] Daneshm90:
Hmm i do have ubuntu on virtualbox let me try deodexing there then, wish me luck ;)
[G1 Android Development] jcarrz1:
*wishes you luck* ;)
[G1 Android Development] j_r0dd:
you might just need to throw in the -i switch. i had to do that with the blur-services.apk a little while back. it will still throw errors but it will deodex anyways. the phone will not boot unless all the jar's have been deodexed
[G1 Android Development] jcarrz1:
can you upload regardless?

I'm not too sure about what I manually did with services.jar. Also, did you have any trouble with HtcLocationPicker.apk, HtcFootprints.apk, and RSS.apk(i assume this one is related to the framework)??
[G1 Android Development] jcarrz1:
Hm... that's annoying :P

Are you talking to me about the HtcFootprints.apk, HtcLocationPicker.apk, and RSS.apk, or to daneshm90 about the rss framework?
[G1 Android Development] j_r0dd:
if he tried adding every jar to the bootclass path and it still gave errors then those apk's jars may have dependency elsewhere like possibly the cloud site it is linked to. just by the names of the apk's and jar's i believe that to be the case here
[G1 Android Development] Daneshm90:
Still same error :( THis damn class it cant find

Lcom/sun/msv/datatype/SerializationContext
[G1 Android Development] j_r0dd:
actually the switch is -I for (--ignore-errors)

http://code.google.com/p/smali/issues/detail?id=20&can=1
[G1 Android Development] Daneshm90:
Lol tht works but whts the successrate ? :D
[Touch Diamond, MDA Compact IV General] sunnypants:
Hi

I have searched the forums and google, but have not seen any apps or threads about people talking about how the call history doesn't display the time of a call once it's a new day. Could anyone point me to a direction to modify this setting?

Thanks.
[Hero CDMA Themes and Apps] mkeyslehman:
Special thx to Damage and his unnamed leak for the official 2.1 release! VVM was business-necessary for me (ability to forward voicemails).

This is a Port of Ratcom's GSM version; all credit goes to him. Those interested in theme development, look up Ratcom and check his sig.

(3-28-10) Rosie no longer includes buttons; instead they're located under Framework in com.htc.resources.apk. So editing Rosie requires you to update both these APKs. Therefore they're both in the ZIP, which makes for a big file.

Clear Button Rosie

Fade Button Rosie

Special thx to all those at XDA making it possible for us to better use our phones. Thanks!
[Hero CDMA Themes and Apps] qngds:
many thanks! Love the clear clock, thought I would have to say goodbye to it after flashing fresh 1.0 :)
[Hero CDMA Themes and Apps] mkeyslehman:
This is the theme I personally use and plan to keep it up-to-date for as long as Flipz wants to pump out updates.

I do have a day job though:p
[Hero CDMA Themes and Apps] lv2bll:
Can you try to port over a smaller home like in the beautiful home app(4x1 instead of 4x2)
[Hero CDMA Themes and Apps] red250:
sweet, thanks a million.

quick question, did this change?

installed fresh 1 and i still have the wallpaper i set for the background, installed the clear theme as well. tried this command and it keeps saying file or directory doesn't exist.
[Hero CDMA Themes and Apps] whatsleft4her:
just sucks that the clear notify makes you lose the new task bar and puts the old one back on.
[Hero CDMA Themes and Apps] ebaDamagePlan:
I don't understand the point of the clear lock screen included here since Flip put out lock removal patch. I'm not complaining, just curious of the difference. And since the lock screen is totally transparent with Fresh 1.0 + delock, is there a way to remove the clock from the lock screen since a lot of people use the HTC Clock widget anyway?

I'm using the keyboard, widgets and buttons. I really like how just the word Phone and just the visible parts of the other two buttons light up now, that's a really nice touch. I'd use the clear notification but I like the new taskbar icons, if there's a way to get both the clear notification pane and the new icons I'd use it. Again, I love your work!
[Hero CDMA Themes and Apps] david_ag:
Amazing JOB!! Really love it. Thank you a lot for this!!
[Hero CDMA Themes and Apps] mkeyslehman:
I've tried to split everything out as much as possible, but with ZIP updates, you update the entire APK, not bits and pieces. In this case, both the notifications and taskbar graphics are located in the same APK (framework-res). So it's all or nothing.

All Clear downloads are labeled with the APK it replaces to help the community know what it is the ZIP is actually changing.

I haven't even looked for it yet, but I'm guessing Tsowen's taskbar is a GSM theme that Flipz started to port over. I also know Flipz needs a break and mentioned something about working in the kitchen. :p If it is a port, I don't mind looking at it, but it would have to wait 'till next week, as things get BUSY starting today.

The difference: this is for those who have DE-Freshed. This lockscreen offers a separate lockscreen wallpaper that has no arc or other graphics on it, just your wireless carrier and the time. You don't see your homescreen or HTC Clock widget at all.

As for removing the clock, well, I have the habit of giving out almost-truths:D Then Flipz yells at me and sets everyone straight. I'll try to explain with what I think I currently know, and then the pros will (hopefully) come by and tell you how it really works.

Visuals are controlled by binary XML files within an APK. You can't just open and edit them, they're not regular XML. There's a java "printer" that will convert them to TXT so that they can be edited, but there's no known way to re-package them again. Unless you're editing source code not to look for certain files, you can't just delete XML files either.

What that means for us - Removing the clock would be a specific feature a ROM cooker would have to change the source code for. That's waaaay past what a simple graphics hobby jockey like myself is capable of:(

Glad you like it! The original Clear-button Rosie was a quick hack-job to remove the "at rest" buttons. I think these hold true to the theme much better.
[Hero CDMA Themes and Apps] mkeyslehman:
Flipz corrected me when I quoted that from the GSM theme forum. There's a backup wallpaper as well, so to "remove" your lock screen to view the homescreen beneath takes a bit more work.

As per my OP, I would like to look into this, as there seem to be enough people interested. Ideally there would be a ZIP update package that modifies things to the point that you'd be able to flash Evil's lockscreen (or whatever) and still see your homescreen beneath. I'd like to think this is possible, but that requires time to play around
[Hero CDMA Themes and Apps] red250:
OK, that's cool. I'd actually been wanting to wipe my phone and start from scratch so I went ahead and ruu'd back and started over. Installed fresh 1 and your clears and got the clear, no background lockscreen.

Thanks for your work.
[Hero CDMA Themes and Apps] justinisyoung:
hmm... just wondering...

but what happened to the cool selection icon/picture?

like, when you scroll over something or select a program, in regular android it was a green square/rectangle.

but in the last clear theme for fresh .7, it was like, a fading circle

did you take that out? :O

oh, and btw, i LOVE this theme. thanks sooo much for putting it on fresh 1.0 so fast! :D
[Hero CDMA Themes and Apps] red250:
I'm not sure who to ask this but somewhere between running .6 fresh and .7 clears, and the 1 fresh with 1 clears, I lost a screen animation.

I was running .6 fresh with the original ratcom's clears and the other optimization pack, then when the .7 clears were made, i put that on and afterwards I had an animation where it instead of "flashing" between screens, it would "go into" the screen. After flashing the fresh 1 and the new clears, the animation is gone. But what little I know about the themes, I wouldn't think they would have any effect on the animations, that should be in the rom, correct? But it's weird that they didn't change until I put the .7 clears over the .6 fresh rom.

Edit: nevermind, I figured it out, the transition animation speed was turned off.
[Hero CDMA Themes and Apps] mkeyslehman:
Heh, oops! I guess I didn't package it in. No this wasn't intentional, I just missed it.
[Hero CDMA Themes and Apps] justinisyoung:
do you think you could repackage that in? i really liked it, it was a nice additional touch that really blended in with the theme and it looked good too.

:D

thanks for all your work!
[Hero CDMA Themes and Apps] nebenezer:
I'm sorry if this has been answered already:

Fresh 1.0, used the clear lock .zip and thought it was totally cool. I was playing with using a lock paper again and thought I could just run the .zip again to remove a lockscreen paper but it didn't work, my last lockscreen image is still there. There is not a "lockscreen" folder in /system/etc/

Any advice on how I can get back to having an invisible lockscreen image?

Thanks

*edit - again, I'm sorry if this has been covered. I just tried running delock_1.0.zip again with no result. I am guessing the invisible lock screen is part of fresh itself...

*edit #2 - I just reread this thread and realized how unobservant I am. A week ago I had zero exposure to Android, my head hurts from learning so much in such a short time. Thank you all for your work and patience with the noobs. I think its time I go hit a few "donate" buttons...
[Hero CDMA Themes and Apps] mkeyslehman:
There's a few issues on the Fresh 1.0 topic that reference this, and Flipz posted about it directly. It appears that if you had your own wallpaper, it caches it away someplace. Flipz plans on addressing it in the future.

I was hoping to look at the lockscreen stuff but haven't had the time yet. 'Tis the season for a bazillion things going on.
[Hero CDMA Themes and Apps] nebenezer:
You're not kidding! This may sound a little over dramatic but my perception of Android so far is it's revolutionary. I am absolutely amazed by what these devices are capable of.

Thanks again guys!
[Hero CDMA Themes and Apps] VinceOB:
How do you install these? I just rooted and installed Fresh on my Hero, but not sure how to install these themes. Do I boot into recovery and apply from SD card?
[Hero CDMA Themes and Apps] mkeyslehman:
Yup, just like a ROM. Save the ZIP on your sdcard, then boot to recovery: "Choose ZIP" and confirm.

I don't think we've had any issues with 1.0, but it should go without saying to do your Nandroid backups first!
[Hero CDMA Themes and Apps] VinceOB:
Perfect! Thats what I figured...Thanks for clarifying that. :cool:
[Hero CDMA Themes and Apps] ElAguila:
If you have the time could you add that as a separate zip? Also is there any way to have the clear notification without losing the fresh taskbar? This is my first time to use the clear theme and I really like it. Thanks for you time and effort!:D
[Hero CDMA Themes and Apps] nebenezer:
I just read that someone removed their lockscreen paper by removing the 2 files in /data/etc/lockscreen/ anyone else try this? Anyone brave enough to try it?

No?

Ok, here goes nothing ;)

*edit - sorry! It's actually data/misc/lockscreen
[Hero CDMA Themes and Apps] thedudejdog:
just delete all of them, i did it's just that easy. the files are basically just a backup of whatever picture you put up on your lock-screen. that way if you delete the picture off your sd card then you won't lose the lock-screen.
[Hero CDMA Themes and Apps] nebenezer:
Sweet-ass-sweet! It worked!

The lock image didn't disappear until after rebooting but sure enough it did go away. Then I set another and the files I rm'd reappeared, so cool!
[Hero CDMA Themes and Apps] iTouch24:
and how do u remove a clear change if u dont want to complete... example widgets one?
[Hero CDMA Themes and Apps] thedudejdog:
i haven't tried this but...

i would start by unzipping the fresh 1.0 rom on my computer then pull whatever htc widget you wanted out of that, then push it to your phone, then install it. its just a guess.

someone correct me if i'm wrong
[Hero CDMA Themes and Apps] jah8551:
Would it be possible to give the top bar the same look as the fade button rosie?
[Hero CDMA Themes and Apps] iTouch24:
I meant , I installed the clear widget , now how do I remove ?