zhanwei / android-apktool

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

AndroidManifest.xml: Tag <provider> attribute authorities has invalid type 7 #729

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. apktool -m -d d -o apkdebugout com.couchsurfing.mobile.android.apk
2. apktool -m b -d apkdebugout -o ./apkbuild/com.couchsurfing.mobile.android.apk

What is the expected output?

I: Building apk file...

What do you see instead?

AndroidManifest.xml:46: Tag <provider> attribute authorities has invalid type 7.

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

2.0.0-RC3, Mac OS X 10.10.1

Please provide any additional information below.

I was able to fix the output Manifest manually by changing 
"@string/provider_authority" to a string literal 
"com.couchsurfing.mobile.provider.dataprovider"

Original issue reported on code.google.com by nderk...@gmail.com on 16 Dec 2014 at 8:02

Attachments:

GoogleCodeExporter commented 9 years ago
These parameters you are using don't make much sense.

-m should not be used if you plan on recompiling. -m just tries to match the 
decoded apk to the original as best as possible, some of those changes prevent 
recompiling.

-d is for smali debugging. There is no reason why it should be used with -m.

Since I don't know your usecase, you might be trying to use one/other. Either 
way, I couldn't duplicate.

ibotpeaches@raganok:~/Downloads/Apktool/Bug729$ apktool d 
com.couchsurfing.mobile.android.apk 
I: Using Apktool 2.0.0-RC3 on com.couchsurfing.mobile.android.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
ibotpeaches@raganok:~/Downloads/Apktool/Bug729$ apktool b 
com.couchsurfing.mobile.android
I: Using Apktool 2.0.0-RC3 on com.couchsurfing.mobile.android
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...
ibotpeaches@raganok:~/Downloads/Apktool/Bug729$ 

Original comment by connor.tumbleson on 16 Dec 2014 at 2:49

GoogleCodeExporter commented 9 years ago
Ok, works fine indeed without -m option

Original comment by nderk...@gmail.com on 18 Dec 2014 at 5:29