1

install a modified ROM to my razr i, from there I can not send applications to the phone, I get these errors eclipse

[2013-09-11 21:03:25 - MainActivity] Android Launch!
[2013-09-11 21:03:25 - MainActivity] adb is running normally.
[2013-09-11 21:03:25 - MainActivity] Performing com.astuetz.viewpager.extensions.sample.MainActivity activity launch
[2013-09-11 21:03:25 - MainActivity] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2013-09-11 21:03:33 - MainActivity] Uploading MainActivity.apk onto device 'TA32402UGY'
[2013-09-11 21:03:34 - MainActivity] Installing MainActivity.apk...
[2013-09-11 21:03:35 - MainActivity] Installation failed due to invalid APK file!
[2013-09-11 21:03:35 - MainActivity] Please check logcat output for more details.
[2013-09-11 21:03:35 - MainActivity] Launch canceled!

logcat

09-11 21:03:06.577: W/PackageParser(10331):     at android.content.res.AssetManager.openXmlAssetNative(Native Method)
09-11 21:03:06.577: W/PackageParser(10331):     at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487)
09-11 21:03:06.577: W/PackageParser(10331):     at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:455)
09-11 21:03:06.577: W/PackageParser(10331):     at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:722)
09-11 21:03:06.577: W/PackageParser(10331):     at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:169)
09-11 21:03:06.577: W/PackageParser(10331):     at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:110)
09-11 21:03:06.577: W/PackageParser(10331):     at android.os.Binder.execTransact(Binder.java:367)
09-11 21:03:06.577: W/PackageParser(10331):     at dalvik.system.NativeStart.run(Native Method)
09-11 21:03:06.577: W/DefContainer(10331): Failed to parse package
09-11 21:03:06.577: W/ActivityManager(409): No content provider found for permission revoke: file:///data/local/tmp/MainActivity.apk
Luisruiz
  • 33
  • 1
  • 2
  • 9

1 Answers1

0

Try this from the command prompt.

adb install -s "your_apk_filename".apk

Also, read this

Community
  • 1
  • 1
prijupaul
  • 2,076
  • 2
  • 15
  • 17
  • and you change the permissions to the folder but no improvement – Luisruiz Sep 12 '13 at 01:08
  • What happens when you try from the command prompt? using adb install -s? – prijupaul Sep 12 '13 at 01:10
  • happens can't find 'MainActivity.apk' to install – Luisruiz Sep 12 '13 at 01:12
  • Copy the apk file from the applications bin folder in eclipse to a folder/drive. Move to that particular folder in the command prompt. Try adb install -s MainActivity.apk now. – prijupaul Sep 12 '13 at 01:17
  • 1772 KB/s (1082106 bytes in 0.596s) pkg: /sdcard/tmp/MainActivity.apk Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] – Luisruiz Sep 12 '13 at 02:52
  • That error message says there is not space or not sdcard. Can you remove the -s and try with adb install "Mainactivity.apk" – prijupaul Sep 12 '13 at 03:00
  • try without -s 1927 KB/s (1082106 bytes in 0.548s) pkg: /data/local/tmp/MainActivity.apk Failure [INSTALL_FAILED_INVALID_APK] – Luisruiz Sep 12 '13 at 03:09
  • OK. I just got this error message in one of the app. It was cos of the version numbers. Do you mind to post the logcat after the error message "No content provider found for permission revoke: file:///data/local/tmp/MainActivity.apk". Additionally, try to give a target device in manifest file. Is it just this app that fails to install or all other apps? – prijupaul Sep 12 '13 at 03:28
  • It happens with all applications sent from eclipse – Luisruiz Sep 12 '13 at 03:30