[Android Software Development] doga.ozkaraca:
I'm porting an app from samsung s3 mini to cm10 htc one v

I've deodexed apk and then i'm modding classes.dex to fix problem.

only, i can't open mainactivity i'm getting problem from this smali(MainActivity.smali) and this line.

Landroid/util/GateConfig;->isGateEnabled() -- android.util.GateConfig

Class Def Not Found..

.line 154
invoke-static {}, Landroid/util/GateConfig;->isGateEnabled()Z

move-result v0

sput-boolean v0, Lcom/sec/android/app/myfiles/MainActivity;->FLAG_SUPPORT_GATE_MESSAGE:Z

return-void
.end method

.method public constructor <init>()V
.registers 4

.prologue
const/4 v2, 0x0

const/4 v1, 0x0

also tried adding util/GateConfig file to out folder but.

when i try run smali.jar for compiling again. i get problems...So, i tried delete half of line 154 smali but now i'm getting

I/ActivityManager( 1765): Start proc com.sec.android.app.myfiles for activity co
m.sec.android.app.myfiles/.MainActivity: pid=5194 uid=10070 gids={1015, 1023, 30
02}
D/Launcher( 2036): onTrimMemory. Level: 20
E/Trace ( 5194): error opening trace file: No such file or directory (2)
W/dalvikvm( 5194): VFY: register index out of range (2 >= 1)
W/dalvikvm( 5194): VFY: register index out of range (1 >= 1)
W/dalvikvm( 5194): VFY: rejecting opcode 0x5c at 0x000d
W/dalvikvm( 5194): VFY: rejected Lcom/sec/android/app/myfiles/MainActivity;.<cl
init> ()V
W/dalvikvm( 5194): Verifier rejected class Lcom/sec/android/app/myfiles/MainActi
vity;
W/dalvikvm( 5194): Class init failed in newInstance call (Lcom/sec/android/app/m
yfiles/MainActivity;)
D/AndroidRuntime( 5194): Shutting down VM
W/dalvikvm( 5194): threadid=1: thread exiting with uncaught exception (group=0x4
0d83300)
E/AndroidRuntime( 5194): FATAL EXCEPTION: main
E/AndroidRuntime( 5194): java.lang.VerifyError: com/sec/android/app/myfiles/Main
Activity
E/AndroidRuntime( 5194): at java.lang.Class.newInstanceImpl(Native Method
)
E/AndroidRuntime( 5194): at java.lang.Class.newInstance(Class.java:1319)
E/AndroidRuntime( 5194): at android.app.Instrumentation.newActivity(Instr
umentation.java:1053)
E/AndroidRuntime( 5194): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2090)
E/AndroidRuntime( 5194): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2210)
E/AndroidRuntime( 5194): at android.app.ActivityThread.access$600(Activit
yThread.java:142)
E/AndroidRuntime( 5194): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1208)
E/AndroidRuntime( 5194): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 5194): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5194): at android.app.ActivityThread.main(ActivityThrea
d.java:4931)
E/AndroidRuntime( 5194): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 5194): at java.lang.reflect.Method.invoke(Method.java:5
11)
E/AndroidRuntime( 5194): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 5194): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:558)
E/AndroidRuntime( 5194): at dalvik.system.NativeStart.main(Native Method)

W/ActivityManager( 1765): Force finishing activity com.sec.android.app.myfiles
/.MainActivity

and last one thing.

C:\Users\Doğa\HTCONEVAllFiles\Data>adb shell
root@android:/ # am start com.sec.android.app.myfiles/.MyFilesSettings

When i try open settings activity via adb.it works..

only main activity don't work.

how can i change line 154 without problems???

or how can i add android.util.GateConfig ??

i need fix for that ??

some developer should help me ??? :D PLEASE :D