Jump to content

Android 2.2 Development


Guest eckengucker1

Recommended Posts

Guest Simon O
Here is a trace of vold while trying to install that app.

[pid  1092] select(14, [10 11 13], NULL, NULL, NULL <unfinished ...>
[pid 1054] select(8, [6 7], NULL, NULL, NULL <unfinished ...>
[pid 1047] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 1092] <... select resumed> ) = 1 (in [13])
[pid 1092] read(13, "asec list\", 254) = 10
[pid 1092] writev(3, [{"\3", 1}, {"VoldCmdListener\", 16}, {"asec list\", 10}], 3) = 27
[pid 1092] open("/mnt/secure/asec", O_RDONLY|O_LARGEFILE|O_DIRECTORY) = 14
[pid 1092] getdents64(14, /* 2 entries */, 4200) = 48
[pid 1092] getdents64(14, /* 0 entries */, 4200) = 0
[pid 1092] close(14) = 0
[pid 1092] write(13, "200 asec operation succeeded\", 29) = 29
[pid 1092] futex(0x14088, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 1092] select(14, [10 11 13], NULL, NULL, NULL) = 1 (in [13])
[pid 1092] read(13, "asec create smdl2tmp1 13 fat b15057997e90cbb534830d69d0393e5a 10019\", 254) = 68
[pid 1092] writev(3, [{"\3", 1}, {"VoldCmdListener\", 16}, {"asec create smdl2tmp1 13 fat {} 10019\", 38}], 3) = 55
[pid 1092] access("/mnt/secure/asec/smdl2tmp1.asec", F_OK) = -1 ENOENT (No such file or directory)
[pid 1092] open("/mnt/secure/asec/smdl2tmp1.asec", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0600) = 14
[pid 1092] ftruncate(14, 13870592) = 0
[pid 1092] close(14) = 0
[pid 1092] mknod("/dev/block/loop0", S_IFBLK|0660, makedev(7, 0)) = -1 EEXIST (File exists)
[pid 1092] open("/dev/block/loop0", O_RDWR|O_LARGEFILE) = 14
[pid 1092] ioctl(14, 0x4c03, 0x40119500) = -1 ENXIO (No such device or address)
[pid 1092] open("/mnt/secure/asec/smdl2tmp1.asec", O_RDWR|O_LARGEFILE) = 15
[pid 1092] ioctl(14, 0x4c00, 0xf) = 0
[pid 1092] ioctl(14, 0x4c02, 0x40119474) = 0
[pid 1092] close(14) = 0
[pid 1092] close(15) = 0
[pid 1092] open("/dev/device-mapper", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 1092] writev(3, [{"\6", 1}, {"Vold\", 5}, {"Error opening devmapper (No such file or directory)\", 52}], 3) = 58
[pid 1092] writev(3, [{"\6", 1}, {"Vold\", 5}, {"ASEC device mapping failed (No such file or directory)\", 55}], 3) = 61
[pid 1092] open("/dev/block/loop0", O_RDONLY|O_LARGEFILE) = 14
[pid 1092] ioctl(14, 0x4c01, 0) = 0
[pid 1092] close(14) = 0
[pid 1092] unlink("/mnt/secure/asec/smdl2tmp1.asec") = 0
[pid 1092] write(13, "406 asec operation failed (No such file or directory)\", 54) = 54
[pid 1092] futex(0x14088, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 1092] select(14, [10 11 13], NULL, NULL, NULL[/code]

There is nothing mounted at /mnt/secure/asec/, so it will fail trying to write to the read-only rootfs. I think either the tmpfs at /mnt/asec should be at /mnt/secure/asec or /mnt/secure/asec should be a symlink to /mnt/asec. I will try adding a symlink later.

Thanks. Out of interest what did you use to do the trace?

Link to comment
Share on other sites

Thanks. Out of interest what did you use to do the trace?

strace. It is included in android (i think only in eng builds normally) but doesn't work properly. The android one seems to usually work for already running processes (so would have worked in this case) but doesn't work for starting a process. I have a version I built from source that works properly.

For this example I used

strace -f -ff -s400 -p <pid of vold>

Link to comment
Share on other sites

Guest Simon O

Tom, I've been reading about this issue and I read that if the SD is unmounted the apps will install. I've just tested this and I managed to install the app fine, so the issue seems to be related to the SD. I tested this with "Paul's App of the Day" as that also tries to install to the secure container like Angry Birds does. The logs show me installing "Angry Birds" fine:

09-06 04:13:27.830: DEBUG/AndroidRuntime(2468): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<

09-06 04:13:27.830: DEBUG/AndroidRuntime(2468): CheckJNI is OFF

09-06 04:13:28.120: DEBUG/AndroidRuntime(2468): --- registering native functions ---

09-06 04:13:28.960: INFO/ActivityManager(1265): Start proc com.android.defcontainer for service com.android.defcontainer/.DefaultContainerService: pid=2475 uid=10011 gids={1015, 2001}

09-06 04:13:29.550: DEBUG/dalvikvm(2475): GC_EXPLICIT freed 825 objects / 57792 bytes in 101ms

09-06 04:13:33.690: DEBUG/PackageParser(1265): Scanning package: /data/app/vmdl22399.tmp

09-06 04:13:34.800: DEBUG/dalvikvm(1265): GC_FOR_MALLOC freed 9043 objects / 669000 bytes in 200ms

09-06 04:13:39.530: DEBUG/dalvikvm(1265): GC_FOR_MALLOC freed 16227 objects / 806512 bytes in 186ms

09-06 04:13:40.180: DEBUG/PackageManager(1265): Scanning package com.rovio.angrybirds_lite

09-06 04:13:40.190: INFO/PackageManager(1265): /data/app/com.rovio.angrybirds_lite-1.apk changed; unpacking

09-06 04:13:40.260: DEBUG/PackageManager(1265): Caching shared lib lib/armeabi/libangrybirds.so

09-06 04:13:43.090: DEBUG/installd(1218): DexInv: --- BEGIN '/data/app/com.rovio.angrybirds_lite-1.apk' ---

09-06 04:13:44.060: DEBUG/dalvikvm(2482): DexOpt: load 545ms, verify 205ms, opt 4ms

09-06 04:13:44.090: DEBUG/installd(1218): DexInv: --- END '/data/app/com.rovio.angrybirds_lite-1.apk' (success) ---

09-06 04:13:44.100: DEBUG/PackageManager(1265): Activities: com.rovio.ka3d.App

09-06 04:13:44.100: INFO/ActivityManager(1265): Force stopping package com.rovio.angrybirds_lite uid=10073

09-06 04:13:44.390: INFO/installd(1218): move /data/dalvik-cache/data@[email protected][email protected] -> /data/dalvik-cache/data@[email protected][email protected]

09-06 04:13:44.390: DEBUG/PackageManager(1265): New package installed in /data/app/com.rovio.angrybirds_lite-1.apk

09-06 04:13:44.900: DEBUG/dalvikvm(1265): GC_EXPLICIT freed 7699 objects / 444776 bytes in 185ms

09-06 04:13:44.940: DEBUG/AndroidRuntime(2468): Shutting down VM

09-06 04:13:44.990: DEBUG/HomeLoaders(2423): application intent received: android.intent.action.PACKAGE_ADDED, replacing=false

09-06 04:13:44.990: DEBUG/HomeLoaders(2423): --> package:com.rovio.angrybirds_lite

09-06 04:13:44.990: DEBUG/HomeLoaders(2423): --> add package

09-06 04:13:45.080: INFO/VoiceActionsFactory(2444): Applications list changed, recalculating supported actions

09-06 04:13:46.070: WARN/Settings(2484): Setting android_id has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.

09-06 04:13:47.700: DEBUG/VoiceDialerReceiver(2496): onReceive Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.rovio.angrybirds_lite flg=0x10000000 cmp=com.android.voicedialer/.VoiceDialerReceiver (has extras) }

09-06 04:13:47.760: INFO/ActivityManager(1265): Start proc com.android.vending for broadcast com.android.vending/.PackageMonitorReceiver: pid=2502 uid=10048 gids={1015, 3003}

09-06 04:13:48.750: INFO/ActivityThread(2502): Publishing provider com.android.vending.SuggestionsProvider: com.android.vending.SuggestionsProvider

09-06 04:13:49.700: DEBUG/vending(2502): [11] LocalDbSyncService.run(): Syncing local DB with package manager...

09-06 04:13:49.800: INFO/ActivityManager(1265): Start proc com.noshufou.android.su for broadcast com.noshufou.android.su/.InstallReceiver: pid=2513 uid=10045 gids={1015, 3003}

09-06 04:13:49.930: DEBUG/vending(2502): [11] LocalAssetDatabase.syncWithPackageManager(): No INSTALLING or UNINSTALLING assets.

09-06 04:13:50.410: DEBUG/dalvikvm(2502): GC_FOR_MALLOC freed 1873 objects / 123944 bytes in 141ms

09-06 04:13:50.600: DEBUG/vending(2502): [12] LocalAssetCache.updateOnePackage(): No local info for com.rovio.angrybirds_lite

09-06 04:13:50.640: DEBUG/vending(2502): [11] LocalDbSyncService.run(): Syncing done.

09-06 04:13:50.700: DEBUG/InstallReceiver(2513): com.rovio.angrybirds_lited

The logs don't appear to be very useful but I'll post them anyway.

Edited by flibblesan
Link to comment
Share on other sites

From what I saw in the vold source the other day it seems like asec is a staging area used for installing to sd. I think it installs to asec, does some checks, then installs to sd. If no sd card is mounted it would make sense that asec is no longer needed.

Link to comment
Share on other sites

Guest Simon O
strace. It is included in android (i think only in eng builds normally) but doesn't work properly. The android one seems to usually work for already running processes (so would have worked in this case) but doesn't work for starting a process. I have a version I built from source that works properly.

For this example I used

strace -f -ff -s400 -p <pid of vold>

Wow, that's pretty useful.

Link to comment
Share on other sites

Guest daveycarter
Fibble, when do you sleep? Once a week?:P

+1 lol. I thought I was bad!!! Been following this thread avidly for weeks now, great work to all you guys but when do you sleep or get away from your PCs? LOL.

Really looking forward to the first Beta release of 2.2..................

Dave :)

Link to comment
Share on other sites

BUG: Clicked Snooze on alarm, checked emails, locked phone, phone crashed never played snooze ¬_¬

Damn, I would like to report bugs also, but my Pulse is still on repairing (some HW failure)...

As far as I could read, this 0.40 ROM with few corrections is usable (ok, few problems remain, but, hey, it's a long way to create build 1.0).

Can someone (who knows how - I don't, that's why I'm asking) make images or flashable zip of this build? I would, but I don't know how... And I'm not having my Pulse yet...

All developers involved in this project - you guys (and girls if any) are totally awesome! I wish that I know this stuff so much...

Link to comment
Share on other sites

another issue: I added sensor fix, it worked for a day, then it stopped working. I do not know if there is a causality, but it died when I started an app using sensors (gmail) during a phone call, it stayed on landscape mode.

Link to comment
Share on other sites

Really impressive speed which have the Froyo development.

This project gained a lot of speed while the last week. Was there any key-event which enables the Froyo development for the Pulse so fast?

Link to comment
Share on other sites

Guest flip360
another issue: I added sensor fix, it worked for a day, then it stopped working. I do not know if there is a causality, but it died when I started an app using sensors (gmail) during a phone call, it stayed on landscape mode.

rotation is lost here also? compass works btw...

Edited by flip360
Link to comment
Share on other sites

Guest igor_anta
Gentlemen; Do my eyes deceive me or does the U8220 run froyo?:

http://whiteafrican.com/2010/09/06/100-ide...nches-in-kenya/

http://www.businessdailyafrica.com/Company...04/-/rf069lz/-/

Second article says it's a u8220

Nope it doesn't :P It's the new phone from Huaweit, the IDEOS, I think it' u8150 but not really sure. The Pulse will run Froyo very soon apparently, thanks to the guys on this forum :) Cheers!

Link to comment
Share on other sites

Guest totiadrenalin
Ignore most of those permissions. We found that they break wifi :P They should be:

I only added these as a fix due to the permissions totiadrenalin posted didnt work.

Interestingly CyanogenMod 6 has netcfg set to 2750

I apologize about the wrong permissions I gave yesterday, but messing up with the permissions somehow I get the correct network, and the tethering app working, and without the NAT transaction fault. Now when i did the nandroid restore of the system the tethering app doesn't work again.

I apologize once again, but I really get stuff working yesterday.

Edited by totiadrenalin
Link to comment
Share on other sites

Hi, this is looking great, I'm looking forward to trying it out when it's ready.

Since there are now nearly 1100 posts in this thread, would it be possible for someone in the know (maybe Tom G?) to start a new thread with the current state of progress, known bugs and any available download links listed in the first few posts (and kept up-to-date on those posts, like the FLB mod thread)

Obviously keep this thread for discussing fixes and development etc, but it's kind of hard to find the current state of play in this thread, find downloads, and see if they are potentially usable.

Just a thought

thanks

Edited by Stevos
Link to comment
Share on other sites

Hi, this is looking great, I'm looking forward to trying it out when it's ready.

Since there are now nearly 1100 posts in this thread, would it be possible for someone in the know (maybe Tom G?) to start a new thread with the current state of progress, known bugs and any available download links listed in the first few posts (and kept up-to-date on those posts, like the FLB mod thread)

Obviously keep this thread for discussing fixes and development etc, but it's kind of hard to find the current state of play in this thread, find downloads, and see if they are potentially usable.

Just a thought

thanks

+1

Link to comment
Share on other sites

Guest Simon O
BUG: Clicked Snooze on alarm, checked emails, locked phone, phone crashed never played snooze ¬_¬

Ok I'm testing this now. Waiting for 14:52 when snooze ends

Update: That worked fine. Try replacing the DeskClock.app with this one: DeskClock.zip

Unzip it and push to the phone /system/app/

I did replace a lot of the system apps with FRF91 apps from Cyanogen as they were a bit smaller. Had absolutely no issues with any of them.

Edited by flibblesan
Link to comment
Share on other sites

Guest rikkiej
Ok I'm testing this now. Waiting for 14:52 when snooze ends

Update: That worked fine. Try replacing the DeskClock.app with this one: DeskClock.zip

Unzip it and push to the phone /system/app/

I did replace a lot of the system apps with FRF91 apps from Cyanogen as they were a bit smaller. Had absolutely no issues with any of them.

When mounting adb in rw it sais remount completen, but when i try to push it sais it is in RO mode. Tried reboot and reconnect but doesn't fix anything. What might I be doing wrong?

adb remount rw

adb push C:\android\DeskClock.apk system\app\

Edit: Thnx flib, it's fixed

Edited by rikkiej
Link to comment
Share on other sites

Guest Simon O
When mounting adb in rw it sais remount completen, but when i try to push it sais it is in RO mode. Tried reboot and reconnect but doesn't fix anything. What might I be doing wrong?

adb remount rw
adb push C:\android\DeskClock.apk system\app\[/code]

Try:

adb remount

adb push C:\android\DeskClock.apk /system/app/DeskClock.apk

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.