[Desire Android Development] jbbandos:
Hi guys,

I am having some problems with xdaAutoTool and miui 2.3.30 (GB 2.3.7 Nexus One).

If I just fully deodex the ROM, then open it in dsixda kitchen and do my changes, the final ROM works perfectly. If I only decompile and recompile and build the apks, installing the framework-res, and using as recommended apktool 1.3.2 to decompile and 1.4.2 to compile and build, then copy the APKs to dsixda kitchen working areas, the finalized ROM has several problems. One of them is crashing when I access a app settings inside the task switcher (long press home, long press the app icon).

This is the relevant logcat:

D/AndroidRuntime( 841): Shutting down VM
W/dalvikvm( 841): threadid=1: thread exiting with uncaught exception (group=0x40172568)
E/AndroidRuntime( 841): FATAL EXCEPTION: main
E/AndroidRuntime( 841): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.applications.InstalledAppDetails}: java.lang.RuntimeException: Binary XML file line #9: You must supply a layout_width attribute.
E/AndroidRuntime( 841): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1664)
E/AndroidRuntime( 841): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1680)
E/AndroidRuntime( 841): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime( 841): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime( 841): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 841): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 841): at android.app.ActivityThread.main(ActivityThread.java:3703)
E/AndroidRuntime( 841): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 841): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 841): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
E/AndroidRuntime( 841): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
E/AndroidRuntime( 841): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 841): Caused by: java.lang.RuntimeException: Binary XML file line #9: You must supply a layout_width attribute.
E/AndroidRuntime( 841): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
E/AndroidRuntime( 841): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3646)
E/AndroidRuntime( 841): at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:3726)
E/AndroidRuntime( 841): at android.widget.LinearLayout$LayoutParams.<init>(LinearLayout.java:1400)
E/AndroidRuntime( 841): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1326)
E/AndroidRuntime( 841): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:47)
E/AndroidRuntime( 841): at android.view.LayoutInflater.rInflate(LayoutInflater.java:625)
E/AndroidRuntime( 841): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
E/AndroidRuntime( 841): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
E/AndroidRuntime( 841): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 841): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 841): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:212)
E/AndroidRuntime( 841): at android.app.Activity.setContentView(Activity.java:1681)
E/AndroidRuntime( 841): at com.android.settings.applications.InstalledAppDetails.onCreate(InstalledAppDetails.java:302)
E/AndroidRuntime( 841): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 841): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1628)
E/AndroidRuntime( 841): ... 11 more
W/ActivityManager( 201): Force finishing activity com.android.settings/.applications.InstalledAppDetails
I/InputQueue-JNI( 757): Ignoring finish signal on channel that is no longer registered.
D/dalvikvm( 345): GC_EXPLICIT freed 63K, 47% free 3975K/7431K, external 0K/0K, paused 698ms
W/ActivityManager( 201): Activity pause timeout for HistoryRecord{406d7058 com.android.settings/.applications.InstalledAppDetails}
I/ActivityManager( 201): No longer want com.android.email (pid 558): hidden #16
I/Process ( 841): Sending signal. PID: 841 SIG: 9
W/IInputConnectionWrapper( 757): showStatusIcon on inactive InputConnection
I/ActivityManager( 201): Process com.android.settings (pid 841) has died.

Any idea of what I am doing wrong? Should I use other apktool versions instead of 1.3.2 and 1.4.2? The decompile and build logs have no exceptions, only some warnings for apps that don't have a res folder.

Edit: Fixed - I just switched to also using 1.4.2 for the decompile step, and now everything works.