[android-developers] Re: Max app size
I've filed a bug about the issue, can be seen here: http://code.google.com/p/android/issues/detail?id=4250 On Wed, Oct 14, 2009 at 1:21 AM, westmeadboy westmead...@yahoo.co.ukwrote: It would be nice if the Manifest could specify the ratio (default would be 4). On Oct 14, 12:17 pm, Lucas roll...@gmail.com wrote: Hello, Well finally i found what is happening. And it explains the issues i was having and also what you said. I decided to take a look at the OS installer process, and i found the code that explains it all. packageinstaller/PackageInstallerActiviity.java (line 293): //compute the size of the application. just an estimate long size; String apkPath = mPackageURI.getPath(); File apkFile = new File(apkPath); //TODO? DEVISE BETTER HEAURISTIC size = 4*apkFile.length(); checkOutOfSpace(size); As you can see the installer checks to have at least **4** times the size of the apk we want to install in order to let it go. I think is a bit to much, and Google engineers must look on improving this restriction to at least not more than 2,5 times apk size. regards, Lucas On Oct 9, 4:56 pm, Dan Sherman impact...@gmail.com wrote: I've had issues with the market installs as well (at least on 1.5), where a 6mb apk required 24mb of free space to install... - Dan On Fri, Oct 9, 2009 at 3:50 PM, RichardC richard.crit...@googlemail.comwrote: I am running an application (CoPilot) on my HTC Magic that has installed 197Mb on my SD card. However its download size from the Market is only 6.92Mb. The rest of the data was post installed (maps) that I downloaded via WiFi using the phone. There is also an option to download the maps to your PC and copy them to the SD card. The point I am trying to make here is, I probably would not download a large (10s of Mb) applcation from the Market because the apk file has to go into the internal memory and this is a precious resource to me. However putting large amounts of data on the SD card later is no problem. With your example of installing from an SD card, can you not leave most of the data on the SD card and just install the application code on the phone? -- RichardC On Oct 9, 8:11 pm, rollbak roll...@gmail.com wrote: Hello, Which is the max application size that can be installed in Android? I have made several tests in different Android handsets (Hero, G1, Motorola Motus, Samsung Behold 2), and using adb i was able of installing up to 100mb application in Hero and Motus, but trying to install by SD card or OTA i was limited to a maximum of 50mb (even if the devices have 200mb of free space). Does anyone know which are the restrictions here? Thanks, Lucas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Max app size
That doesn't make sense. The ratio follows from how the system installs apps, so it would be silly to allow apps to override it. On Tue, Oct 13, 2009 at 10:21 PM, westmeadboy westmead...@yahoo.co.uk wrote: It would be nice if the Manifest could specify the ratio (default would be 4). On Oct 14, 12:17 pm, Lucas roll...@gmail.com wrote: Hello, Well finally i found what is happening. And it explains the issues i was having and also what you said. I decided to take a look at the OS installer process, and i found the code that explains it all. packageinstaller/PackageInstallerActiviity.java (line 293): //compute the size of the application. just an estimate long size; String apkPath = mPackageURI.getPath(); File apkFile = new File(apkPath); //TODO? DEVISE BETTER HEAURISTIC size = 4*apkFile.length(); checkOutOfSpace(size); As you can see the installer checks to have at least **4** times the size of the apk we want to install in order to let it go. I think is a bit to much, and Google engineers must look on improving this restriction to at least not more than 2,5 times apk size. regards, Lucas On Oct 9, 4:56 pm, Dan Sherman impact...@gmail.com wrote: I've had issues with the market installs as well (at least on 1.5), where a 6mb apk required 24mb of free space to install... - Dan On Fri, Oct 9, 2009 at 3:50 PM, RichardC richard.crit...@googlemail.comwrote: I am running an application (CoPilot) on my HTC Magic that has installed 197Mb on my SD card. However its download size from the Market is only 6.92Mb. The rest of the data was post installed (maps) that I downloaded via WiFi using the phone. There is also an option to download the maps to your PC and copy them to the SD card. The point I am trying to make here is, I probably would not download a large (10s of Mb) applcation from the Market because the apk file has to go into the internal memory and this is a precious resource to me. However putting large amounts of data on the SD card later is no problem. With your example of installing from an SD card, can you not leave most of the data on the SD card and just install the application code on the phone? -- RichardC On Oct 9, 8:11 pm, rollbak roll...@gmail.com wrote: Hello, Which is the max application size that can be installed in Android? I have made several tests in different Android handsets (Hero, G1, Motorola Motus, Samsung Behold 2), and using adb i was able of installing up to 100mb application in Hero and Motus, but trying to install by SD card or OTA i was limited to a maximum of 50mb (even if the devices have 200mb of free space). Does anyone know which are the restrictions here? Thanks, Lucas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Max app size
On Oct 15, 1:16 am, Marco Nelissen marc...@android.com wrote: That doesn't make sense. The ratio follows from how the system installs apps, so it would be silly to allow apps to override it. But why exactly is it 4x the APK LENGTH? Maybe the uncompressed apk length is more relevant? For example, I have a 7MB apk containing a 7MB zip file in res/raw. The application simply streams the zip to the SD card so the VM does not need much memory at all. Why is the ratio set to 4? If we had a perfectly tuned ratio (potentially not a constant) how does it depend on factors like APK file properties (e.g. length, uncompressed length), application memory usage, Dalvik VM implementation etc...? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Max app size
Hello, This is not an option for me. I am studying the possibility of porting my iPhone HD games (50mb-200mb) to Android, and having the assets in the sdcard or downloaded it's not what i want. Anyway, thanks for the suggestion. On Oct 9, 4:50 pm, RichardC richard.crit...@googlemail.com wrote: I am running an application (CoPilot) on my HTC Magic that has installed 197Mb on my SD card. However its downloadsizefrom the Market is only 6.92Mb. The rest of the data was post installed (maps) that I downloaded via WiFi using the phone. There is also an option to download the maps to your PC and copy them to the SD card. The point I am trying to make here is, I probably would not download a large (10s of Mb) applcation from the Market because the apk file has to go into the internal memory and this is a precious resource to me. However putting large amounts of data on the SD card later is no problem. With your example of installing from an SD card, can you not leave most of the data on the SD card and just install the application code on the phone? -- RichardC On Oct 9, 8:11 pm, rollbak roll...@gmail.com wrote: Hello, Which is themaxapplicationsizethat can be installed in Android? I have made several tests in different Android handsets (Hero, G1, Motorola Motus, Samsung Behold 2), and using adb i was able of installing up to 100mb application in Hero and Motus, but trying to install by SD card or OTA i was limited to a maximum of 50mb (even if the devices have 200mb of free space). Does anyone know which are the restrictions here? Thanks, Lucas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Max app size
Hello, Well finally i found what is happening. And it explains the issues i was having and also what you said. I decided to take a look at the OS installer process, and i found the code that explains it all. packageinstaller/PackageInstallerActiviity.java (line 293): //compute the size of the application. just an estimate long size; String apkPath = mPackageURI.getPath(); File apkFile = new File(apkPath); //TODO? DEVISE BETTER HEAURISTIC size = 4*apkFile.length(); checkOutOfSpace(size); As you can see the installer checks to have at least **4** times the size of the apk we want to install in order to let it go. I think is a bit to much, and Google engineers must look on improving this restriction to at least not more than 2,5 times apk size. regards, Lucas On Oct 9, 4:56 pm, Dan Sherman impact...@gmail.com wrote: I've had issues with the market installs as well (at least on 1.5), where a 6mb apk required 24mb of free space to install... - Dan On Fri, Oct 9, 2009 at 3:50 PM, RichardC richard.crit...@googlemail.comwrote: I am running an application (CoPilot) on my HTC Magic that has installed 197Mb on my SD card. However its download size from the Market is only 6.92Mb. The rest of the data was post installed (maps) that I downloaded via WiFi using the phone. There is also an option to download the maps to your PC and copy them to the SD card. The point I am trying to make here is, I probably would not download a large (10s of Mb) applcation from the Market because the apk file has to go into the internal memory and this is a precious resource to me. However putting large amounts of data on the SD card later is no problem. With your example of installing from an SD card, can you not leave most of the data on the SD card and just install the application code on the phone? -- RichardC On Oct 9, 8:11 pm, rollbak roll...@gmail.com wrote: Hello, Which is the max application size that can be installed in Android? I have made several tests in different Android handsets (Hero, G1, Motorola Motus, Samsung Behold 2), and using adb i was able of installing up to 100mb application in Hero and Motus, but trying to install by SD card or OTA i was limited to a maximum of 50mb (even if the devices have 200mb of free space). Does anyone know which are the restrictions here? Thanks, Lucas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Max app size
It would be nice if the Manifest could specify the ratio (default would be 4). On Oct 14, 12:17 pm, Lucas roll...@gmail.com wrote: Hello, Well finally i found what is happening. And it explains the issues i was having and also what you said. I decided to take a look at the OS installer process, and i found the code that explains it all. packageinstaller/PackageInstallerActiviity.java (line 293): //compute the size of the application. just an estimate long size; String apkPath = mPackageURI.getPath(); File apkFile = new File(apkPath); //TODO? DEVISE BETTER HEAURISTIC size = 4*apkFile.length(); checkOutOfSpace(size); As you can see the installer checks to have at least **4** times the size of the apk we want to install in order to let it go. I think is a bit to much, and Google engineers must look on improving this restriction to at least not more than 2,5 times apk size. regards, Lucas On Oct 9, 4:56 pm, Dan Sherman impact...@gmail.com wrote: I've had issues with the market installs as well (at least on 1.5), where a 6mb apk required 24mb of free space to install... - Dan On Fri, Oct 9, 2009 at 3:50 PM, RichardC richard.crit...@googlemail.comwrote: I am running an application (CoPilot) on my HTC Magic that has installed 197Mb on my SD card. However its download size from the Market is only 6.92Mb. The rest of the data was post installed (maps) that I downloaded via WiFi using the phone. There is also an option to download the maps to your PC and copy them to the SD card. The point I am trying to make here is, I probably would not download a large (10s of Mb) applcation from the Market because the apk file has to go into the internal memory and this is a precious resource to me. However putting large amounts of data on the SD card later is no problem. With your example of installing from an SD card, can you not leave most of the data on the SD card and just install the application code on the phone? -- RichardC On Oct 9, 8:11 pm, rollbak roll...@gmail.com wrote: Hello, Which is the max application size that can be installed in Android? I have made several tests in different Android handsets (Hero, G1, Motorola Motus, Samsung Behold 2), and using adb i was able of installing up to 100mb application in Hero and Motus, but trying to install by SD card or OTA i was limited to a maximum of 50mb (even if the devices have 200mb of free space). Does anyone know which are the restrictions here? Thanks, Lucas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Max app size
I am running an application (CoPilot) on my HTC Magic that has installed 197Mb on my SD card. However its download size from the Market is only 6.92Mb. The rest of the data was post installed (maps) that I downloaded via WiFi using the phone. There is also an option to download the maps to your PC and copy them to the SD card. The point I am trying to make here is, I probably would not download a large (10s of Mb) applcation from the Market because the apk file has to go into the internal memory and this is a precious resource to me. However putting large amounts of data on the SD card later is no problem. With your example of installing from an SD card, can you not leave most of the data on the SD card and just install the application code on the phone? -- RichardC On Oct 9, 8:11 pm, rollbak roll...@gmail.com wrote: Hello, Which is the max application size that can be installed in Android? I have made several tests in different Android handsets (Hero, G1, Motorola Motus, Samsung Behold 2), and using adb i was able of installing up to 100mb application in Hero and Motus, but trying to install by SD card or OTA i was limited to a maximum of 50mb (even if the devices have 200mb of free space). Does anyone know which are the restrictions here? Thanks, Lucas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Max app size
I've had issues with the market installs as well (at least on 1.5), where a 6mb apk required 24mb of free space to install... - Dan On Fri, Oct 9, 2009 at 3:50 PM, RichardC richard.crit...@googlemail.comwrote: I am running an application (CoPilot) on my HTC Magic that has installed 197Mb on my SD card. However its download size from the Market is only 6.92Mb. The rest of the data was post installed (maps) that I downloaded via WiFi using the phone. There is also an option to download the maps to your PC and copy them to the SD card. The point I am trying to make here is, I probably would not download a large (10s of Mb) applcation from the Market because the apk file has to go into the internal memory and this is a precious resource to me. However putting large amounts of data on the SD card later is no problem. With your example of installing from an SD card, can you not leave most of the data on the SD card and just install the application code on the phone? -- RichardC On Oct 9, 8:11 pm, rollbak roll...@gmail.com wrote: Hello, Which is the max application size that can be installed in Android? I have made several tests in different Android handsets (Hero, G1, Motorola Motus, Samsung Behold 2), and using adb i was able of installing up to 100mb application in Hero and Motus, but trying to install by SD card or OTA i was limited to a maximum of 50mb (even if the devices have 200mb of free space). Does anyone know which are the restrictions here? Thanks, Lucas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---