zdzhjx / android-apktool

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

<provider> does not incude authorities attribute #519

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. apktool d de.myaudi.mobile.assistant.apk
2. apktool b de.myaudi.mobile.assistant.apk.out new.apk
3. signing
4. adb install new.apk

What is the expected output? What do you see instead?
Expected: install ok.
Output:   INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
logcat shows: W/PackageParser(  209): /data/app/vmdl-195945542.tmp (at Binary 
XML file line #127): <provider> does not incude authorities attribute

What version of the product are you using? On what operating system?
apktool 1.5.2
https://play.google.com/store/apps/details?id=de.myaudi.mobile.assistant

Please provide any additional information below.
the authorities attribute is shown in the AndroidManifest, but doesn't seem to 
be included in the generated apk.

Original issue reported on code.google.com by dennis.t...@googlemail.com on 30 Sep 2013 at 8:36

Attachments:

GoogleCodeExporter commented 9 years ago
Using -m

        <provider 
android:name="com.audi.myaudi.services.locationtracker.data.TrackerProvider" 
android:readPermission="com.myaudi.livetracker.permission.READ" 
android:writePermission="com.myaudi.livetracker.permission.WRITE" 
android:exported="false" 
android:process=":audi_livetracker_service" 
android:authorities="@string/livetracker_content_provider" />

so name, readPermission, writePermission, exported, process, authorities = 6 
attributes.

Using standard decode

        <provider 
android:authorities="@string/livetracker_content_provider" 
android:exported="false" 
android:name="com.audi.myaudi.services.locationtracker.data.TrackerProvider" 
android:process=":audi_livetracker_service" 
android:readPermission="com.myaudi.livetracker.permission.READ" 
android:writePermission="com.myaudi.livetracker.permission.WRITE"/>

So

authorities, exported, name, process, readPermission, writePermission = 6 
attributes.

No problem. Can not duplicate on latest 2.0.0 source.

Original comment by connor.tumbleson on 12 Oct 2013 at 7:27

GoogleCodeExporter commented 9 years ago
Confirmed this is working on 2.0 but can think of a change that could have 
fixed this? I am stuck on 1.5 right now do to the Java 7 requirement of 2.0. 
Thanks for any help.

Original comment by ajdob...@mtu.edu on 8 Aug 2014 at 7:05