android 不能安装超过600MB文件?

简介: android 不能安装超过600MB文件?

出错LOG如下


05-31 08:02:03.980: I/ActivityManager(481): START {act=android.intent.action.VIEW dat=file:///mnt/sdcard/Jianfeiliaocheng.apk typ=application/vnd.android.package-archive flg=0x10000000 cmp=com.android.packageinstaller/.PackageInstallerActivity u=0} from pid 2204
05-31 08:02:03.990: D/AudioHardware(112): AudioHardware pcm playback is exiting standby.
05-31 08:02:03.990: D/AudioHardware(112): openPcmOut_l() mPcmOpenCnt: 0
05-31 08:02:04.400: W/InputMethodManagerService(481): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@417b6b90 attribute=null
05-31 08:02:04.400: W/ActivityManager(481): No content provider found for permission revoke: file:///mnt/sdcard/Jianfeiliaocheng.apk
05-31 08:02:04.400: D/VoldCmdListener(105): asec list
05-31 08:02:04.410: I/PackageHelper(2241): Size of container 668 MB
05-31 08:02:04.420: D/VoldCmdListener(105): asec create smdl2tmp3 668 fat {} 10007 1
05-31 08:02:04.440: D/dalvikvm(5388): GC_FOR_ALLOC freed 1146K, 20% free 6115K/7623K, paused 9ms, total 14ms
05-31 08:02:04.440: I/dalvikvm-heap(5388): Grow heap (frag case) to 7.259MB for 1048592-byte allocation
05-31 08:02:04.460: D/dalvikvm(5388): GC_CONCURRENT freed 21K, 7% free 7117K/7623K, paused 11ms+1ms, total 20ms
05-31 08:02:04.680: D/dalvikvm(2204): GC_FOR_ALLOC freed 1149K, 38% free 8163K/12999K, paused 38ms, total 39ms
05-31 08:02:04.680: I/dalvikvm-heap(2204): Grow heap (frag case) to 9.259MB for 1048592-byte allocation
05-31 08:02:04.740: D/dalvikvm(2204): GC_CONCURRENT freed 10K, 30% free 9176K/12999K, paused 11ms+31ms, total 52ms
05-31 08:02:04.840: D/RockExplorer.java(2204):  ________________ flash: mounted;  sdcard: removed
05-31 08:02:07.470: D/AudioHardware(112): AudioHardware pcm playback is going to standby.
05-31 08:02:07.470: D/AudioHardware(112): closePcmOut_l() mPcmOpenCnt: 1
05-31 08:02:09.890: D/PowerManagerService(481): ALog 0419 > setPowerState reason = 3
05-31 08:02:51.220: I/EventLogService(817): Aggregate from 1369985571098 (log), 1369985571098 (data)
05-31 08:02:51.580: D/dalvikvm(481): GC_CONCURRENT freed 1133K, 30% free 10644K/15111K, paused 285ms+4ms, total 332ms
05-31 08:02:51.840: W/AlarmManager(481): setRepeating, pkgName=com.google.android.gsf, alarmType=1
05-31 08:03:00.000: W/AlarmManager(481): setRepeating, pkgName=android, alarmType=3
05-31 08:03:00.450: W/System.err(481): libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
05-31 08:03:00.450: W/SocketClient(106): write error (Broken pipe)
05-31 08:03:01.090: W/System.err(481): at libcore.io.Posix.getaddrinfo(Native Method)
05-31 08:03:01.090: W/System.err(481): at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:55)
05-31 08:03:01.090: W/System.err(481): at java.net.InetAddress.lookupHostByName(InetAddress.java:406)
05-31 08:03:01.090: W/System.err(481): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
05-31 08:03:01.090: W/System.err(481): at java.net.InetAddress.getByName(InetAddress.java:289)
05-31 08:03:01.090: W/System.err(481): at android.net.SntpClient.requestTime(SntpClient.java:78)
05-31 08:03:01.090: W/System.err(481): at android.util.NtpTrustedTime.forceRefresh(NtpTrustedTime.java:83)
05-31 08:03:01.090: W/System.err(481): at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:913)
05-31 08:03:01.090: W/System.err(481): at com.android.server.net.NetworkStatsService.access$700(NetworkStatsService.java:131)
05-31 08:03:01.090: W/System.err(481): at com.android.server.net.NetworkStatsService$4.onReceive(NetworkStatsService.java:729)
05-31 08:03:01.090: W/System.err(481): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:755)
05-31 08:03:01.090: W/System.err(481): at android.os.Handler.handleCallback(Handler.java:615)
05-31 08:03:01.090: W/System.err(481): at android.os.Handler.dispatchMessage(Handler.java:92)
05-31 08:03:01.090: W/System.err(481): at android.os.Looper.loop(Looper.java:137)
05-31 08:03:01.090: W/System.err(481): at android.os.HandlerThread.run(HandlerThread.java:60)
05-31 08:03:01.100: W/System.err(481): Caused by: libcore.io.ErrnoException: getaddrinfo failed: ENETUNREACH (Network is unreachable)
05-31 08:03:01.100: W/System.err(481): ... 15 more
05-31 08:03:04.420: E/NativeDaemonConnector.ResponseQueue(481): Timeout waiting for response
05-31 08:03:04.420: E/PackageHelper(2241): Failed to create secure container smdl2tmp3
05-31 08:03:04.420: D/PackageManagerService(481): ALog 0531 > AsecInstallArgs.copyApk() _return INSTALL_FAILED_CONTAINER_ERROR
05-31 08:03:04.420: D/dalvikvm(481): WAIT_FOR_CONCURRENT_GC blocked 0ms
05-31 08:03:04.420: E/VoldConnector(481): timed-out waiting for response to 10 asec create smdl2tmp3 668 fat bb58a4b1302cdca61c1ec0f9f06831ca 10007 1
05-31 08:03:04.420: E/DefContainer(2241): Failed to create container smdl2tmp3
05-31 08:03:04.420: W/ActivityManager(481): No content provider found for permission revoke: file:///mnt/sdcard/Jianfeiliaocheng.apk


/**********************************************************************/



神奇的问题, 提示应用不能安装.


返回错误代码: INSTALL_FAILED_CONTAINER_ERROR


代码值 : -18


原因 : 05-31 08:03:04.420: E/NativeDaemonConnector.ResponseQueue(481): Timeout waiting for response



解决:


把超时时间加长.


--- a/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
+++ b/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
@@ -57,7 +57,7 @@ final class NativeDaemonConnector implements Runnable, Handler.Callback, Watchdo
     private AtomicInteger mSequenceNumber;
-    private static final int DEFAULT_TIMEOUT = 1 * 60 * 1000; /* 1 minute */
+    private static final int DEFAULT_TIMEOUT = 2 * 60 * 1000; /* 1 minute */
     private static final long WARN_EXECUTE_DELAY_MS = 500; /* .5 sec */
     /** Lock held whenever communicating with native daemon. */


相关文章
|
3月前
|
ARouter Android开发
Android不同module布局文件重名被覆盖
Android不同module布局文件重名被覆盖
|
5月前
|
Java Android开发 C++
Android Studio JNI 使用模板:c/cpp源文件的集成编译,快速上手
本文提供了一个Android Studio中JNI使用的模板,包括创建C/C++源文件、编辑CMakeLists.txt、编写JNI接口代码、配置build.gradle以及编译生成.so库的详细步骤,以帮助开发者快速上手Android平台的JNI开发和编译过程。
380 1
|
3月前
|
ARouter Android开发
Android不同module布局文件重名被覆盖
Android不同module布局文件重名被覆盖
186 0
|
5月前
|
开发工具 git 索引
repo sync 更新源码 android-12.0.0_r34, fatal: 不能重置索引文件至版本 ‘v2.27^0‘。
本文描述了在更新AOSP 12源码时遇到的repo同步错误,并提供了通过手动git pull更新repo工具来解决这一问题的方法。
189 1
|
5月前
|
Android开发
解决android apk安装后出现2个相同的应用图标
解决android apk安装后出现2个相同的应用图标
391 2
|
5月前
|
存储 监控 数据库
Android经典实战之OkDownload的文件分段下载及合成原理
本文介绍了 OkDownload,一个高效的 Android 下载引擎,支持多线程下载、断点续传等功能。文章详细描述了文件分段下载及合成原理,包括任务创建、断点续传、并行下载等步骤,并展示了如何通过多种机制保证下载的稳定性和完整性。
164 0
|
6月前
|
Oracle Java 关系型数据库
Android studio 安装以及第一个程序
Android studio 安装以及第一个程序
151 0
|
7月前
|
存储 Android开发
详细解读Android获取已安装应用信息(图标,名称,版本号,包)
详细解读Android获取已安装应用信息(图标,名称,版本号,包)
96 0
|
7月前
|
Java 开发工具 Android开发
详细解读Android开发DNK开发将.c文件打包成os
详细解读Android开发DNK开发将.c文件打包成os
36 0
|
7月前
|
Android开发
Android Gradle开发—脚本实现自动打包后复制一份APK文件,并修改APK名称,到指定目录作备份
Android Gradle开发—脚本实现自动打包后复制一份APK文件,并修改APK名称,到指定目录作备份
374 0