Bug 曝光台 Android 模拟器 12306 Application Error

Lucas · June 07, 2015 · Last by 思寒_seveniruby replied at October 11, 2015 · 1589 hits

Android模拟器12306 Application Error

Repro Steps

  • 豌豆荚搜索12306
  • 安装之
  • 点击12306启动

Actual Results (Error Image)

Android Version Info

Exception/Log/CallStack

06-07 08:40:44.426      291-344/system_process E/SoundPool error loading /system/media/audio/ui/Effect_Tick.ogg
06-07 08:40:44.435 291-344/system_process E/SoundPool error loading /system/media/audio/ui/Effect_Tick.ogg
06-07 08:40:44.445 291-344/system_process E/SoundPool error loading /system/media/audio/ui/Effect_Tick.ogg
06-07 08:40:44.445 291-344/system_process E/SoundPool error loading /system/media/audio/ui/Effect_Tick.ogg
06-07 08:40:44.445 291-344/system_process E/SoundPool error loading /system/media/audio/ui/Effect_Tick.ogg
06-07 08:40:44.455 291-344/system_process E/SoundPool error loading /system/media/audio/ui/KeypressStandard.ogg
06-07 08:40:44.465 291-344/system_process E/SoundPool error loading /system/media/audio/ui/KeypressSpacebar.ogg
06-07 08:40:44.535 291-344/system_process E/SoundPool error loading /system/media/audio/ui/KeypressDelete.ogg
06-07 08:40:44.585 291-344/system_process E/SoundPool error loading /system/media/audio/ui/KeypressReturn.ogg
06-07 08:40:51.695 1960-1960/com.MobileTicket E/xxxx 11111_ start .......
06-07 08:40:51.695 1960-1960/com.MobileTicket E/TEXT text: abcdef
06-07 08:40:51.695 1960-1960/com.MobileTicket E/xxxx 222222_ end ......
06-07 08:41:02.626 1960-1998/com.MobileTicket E/cutils-trace Error opening trace file: No such file or directory (2)
06-07 08:41:09.735 407-730/com.android.phone E/DatabaseUtils Writing exception to parcel
java.lang.SecurityException: No permission to write APN settings: Neither user 10053 nor current process has android.permission.WRITE_APN_SETTINGS.
at android.app.ContextImpl.enforce(ContextImpl.java:1575)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:784)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:511)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
06-07 08:41:10.018 407-430/com.android.phone E/DatabaseUtils Writing exception to parcel
java.lang.SecurityException: No permission to write APN settings: Neither user 10053 nor current process has android.permission.WRITE_APN_SETTINGS.
at android.app.ContextImpl.enforce(ContextImpl.java:1575)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:784)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:511)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
06-07 08:41:10.955 407-551/com.android.phone E/DatabaseUtils Writing exception to parcel
java.lang.SecurityException: No permission to write APN settings: Neither user 10053 nor current process has android.permission.WRITE_APN_SETTINGS.
at android.app.ContextImpl.enforce(ContextImpl.java:1575)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:784)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:511)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
06-07 08:41:11.065 36-124/? E/SurfaceFlinger ro.sf.lcd_density must be defined as a build property
06-07 08:41:12.485 407-730/com.android.phone E/DatabaseUtils Writing exception to parcel
java.lang.SecurityException: No permission to write APN settings: Neither user 10053 nor current process has android.permission.WRITE_APN_SETTINGS.
at android.app.ContextImpl.enforce(ContextImpl.java:1575)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:784)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:511)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
06-07 08:41:26.495 1960-1960/com.MobileTicket E/CordovaWebView CordovaWebView: TIMEOUT ERROR!
06-07 08:41:38.125 407-730/com.android.phone E/DatabaseUtils Writing exception to parcel
java.lang.SecurityException: No permission to write APN settings: Neither user 10053 nor current process has android.permission.WRITE_APN_SETTINGS.
at android.app.ContextImpl.enforce(ContextImpl.java:1575)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:784)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:511)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
06-07 08:41:38.409 407-430/com.android.phone E/DatabaseUtils Writing exception to parcel
java.lang.SecurityException: No permission to write APN settings: Neither user 10053 nor current process has android.permission.WRITE_APN_SETTINGS.
at android.app.ContextImpl.enforce(ContextImpl.java:1575)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:784)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:511)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
06-07 08:41:38.446 407-966/com.android.phone E/DatabaseUtils Writing exception to parcel
java.lang.SecurityException: No permission to write APN settings: Neither user 10053 nor current process has android.permission.WRITE_APN_SETTINGS.
at android.app.ContextImpl.enforce(ContextImpl.java:1575)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:784)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:511)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
06-07 08:41:38.535 407-621/com.android.phone E/DatabaseUtils Writing exception to parcel
java.lang.SecurityException: No permission to write APN settings: Neither user 10053 nor current process has android.permission.WRITE_APN_SETTINGS.
at android.app.ContextImpl.enforce(ContextImpl.java:1575)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:784)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:511)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
06-07 08:41:39.335 407-430/com.android.phone E/DatabaseUtils Writing exception to parcel
java.lang.SecurityException: No permission to write APN settings: Neither user 10053 nor current process has android.permission.WRITE_APN_SETTINGS.
at android.app.ContextImpl.enforce(ContextImpl.java:1575)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:784)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:511)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
06-07 08:41:41.875 407-730/com.android.phone E/DatabaseUtils Writing exception to parcel
java.lang.SecurityException: No permission to write APN settings: Neither user 10053 nor current process has android.permission.WRITE_APN_SETTINGS.
at android.app.ContextImpl.enforce(ContextImpl.java:1575)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:784)
at com.android.providers.telephony.TelephonyProvider.query(TelephonyProvider.java:511)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
06-07 08:42:51.335 291-344/system_process E/SoundPool error loading /system/media/audio/ui/Effect_Tick.ogg
06-07 08:42:51.346 291-344/system_process E/SoundPool error loading /system/media/audio/ui/Effect_Tick.ogg
06-07 08:42:51.356 291-344/system_process E/SoundPool error loading /system/media/audio/ui/Effect_Tick.ogg
06-07 08:42:51.365 291-344/system_process E/SoundPool error loading /system/media/audio/ui/Effect_Tick.ogg
06-07 08:42:51.375 291-344/system_process E/SoundPool error loading /system/media/audio/ui/Effect_Tick.ogg
06-07 08:42:51.375 291-344/system_process E/SoundPool error loading /system/media/audio/ui/KeypressStandard.ogg
06-07 08:42:51.415 291-344/system_process E/SoundPool error loading /system/media/audio/ui/KeypressSpacebar.ogg
06-07 08:42:51.425 291-344/system_process E/SoundPool error loading /system/media/audio/ui/KeypressDelete.ogg
06-07 08:42:51.465 291-344/system_process E/SoundPool error loading /system/media/audio/ui/KeypressReturn.ogg
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 4 条回复 时间 点赞

肯定做了模拟器限制吧

Lucas #2 · June 07, 2015 作者

@lihuazhang 百度了一个

产生原因
4.0以上版本,google禁掉了android.permission.WRITE_APN_SETTINGS,
解决办法:
一种是应用有ROOT权限
另外一种是设置APK的UID和system的一样,

不明白 12306 干嘛要改写 APN 设置?它用的文件路径看起来是本地文件啊。网络通讯也不至于要改 APN 吧。

#1楼 @lihuazhang
#2楼 @lucasluo
#3楼 @chenhengjie123

这应该是反调试的技术. 不让在模拟器上调试

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up