2017-02-24 70 views
0

当我运行的Android下午从终端安装需要永远和无助

su 
pm install -r /sdcard/my.apk 
    pkg: /sdcard/my.apk 

保持它卡住foverer和什么也不做(发生任何应用程序)。

的logcat:

-------- beginning of system 
    E/ActivityManager(4392): Invalid thumbnail dimensions: 0x0 
    --------- beginning of main 
    E/MPlugin (19178): Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport 
    D/InternationalCompat(19178): applicationiInit chinese build 
E/ActivityManager(4392): Invalid thumbnail dimensions: 0x0 
    I/TmBinderCacher(19178): onServiceConnected name=ComponentInfo{com.miui.securitycenter/com.miui.networkassistant.service.tm.TrafficManageService} 
    E/JavaBinder(19178): !!! FAILED BINDER TRANSACTION !!! 

,这时候杀掉该进程:

W/InputEventReceiver(6032): Attempted to finish an input event but the input event receiver has already been disposed. 
F/libc (8543): Fatal signal 13 (SIGPIPE), code 0 in tid 8543 (su) 
E/AEE/AED (8591): ptrace attach failed: Permission denied 

我也可以前(小时我做之前)安装的APK。

我从设备这样做(终端仿真器)......是因为如果包管理器被打破,因为许多安装在时间和一些被interrumped ......什么办法来解决包管理器?

我有未知的来源,根,等等等等等等...我尝试重新启动,清除dalvik缓存,刷新ROM等...如果我将擦除数据确保问题将被修复,但我不“不想擦拭数据...

回答

0

您可能需要改变你的一些开发人员选项,使您安装了USB APK文件到您的内部存储或添加SD卡。

  1. 首先请确保您已启用开发人员选项。如果你需要的话,打开设置,向下滚动到“关于设备”并点击这个7倍。

2)在设置后,单击其他设置

3)单击开发人员选项

4)点击 “通过USB安装” 切换来启用它。转到下面,即使你没有看到“通过USB安装”作为一个选项

5)打开的开发商选择“USB调试”以及

这是我最好的猜测到第5步。

+0

我从设备这样做(终端仿真器)......是因为如果包管理器被打破,因为许多安装在时间和一些被interrumped ......什么办法来解决包管理器? –