Deodexing I9100XWKE7 !!? - Galaxy S II Q&A, Help & Troubleshooting

Hello there
I am trying to deodexing the latest version "I9100XWKE7" but I failed.
I can deodex every thing except these three files:
Email.apk
Phone.apk
MobilePrint.apk
I tried every thing that I know but i did not deodex it fully also when I ignore deodexing these three files and copy the "app" & "frame" files i keep having force close.
Help please

Related

Help from a dev needed. Maybe a something new for Android/smartphone.

Hi,
I find it impossible to push an apk and to get it working. Here's the story short.
On the Chinese ROM for SGS2 there's an option for the alarm to turn on the phone- basically set the alarm, turn off the phone completely and the alarm will turn on the device ( bootstrap the RTC) and sound the alarm. I have tested myself and it runs ok UNDER the Chinese rom.
I have pulled the ClockPackage.apk and .odex direclty from the factorifs.img by transforming it to ext4 and mounting it with Diskinternals linux reader.
However, I cannot replace it under EU stock rom.
1. I have tried via adb/root explorer to copy both files in /system/app + reboot. when I do that it doesn't even installs. Dalvik wipe doesn't help.
2.I have tried to copy only the chinese Clockpackage.apk and keep the original odex file. The clock icon appears in app folder but FCs when launch it.
Current work: I am trying to deodex the apk [ via baksmali -x xxx.odex] but it's giving me hard time, maybe something with the frame work.
I have posted this in Samsung Galaxy s2 forum under Q&A but it seems no one can help me. see here http://forum.xda-developers.com/showthread.php?t=1226869
I attached the files I am trying to push and the original apk as it is in the stock EU rom.
https://rapidshare.com/files/1045656918/CHNalarm.zip
https://rapidshare.com/files/2916116246/StockAlarm.zip
Here is a logcat of the forceclose
http://pastebin.com/9dWPySnc
some more details:
I've deodexed the apk using the original framework from the Chinese ROM.
However using :
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:com.samsung.device.jar:com.yamaha.android.media.jar:core.jar:core-junit.jar:ext.jar:framework.jar:ime.jar:input.jar:java.awt.jar:javax.obex.jar:libvtmanagerjar.jar:monkey.jarm.jar:sec_feature.jar:seccamera.jar:sechardware.jar:secmediarecorder.jar:services.jar:sqlite-jdbc.jar:svc.jar:twframework.jar -x ClockPackage.odex
throws me an error about com.google.android.maps.jar since it's not implemented in the chinese framework.
I have removed this policy and built the classes without invoking it.
Could this be at fault?
Also, can I use the framework from the eu roms to deodex the apk from the chinese?
Any thoughts?

[Q] Question about odexing and deodexing etc.

I have an HTC Explorer, rooted on stock ROM (and I don't want to install a custom ROM). As it is a stock ROM, all the framework jars are odexed. Most system apps are also odexed. I am currently in the process of applying a little modification to framework.jar and SystemUI.apk. I have deodexed versions of both files (manually deodexed framework.jar, SystemUI.apk I downloaded deodexed).
Basically my question is this: If I replace the stock versions of these files with the deodexed files, will that cause problems? Do I need to re-odex them? Do I need to delete the corresponding .odex files from my phone for it to work (by my understanding, classes.dex from inside the jar/apk will be ignored if there is an odex file)?
[I have already replaced SystemUI.apk with the deodexed version, and the phone functions fine, but I have not deleted the .odex and I don't think there are any changes to the apk, so I don't know if the deodexed version is being "used" so to speak. I have also been told that deodexing just one jar from the framework folder will prevent the phone from booting, which I would rather avoid]

[Q] Help about the LIB files and framework.jar

Hello everyone
I am facing a serious problem, if fixed, then it will be a big acomblishment
I am trying to make RTL patches (for arabic,hebrew) on odexed ROMs. The problem is I couldn't apply the patch ( which is made for deodex only) to these ROMs but just in one case: Deodex the whole ROM using kitchen then applying the patch then reodex the whole ROM using a tool by TearsDontFalls. That way it worked.( mentioning that the patch got files of the /lib folder and these files are: libandroid_runtime.so,libwebcore.so, and new generated files lib__bcore,libicuuc-arabic.so
but the Problem that if I want to deodex just a specific file (in my case framework.jar) and reodex again using the guide from this link , The patch works fine in the apps, but some apps are not working. The browser open then after 2 seconds force close, and the Samsung keyboard doesn't appear, but instead a graphical image that can be pressed, then the keys apear and just writes it!!!!!!
In my opinion, the problem is related to these Lib files which seems share a work with the framework file (.odex or .jar)
If anyone solved this for me, then you will made my day and be my hero
note: I am using i9000 with cutom ROM GamerzRom v11 jw5, I did everything correctly and tried it many many times!!
thanks alot.

[Q] Problem while deodexing Stock Rom GT-I8260

Hello to everyone
I have a problem with my GT-I8260(Galaxy Core) while deodexing its stock rom
Every time I start the deodex process It pops up an error for an odex file then I delete the file but the real problem here is that It pops up errors for ALL the odex files
Can someone help me please?

Questions regarding latest 6.0.1 ROMs

I didn't want to hijack/spam any of the established threads, but I'm hoping some of the people working with roms will be kind enough to respond to me here.
On clean MM installed rom, you'll find the following folders :
- /system/odex.app
- /system/odex.priv-app
- /system/odex.framework
They all contain .odex files for respective folders, and when compared to the ones included in each app's folder, they are the exact same, what are these folders for ?
There are also files named odex.app.sqsh (priv-app and framework too), so are all these files ok to delete ?
One more thing, if you go into /data/app you'll find all your apps odexed there, why ? is this some kind of forced action by MM ? can these files be safely deleted ?
I'm asking these question because I'm getting random reboots on my ROM, and the Z2_fixbootloop zip posted in other threads doesn't work for me (I'm on a 6502 model, so my sim is not detected if I flash this file), I'm going to restore all the files I've removed to debloat the rom and see if the random reboots disappear, and then continue from there, but meanwhile any help from those who know is much appreciated.
Edit 01 : after a bit of googling, I extracted the sqsh files and they contains the exact same odex files from the odex.**** folders or the ones included with the apps themselves, so we have 3 copies of odex files in the rom ????

Categories

Resources