lnln1111 / android-apktool

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

apktool doesn't regenerate configChanges="orientation|screenSize" #304

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. apktool d SimpleDemo-debug.apk
2. examine AndroidManifest.xml, there is no screenSize in the configChanges 
attribute of the JRFragmentHostActivity activities.

What is the expected output? What do you see instead?

I expect to find the JRFragmentHostActivity activities to have configChanges 
attributes of "orientation|screenSize". Instead I see 
configChanges="orientation".

What version of the product are you using? On what operating system?

apktool1.4.3.tar.bz2 with apktool-install-macosx-r04-brut1.tar.bz2

Please provide any additional information below.

SimpleDemo-debug.apk was built with ant with project.properties 
target=android-15. The source manifest can be found here:
https://github.com/janrain/engage.android/blob/master/SimpleDemo/AndroidManifest
.xml

I have seen this behavior with other APKs too. They behave on the device as if 
they do have the screensize attribute though.

Original issue reported on code.google.com by nat...@janrain.com on 11 Feb 2012 at 4:10

Attachments:

GoogleCodeExporter commented 9 years ago
This is also related to issue #263

Original comment by rogerbinns on 23 Feb 2012 at 7:08

GoogleCodeExporter commented 9 years ago
I came across this before. It looks like apktool at some point creates a file: 
(Windows)C:\Users\%Username%\apktool\framework\1.apk 
(Linux)/home/%Username%/apktool/framework/1.apk

Not sure how or when it is created but it looks like (purely guessing) it gets 
created on the first execution of the apktool. It appears that it does not get 
updated when you update the SDK. 

Deleting that file and running apktool after updating the Android SDK seems to 
create a new framework/1.apk file that supports the latest SDK and should solve 
the issue mentioned above.

Original comment by ruairito...@gmail.com on 23 Jul 2012 at 11:31

GoogleCodeExporter commented 9 years ago
I'll try that when I get a chance.

Original comment by nat...@janrain.com on 23 Jul 2012 at 4:48

GoogleCodeExporter commented 9 years ago
Issue 263 has been merged into this issue.

Original comment by connor.tumbleson on 17 Nov 2012 at 12:06

GoogleCodeExporter commented 9 years ago
Issue 271 has been merged into this issue.

Original comment by connor.tumbleson on 17 Nov 2012 at 2:47

GoogleCodeExporter commented 9 years ago
Issue 346 has been merged into this issue.

Original comment by connor.tumbleson on 19 Nov 2012 at 1:00

GoogleCodeExporter commented 9 years ago

Original comment by connor.tumbleson on 19 Nov 2012 at 11:04

GoogleCodeExporter commented 9 years ago
Fixed in v1.5.1

        <activity android:theme="@style/jr_dialog" android:name="com.janrain.android.engage.ui.JRFragmentHostActivity" android:configChanges="orientation|screenSize" android:windowSoftInputMode="stateHidden|adjustResize" />

Original comment by connor.tumbleson on 19 Dec 2012 at 2:12