Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

[SOLVED] CM6.1-2780 port: Market Causes reboot


  • Please log in to reply
4 replies to this topic

#1 ipic

ipic
  • Members
  • 9 posts
  • LocationUK
  • Country:uk
  • Device Model:HTC Magic (UK Vodafone)
  • MOD Version:CM- 6.1-DS-2708mod
  • Recovery Image:Amon_RA

Posted 10 December 2010 - 11:10 PM

I have wiped and installed following ezterry's guide here:
http://forum.cyanoge...spl-unofficial/

I did a factory reset in AMON_RA recovery, as well as cache and dalvik-cache wipes before installing.

I have a hard error in the Package Manager - triggered by the Market trying to install any package:
D/AndroidRuntime( 3968): 
D/AndroidRuntime( 3968): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
I/AndroidRuntime( 3968): Heap size: -Xmx16m
D/AndroidRuntime( 3968): CheckJNI is OFF
D/AndroidRuntime( 3968): --- registering native functions ---
I/ActivityManager( 3498): Start proc com.android.defcontainer for service com.android.defcontainer/.DefaultContainerService: pid=3974 uid=10016 gids={1015, 2001}
D/dalvikvm( 3974): GC_EXPLICIT freed 574 objects / 48200 bytes in 111ms
W/dalvikvm( 3498): threadid=10: thread exiting with uncaught exception (group=0x400207e8)
E/PackageManager( 3498): Couldn't create temp file for downloaded package file.
E/AndroidRuntime( 3498): *** FATAL EXCEPTION IN SYSTEM PROCESS: PackageManager
E/AndroidRuntime( 3498): java.lang.NullPointerException
E/AndroidRuntime( 3498): 	at com.android.server.PackageManagerService$FileInstallArgs.createCopyFile(PackageManagerService.java:5144)
E/AndroidRuntime( 3498): 	at com.android.server.PackageManagerService$FileInstallArgs.copyApk(PackageManagerService.java:5152)
E/AndroidRuntime( 3498): 	at com.android.server.PackageManagerService$InstallParams.handleStartCopy(PackageManagerService.java:4962)
E/AndroidRuntime( 3498): 	at com.android.server.PackageManagerService$HandlerParams.startCopy(PackageManagerService.java:4821)
E/AndroidRuntime( 3498): 	at com.android.server.PackageManagerService$PackageHandler.doHandleMessage(PackageManagerService.java:470)
E/AndroidRuntime( 3498): 	at com.android.server.PackageManagerService$PackageHandler.handleMessage(PackageManagerService.java:415)
E/AndroidRuntime( 3498): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3498): 	at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 3498): 	at android.os.HandlerThread.run(HandlerThread.java:60)
I/ActivityManager( 3498): Process com.android.vending (pid 3879) has died.

"Couldn't create temp file for downloaded package file." seems to be the pertinent error.

I have tried fixing permissions from AMON_RA.

Anyone seen this before? I've searched around and there seem to be issues with app2sd - I have no apps installed on SD, so doesn't seem to apply here.

Thanks

Edited by ipic, 28 December 2010 - 12:26 AM.


#2 daaxix

daaxix
  • Members
  • 16 posts
  • Twitter:daaxix
  • Device Model:|2|
  • MOD Version:5.08
  • Recovery Image:Amon_RA

Posted 12 December 2010 - 04:23 AM

I wiped/flashed as well and see the same error and a reboot.

#3 ipic

ipic
  • Members
  • 9 posts
  • LocationUK
  • Country:uk
  • Device Model:HTC Magic (UK Vodafone)
  • MOD Version:CM- 6.1-DS-2708mod
  • Recovery Image:Amon_RA

Posted 12 December 2010 - 02:15 PM

I tried a few more things but am still getting a hard fault on any attempt to install.

I tried superwipe - download from here

Steps I followed: Flash Superwipe from recovery, reboot to recovery, flash CM6, flash Gapps_tiny.

Still get error on original post for any install attempt.

Also, I removed the swap and ext4 partitions from the SD card, no change - still get error.

Its strange - lots of other people seem to have followed ezterry's guide and say its working for them  :(

#4 ipic

ipic
  • Members
  • 9 posts
  • LocationUK
  • Country:uk
  • Device Model:HTC Magic (UK Vodafone)
  • MOD Version:CM- 6.1-DS-2708mod
  • Recovery Image:Amon_RA

Posted 28 December 2010 - 12:26 AM

I have stumbled upon the reason for this failure - at least in my case.
Firstly - apologies. This is a textbook case of not posting all information  :(
Along with following the ezterry guide, I always ended off by flashing a signed zip of Titanium Backup.
Turns out, that was the problem.

I have now followed the install guide to the letter (no TB flash). Market downloads and installs fine.
Download of TB from the market, and then restore all backed up apps works fine as well.

So, lesson learnt - don't freestyle and not mention it!

I have no idea why a TB signed zip should cause the installer to crash as above. I don't have a huge incentive to find out, so I'll let it lie.

#5 r00ktard

r00ktard
  • Members
  • 2 posts
  • Twitter:r00ktard
  • LocationTexas
  • Country:us
  • Device Model:LG G2x
  • MOD Version:CM MOD
  • Recovery Image:ClockworkMod

Posted 04 February 2012 - 10:23 PM

I know this is an old topic but might help others... This basically happened because the "TB Flash" created the data folder manually without assigning it proper permissions. (0777). The Market automatically creates the "/data/app" folders and automatically assigns the proper permissions.

If the permissions are not assigned correctly the Market app will throw the exception:
Couldn't create temp file for downloaded package file.

A simple chmod 0777 might have done the trick. However by wiping your device and reinstalling the mod you essentially allowed the market to do it on it's own. I hope that helps anyone in the future.