lnln1111 / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
0 stars 0 forks source link

Something's wrong when decompiling-recompiling Titanium Backup #269

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. uncompile Titanium Backup (v4.6.6 for example)
2. recompile (even without any modification)
3. launch Titanium, go to menu Preferences and click "Max backup history"

What is the expected output? What do you see instead?
Splash menu list may appears but there is a fore close:

V/WindowManager( 8182): Dsptch > Window{4634f318 
com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.SettingsActivity 
paused=false}
I/KeyInputQueue( 8182): Input event
V/InputDevice( 8182): ID[0]=0(0) Up(1=>0)
V/WindowManager( 8182): Dsptch > Window{4634f318 
com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.SettingsActivity 
paused=false}
D/AndroidRuntime( 8698): Shutting down VM
W/dalvikvm( 8698): threadid=1: thread exiting with uncaught exception 
(group=0x4001d7d0)
E/AndroidRuntime( 8698): FATAL EXCEPTION: main
E/AndroidRuntime( 8698): java.lang.NullPointerException
E/AndroidRuntime( 8698):    at 
android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:355)
E/AndroidRuntime( 8698):    at 
android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
E/AndroidRuntime( 8698):    at 
android.widget.AbsListView.obtainView(AbsListView.java:1406)
E/AndroidRuntime( 8698):    at 
android.widget.ListView.measureHeightOfChildren(ListView.java:1273)
E/AndroidRuntime( 8698):    at 
android.widget.ListView.onMeasure(ListView.java:1184)
E/AndroidRuntime( 8698):    at android.view.View.measure(View.java:8226)
E/AndroidRuntime( 8698):    at 
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3132)
E/AndroidRuntime( 8698):    at 
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1012)
E/AndroidRuntime( 8698):    at 
android.widget.LinearLayout.measureVertical(LinearLayout.java:381)
E/AndroidRuntime( 8698):    at 
android.widget.LinearLayout.onMeasure(LinearLayout.java:304)
E/AndroidRuntime( 8698):    at android.view.View.measure(View.java:8226)
E/AndroidRuntime( 8698):    at 
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3132)
E/AndroidRuntime( 8698):    at 
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1012)
E/AndroidRuntime( 8698):    at 
android.widget.LinearLayout.measureVertical(LinearLayout.java:381)
E/AndroidRuntime( 8698):    at 
android.widget.LinearLayout.onMeasure(LinearLayout.java:304)
E/AndroidRuntime( 8698):    at 
com.android.internal.widget.WeightedLinearLayout.onMeasure(WeightedLinearLayout.
java:60)
E/AndroidRuntime( 8698):    at android.view.View.measure(View.java:8226)
E/AndroidRuntime( 8698):    at 
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3132)
E/AndroidRuntime( 8698):    at 
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
E/AndroidRuntime( 8698):    at android.view.View.measure(View.java:8226)
E/AndroidRuntime( 8698):    at 
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3132)
E/AndroidRuntime( 8698):    at 
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
E/AndroidRuntime( 8698):    at android.view.View.measure(View.java:8226)
E/AndroidRuntime( 8698):    at 
android.view.ViewRoot.performTraversals(ViewRoot.java:801)
E/AndroidRuntime( 8698):    at 
android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
E/AndroidRuntime( 8698):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 8698):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 8698):    at 
android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime( 8698):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime( 8698):    at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 8698):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
E/AndroidRuntime( 8698):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/AndroidRuntime( 8698):    at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 8182):   Force finishing activity 
com.keramidas.TitaniumBackup/.SettingsActivity
I/        ( 8182): dumpmesg > /data/log/dumpstate_app_error.log
What version of the product are you using? On what operating system?
apktool 1.4.1, 1.4.2, 1.4.3 gives this bug
Windows 7 x64

Please provide any additional information below.
I'm running Titanium on Samsung SG3 with Froyo 2.2
Tried to decompile/recompile with standard framework from apktool v1.4.3 and 
with my Froyo framework. Problem is the same.
"Max backup history" is the only one menu entry that gives a FC.

Original issue reported on code.google.com by cyril.re...@gmail.com on 17 Dec 2011 at 1:16

GoogleCodeExporter commented 9 years ago
It seems <string-array> was getting mis-read as <array>. Please try again with 
v1.5.0

Original comment by connor.tumbleson on 17 Nov 2012 at 6:42

GoogleCodeExporter commented 9 years ago
Thanks to inform me. Anyway, now, TI detect any change in the .apk and consider 
it has not been bought. If you simply zipalign TI, then it says "ooopps, 
blablabla".

Original comment by cyril.re...@gmail.com on 17 Nov 2012 at 12:58

GoogleCodeExporter commented 9 years ago
Okay, I'll consider this done then.

Good that some developers have figured out a way against modifying. Maybe a 
checktime md5 of the file compared against a server?

Original comment by connor.tumbleson on 17 Nov 2012 at 1:41

GoogleCodeExporter commented 9 years ago
Not compared with a server as it appears offline. 
Yeah, it's good from one side but it was good for me to reduce the apk size, 
now I can't.

Original comment by cyril.re...@gmail.com on 17 Nov 2012 at 1:55