日本搞逼视频_黄色一级片免费在线观看_色99久久_性明星video另类hd_欧美77_综合在线视频

國(guó)內(nèi)最全I(xiàn)T社區(qū)平臺(tái) 聯(lián)系我們 | 收藏本站
阿里云優(yōu)惠2
您當(dāng)前位置:首頁(yè) > php開(kāi)源 > 綜合技術(shù) > java.lang.SecurityException:under uid 10090 but it is really 10060

java.lang.SecurityException:under uid 10090 but it is really 10060

來(lái)源:程序員人生   發(fā)布時(shí)間:2015-01-17 10:10:55 閱讀次數(shù):4956次
E/DatabaseUtils( 1255): java.lang.SecurityException: Package com.flyaudio.skin does not belong to 10090
E/DatabaseUtils( 1255):     at android.app.AppOpsManager.checkPackage(AppOpsManager.java:1133)
E/DatabaseUtils( 1255):     at android.content.ContentProvider.getCallingPackage(ContentProvider.java:570)
E/DatabaseUtils( 1255):     at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:635)
E/DatabaseUtils( 1255):     at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
E/DatabaseUtils( 1255):     at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:275)
E/DatabaseUtils( 1255):     at android.os.Binder.execTransact(Binder.java:404)
E/DatabaseUtils( 1255):     at dalvik.system.NativeStart.run(Native Method)
W/AppOps  ( 1255): Bad call: specified package com.flyaudio.skin under uid 10090 but it is really 10060



android4.4.4高通平臺(tái)出現(xiàn)這個(gè)問(wèn)題。

跟蹤代碼知道是Settings.System.putInt(resolver, Settings.System.SCREEN_BRIGHTNESS, brightness);出錯(cuò)。

從網(wǎng)上找到解決辦法:

修改/frameworks/base/core/java/android/app/ContextImpl.java


private ContextImpl(ContextImpl container, ActivityThread mainThread, LoadedApk packageInfo, IBinder activityToken, UserHandle user, boolean restricted, Display display, Configuration overrideConfiguration)改成以下:


private ContextImpl(ContextImpl container, ActivityThread mainThread, LoadedApk packageInfo, IBinder activityToken, UserHandle user, boolean restricted, Display display, Configuration overrideConfiguration) { mOuterContext = this; mMainThread = mainThread; mActivityToken = activityToken; mRestricted = restricted; if (user == null) { user = Process.myUserHandle(); } mUser = user; mPackageInfo = packageInfo; mResourcesManager = ResourcesManager.getInstance(); mDisplay = display; mOverrideConfiguration = overrideConfiguration; final int displayId = getDisplayId(); CompatibilityInfo compatInfo = null; if (container != null) { compatInfo = container.getDisplayAdjustments(displayId).getCompatibilityInfo(); } if (compatInfo == null && displayId == Display.DEFAULT_DISPLAY) { compatInfo = packageInfo.getCompatibilityInfo(); } mDisplayAdjustments.setCompatibilityInfo(compatInfo); mDisplayAdjustments.setActivityToken(activityToken); Resources resources = packageInfo.getResources(mainThread); if (resources != null) { if (activityToken != null || displayId != Display.DEFAULT_DISPLAY || overrideConfiguration != null || (compatInfo != null && compatInfo.applicationScale != resources.getCompatibilityInfo().applicationScale)) { resources = mResourcesManager.getTopLevelResources( packageInfo.getResDir(), displayId, overrideConfiguration, compatInfo, activityToken); } } mResources = resources; if (container != null) { mBasePackageName = container.mBasePackageName; mOpPackageName = container.mOpPackageName; } else { mBasePackageName = packageInfo.mPackageName; ApplicationInfo ainfo = packageInfo.getApplicationInfo(); if (ainfo.uid == Process.SYSTEM_UID && ainfo.uid != Process.myUid()) { // Special case: system components allow themselves to be loaded in to other // processes. For purposes of app ops, we must then consider the context as // belonging to the package of this process, not the system itself, otherwise // the package+uid verifications in app ops will fail. mOpPackageName = ActivityThread.currentPackageName(); } else { mOpPackageName = mBasePackageName; } } mContentResolver = new ApplicationContentResolver(this, mainThread, user); }
重新編譯framework

生活不易,碼農(nóng)辛苦
如果您覺(jué)得本網(wǎng)站對(duì)您的學(xué)習(xí)有所幫助,可以手機(jī)掃描二維碼進(jìn)行捐贈(zèng)
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關(guān)閉
程序員人生
主站蜘蛛池模板: 免费在线观看av片 | 亚洲欧美日韩中文视频 | 日产精品久久久一区二区 | 国产精品成人一区二区三区 | 亚洲精品麻豆 | 91久久精品国产91久久 | 在线免费看黄色 | 亚洲免费小视频 | 最近中文字幕在线观看 | 草草网站| 亚洲 欧美 国产 制服 动漫 | 日操 | 五月婷婷亚洲综合 | 日韩激情在线观看 | 精品国产乱码久久久久久牛牛 | 中文字幕日本在线观看 | 日韩欧美一区二区三区久久婷婷 | 中文字幕在线视频免费观看 | 精品国产久 | www.操.com| 99re热这里只有精品视频 | 亚洲日韩欧美视频 | 一级在线视频 | av中文字幕第一页 | 国产精品网站视频 | 国产单男| 国产精品亚洲一区二区三区在线观看 | 国产美女无遮挡jk免费视频软件 | 久久91久久 | 午夜精品久久久久久不卡av | 韩国精品久久 | 成人一区二区三区 | 在线精品国产 | 国产一区福利 | 一级黄色免费看 | 亚洲视频在线观看网址 | 国产伦精品一区二区三 | 狠狠夜| 欧美一区| 成人免费毛片片v | 性一交一乱一乱一视频96 |