Wizcorp / phonegap-facebook-plugin

The official plugin for Facebook in Apache Cordova/PhoneGap
Other
1.91k stars 2k forks source link

UserId permission error modifying SecSettings.apk in Android 4.4.2 #1269

Open haplox opened 8 years ago

haplox commented 8 years ago

Hello all,

I am trying to make some changes in SecSettings.apk in my stock samsung 4.4.2. When I install the new apk, I get this error in catlog

In packages.xml the new settings sharedUserId is referenced (as in AndroidManifest) in:

<shared-user name="android.haploxxx.system" userId="10007">
         <sigs count="1">
             <cert index="9" />

In package.list it is referenced in:

com.android.settings 10007 0 /data/data/com.android.settings platform 1028,1015,1023,3002,3001,3003

05-06 14:35:19.667 D/STATUSBAR-PhoneStatusBar( 794): mBrightnessEnablebySettings = true mBrightnessEnablebyBattery = true mBrightnessEnablebyDisableFlag = true mPmsBrightnessEnablebySettings = true 05-06 14:35:26.367 W/CSCSettings( 972): Setting Ringtones (type) : 2 05-06 14:35:26.377 W/CSCSettings( 972): Setting Ringtones (type) : 1 05-06 14:35:26.377 W/CSCSettings( 972): 1. Tag_Str: null 05-06 14:35:26.387 W/CSCSettings( 972): 1. Tag_Str: null 05-06 14:35:26.387 W/CSCSettings( 972): Setting Ringtones (type) : 4 05-06 14:35:26.387 W/CSCSettings( 972): 1. Tag_Str: null 05-06 14:35:31.877 D/STATUSBAR-PhoneStatusBar( 794): mBrightnessEnablebySettings = true mBrightnessEnablebyBattery = true mBrightnessEnablebyDisableFlag = true mPmsBrightnessEnablebySettings = true 05-06 14:35:39.757 D/STATUSBAR-PhoneStatusBar( 794): mBrightnessEnablebySettings = true mBrightnessEnablebyBattery = true mBrightnessEnablebyDisableFlag = true mPmsBrightnessEnablebySettings = true 05-06 14:35:43.007 E/ActivityThread( 3232): Failed to find provider info for com.google.android.wearable.settings 05-06 14:35:49.687 D/STATUSBAR-PhoneStatusBar( 794): mBrightnessEnablebySettings = true mBrightnessEnablebyBattery = true mBrightnessEnablebyDisableFlag = true mPmsBrightnessEnablebySettings = true 05-06 14:35:51.397 V/ApplicationPolicy( 662): isApplicationStateBlocked userId 0 pkgname com.android.settings 05-06 14:35:57.917 I/dalvikvm( 3852): Could not find method android.os.UserId.myUserId, referenced from method com.android.settings.PersonalSettings.updateHeaderList 05-06 14:35:58.097 I/dalvikvm( 3852): Could not find method android.os.UserId.myUserId, referenced from method com.android.settings.PersonalSettings.updateHeaderList 05-06 14:35:58.907 I/dalvikvm( 3852): Could not find method android.os.UserId.myUserId, referenced from method com.android.settings.DeviceSettings.updateHeaderList 05-06 14:35:58.907 I/dalvikvm( 3852): Could not find method android.os.UserId.myUserId, referenced from method com.android.settings.DeviceSettings.updateHeaderList 05-06 14:35:58.967 I/dalvikvm( 3852): Could not find method android.os.UserId.myUserId, referenced from method com.android.settings.AppSettings.updateHeaderList 05-06 14:35:58.967 I/dalvikvm( 3852): Could not find method android.os.UserId.myUserId, referenced from method com.android.settings.AppSettings.updateHeaderList 05-06 14:35:59.057 E/AndroidRuntime( 3852): Process: com.android.settings, PID: 3852 05-06 14:35:59.057 E/AndroidRuntime( 3852): at com.android.settings.AppSettings.updateHeaderList(Settings.java) 05-06 14:35:59.057 E/AndroidRuntime( 3852): at com.android.settings.AppSettings.onBuildHeaders(Settings.java) 05-06 14:35:59.057 E/AndroidRuntime( 3852): at com.android.settings.AppSettings.onCreate(Settings.java) 05-06 14:35:59.057 E/AndroidRuntime( 3852): at com.android.settings.MainSetting.InitViewPager(MainSetting.java) 05-06 14:35:59.057 E/AndroidRuntime( 3852): at com.android.settings.MainSetting.onCreate(MainSetting.java) 05-06 14:35:59.087 W/ActivityManager( 662): Force finishing activity com.android.settings/.MainSetting 05-06 14:35:59.387 I/WindowManager( 662): Screenshot max retries 4 of Token{42e7c810 ActivityRecord{42cffab0 u0 com.android.settings/.MainSetting t7 f}} appWin=Window{42f095a8 u0 Starting com.android.settings} drawState=4 05-06 14:35:59.597 D/CrashAnrDetector( 662): processName: com.android.settings 05-06 14:35:59.597 D/CrashAnrDetector( 662): broadcastEvent : com.android.settings system_app_crash 05-06 14:36:01.727 E/WindowManager( 662): Starting window AppWindowToken{431e5a60 token=Token{42e7c810 ActivityRecord{42cffab0 u0 com.android.settings/.MainSetting t7}}} timed out 05-06 14:36:02.077 I/ActivityManager( 662): Process com.android.settings (pid 3852) (adj 9) has died.

Some idea about how to solve this error? Thanks in advance