[Galaxy S II Themes and Apps] daniello8:
I already tried my patched files from my S4 (i9505). Regrettably it didn't work - as it never stopped "connecting". Same thing when I patch the original S4 files .. it patches well but it doesn't work. I assume there are some libraries required in the background that simply don't match. But it may also have been a system mismatch because my S4 has 4.4.2 on it while S4 Mini runs 4.2.2 .. I simply don't know.

Two other thoughts: I don't have root adb because I am using stock kernel but the phone is rooted. And I have odex files (S4 is deodexed) .. possibly one of these are also not good for the patch.

Possibly someone can provide patched Samsung TW files (SecExchange, SecEmail_J) for 4.2.2 that I can give a try?

Edit: I tried to deodex (not really knowing much about deodexing):

WELCOME!

Deodexing apk..

Compression=5

API=17

apks\SecEmail_J.odex

1 Datei(en) kopiert

UNEXPECTED TOP-LEVEL EXCEPTION:

java.lang.NullPointerException

at org.jf.dexlib.Util.Utf8Utils.escapeString(Utf8Utils.java:231)

at org.jf.dexlib.StringDataItem.getConciseIdentity(StringDataItem.java:121)

at org.jf.dexlib.Item.addExceptionContext(Item.java:177)

at org.jf.dexlib.Item.readFrom(Item.java:79)

at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)

at org.jf.dexlib.Section.readFrom(Section.java:143)

at org.jf.dexlib.DexFile.<init>(DexFile.java:431)

at org.jf.baksmali.main.main(main.java:280)

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:778)

at org.jf.dexlib.DexFile.place(DexFile.java:659)

at org.jf.smali.main.fixInstructions(main.java:268)

at org.jf.smali.main.main(main.java:216)

Datei classes.dex nicht gefunden

0 Datei(en) kopiert

apks\SecEmail_J.apk

1 Datei(en) kopiert

D:7za.exe

1 Datei(en) kopiert

D:\_android\S4 Mini\Universal Deodexer V4\working\build\Done.apk

1 Datei(en) kopiert

d:\_android\S4 Mini\Universal Deodexer V4\framework\classes.dex konnte nicht gefunden werden

DEODEXED SUCCESSFULLY.

Drücken Sie eine beliebige Taste . . .

Result shown is from deodexing tool .. doesn't look good :(

I do get apk files though and if I run this hack then this is what I get:

Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. Alle Rechte vorbehalten.

d:\_android\email-policy-patch-4.2>meins.bat

d:\_android\email-policy-patch-4.2>d:\_android\email-policy-patch-4.2\patch-manual.cmd d:\_android\email-policy-patch-4.2\work 16 SecEmail_J.apk SecExchange.apk

Decompiling SecEmail_J.apk ...

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at jpatch.emailPolicy.Run.runIsolated(Run.java:922)

at jpatch.emailPolicy.Run.applyPatch(Run.java:551)

at jpatch.emailPolicy.Run.main(Run.java:839)

Caused by: org.jf.dexlib2.DexFileFactory$NoClassesDexException: zip file SecEmail_J.apk does not contain a classes.dex file

at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:68)

at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:54)

at org.jf.baksmali.main.main(main.java:247)

... 7 more

Debug log written to debug.log

d:\_android\email-policy-patch-4.2>

EDIT: The good news: I flashed the newest rom (not for my region) .. and now the hack works.