Bug 曝光台 Android 模拟器 12306 Application Error

卡农Lucas · 2015年06月07日 · 最后由 思寒_seveniruby 回复于 2015年10月11日 · 2151 次阅读

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 条回复 时间 点赞

肯定做了模拟器限制吧

@lihuazhang 百度了一个

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

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

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

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

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册