• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root app install from market always fails and forces reboot

adelattre

Newbie
I've started to have a problem using the market [or app installer of an apk file on my sd card] to install apps or updates of apps. The file downloads and begins installing, but during installation it freezes and makes the phone reboot. Once the phone has rebooted, the app is not installed. I'm having the problem with every app that I've tried to install or updates to already installed apps. New apps I've tried include NY Times, andronos, which I've had installed successfully on the phone before. I've tried clearing the cache of market app and download manager, but no luck. Any ideas what the problem might be?

I'm running CTMod 2.3, with the Darktremor A2SD. I've got a 8GB SD card, so LOTS of room on the card.
 
you tried to use terminal emulator to repair dtapp2ad? These are all the commands you can use with dark tremors (thanks ingo) refer to the diagnostic section. Check... Repair....
Standard Apps2SD Commands: --------------------------------------------------
reinstall Moves free and paid apps to the ext2/ext3/ext4 partition on your secure digital card. Removes the No A2SD flag file.

This is used if you have already executed an a2sd remove command. Otherwise, this part is automatically performed when Apps2SD is started.

File removed: /data/.noa2sd

remove Moves free and paid apps to the internal phone storage. Creates the No A2SD flag file. File created: /data/.noa2sd

Swap Partition Commands: --------------------------------------------------
reswap Removes the No Swap flag. Allows A2SD to activate the swap partition.

This is used if you have already executed an a2sd noswap command. Otherwise, this part is automatically performed when Apps2SD is started.

File removed: /data/.noswap

noswap Creates the No Swap flag. Prevents A2SD from activating the swap partition.

File created: /data/.noswap

swappyxx Sets swap partition swappiness value to xx. Example: To set the swappiness of the swap partition to 30%, type: a2sd swappy30 To set at 75%, type: a2sd swappy75

File created: /data/dtswap

Dalvik Cache Commands: --------------------------------------------------
cachesd Moves Dalvik cache files to the ext2/ext3/ext4 partition on your secure digital card. Creates Dalvik Cache to SD flag.

File created: /data/.dalvikcacahe File removed: /data/.dcpartition

cachesdreset Performs the same function as cachesd, plus erases the contents of Dalvik-Cache, forcing a rebuild on reboot.

File created: /data/.dalvikcache File removed: /data/.dcpartition

cachepart Moves Dalvik cache files to the /cache partition in your phone. Creates Dalvik Cache to Cache Partition flag.

File created: /data/.dcpartition File removed: /data/.dalvikcache

cachepartreset Performs the same function as cachepart, plus erases the contents of Dalvik-Cache, forcing a rebuild on reboot.

File created: /data/.dcpartition File removed: /data/.dalvikcache

nocache Moves Dalvik cache files to the internal phone storage. Removes all Dalvik Cache flags.

File removed: /data/.dcpartition /data/.dalvikcache

nocachereset Performs the same function as nocache, plus erases the contents of Dalvik-Cache, forcing a rebuild on reboot.

File removed: /data/.dcpartition /data/.dalvikcache

resetcache Clears the dalvik cache and restarts phone.

Apps2SD Diagnostic Commands:
check Performs a symlink and flag file check on your setup. Outputs a report that shows you if there are issues with your Apps2SD setup.

repair Performs a repair of all symlinks based on flag file activation.

diskspace Shows disk space statistics for the ext partition.

sysinfo Displays information about your phone, partitions, swap, and more.

Also writes a dump file that has an entire profile of your phone. This is for troubleshooting only.

File Created: /data/dtsysdump.txt

swapspace Shows swap space statistics for all swap space active on the phone.

partlist Shows the supported EXT partitions available for your particular ROM.

ZipAlign Commands: --------------------------------------------------
align Performs a one-time zipalign on all APK files in /data/app, /data/app-private and /system/app.

zipalign Allows ZipAlign to execute during the boot process. Creates the ZipAlign flag file.

File Created: /data/.zipalign

nozipalign Prevents ZipAlign from executing during the boot process. Removes the ZipAlign flag file.

File Removed: /data/.zipalign

Dalvik Setting Commands: --------------------------------------------------
jit Installs DalvikVM JIT. WARNING: Do not run this command if your phone has NAND protection active.

nojit Removes DalvikVM JIT. WARNING: Do not run this command if your phone has NAND protection active.

heapsizexx Sets Dalvik Heap Size to xx, or heapsize0 resets heap size to default settings.

Ex: If you want to set the Dalvik Heap Size to 24mb, type a2sd heapsize24

File Created: /data/a2sdheapsize (value > 0) File Removed: /data/a2sdheapsize (value = 0)

Low Memory Killer Commands: ----------------------------------------------------lowmem-moderate Sets the internal memory killer to the following settings: Foreground Apps: 1536 pages / 6 MB Visible Apps: 3072 pages / 12 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 7680 pages / 30 MB Content Provider: 8960 pages / 35 MB Empty App: 10240 pages / 40 MB

Create File: /data/.lmmoderate Remove File: /data/.lmoptimum /data/.lmstrict /data/.lmaggressive /data/.lmultimate /data/.lmextreme

lowmem-optimum Sets the internal memory killer to the following settings: Foreground Apps: 1536 pages / 6 MB Visible Apps: 2048 pages / 8 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 10240 pages / 40 MB Content Provider: 12800 pages / 50 MB Empty App: 15360 pages / 60 MB

Create File: /data/.lmoptimum Remove File: /data/.lmmoderate /data/.lmstrict /data/.lmaggressive /data/.lmultimate /data/.lmextreme

lowmem-strict Sets the internal memory killer to the following settings: Foreground Apps: 1536 pages / 6 MB Visible Apps: 2048 pages / 8 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 15360 pages / 60 MB Content Provider: 17920 pages / 70 MB Empty App: 20480 pages / 80 MB

Create File: /data/.lmstrict Remove File: /data/.lmmoderate /data/.lmoptimum /data/.lmaggressive /data/.lmultimate /data/.lmextreme

lowmem-aggressive Sets the internal memory killer to the following settings: Foreground Apps: 1536 pages / 6 MB Visible Apps: 3072 pages / 12 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 21000 pages / 82 MB Content Provider: 23000 pages / 90 MB Empty App: 25000 pages / 98 MB

Create File: /data/.lmaggressive Remove File: /data/.lmmoderate /data/.lmoptimum /data/.lmstrict /data/.lmextreme /data/.lmultimate

lowmem-extreme Sets the internal memory killer to the following settings: Foreground Apps: 1536 pages / 6 MB Visible Apps: 3072 pages / 12 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 38400 pages / 150 MB Content Provider: 40960 pages / 160 MB Empty App: 43520 pages / 170 MB

Create File: /data/.lmextreme Remove File: /data/.lmmoderate /data/.lmoptimum /data/.lmstrict /data/.lmaggressive /data/.lmultimate

lowmem-ultimate Sets the internal memory killer to the following settings: Foreground Apps: 1536 pages / 6 MB Visible Apps: 3072 pages / 12 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 51200 pages / 200 MB Content Provider: 57600 pages / 225 MB Empty App: 64000 pages / 250 MB

Create File: /data/.lmultimate Remove File: /data/.lmmoderate /data/.lmoptimum /data/.lmstrict /data/.lmaggressive /data/.lmextreme

lowmem-default Sets the internal memory killer back to phone default settings.

Remove File: /data/.lmmoderate /data/.lmoptimum /data/.lmstrict /data/.lmaggressive /data/.lmextreme /data/.lmultimate
 
Try 'a2sd check'. Or 'a2sd reinstall' to recreate the scripts used to make the mod work
 
** I see that you suggested 'a2sd reinstall', which I just tried and it causes a reboot.

below is the output of running "a2sd check"
does this point to a problem that can be solved *other* than reinstalling?
IF I need to reinstall, can I do that by following the original darktremor install steps, or do I need to uninstall anything or odin back to some previous state?

bash-3.2# a2sd check
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2-1 (2011-01-02)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
[ ] Creating /cache/dc
[ ] Symlinking /cache/dalvik-cache to /data/dalvik-cache
[ ] Starting Apps2SD Check Program.
[ ] Checking for ext partition

Darktremor 2.7.5.2-1 Apps2SD Status Report
===================================================================================
Legend: []=Setting is correct
[]=Setting is correct, but not optimal.
[]=Setting is incorrect and needs to be fixed or option is not available.
===================================================================================
Block Device - [] Found
- [] /dev/block/mmcblk0p2
EXT Partition - [] Mounted
Mount Point - [ ] /system/sd
Partition Type - [] EXT4
- [] May be incompatible w/ ROMS
Support EXT2? - [] Yes
Support EXT3? - [] No
Support EXT4? - [] Yes

Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[] Programs run from SD card
To run from internal storage, type a2sd remove

Private Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[] Private Programs run from SD card
To run from internal storage, type a2sd remove

Dalvik Cache - [ ] Symbolically Linked.
[ ] Dalvik to SD flag file found.
[] Dalvik runs from SD card
To run from internal storage, type a2sd nocache
To run from /cache partition, type a2sd cachepart

Swap - [ ] Partition not present or no swap support.
[] Swap does not start.

ZipAlign - [] Running at boot.
To deactivate it, type a2sd nozipalign

Dalvik Heap(MB) - [] 32m

Low Memory
Killer Settings - [] 2560,4096,6144,12288,14336,18432
Note: Values are in pages.
1 page = 4KB memory.

Values represent the following:
1st number = Foreground App
2nd number = Visible App
3rd number = Secondary Server
4th number = Hidden App
5th number = Content Provider
6th number = Empty App

[] For a list of commands that you can use with Apps2SD
Type: a2sd help
bash-3.2#
 
ok, but doesn't the fact that running commands *within* a2sd is causing a reboot suggest there is some problem with a2sd? If not, any help in steering me in the right direction would be greatly appreciated.
 
This might sound silly:confused:, but its worth a shot.

Go to settings/ applications / manage applications and select the all tab.

Scroll down to anything that has or belongs to google. Select stop, clear data and clear cache. That includes the market stuff running.

Then reboot and check things out.

This once helped me with problems downloading from the market.:)
 
This might sound silly:confused:, but its worth a shot.

Go to settings/ applications / manage applications and select the all tab.

Scroll down to anything that has or belongs to google. Select stop, clear data and clear cache. That includes the market stuff running.

Then reboot and check things out.

This once helped me with problems downloading from the market.:)

Thanks for the suggestion. I've already cleared data and cache for market and download manager, and since I'm not just getting install errors, but also a2sd command errors, I'm not sure how clearing my google contacts, etc would help. IF anyone else knows that that is worth trying, I'd do it, but that s a big hassle.
 
nah. the commands re-create the links and the system will only recognize the links once the phone is rebooted. moving dalvik, installing, repairing... all reboot the phone by design. check is the only one that just runs and stops.

how big is your ext partition? have you tried formatting /cache in cwm?

what errors are you getting in a2sd?
 
It seems that I may be mistaken, but I think that I'm getting an error running "a2sd reinstall" and "a2sd repair" because the phone reboots. It reboots SO FAST - I see just a few strings of commands stream by and it reboots. BUT maybe that is normal for those a2sd commands.

ext partition is 1GB [whole SD card is 16GB, my comment at the top saying its 8GB is incorrect].

I haven't tried formatting /cache in CWM. Can you give me, or point me to, more explicit directions?
Thanks
 
there is an [x] in the "use swap partition" line when the scripts run. that would be normal for this phone.

how much space do you have available on each of your partitons? have you moved dalvik to sd?

_____

boot into cwm

select "wipe cache partition"

confirm

reboot
 
there is an [x] in the "use swap partition" line when the scripts run. that would be normal for this phone.

how much space do you have available on each of your partitons? have you moved dalvik to sd?

ext partition is 1GB total, 849mb free
sd card is 15.5 GB, 12.4GB free
and yes I've moved dalvik to sd
_____

boot into cwm

select "wipe cache partition"

confirm

reboot

I just did this and when I then try installing an app I experience the same problem: app downloads and then freezes and reboots the phone during installation
also note my reply to your question about partitions and dalvik are above
 
just being thorough then.

space on /system and /data partitions?

did this happen suddenly or start as an intermittent problem?

have you tried removing some of your recently installed apps to see if that is a problem?
 
not sure if these are the same as /system and /data partitions, but in titanium it reads:
system ROM: 168MB, 69.3 mb free
internal: 167mb, 110mb free

yes, it was sudden - things had been smooth for a month since I installed CTMod2.3 and dtapp2sd. I have tried uninstalling recent apps, I may need to do more of that, I guess.

I really appreciate your help trying to sort this out
 
no problem. i'm almost out of ideas that fall short of wiping, though.

have you tried rebuilding the dalvik-cache?
i think that's the last thing you can try before factory reset or reflashing is necessary unless you can find an offending app.
 
OK, so no luck after rebuilding dalvik. I can't even UNinstall apps, so I'm going to have to wipe and start over.
Thanks for trying!
 
Back
Top Bottom