昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期日, 十二月 16, 2018

[网络技术]Titanium Backup 8.2.2 Crashes On Samsung S6 edge Naugat



To fix this problem. 

I have to use Root Explorer to delete the  com.keramidas.TitaniumBackup under /data/data



Delete the same folder on SD Card's data will not help. So a file explorer can access Root folder is needed.

Error log (filtered):

12-16 21:05:24.722  4714  4714 D NfcService: Top activity class name = com.keramidas.TitaniumBackup.MainActivity
12-16 21:05:24.828  7405  7405 I TrayUsageStatesWatcher: getResumeComponentName : ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}
12-16 21:05:30.018  7405 13267 I TrayUsageStatesWatcher: noteResumeComponent : ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}
12-16 21:05:30.182  3673  3755 D ViewRootImpl@d074e50[TitaniumBackup]: MSG_WINDOW_FOCUS_CHANGED 1
12-16 21:05:30.182  3673  3755 D ViewRootImpl@d074e50[TitaniumBackup]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 539043343872}
12-16 21:05:30.426  4916  4916 I PeopleStripeProcessMonitor: isPeopleStripeTask packageName = com.keramidas.TitaniumBackup 0
12-16 21:05:31.871  3673  3755 D ViewRootImpl@d074e50[TitaniumBackup]: ViewPostImeInputStage processPointer 0
12-16 21:05:31.965  3673  3755 D ViewRootImpl@d074e50[TitaniumBackup]: ViewPostImeInputStage processPointer 1
12-16 21:05:31.978  3673  3755 D ViewRootImpl@d074e50[TitaniumBackup]: mHardwareRenderer.destroy()#4
12-16 21:05:31.978  3673  3755 D ViewRootImpl@d074e50[TitaniumBackup]: dispatchDetachedFromWindow
12-16 21:05:32.003  3673  5042 E ActivityManager: Found activity ActivityRecord{9a8b629d0 u0 com.keramidas.TitaniumBackup/.MainActivity t603 f} in proc activity list using null instead of expected ProcessRecord{e5ff97e 14979:com.keramidas.TitaniumBackup/u0a237}
12-16 21:05:35.457  3673  3762 D ViewRootImpl@2c7a751[TitaniumBackup]: setView = DecorView@f99f024[TitaniumBackup] touchMode=true
12-16 21:05:35.477  3673  3762 D ViewRootImpl@2c7a751[TitaniumBackup]: dispatchAttachedToWindow
12-16 21:05:35.495 18262 18262 I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.keramidas.TitaniumBackup 
12-16 21:05:35.496  3673  3762 D ViewRootImpl@2c7a751[TitaniumBackup]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x27 surface={isValid=true 539043343872} surfaceGenerationChanged=true
12-16 21:05:35.520  3673  3762 D ViewRootImpl@2c7a751[TitaniumBackup]: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
12-16 21:05:35.631 18262 18262 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/cache: mkdir failed: EACCES (Permission denied)
12-16 21:05:35.631 18262 18262 W ContextImpl: Failed to ensure /data/user_de/0/com.keramidas.TitaniumBackup/code_cache: mkdir failed: ENOENT (No such file or directory)
12-16 21:05:35.656 18262 18262 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/shared_prefs: mkdir failed: EACCES (Permission denied)
12-16 21:05:35.669 18262 18262 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/shared_prefs: mkdir failed: EACCES (Permission denied)
12-16 21:05:35.710 18262 18262 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:05:35.727 18262 18281 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:05:35.728 18262 18281 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/_has_set_default_values.xml
12-16 21:05:35.732 18262 18262 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:05:35.733 18262 18262 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:05:35.748 18262 18262 I com.keramidas.TitaniumBackup.MainActivity: Main Activity is being created for the first time => scheduling next wake-up ...
12-16 21:05:35.750 18262 18262 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/databases: mkdir failed: EACCES (Permission denied)
12-16 21:05:35.751 18262 18262 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131138) and mode_t (0) due to error (2)
12-16 21:05:35.751 18262 18262 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131072) and mode_t (0) due to error (2)
12-16 21:05:35.751 18262 18262 E SQLiteLog: (14) os_unix.c:32876: (2) open(/data/user/0/com.keramidas.TitaniumBackup/databases/schedules) - 
12-16 21:05:35.751 18262 18262 E SQLiteLog: (1) Process .TitaniumBackup : Pid (18262) Uid (10237) Euid (10237) Gid (10237) Egid (10237)
12-16 21:05:35.751 18262 18262 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" due to error (2)
12-16 21:05:35.751 18262 18262 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases" due to error (2)
12-16 21:05:35.751 18262 18262 E SQLiteLog: (1) Stat of /data/user/0/com.keramidas.TitaniumBackup : st_mode(40755) st_uid(10232) st_gid(10232) st_ino(326524)
12-16 21:05:35.753 18262 18262 E SQLiteDatabase: Failed to open database '/data/user/0/com.keramidas.TitaniumBackup/databases/schedules'.
12-16 21:05:35.753 18262 18262 E SQLiteDatabase: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:05:35.754 18262 18262 E SQLiteOpenHelper: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:05:35.754 18262 18262 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/databases: mkdir failed: EACCES (Permission denied)
12-16 21:05:35.755 18262 18262 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131072) and mode_t (0) due to error (2)
12-16 21:05:35.755 18262 18262 E SQLiteLog: (14) os_unix.c:32876: (2) open(/data/user/0/com.keramidas.TitaniumBackup/databases/schedules) - 
12-16 21:05:35.755 18262 18262 E SQLiteLog: (1) Process .TitaniumBackup : Pid (18262) Uid (10237) Euid (10237) Gid (10237) Egid (10237)
12-16 21:05:35.755 18262 18262 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" due to error (2)
12-16 21:05:35.755 18262 18262 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases" due to error (2)
12-16 21:05:35.755 18262 18262 E SQLiteLog: (1) Stat of /data/user/0/com.keramidas.TitaniumBackup : st_mode(40755) st_uid(10232) st_gid(10232) st_ino(326524)
12-16 21:05:35.756 18262 18262 E SQLiteDatabase: Failed to open database '/data/user/0/com.keramidas.TitaniumBackup/databases/schedules'.
12-16 21:05:35.756 18262 18262 E SQLiteDatabase: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:05:35.757 18262 18262 E AndroidRuntime: Process: com.keramidas.TitaniumBackup, PID: 18262
12-16 21:05:35.757 18262 18262 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1294): Could not open database
12-16 21:05:35.757 18262 18262 E AndroidRuntime: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:05:35.804  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: ThreadedRenderer.create() translucent=true
12-16 21:05:35.830  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: setView = DecorView@8157620[TitaniumBackup] touchMode=true
12-16 21:05:35.831  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: dispatchAttachedToWindow
12-16 21:05:35.845 26899 18285 W PkgUtils: p: com.keramidas.TitaniumBackup, u:0
12-16 21:05:35.850  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[43,1033][1396,1622] result=0x27 surface={isValid=true 539043358208} surfaceGenerationChanged=true
12-16 21:05:35.850  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: mHardwareRenderer.initialize() mSurface={isValid=true 539043358208} hwInitialized=true
12-16 21:05:35.855  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: MSG_WINDOW_FOCUS_CHANGED 1
12-16 21:05:35.855  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 539043358208}
12-16 21:05:35.871  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
12-16 21:05:35.884 29010 29079 W PkgUtils: p: com.keramidas.TitaniumBackup, u:0
12-16 21:05:36.405  3673  5047 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mServices
12-16 21:05:36.405  3673  5047 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mProviders
12-16 21:05:36.405  3673  5047 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mReceivers
12-16 21:05:36.407  4013  4013 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:05:36.725  3673  3762 D ViewRootImpl@2c7a751[TitaniumBackup]: dispatchDetachedFromWindow
12-16 21:06:07.718  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: MSG_WINDOW_FOCUS_CHANGED 0
12-16 21:10:35.834  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: mHardwareRenderer.destroy()#4
12-16 21:10:35.834  3673  3755 D ViewRootImpl@57248ee[TitaniumBackup]: dispatchDetachedFromWindow
12-16 21:15:40.089  3139  3139 W installd: Failed to open /data/user_de/0/com.keramidas.TitaniumBackup: No such file or directory
12-16 21:15:44.856 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:15:45.609  3673  5043 D UsbSettingsManager: hasDefaults: com.keramidas.TitaniumBackup FALSE
12-16 21:15:45.612 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:15:45.660  3139  3139 W installd: Failed to open /data/user_de/0/com.keramidas.TitaniumBackup: No such file or directory
12-16 21:15:45.699 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:15:46.028  3673  4837 D UsbSettingsManager: hasDefaults: com.keramidas.TitaniumBackup FALSE
12-16 21:15:46.067 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:15:52.101  3673  3874 D MountService: onExternalStoragePolicyChanged : uid=10237, packageName=com.keramidas.TitaniumBackup
12-16 21:15:52.101  3673  3874 D MountService: getExternalStorageMountMode : final mountMode=2, uid : 10237, packageName : com.keramidas.TitaniumBackup
12-16 21:15:52.131  3673  3750 D MountService: onExternalStoragePolicyChanged : uid=10237, packageName=com.keramidas.TitaniumBackup
12-16 21:15:52.131  3673  3750 D MountService: getExternalStorageMountMode : final mountMode=3, uid : 10237, packageName : com.keramidas.TitaniumBackup
12-16 21:15:55.495  3673  4752 D UsbSettingsManager: hasDefaults: com.keramidas.TitaniumBackup FALSE
12-16 21:15:55.497 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:15:55.510  3139  3139 W installd: Failed to open /data/user_de/0/com.keramidas.TitaniumBackup: No such file or directory
12-16 21:15:55.660 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:15:55.748  3673  4840 D UsbSettingsManager: hasDefaults: com.keramidas.TitaniumBackup FALSE
12-16 21:15:55.749 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:15:59.366  3673  4750 D UsbSettingsManager: hasDefaults: com.keramidas.TitaniumBackup FALSE
12-16 21:15:59.367 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:15:59.379  3139  3139 W installd: Failed to open /data/user_de/0/com.keramidas.TitaniumBackup: No such file or directory
12-16 21:15:59.407 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:15:59.482  3673  3893 D UsbSettingsManager: hasDefaults: com.keramidas.TitaniumBackup FALSE
12-16 21:15:59.484 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:01.568  3139  3139 W installd: Failed to open /data/user_de/0/com.keramidas.TitaniumBackup: No such file or directory
12-16 21:16:03.455  3673  4750 I ActivityManager: START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}} from uid 10082 on display 0
12-16 21:16:03.493  3673  4750 D ActivityManager: computeStackFocus: New stack r=ActivityRecord{1a197aed0 u0 com.keramidas.TitaniumBackup/.MainActivity t-1} stackId=1
12-16 21:16:03.498  3673  4750 D ActivityManager: moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{242ab6bd0 #607 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1}
12-16 21:16:03.504  3673  4750 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{242ab6bd0 #607 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1} next=ActivityRecord{1a197aed0 u0 com.keramidas.TitaniumBackup/.MainActivity t607} mFocusedStack=ActivityStack{b0d7d48d0 stackId=1, 2 tasks}
12-16 21:16:03.510  3673  7772 D GamePkgDataHelper: getGamePkgData(). com.keramidas.TitaniumBackup
12-16 21:16:03.510  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:03.510  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:03.518  3673  3874 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{1d66ec3d0 #556 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} next=ActivityRecord{1a197aed0 u0 com.keramidas.TitaniumBackup/.MainActivity t607} mFocusedStack=ActivityStack{b0d7d48d0 stackId=1, 2 tasks}
12-16 21:16:03.521  3673  3874 D ActivityManager: applyOptionsLocked, ANIM_CUSTOM_SCALE_UP, task.getRootActivity() : ActivityRecord{1a197aed0 u0 com.keramidas.TitaniumBackup/.MainActivity t607}, task.getTaskToReturnTo() : 1
12-16 21:16:03.521  3673  3874 D MountService: getExternalStorageMountMode : final mountMode=3, uid : 10237, packageName : com.keramidas.TitaniumBackup
12-16 21:16:03.539  3673  3874 I ActivityManager: Start proc 26967:com.keramidas.TitaniumBackup/u0a237 for activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:16:03.550  3673  3762 D WindowManager: openInputChannel mInputChannel: 5e64928 Starting com.keramidas.TitaniumBackup (server)
12-16 21:16:03.552  3673  3762 D ViewRootImpl@1d9e41a[TitaniumBackup]: setView = DecorView@a478641[TitaniumBackup] touchMode=true
12-16 21:16:03.570  3673  3762 D ViewRootImpl@1d9e41a[TitaniumBackup]: dispatchAttachedToWindow
12-16 21:16:03.571  3673  3762 V WindowManager: Relayout Window{5e64928d0 u0 Starting com.keramidas.TitaniumBackup}: viewVisibility=0 req=1440x2464 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=3 fl=#1830118 pfl=0x20011 wanim=0x10303ea vsysui=0x400 needsMenuKey=2 naviIconColor=0}
12-16 21:16:03.574  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:03.575  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:03.588 26967 26967 I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.keramidas.TitaniumBackup 
12-16 21:16:03.590  3673  3762 D ViewRootImpl@1d9e41a[TitaniumBackup]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x27 surface={isValid=true 539278964224} surfaceGenerationChanged=true
12-16 21:16:03.622  3673  3762 D WindowManager: finishDrawingWindow: Window{5e64928d0 u0 Starting com.keramidas.TitaniumBackup} mDrawState=DRAW_PENDING
12-16 21:16:03.622  3673  3762 D ViewRootImpl@1d9e41a[TitaniumBackup]: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
12-16 21:16:03.624  3673  3762 D WindowManager: finishDrawingWindow: Window{5e64928d0 u0 Starting com.keramidas.TitaniumBackup} mDrawState=COMMIT_DRAW_PENDING
12-16 21:16:03.627  3673  5043 I ActivityManager: DSS on for com.keramidas.TitaniumBackup and scale is 1.0
12-16 21:16:03.636  3673  3673 D GameManagerService: NotifyRunnable. pkg: com.keramidas.TitaniumBackup, type: 4, isMinimized: false, isTunableApp: false
12-16 21:16:03.778  3673  3967 D MdnieScenarioControlService:  packageName : com.keramidas.TitaniumBackup    className : com.keramidas.TitaniumBackup.MainActivity
12-16 21:16:03.823 26967 26967 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/cache: mkdir failed: EACCES (Permission denied)
12-16 21:16:03.823 26967 26967 W ContextImpl: Failed to ensure /data/user_de/0/com.keramidas.TitaniumBackup/code_cache: mkdir failed: ENOENT (No such file or directory)
12-16 21:16:03.957 26967 26967 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/shared_prefs: mkdir failed: EACCES (Permission denied)
12-16 21:16:03.977 26967 26967 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/shared_prefs: mkdir failed: EACCES (Permission denied)
12-16 21:16:04.064 26967 26967 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:04.089 26967 27023 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:04.090 26967 27023 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/_has_set_default_values.xml
12-16 21:16:04.096 26967 26967 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:04.097 26967 26967 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:04.116 26967 26967 I com.keramidas.TitaniumBackup.MainActivity: Main Activity is being created for the first time => scheduling next wake-up ...
12-16 21:16:04.119 26967 26967 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/databases: mkdir failed: EACCES (Permission denied)
12-16 21:16:04.123 26967 26967 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131138) and mode_t (0) due to error (2)
12-16 21:16:04.124 26967 26967 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131072) and mode_t (0) due to error (2)
12-16 21:16:04.124 26967 26967 E SQLiteLog: (14) os_unix.c:32876: (2) open(/data/user/0/com.keramidas.TitaniumBackup/databases/schedules) - 
12-16 21:16:04.124 26967 26967 E SQLiteLog: (1) Process .TitaniumBackup : Pid (26967) Uid (10237) Euid (10237) Gid (10237) Egid (10237)
12-16 21:16:04.124 26967 26967 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" due to error (2)
12-16 21:16:04.124 26967 26967 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases" due to error (2)
12-16 21:16:04.124 26967 26967 E SQLiteLog: (1) Stat of /data/user/0/com.keramidas.TitaniumBackup : st_mode(40755) st_uid(10232) st_gid(10232) st_ino(326524)
12-16 21:16:04.134 26967 26967 E SQLiteDatabase: Failed to open database '/data/user/0/com.keramidas.TitaniumBackup/databases/schedules'.
12-16 21:16:04.134 26967 26967 E SQLiteDatabase: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:04.135 26967 26967 E SQLiteOpenHelper: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:04.136 26967 26967 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/databases: mkdir failed: EACCES (Permission denied)
12-16 21:16:04.136 26967 26967 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131072) and mode_t (0) due to error (2)
12-16 21:16:04.136 26967 26967 E SQLiteLog: (14) os_unix.c:32876: (2) open(/data/user/0/com.keramidas.TitaniumBackup/databases/schedules) - 
12-16 21:16:04.136 26967 26967 E SQLiteLog: (1) Process .TitaniumBackup : Pid (26967) Uid (10237) Euid (10237) Gid (10237) Egid (10237)
12-16 21:16:04.136 26967 26967 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" due to error (2)
12-16 21:16:04.137 26967 26967 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases" due to error (2)
12-16 21:16:04.137 26967 26967 E SQLiteLog: (1) Stat of /data/user/0/com.keramidas.TitaniumBackup : st_mode(40755) st_uid(10232) st_gid(10232) st_ino(326524)
12-16 21:16:04.138 26967 26967 E SQLiteDatabase: Failed to open database '/data/user/0/com.keramidas.TitaniumBackup/databases/schedules'.
12-16 21:16:04.138 26967 26967 E SQLiteDatabase: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:04.140 26967 26967 E AndroidRuntime: Process: com.keramidas.TitaniumBackup, PID: 26967
12-16 21:16:04.140 26967 26967 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1294): Could not open database
12-16 21:16:04.140 26967 26967 E AndroidRuntime: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:04.147  3673 15860 W ActivityManager:   Force finishing activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:16:04.214  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: ThreadedRenderer.create() translucent=true
12-16 21:16:04.216  3673  3755 D WindowManager: openInputChannel mInputChannel: 22beac7 Application Error: com.keramidas.TitaniumBackup (server)
12-16 21:16:04.241  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: setView = DecorView@3a64a92[TitaniumBackup] touchMode=true
12-16 21:16:04.254  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: dispatchAttachedToWindow
12-16 21:16:04.256  3673  3755 V WindowManager: Relayout Window{22beac7d0 u0 Application Error: com.keramidas.TitaniumBackup}: viewVisibility=0 req=1353x589 WM.LayoutParams{(0,0)(wrapxwrap) gr=#11 sim=#120 ty=2003 fl=#1820002 pfl=0x110 fmt=-3 wanim=0x103038b surfaceInsets=Rect(8, 8 - 8, 8) needsMenuKey=2 naviIconColor=0}
12-16 21:16:04.264  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[43,1033][1396,1622] result=0x27 surface={isValid=true 539043358208} surfaceGenerationChanged=true
12-16 21:16:04.264  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: mHardwareRenderer.initialize() mSurface={isValid=true 539043358208} hwInitialized=true
12-16 21:16:04.269  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: MSG_WINDOW_FOCUS_CHANGED 1
12-16 21:16:04.269  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 539043358208}
12-16 21:16:04.306  3673  3755 D WindowManager: finishDrawingWindow: Window{22beac7d0 u0 Application Error: com.keramidas.TitaniumBackup} mDrawState=DRAW_PENDING
12-16 21:16:04.306  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
12-16 21:16:04.318  3673  3755 D WindowManager: finishDrawingWindow: Window{22beac7d0 u0 Application Error: com.keramidas.TitaniumBackup} mDrawState=HAS_DRAWN
12-16 21:16:04.326  3673  3750 I WindowManager: Failed to capture screenshot of Token{c98c94f ActivityRecord{1a197aed0 u0 com.keramidas.TitaniumBackup/.MainActivity t607 f}} appWin=Window{5e64928d0 u0 Starting com.keramidas.TitaniumBackup} drawState=4
12-16 21:16:04.661  3673  3754 W ActivityManager: Activity pause timeout for ActivityRecord{1a197aed0 u0 com.keramidas.TitaniumBackup/.MainActivity t607 f}
12-16 21:16:04.661  3673  3754 D ActivityManager: resumeTopActivityInnerLocked() : #0 prevTask=TaskRecord{242ab6bd0 #607 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1} next=ActivityRecord{446c5e6d0 u0 com.sec.android.app.launcher/.activities.LauncherActivity t556} mFocusedStack=ActivityStack{ff2d71d0 stackId=0, 2 tasks}
12-16 21:16:04.761 27039 27060 W PkgUtils: p: com.keramidas.TitaniumBackup, u:0
12-16 21:16:04.827 27061 27074 W PkgUtils: p: com.keramidas.TitaniumBackup, u:0
12-16 21:16:04.863  3673  3750 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mServices
12-16 21:16:04.863  3673  3750 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mProviders
12-16 21:16:04.863  3673  3750 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mReceivers
12-16 21:16:04.866  4013  4013 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:05.043  3673  3762 D WindowManager: disposeInputChannel mInputChannel: 5e64928 Starting com.keramidas.TitaniumBackup (server)
12-16 21:16:05.044  3673  3762 I WindowManager_SurfaceController: Destroying surface Surface(name=Starting com.keramidas.TitaniumBackup) called by com.android.server.wm.WindowStateAnimator.destroySurface:2905 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1119 com.android.server.wm.WindowState.removeLocked:1849 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2928 com.android.server.wm.AppWindowToken.destroySurfaces:427 com.android.server.wm.AppWindowToken.destroySurfaces:388 com.android.server.wm.WindowStateAnimator.finishExit:686 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:493 
12-16 21:16:05.056  3673  3762 D ViewRootImpl@1d9e41a[TitaniumBackup]: dispatchDetachedFromWindow
12-16 21:16:05.958  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: ViewPostImeInputStage processPointer 0
12-16 21:16:06.075  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: ViewPostImeInputStage processPointer 1
12-16 21:16:06.076  3673 15860 I ActivityManager: Killing 26967:com.keramidas.TitaniumBackup/u0a237 (adj 900): crash
12-16 21:16:06.080  3673 15860 I ActivityManager: START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}} from uid 10082 on display 0
12-16 21:16:06.084  3673 15860 D ActivityManager: computeStackFocus: New stack r=ActivityRecord{bc789b4d0 u0 com.keramidas.TitaniumBackup/.MainActivity t-1} stackId=1
12-16 21:16:06.086  3673 15860 D ActivityManager: moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{e2d8d20d0 #608 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1}
12-16 21:16:06.089  3673 15860 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{e2d8d20d0 #608 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1} next=ActivityRecord{bc789b4d0 u0 com.keramidas.TitaniumBackup/.MainActivity t608} mFocusedStack=ActivityStack{b0d7d48d0 stackId=1, 2 tasks}
12-16 21:16:06.089  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: mHardwareRenderer.destroy()#4
12-16 21:16:06.089  3673  3755 D ViewRootImpl@3056ee1[TitaniumBackup]: dispatchDetachedFromWindow
12-16 21:16:06.090  3673  3755 D WindowManager: disposeInputChannel mInputChannel: 22beac7 Application Error: com.keramidas.TitaniumBackup (server)
12-16 21:16:06.101  3673  3762 D WindowManager: openInputChannel mInputChannel: 2ce7e50 Starting com.keramidas.TitaniumBackup (server)
12-16 21:16:06.102  3673  3762 D ViewRootImpl@67f3b02[TitaniumBackup]: setView = DecorView@e485849[TitaniumBackup] touchMode=true
12-16 21:16:06.102  3673  4752 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{1d66ec3d0 #556 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} next=ActivityRecord{bc789b4d0 u0 com.keramidas.TitaniumBackup/.MainActivity t608} mFocusedStack=ActivityStack{b0d7d48d0 stackId=1, 2 tasks}
12-16 21:16:06.104  3673  4752 D MountService: getExternalStorageMountMode : final mountMode=3, uid : 10237, packageName : com.keramidas.TitaniumBackup
12-16 21:16:06.118  3673  3762 D ViewRootImpl@67f3b02[TitaniumBackup]: dispatchAttachedToWindow
12-16 21:16:06.119  3673  3762 V WindowManager: Relayout Window{2ce7e50d0 u0 Starting com.keramidas.TitaniumBackup}: viewVisibility=0 req=1440x2464 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=3 fl=#1830118 pfl=0x20011 wanim=0x10303ea vsysui=0x400 needsMenuKey=2 naviIconColor=0}
12-16 21:16:06.120  3673  4752 I ActivityManager: Start proc 27094:com.keramidas.TitaniumBackup/u0a237 for activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:16:06.138  3673  3762 D ViewRootImpl@67f3b02[TitaniumBackup]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x27 surface={isValid=true 539278964224} surfaceGenerationChanged=true
12-16 21:16:06.160  3673  7772 D GamePkgDataHelper: getGamePkgData(). com.keramidas.TitaniumBackup
12-16 21:16:06.160  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:06.160  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:06.170  3673  3762 D WindowManager: finishDrawingWindow: Window{2ce7e50d0 u0 Starting com.keramidas.TitaniumBackup} mDrawState=DRAW_PENDING
12-16 21:16:06.194  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:06.194  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:06.209 27094 27094 I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.keramidas.TitaniumBackup 
12-16 21:16:06.251  3673  4750 I ActivityManager: DSS on for com.keramidas.TitaniumBackup and scale is 1.0
12-16 21:16:06.261  3673  3673 D GameManagerService: NotifyRunnable. pkg: com.keramidas.TitaniumBackup, type: 4, isMinimized: false, isTunableApp: false
12-16 21:16:06.393  3673  3762 I WindowManager_SurfaceController: Destroying surface Surface(name=Application Error: com.keramidas.TitaniumBackup) called by com.android.server.wm.WindowStateAnimator.destroySurface:2905 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1119 com.android.server.wm.WindowState.destroyOrSaveSurface:2627 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:503 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:278 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:226 com.android.server.wm.WindowManagerService$H.handleMessage:9317 android.os.Handler.dispatchMessage:102 
12-16 21:16:06.400  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:06.401 27094 27094 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/cache: mkdir failed: EACCES (Permission denied)
12-16 21:16:06.402 27094 27094 W ContextImpl: Failed to ensure /data/user_de/0/com.keramidas.TitaniumBackup/code_cache: mkdir failed: ENOENT (No such file or directory)
12-16 21:16:06.414  3673  3967 D MdnieScenarioControlService:  packageName : com.keramidas.TitaniumBackup    className : com.keramidas.TitaniumBackup.MainActivity
12-16 21:16:06.494 27094 27094 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/shared_prefs: mkdir failed: EACCES (Permission denied)
12-16 21:16:06.511 27094 27094 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/shared_prefs: mkdir failed: EACCES (Permission denied)
12-16 21:16:06.570 27094 27094 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:06.593 27094 27146 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:06.594 27094 27146 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/_has_set_default_values.xml
12-16 21:16:06.598 27094 27094 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:06.599 27094 27094 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:06.616 27094 27094 I com.keramidas.TitaniumBackup.MainActivity: Main Activity is being created for the first time => scheduling next wake-up ...
12-16 21:16:06.618 27094 27094 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/databases: mkdir failed: EACCES (Permission denied)
12-16 21:16:06.619 27094 27094 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131138) and mode_t (0) due to error (2)
12-16 21:16:06.619 27094 27094 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131072) and mode_t (0) due to error (2)
12-16 21:16:06.619 27094 27094 E SQLiteLog: (14) os_unix.c:32876: (2) open(/data/user/0/com.keramidas.TitaniumBackup/databases/schedules) - 
12-16 21:16:06.619 27094 27094 E SQLiteLog: (1) Process .TitaniumBackup : Pid (27094) Uid (10237) Euid (10237) Gid (10237) Egid (10237)
12-16 21:16:06.619 27094 27094 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" due to error (2)
12-16 21:16:06.619 27094 27094 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases" due to error (2)
12-16 21:16:06.619 27094 27094 E SQLiteLog: (1) Stat of /data/user/0/com.keramidas.TitaniumBackup : st_mode(40755) st_uid(10232) st_gid(10232) st_ino(326524)
12-16 21:16:06.621 27094 27094 E SQLiteDatabase: Failed to open database '/data/user/0/com.keramidas.TitaniumBackup/databases/schedules'.
12-16 21:16:06.621 27094 27094 E SQLiteDatabase: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:06.622 27094 27094 E SQLiteOpenHelper: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:06.622 27094 27094 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/databases: mkdir failed: EACCES (Permission denied)
12-16 21:16:06.623 27094 27094 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131072) and mode_t (0) due to error (2)
12-16 21:16:06.623 27094 27094 E SQLiteLog: (14) os_unix.c:32876: (2) open(/data/user/0/com.keramidas.TitaniumBackup/databases/schedules) - 
12-16 21:16:06.623 27094 27094 E SQLiteLog: (1) Process .TitaniumBackup : Pid (27094) Uid (10237) Euid (10237) Gid (10237) Egid (10237)
12-16 21:16:06.623 27094 27094 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" due to error (2)
12-16 21:16:06.623 27094 27094 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases" due to error (2)
12-16 21:16:06.623 27094 27094 E SQLiteLog: (1) Stat of /data/user/0/com.keramidas.TitaniumBackup : st_mode(40755) st_uid(10232) st_gid(10232) st_ino(326524)
12-16 21:16:06.625 27094 27094 E SQLiteDatabase: Failed to open database '/data/user/0/com.keramidas.TitaniumBackup/databases/schedules'.
12-16 21:16:06.625 27094 27094 E SQLiteDatabase: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:06.626 27094 27094 E AndroidRuntime: Process: com.keramidas.TitaniumBackup, PID: 27094
12-16 21:16:06.626 27094 27094 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1294): Could not open database
12-16 21:16:06.626 27094 27094 E AndroidRuntime: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:06.630  3673  5040 W ActivityManager:   Force finishing activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:16:06.701  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: ThreadedRenderer.create() translucent=true
12-16 21:16:06.702  3673  3755 D WindowManager: openInputChannel mInputChannel: 9176a6b Application Error: com.keramidas.TitaniumBackup (server)
12-16 21:16:06.706  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: setView = DecorView@b2719c8[TitaniumBackup] touchMode=true
12-16 21:16:06.718  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: dispatchAttachedToWindow
12-16 21:16:06.719  3673  3755 V WindowManager: Relayout Window{9176a6bd0 u0 Application Error: com.keramidas.TitaniumBackup}: viewVisibility=0 req=1353x589 WM.LayoutParams{(0,0)(wrapxwrap) gr=#11 sim=#120 ty=2003 fl=#1820002 pfl=0x110 fmt=-3 wanim=0x103038b surfaceInsets=Rect(8, 8 - 8, 8) needsMenuKey=2 naviIconColor=0}
12-16 21:16:06.744  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[43,1033][1396,1622] result=0x27 surface={isValid=true 539045834752} surfaceGenerationChanged=true
12-16 21:16:06.744  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: mHardwareRenderer.initialize() mSurface={isValid=true 539045834752} hwInitialized=true
12-16 21:16:06.745 27039 27149 W PkgUtils: p: com.keramidas.TitaniumBackup, u:0
12-16 21:16:06.749  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: MSG_WINDOW_FOCUS_CHANGED 1
12-16 21:16:06.749  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 539045834752}
12-16 21:16:06.767  3673  3755 D WindowManager: finishDrawingWindow: Window{9176a6bd0 u0 Application Error: com.keramidas.TitaniumBackup} mDrawState=DRAW_PENDING
12-16 21:16:06.767  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
12-16 21:16:06.775  3673  3755 D WindowManager: finishDrawingWindow: Window{9176a6bd0 u0 Application Error: com.keramidas.TitaniumBackup} mDrawState=HAS_DRAWN
12-16 21:16:06.789 27061 27074 W PkgUtils: p: com.keramidas.TitaniumBackup, u:0
12-16 21:16:07.149  3673  3754 W ActivityManager: Activity pause timeout for ActivityRecord{bc789b4d0 u0 com.keramidas.TitaniumBackup/.MainActivity t608 f}
12-16 21:16:07.149  3673  3754 D ActivityManager: resumeTopActivityInnerLocked() : #0 prevTask=TaskRecord{e2d8d20d0 #608 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1} next=ActivityRecord{446c5e6d0 u0 com.sec.android.app.launcher/.activities.LauncherActivity t556} mFocusedStack=ActivityStack{ff2d71d0 stackId=0, 2 tasks}
12-16 21:16:07.156  3673  3754 I WindowManager: Failed to capture screenshot of Token{522a9dd ActivityRecord{bc789b4d0 u0 com.keramidas.TitaniumBackup/.MainActivity t608 f}} appWin=Window{2ce7e50d0 u0 Starting com.keramidas.TitaniumBackup} drawState=4
12-16 21:16:07.272  3673  3914 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mServices
12-16 21:16:07.272  3673  3914 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mProviders
12-16 21:16:07.272  3673  3914 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mReceivers
12-16 21:16:07.273  4013  4013 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:07.602  3673  3762 D WindowManager: disposeInputChannel mInputChannel: 2ce7e50 Starting com.keramidas.TitaniumBackup (server)
12-16 21:16:07.603  3673  3762 I WindowManager_SurfaceController: Destroying surface Surface(name=Starting com.keramidas.TitaniumBackup) called by com.android.server.wm.WindowStateAnimator.destroySurface:2905 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1119 com.android.server.wm.WindowState.removeLocked:1849 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2928 com.android.server.wm.AppWindowToken.destroySurfaces:427 com.android.server.wm.AppWindowToken.destroySurfaces:388 com.android.server.wm.WindowStateAnimator.finishExit:686 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:493 
12-16 21:16:07.621  3673  3762 D ViewRootImpl@67f3b02[TitaniumBackup]: dispatchDetachedFromWindow
12-16 21:16:08.324  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: ViewPostImeInputStage processKey 0
12-16 21:16:08.516  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: ViewPostImeInputStage processKey 1
12-16 21:16:08.517  3673  5040 W ActivityManager:   Force finishing activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:16:08.520  3673  5040 I ActivityManager: Killing 27094:com.keramidas.TitaniumBackup/u0a237 (adj 900): crash
12-16 21:16:08.524  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: mHardwareRenderer.destroy()#4
12-16 21:16:08.524  3673  3755 D ViewRootImpl@b1f14e5[TitaniumBackup]: dispatchDetachedFromWindow
12-16 21:16:08.524  3673  3755 D WindowManager: disposeInputChannel mInputChannel: 9176a6b Application Error: com.keramidas.TitaniumBackup (server)
12-16 21:16:08.863  3673  3762 I WindowManager_SurfaceController: Destroying surface Surface(name=Application Error: com.keramidas.TitaniumBackup) called by com.android.server.wm.WindowStateAnimator.destroySurface:2905 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1119 com.android.server.wm.WindowState.destroyOrSaveSurface:2627 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:503 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:278 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:226 com.android.server.wm.WindowManagerService$H.handleMessage:9317 android.os.Handler.dispatchMessage:102 
12-16 21:16:22.224  3139  3139 W installd: Failed to open /data/user_de/0/com.keramidas.TitaniumBackup: No such file or directory
12-16 21:16:34.349 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:34.573  3673  5045 D UsbSettingsManager: hasDefaults: com.keramidas.TitaniumBackup FALSE
12-16 21:16:34.589 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:34.607  3139  3139 W installd: Failed to open /data/user_de/0/com.keramidas.TitaniumBackup: No such file or directory
12-16 21:16:34.673 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:34.911  3673  5047 D UsbSettingsManager: hasDefaults: com.keramidas.TitaniumBackup FALSE
12-16 21:16:34.927 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:41.764  3673  5044 D UsbSettingsManager: hasDefaults: com.keramidas.TitaniumBackup FALSE
12-16 21:16:41.765 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:41.790  3139  3139 W installd: Failed to open /data/user_de/0/com.keramidas.TitaniumBackup: No such file or directory
12-16 21:16:41.815 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:41.887  3673 15860 D UsbSettingsManager: hasDefaults: com.keramidas.TitaniumBackup FALSE
12-16 21:16:41.890 22929 22929 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:44.722  3139  3139 W installd: Failed to open /data/user_de/0/com.keramidas.TitaniumBackup: No such file or directory
12-16 21:16:46.759  3673  4752 I ActivityManager: START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}} from uid 10082 on display 0
12-16 21:16:46.765  3673  4752 D ActivityManager: computeStackFocus: New stack r=ActivityRecord{5787a40d0 u0 com.keramidas.TitaniumBackup/.MainActivity t-1} stackId=1
12-16 21:16:46.767  3673  4752 D ActivityManager: moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{58afa6cd0 #610 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1}
12-16 21:16:46.770  3673  4752 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{58afa6cd0 #610 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1} next=ActivityRecord{5787a40d0 u0 com.keramidas.TitaniumBackup/.MainActivity t610} mFocusedStack=ActivityStack{b0d7d48d0 stackId=1, 2 tasks}
12-16 21:16:46.780  3673  5043 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{1d66ec3d0 #556 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} next=ActivityRecord{5787a40d0 u0 com.keramidas.TitaniumBackup/.MainActivity t610} mFocusedStack=ActivityStack{b0d7d48d0 stackId=1, 2 tasks}
12-16 21:16:46.781  3673  5043 D ActivityManager: applyOptionsLocked, ANIM_CUSTOM_SCALE_UP, task.getRootActivity() : ActivityRecord{5787a40d0 u0 com.keramidas.TitaniumBackup/.MainActivity t610}, task.getTaskToReturnTo() : 1
12-16 21:16:46.781  3673  5043 D MountService: getExternalStorageMountMode : final mountMode=3, uid : 10237, packageName : com.keramidas.TitaniumBackup
12-16 21:16:46.794  3673  5043 I ActivityManager: Start proc 27729:com.keramidas.TitaniumBackup/u0a237 for activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:16:46.811  3673  3762 D WindowManager: openInputChannel mInputChannel: 4d064f6 Starting com.keramidas.TitaniumBackup (server)
12-16 21:16:46.812  3673  3762 D ViewRootImpl@b625bb8[TitaniumBackup]: setView = DecorView@7c220f7[TitaniumBackup] touchMode=true
12-16 21:16:46.819  3673  3762 D ViewRootImpl@b625bb8[TitaniumBackup]: dispatchAttachedToWindow
12-16 21:16:46.820  3673  3762 V WindowManager: Relayout Window{4d064f6d0 u0 Starting com.keramidas.TitaniumBackup}: viewVisibility=0 req=1440x2464 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=3 fl=#1830118 pfl=0x20011 wanim=0x10303ea vsysui=0x400 needsMenuKey=2 naviIconColor=0}
12-16 21:16:46.831 27729 27729 I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.keramidas.TitaniumBackup 
12-16 21:16:46.837  3673  3762 D ViewRootImpl@b625bb8[TitaniumBackup]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x27 surface={isValid=true 539278706688} surfaceGenerationChanged=true
12-16 21:16:46.843  3673  3762 D ViewRootImpl@b625bb8[TitaniumBackup]: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
12-16 21:16:46.867  3673  3762 D WindowManager: finishDrawingWindow: Window{4d064f6d0 u0 Starting com.keramidas.TitaniumBackup} mDrawState=DRAW_PENDING
12-16 21:16:46.872  3673  4837 I ActivityManager: DSS on for com.keramidas.TitaniumBackup and scale is 1.0
12-16 21:16:46.881  3673  3673 D GameManagerService: NotifyRunnable. pkg: com.keramidas.TitaniumBackup, type: 4, isMinimized: false, isTunableApp: false
12-16 21:16:46.890  3673  7772 D GamePkgDataHelper: getGamePkgData(). com.keramidas.TitaniumBackup
12-16 21:16:46.890  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:46.890  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:46.938  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:46.938  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:16:47.022  3673  3967 D MdnieScenarioControlService:  packageName : com.keramidas.TitaniumBackup    className : com.keramidas.TitaniumBackup.MainActivity
12-16 21:16:47.036 27729 27729 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/cache: mkdir failed: EACCES (Permission denied)
12-16 21:16:47.041 27729 27729 W ContextImpl: Failed to ensure /data/user_de/0/com.keramidas.TitaniumBackup/code_cache: mkdir failed: ENOENT (No such file or directory)
12-16 21:16:47.125 27729 27729 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/shared_prefs: mkdir failed: EACCES (Permission denied)
12-16 21:16:47.146 27729 27729 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/shared_prefs: mkdir failed: EACCES (Permission denied)
12-16 21:16:47.195 27729 27729 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:47.212 27729 27729 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:47.219 27729 27768 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:47.220 27729 27768 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/_has_set_default_values.xml
12-16 21:16:47.224 27729 27729 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:47.225 27729 27729 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:16:47.241 27729 27729 I com.keramidas.TitaniumBackup.MainActivity: Main Activity is being created for the first time => scheduling next wake-up ...
12-16 21:16:47.243 27729 27729 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/databases: mkdir failed: EACCES (Permission denied)
12-16 21:16:47.244 27729 27729 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131138) and mode_t (0) due to error (2)
12-16 21:16:47.244 27729 27729 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131072) and mode_t (0) due to error (2)
12-16 21:16:47.244 27729 27729 E SQLiteLog: (14) os_unix.c:32876: (2) open(/data/user/0/com.keramidas.TitaniumBackup/databases/schedules) - 
12-16 21:16:47.244 27729 27729 E SQLiteLog: (1) Process .TitaniumBackup : Pid (27729) Uid (10237) Euid (10237) Gid (10237) Egid (10237)
12-16 21:16:47.244 27729 27729 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" due to error (2)
12-16 21:16:47.244 27729 27729 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases" due to error (2)
12-16 21:16:47.244 27729 27729 E SQLiteLog: (1) Stat of /data/user/0/com.keramidas.TitaniumBackup : st_mode(40755) st_uid(10232) st_gid(10232) st_ino(326524)
12-16 21:16:47.247 27729 27729 E SQLiteDatabase: Failed to open database '/data/user/0/com.keramidas.TitaniumBackup/databases/schedules'.
12-16 21:16:47.247 27729 27729 E SQLiteDatabase: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:47.248 27729 27729 E SQLiteOpenHelper: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:47.249 27729 27729 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/databases: mkdir failed: EACCES (Permission denied)
12-16 21:16:47.249 27729 27729 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131072) and mode_t (0) due to error (2)
12-16 21:16:47.249 27729 27729 E SQLiteLog: (14) os_unix.c:32876: (2) open(/data/user/0/com.keramidas.TitaniumBackup/databases/schedules) - 
12-16 21:16:47.250 27729 27729 E SQLiteLog: (1) Process .TitaniumBackup : Pid (27729) Uid (10237) Euid (10237) Gid (10237) Egid (10237)
12-16 21:16:47.250 27729 27729 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" due to error (2)
12-16 21:16:47.250 27729 27729 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases" due to error (2)
12-16 21:16:47.250 27729 27729 E SQLiteLog: (1) Stat of /data/user/0/com.keramidas.TitaniumBackup : st_mode(40755) st_uid(10232) st_gid(10232) st_ino(326524)
12-16 21:16:47.252 27729 27729 E SQLiteDatabase: Failed to open database '/data/user/0/com.keramidas.TitaniumBackup/databases/schedules'.
12-16 21:16:47.252 27729 27729 E SQLiteDatabase: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:47.253 27729 27729 E AndroidRuntime: Process: com.keramidas.TitaniumBackup, PID: 27729
12-16 21:16:47.253 27729 27729 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1294): Could not open database
12-16 21:16:47.253 27729 27729 E AndroidRuntime: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:16:47.262  3673  4840 W ActivityManager:   Force finishing activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:16:47.344  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: ThreadedRenderer.create() translucent=true
12-16 21:16:47.349  3673  3755 D WindowManager: openInputChannel mInputChannel: 6861e9f Application Error: com.keramidas.TitaniumBackup (server)
12-16 21:16:47.372  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: setView = DecorView@83805bb[TitaniumBackup] touchMode=true
12-16 21:16:47.373  3673  5045 I WindowManager: Failed to capture screenshot of Token{70bbd79 ActivityRecord{5787a40d0 u0 com.keramidas.TitaniumBackup/.MainActivity t610 f}} appWin=Window{4d064f6d0 u0 Starting com.keramidas.TitaniumBackup} drawState=4
12-16 21:16:47.379  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: dispatchAttachedToWindow
12-16 21:16:47.391  3673  3755 V WindowManager: Relayout Window{6861e9fd0 u0 Application Error: com.keramidas.TitaniumBackup}: viewVisibility=0 req=1353x589 WM.LayoutParams{(0,0)(wrapxwrap) gr=#11 sim=#120 ty=2003 fl=#1820002 pfl=0x110 fmt=-3 wanim=0x103038b surfaceInsets=Rect(8, 8 - 8, 8) needsMenuKey=2 naviIconColor=0}
12-16 21:16:47.411  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[43,1033][1396,1622] result=0x27 surface={isValid=true 539107650048} surfaceGenerationChanged=true
12-16 21:16:47.411  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: mHardwareRenderer.initialize() mSurface={isValid=true 539107650048} hwInitialized=true
12-16 21:16:47.419  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: MSG_WINDOW_FOCUS_CHANGED 1
12-16 21:16:47.419  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 539107650048}
12-16 21:16:47.436  3673  3755 D WindowManager: finishDrawingWindow: Window{6861e9fd0 u0 Application Error: com.keramidas.TitaniumBackup} mDrawState=DRAW_PENDING
12-16 21:16:47.437  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
12-16 21:16:47.447  3673  3755 D WindowManager: finishDrawingWindow: Window{6861e9fd0 u0 Application Error: com.keramidas.TitaniumBackup} mDrawState=HAS_DRAWN
12-16 21:16:47.781  3673  3754 W ActivityManager: Activity pause timeout for ActivityRecord{5787a40d0 u0 com.keramidas.TitaniumBackup/.MainActivity t610 f}
12-16 21:16:47.782  3673  3754 D ActivityManager: resumeTopActivityInnerLocked() : #0 prevTask=TaskRecord{58afa6cd0 #610 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1} next=ActivityRecord{446c5e6d0 u0 com.sec.android.app.launcher/.activities.LauncherActivity t556} mFocusedStack=ActivityStack{ff2d71d0 stackId=0, 2 tasks}
12-16 21:16:47.931  3673  5042 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mServices
12-16 21:16:47.931  3673  5042 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mProviders
12-16 21:16:47.931  3673  5042 D PackageManager: getComponentMetadataForIconTray : com.keramidas.TitaniumBackup.MainActivity does not exist in mReceivers
12-16 21:16:47.932  4013  4013 I ApplicationPackageManager: load=com.keramidas.TitaniumBackup, bg=192-192, dr=384-384, forDefault=true
12-16 21:16:48.151  3673  3762 D WindowManager: disposeInputChannel mInputChannel: 4d064f6 Starting com.keramidas.TitaniumBackup (server)
12-16 21:16:48.152  3673  3762 I WindowManager_SurfaceController: Destroying surface Surface(name=Starting com.keramidas.TitaniumBackup) called by com.android.server.wm.WindowStateAnimator.destroySurface:2905 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1119 com.android.server.wm.WindowState.removeLocked:1849 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2928 com.android.server.wm.AppWindowToken.destroySurfaces:427 com.android.server.wm.AppWindowToken.destroySurfaces:388 com.android.server.wm.WindowStateAnimator.finishExit:686 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:493 
12-16 21:16:48.171  3673  3762 D ViewRootImpl@b625bb8[TitaniumBackup]: dispatchDetachedFromWindow
12-16 21:16:48.609 27822 27856 W PkgUtils: p: com.keramidas.TitaniumBackup, u:0
12-16 21:16:48.610  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: ViewPostImeInputStage processPointer 0
12-16 21:16:48.644 27857 27869 W PkgUtils: p: com.keramidas.TitaniumBackup, u:0
12-16 21:16:48.694  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: ViewPostImeInputStage processPointer 1
12-16 21:16:48.700  3673  4840 W ActivityManager:   Force finishing activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:16:48.701  3673  4840 I ActivityManager: Killing 27729:com.keramidas.TitaniumBackup/u0a237 (adj 900): crash
12-16 21:16:48.712  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: mHardwareRenderer.destroy()#4
12-16 21:16:48.712  3673  3755 D ViewRootImpl@2c818f9[TitaniumBackup]: dispatchDetachedFromWindow
12-16 21:16:48.712  3673  3755 D WindowManager: disposeInputChannel mInputChannel: 6861e9f Application Error: com.keramidas.TitaniumBackup (server)
12-16 21:16:49.057  3673  3762 I WindowManager_SurfaceController: Destroying surface Surface(name=Application Error: com.keramidas.TitaniumBackup) called by com.android.server.wm.WindowStateAnimator.destroySurface:2905 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1119 com.android.server.wm.WindowState.destroyOrSaveSurface:2627 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:503 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:278 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:226 com.android.server.wm.WindowManagerService$H.handleMessage:9317 android.os.Handler.dispatchMessage:102 
12-16 21:18:20.050  3673  4750 I ActivityManager: START u0 {act=null typ=null flg=0x10000000 cmp=ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}} from uid 2000 on display 0
12-16 21:18:20.058  3673  4750 D ActivityManager: moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{f42274d0 #612 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1}
12-16 21:18:20.062  3673  4750 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{f42274d0 #612 A=com.keramidas.TitaniumBackup U=0 StackId=1 sz=1} next=ActivityRecord{f91b1c8d0 u0 com.keramidas.TitaniumBackup/.MainActivity t612} mFocusedStack=ActivityStack{b0d7d48d0 stackId=1, 3 tasks}
12-16 21:18:20.065  3673  4750 D MountService: getExternalStorageMountMode : final mountMode=3, uid : 10237, packageName : com.keramidas.TitaniumBackup
12-16 21:18:20.086  3673  4750 I ActivityManager: Start proc 28717:com.keramidas.TitaniumBackup/u0a237 for activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:18:20.159 28717 28717 I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.keramidas.TitaniumBackup 
12-16 21:18:20.197  3673  5468 I ActivityManager: DSS on for com.keramidas.TitaniumBackup and scale is 1.0
12-16 21:18:20.222  3673  3673 D GameManagerService: NotifyRunnable. pkg: com.keramidas.TitaniumBackup, type: 4, isMinimized: false, isTunableApp: false
12-16 21:18:20.245  3673  7772 D GamePkgDataHelper: getGamePkgData(). com.keramidas.TitaniumBackup
12-16 21:18:20.245  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:18:20.245  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:18:20.246  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:18:20.247  3673  7772 D GameManagerService: identifyGamePackage. com.keramidas.TitaniumBackup
12-16 21:18:20.357 28717 28717 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/cache: mkdir failed: EACCES (Permission denied)
12-16 21:18:20.358 28717 28717 W ContextImpl: Failed to ensure /data/user_de/0/com.keramidas.TitaniumBackup/code_cache: mkdir failed: ENOENT (No such file or directory)
12-16 21:18:20.378  3673  3967 D MdnieScenarioControlService:  packageName : com.keramidas.TitaniumBackup    className : com.keramidas.TitaniumBackup.MainActivity
12-16 21:18:20.454 28717 28717 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/shared_prefs: mkdir failed: EACCES (Permission denied)
12-16 21:18:20.471 28717 28717 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/shared_prefs: mkdir failed: EACCES (Permission denied)
12-16 21:18:20.507 28717 28717 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:18:20.516 28717 28717 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:18:20.521 28717 28738 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:18:20.521 28717 28738 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/_has_set_default_values.xml
12-16 21:18:20.525 28717 28717 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:18:20.526 28717 28717 E SharedPreferencesImpl: Couldn't create directory for SharedPreferences file /data/user/0/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml
12-16 21:18:20.538 28717 28717 I com.keramidas.TitaniumBackup.MainActivity: Main Activity is being created for the first time => scheduling next wake-up ...
12-16 21:18:20.540 28717 28717 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/databases: mkdir failed: EACCES (Permission denied)
12-16 21:18:20.540 28717 28717 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131138) and mode_t (0) due to error (2)
12-16 21:18:20.540 28717 28717 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131072) and mode_t (0) due to error (2)
12-16 21:18:20.540 28717 28717 E SQLiteLog: (14) os_unix.c:32876: (2) open(/data/user/0/com.keramidas.TitaniumBackup/databases/schedules) - 
12-16 21:18:20.540 28717 28717 E SQLiteLog: (1) Process .TitaniumBackup : Pid (28717) Uid (10237) Euid (10237) Gid (10237) Egid (10237)
12-16 21:18:20.541 28717 28717 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" due to error (2)
12-16 21:18:20.541 28717 28717 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases" due to error (2)
12-16 21:18:20.541 28717 28717 E SQLiteLog: (1) Stat of /data/user/0/com.keramidas.TitaniumBackup : st_mode(40755) st_uid(10232) st_gid(10232) st_ino(326524)
12-16 21:18:20.543 28717 28717 E SQLiteDatabase: Failed to open database '/data/user/0/com.keramidas.TitaniumBackup/databases/schedules'.
12-16 21:18:20.543 28717 28717 E SQLiteDatabase: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:18:20.543 28717 28717 E SQLiteOpenHelper: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:18:20.544 28717 28717 W ContextImpl: Failed to ensure /data/user/0/com.keramidas.TitaniumBackup/databases: mkdir failed: EACCES (Permission denied)
12-16 21:18:20.544 28717 28717 W SQLiteLog: (28) failed to open "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" with flag (131072) and mode_t (0) due to error (2)
12-16 21:18:20.544 28717 28717 E SQLiteLog: (14) os_unix.c:32876: (2) open(/data/user/0/com.keramidas.TitaniumBackup/databases/schedules) - 
12-16 21:18:20.544 28717 28717 E SQLiteLog: (1) Process .TitaniumBackup : Pid (28717) Uid (10237) Euid (10237) Gid (10237) Egid (10237)
12-16 21:18:20.544 28717 28717 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases/schedules" due to error (2)
12-16 21:18:20.544 28717 28717 E SQLiteLog: (1) osStat failed "/data/user/0/com.keramidas.TitaniumBackup/databases" due to error (2)
12-16 21:18:20.544 28717 28717 E SQLiteLog: (1) Stat of /data/user/0/com.keramidas.TitaniumBackup : st_mode(40755) st_uid(10232) st_gid(10232) st_ino(326524)
12-16 21:18:20.545 28717 28717 E SQLiteDatabase: Failed to open database '/data/user/0/com.keramidas.TitaniumBackup/databases/schedules'.
12-16 21:18:20.545 28717 28717 E SQLiteDatabase: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:18:20.546 28717 28717 E AndroidRuntime: Process: com.keramidas.TitaniumBackup, PID: 28717
12-16 21:18:20.546 28717 28717 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1294): Could not open database
12-16 21:18:20.546 28717 28717 E AndroidRuntime: at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source)
12-16 21:18:20.550  3673  5042 W ActivityManager:   Force finishing activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:18:20.555  3673  5042 W ActivityManager:   Force finishing activity com.keramidas.TitaniumBackup/.MainActivity
12-16 21:18:20.555  3673  5042 W ActivityManager: Duplicate finish request for ActivityRecord{f91b1c8d0 u0 com.keramidas.TitaniumBackup/.MainActivity t612 f}
12-16 21:18:20.602  3673 27726 I ActivityManager: Process com.keramidas.TitaniumBackup (pid 28717) has died(62,466)
12-16 21:18:20.740 27822 28745 W PkgUtils: p: com.keramidas.TitaniumBackup, u:0
12-16 21:18:20.838 27857 27869 W PkgUtils: p: com.keramidas.TitaniumBackup, u:0

星期三, 十二月 12, 2018

Use Fiddler as middle man of Atlassian Connect Express App and disable cache

Atlassian provides a nodejs based framework to aid atlassian connect app development. This framework is based on nodejs + espressjs + handlebars. It will also use ngrok to expose local port to internet. For more information, please refer to following link.


The javascript files in the routes folder (index.js etc) are executed by the nodejs engine from server side. For any changes in these files, you have to run npm start again to take effect. (nodemon can be helpful). 

The javascript in public folder is on the other hand executed by the client (browsers), any changes made in these files should not require restarting the dev server. But because the browser caches the javascript files, you still need to restart the dev server using npm start. 

I will show you a way to use fiddler to disable cache. Also fiddler will be act as man in the middle so that you can view and modify request/response.

Before you start, you should have a working atlassian connect plugin code.

1. First, we need to config fiddler as a reserve proxy.  Press ALT+Q in fidder, and enter !listen 3001. This will ask fiddler to listen to port 3001. Make sure 3001 is not used by other program.


2. Press Ctrl + R to open fiddler config files. Navigate to OnBeforeRequest method and add following code in the end of this method. Once fiddler receive a request from ngrok, it will forward it to port 3000.

[javascript]

if (IsMatch(oSession.host, "ngrok.io")){
oSession.host = "localhost:3000";
return;
}

[/javascript]

3. Now go to Fiddler 's Rules -> Performance and tick "Disable caching". 

4. Now Leave fiddler open,  open \node_modules\atlassian-connect-express\lib\internal\registration\register-jira-conf.js with any text editor,  change addon.config.port() to addon.config.port()+1. This make ngrok to map 80 port to 3001 (the default port is 3000).


5. Now the config is done. Use npm start to run the project.  You should see the traffic from Atlassian could goes into fiddler and is redirected to port 3000.



Notes (not important):

When  "Disable caching" is turned on in Fiddler, fiddler will remove the cache header from HTTP request. You can find the following code in fiddler script.

[javascript]
if (m_DisableCaching)
              {
                oSession.oRequest.headers.Remove("If-None-Match");
                oSession.oRequest.headers.Remove("If-Modified-Since");
                oSession.oRequest["Pragma"] = "no-cache";
              }
[/javascript]




星期五, 十二月 07, 2018

How to switch/jump between html, typescript, css files in visual studio code

If you are written angular 2+ web app with visual studio code, you will like this extension, which will help you to navigate between typescript, html and css files. 



[Youtube][网络技术]如何实现秒剪视频 | 剪掉不要的部分| 超快剪切 | 还能合并| 10M软件显神威

Tags: 视频剪辑,快速剪辑,视频合并,视频秒剪
有时候我们拍的视频里面有一些不想要的片断, 或者说我们只想提取视频里面一部分片段,PR等软件虽然强大, 但也太臃肿了。 而且导出视频的时候超级慢。 今天介绍一个仅有10兆的软件,居然可以几秒钟把视频剪好? 真有这么神奇,看看视频,我告诉大家为什么。

-~-~~-~~~-~~-~-

本频道旨在分享生活中各种小技巧, 如用小米盒子看国内视频, 如何使用KODI看电影等等. 同时我也会分享一些编程的教程, 如编写Telegram机器人, 建站等。 点击进入我的频道: goo.gl/5tyxcf

🔷 订阅我的频道: goo.gl/KuF3bY
🔷 telegram电报群: t.me/fengsharegroup
🔷 我的博客: www.dengnz.com/blog
🔷 Facebook: www.facebook.com/fengnz

觉得我的视频对你帮助很大的话, 请我喝杯咖啡吧
微信赞赏码: goo.gl/uKoE8w
-~-~~-~~~-~~-~-

星期三, 十二月 05, 2018

Angular 7 upgrading npm install operation not permitted issue

 

errno -4048




I solved the problem by running the following command.

rd/s node_modules\ && del package-lock.json && npm cache clean --force && npm install
npm install  typescript@3.1.1


星期二, 十一月 27, 2018

[Youtube][峰享投稿 | 林少] 3万速度 | 免费VPN | 等你来拿 | 安卓 | 苹果

tags: 免费,高速, VPN


这里推荐一款又快又不要钱的VPN, 便宜有好货。 这是峰哥分享技术交流超级群 https://t.me/fengsharegroup 林少发来的投稿。 视频的录制和APP的测试由林少提供。 谢谢林少, 欢迎大家投稿!

APP 下载地址

去广告证书,这个其实不太建议安装, 毕竟不安全。


-~-~~-~~~-~~-~-

本频道旨在分享生活中各种小技巧, 如用小米盒子看国内视频, 如何使用KODI看电影等等. 同时我也会分享一些编程的教程, 如编写Telegram机器人, 建站等。 点击进入我的频道: goo.gl/5tyxcf

🔷 订阅我的频道: goo.gl/KuF3bY
🔷 telegram电报群: t.me/fengsharegroup
🔷 我的博客: www.dengnz.com/blog
🔷 Facebook: www.facebook.com/fengnz

觉得我的视频对你帮助很大的话, 请我喝杯咖啡吧
微信赞赏码: goo.gl/uKoE8w
-~-~~-~~~-~~-~-


星期一, 十一月 26, 2018

[Youtube][我看新西兰]一天内经历春夏秋冬 | 看奥克兰一日四季的天气是怎么折磨我的 (第一次暴露住处)

Tags: 新西兰,奥克兰,天气,一日四季

为什么新西兰人见面喜欢聊天气? 奥克兰的天气到底有多诡异? 这个视频跟大家聊一聊,同时也记录了我在一天内是如何经历四季的。第一次拍我住的地方哦。

https://youtu.be/VEzzHo4cEQw

-~-~~-~~~-~~-~-

本频道旨在分享生活中各种小技巧, 如用小米盒子看国内视频, 如何使用KODI看电影等等. 同时我也会分享一些编程的教程, 如编写Telegram机器人, 建站等。 点击进入我的频道: goo.gl/5tyxcf

🔷 订阅我的频道: goo.gl/KuF3bY
🔷 telegram电报群: t.me/fengsharegroup
🔷 我的博客: www.dengnz.com/blog
🔷 Facebook: www.facebook.com/fengnz

觉得我的视频对你帮助很大的话, 请我喝杯咖啡吧
微信赞赏码: goo.gl/uKoE8w
-~-~~-~~~-~~-~-

星期四, 十一月 22, 2018

413 Request Entity Too Large nginx

用Nginx-proxy 的网站,上传文件时碰到413错误的解决方法

只是要加一个任意名字的conf 文件到 /etc/nginx/conf.d/ 里面。 注意扩展名一定要是 .conf

加一行client_max_body_size 100m; 在这个文件里面就可以了

然后重启nginx proxy

以下是我在ubuntu 服务器中的操作命令

#I have the nginx-proxy docker container named as nginx-proxy as well, modify to your own name
sudo docker exec -it nginx-proxy bash
# 100m is a big size, you may want to reduce it
echo 'client_max_body_size 100m;'   > /etc/nginx/conf.d/my_proxy.conf
exit
sudo docker stop  nginx-proxy
sudo docker start nginx-proxy


星期一, 十一月 19, 2018

Wordpress ERR_TOO_MANY_REDIRECTS wp_admin

我承认这个问题困扰了我好久。而且,为什么我原来的网站没事到现在扔然是一个迷。

当我在架设一个新的wordpress 网站的时候,我发现我无法使用HTTPS来访问。 我架设的方法和我原来的网站是一样的,而原来的网站没有这个问题。

如果我使用HTTP访问,是没有问题的,只要网站的网址设置没有问题。这个网址可以在数据库里wp_options 这个表格里直接改。 也可以在后台的常规设置里改。



但是HTTP显然不是我要的,这里有两个问题。

我的wordpress 架设在nginx-proxy 之后, nginx-proxy 会自动把HTTP转成HTTPS, 而转到HTTPS后, 问题就来了, 因为主站是HTTPS,而有些CSS和JS确是通过HTTP的, 这样就有Mix content 的问题, 导至CSS显示不正确。 而且用HTTP登录从来都不是一个好主意。

所以我在后台把HTTP改成HTTPS, 然后,就碰到了一个更讨厌的问题。首先CSS问题依旧, 然后就是当进入后台登录页面的时候,页面无法显示

浏览器提示

ERR_TOO_MANY_REDIRECTS 

而在Fiddler 里可以看到, 服务器一直在返回页面重定向


而问题的解决方法很简单,但却很难找,你需要在wp-config.php加一行

 $_SERVER['HTTPS'] = 'on'; 




很简单的一个改变,但是不懂的人去哪里知道呢。。。。希望这篇博客对你有用。

参考:

星期一, 十一月 12, 2018

同时使用 Hyper-V Docker 和 Virtual Box Docker Toolbox

有时候我们因为种种原因我们需要使用 Virtual Box, 而不能使用 Hyper-V. 而Virtual Box 和 Hyper-V 由于一个是二级虚拟,一个是一级虚拟, 它们两个是不能同时使用的。 当然,这里我要提示大家一下, 不能同时使用并不是不能同时安装。 它们可以同时存在, 只是不能同时启用罢了。 

我本来是一直在使用 Hyper-V 的, 因为我装的Docker 需要它。 但是最近我想安装 Geny Montion这个安卓模拟器, 而因为这个模拟器是基于Virtual Box 的, 导至无法启动。 而也有小伙伴跟我反应在Windows 7 和 Windows 10 家庭版里都没有 Hyper -V, 无法使用 Docker. 所以我就研究了下如何在Virtual Box 里使用Docker. 然后我发现, 其实Hyper-V 和Virtual Box是可以轮着用的,不需要卸载其中一个,只是切换的时候需要重启电脑。

首先,我使用了以下命令来禁用Hyper V, 需要在管理员模式下运行

bcdedit /set hypervisorlaunchtype off

如果你之后想重新启用 Hyper V, 使用以下命令

bcdedit /set hypervisorlaunchtype auto

禁用 Hyper-V 后, 重启电脑, 这时候你发现 Hyper V Manager 还是可以用的, 只是里面的虚拟机打不开了, 原来的Docker自动启动的时候也会出错。 

这个时候,下载 Docker ToolBox 并安装。 

安装的时候,可选安装 Virtual Box, 如果你已经安装了, 可以把勾去掉。

安装好后, 在桌面上点击Docker Quickstart Terminal, 就会进入一个特殊的命令行。 第一次启动要花点时间, 等进入以后, 你会看到一个以$ 开头的BASH 命令提示符。



这个时候你就可以直接输入 Docker 命令了。 

但是和Hyper V下的Docker 有一点区别, 当你用 -p 映射端口的时候, 你映射的不是本地端口, 而是虚拟机的端口,比如说我开了一个网页服务器用 -p 8080:80 这个参数, 最后服务器正常工作,但我却不能使用 localhost:8080 去访问它, 我需要使用 192.168.99.100:8080 去访问它。 而且你会注意到, 这个Docker 和你Hyper V里面的Docker 是分开的, 你所有的原来是Docker 容器都需要重建, 相关的镜像文件也要重新下载,这是因为他们在不同的虚拟机里运行。

因为我可能会切换回Hyper V去使用Docker, 所以我并不想改我代码里面的 localhost:8080这个服务器地址到 192.168.99.100:8080, 那怎么样才可以让 localhost:8080也工作呢? 其实办法很简单, 在Linux我们有个常用的小工具叫socat, 可以用来作端口转发, 而在Windows底下, 其实也有一个自带的工具可以做到。

这个命令叫netsh

以管理员身份输入以下命令, 就会把 localhost:8080 的访问数据转发到 192.168.99.100:8080
这样就不需要改动代码了。

netsh interface portproxy add v4tov4 listenport=8080 listenaddress=localhost connectport=8080 connectaddress=192.168.99.100

当然,当你用完的时候,你需要使用以下命令来删除端口转发

netsh interface portproxy delete v4tov4 listenport=8080 listenaddress=localhost 


你也可以创建另一个Ubuntu的虚拟机,再使用 ssh 通道来做端口转发 (可以映射到 localhost), 这是我在不知道 netsh可以做端口转发时想到的方法。

当你用完 Virtual Box 想回到 Hyper V了, 在管理员模式下输入以下命令, 然后重启

bcdedit /set hypervisorlaunchtype auto

你就又回到Hyper V里面了。 你的Virtual Box 和 Docker Toolbox 都还在,只是启动不了了。 但是你随时可以禁用 Hyper V 重新启用它们。



星期六, 十一月 10, 2018

Telegram AI 智能聊天机器人 | 上知天文, 下知地理 | 数学,天气,笑话,游戏,翻译通通都会 | 抄个100多行代码就能用 | 小白也能搞定

Tags:  
Telegram, 机器人,
 聊天机器人,机器人编程,机器人代码, Telegram代码,Telegram Bot, Hello world, Telegram编程 , AI


通过100多行代码将Telegram 机器人接到国产的AI 大脑, 功能强大, 懂数学, 懂成语,懂天气, 会讲笑话,还能玩游戏。

机器人的代码请翻到后面
代码已经写好,只要小小的改动就可以使用。

-~-~~-~~~-~~-~-

本频道旨在分享生活中各种小技巧, 如用小米盒子看国内视频, 如何使用KODI看电影等等. 点击进入我的频道: goo.gl/5tyxcf

🔷 订阅我的频道: goo.gl/KuF3bY
🔷 telegram电报群: t.me/fengsharegroup
🔷 我的博客: www.dengnz.com/blog
🔷 Facebook: www.facebook.com/fengnz

觉得我的视频对你帮助很大的话, 请我喝杯咖啡吧
微信赞赏码: goo.gl/uKoE8w
-~-~~-~~~-~~-~-


[javascript]
function doPost(e) {
  var body = JSON.parse(e.postData.contents);
  if (!checkIsMyMessage(body)){
    return;
  }

  if (body.message && body.message.chat){
  }

  var payload = tulinBotPayload(body);
  var payloads;

  if (Array.isArray(payload)){
    payloads = payload;
  } else {
    payloads = [payload]
  }

  for (var i = 0; i < payloads.length; i++){
    payload = payloads[i];
    if (payload){
      var res = PostTelegram(payload);
    }
  }

}
function tulinBotPayload(body) {
  var payload;
  var chatId = body.message.chat.id;
  payload = {
    "method": "sendMessage",
    "chat_id": chatId,
    "text": "",
    "disable_web_page_preview": true,
    "reply_to_message_id": body.message.message_id,
  };

  var tulinReq = {
    "reqType": 0,
      "perception": {
          "inputText": {
              // tulinjiqirenbot 改成你自己机器人的名字
              "text": body.message.text.replace("@tulinjiqirenBot", "")
          }
         
      },
      "userInfo": {
        // 改成你自己的图灵机器人的apikey 和 userId
          "apiKey": "4e8395e7721046e38e9c610de725edd7",
          "userId": "339657"
      }
  };


  var data = {
    'contentType': 'application/json',
    "method": "post",
    "payload": JSON.stringify(tulinReq)
  };

  var response = UrlFetchApp.fetch("http://openapi.tuling123.com/openapi/api/v2", data);
  var res = JSON.parse(response);

  if (res.results && res.results[0].values && res.results[0].values.text) {
    payload.text = res.results[0].values.text;
  }
  return payload;
}
function isPrivate(body) {
  var share =  getShareObject(body);
  var chat = share.chat;
  if (chat.type === "private") {
    return true;
  }
  return false;
}
function PostTelegram(payload) {
  var data = {
    'contentType': 'application/json',
    "method": "post",
    "payload": JSON.stringify(payload)
  };

  // 改成你自己机器人的 API token
  var res = JSON.parse(response);
  return res;
}
function checkIsMyMessage(body){
  var text = body.message.text;

  if (isPrivate(body)){
    return true;
  }

  if (body.message.reply_to_message) {
    if (body.message.reply_to_message.from.id == 750371992) {
      return true;
    }
  }

  if (text) {
    var paras = text.split(" ");
    if (paras[0] && paras[0].indexOf("@") >= 0){
      // tulinjiqirenbot 改成你自己机器人的名字, 全部小写
      if  (paras[0].toLowerCase().indexOf("tulinjiqirenbot") >= 0){
        return true;
      }
      return false;
    }
  }
  return false;
}

function getShareObject(body) {
  var payload;
  var from;
  var chat;
  var messageId;
  var callback_query_id;

  // use editMessage method instead if it's a callback 
  if (body.callback_query) {
    chat = body.callback_query.message.chat;
    chat.id = chat.id + "";
    messageId = body.callback_query.message.message_id;
    from = body.callback_query.from;
    callback_query_id = body.callback_query.id;
    payload = {
      "method": "editMessageText",
      "chat_id": chat.id,
      "message_id": messageId,
      "text": "",
      "parse_mode": "markdown",
      "disable_web_page_preview": false,
    };
  } else {
    from = body.message.from;
    chat = body.message.chat;
    chat.id = chat.id + "";
    messageId = body.message.message_id;
    payload = {
      "method": "sendMessage",
      "chat_id": chat.id,
      "text": "",
      "parse_mode": "markdown",
      "disable_web_page_preview": true,
      "reply_to_message_id": messageId,
    };

  }

  var share = {};
  share.payload = payload;
  share.from = from;
  share.chat = chat;
  share.messageId = messageId;
  share.callback_query_id = callback_query_id;

  return share;
}

[/javascript]

星期二, 十一月 06, 2018

使用Git apply patch 重复加Controller和相关文件的操作

当我们在写代码的时候,有时候我们需要做一些重复的工作。 比如我现在正在做的。 我需要加一个新的功能, 而在加这个功能的时候, 我有以下文件要加:

Controllers/EmailManagersController.cs
Data/EmailManagerContext.cs
Data/EmailManagerRepository.cs
Interfaces/IEmailManagerRepository.cs
Models/Core/Workspace/EmailManagerEntity.cs

然后有以下文件要改

Helpers/Common/CommonHelper.cs
Startup.cs
appsettings.Development.json
appsettings.json


而我之前已经做过了这样类似的操作 (假设这个commit 叫C1),只不过名字不一样而已。 当然加完这些文件后,具体的功能是要再写的。 但是加这些文件其实就是在重复劳动。 

有没有一种快速的方法可以生成这些文件, 并改变文件名和里面相关的类名呢?

我之前介绍过一种用Total commander sync 的方法。 今天我介绍一个用 git patch 的方法。

  • 首先, 我们在当前的版本上新建一个分支 (B1),我直接用的是 git flow feature start 

  • 然后, 我们找到我们之前做的那个commit, 然后用那个commit 创建一个单文件patch 

  • 用文本编辑器打开这个patch 文件, 来个查找与替换, 替换到原来的名字。

  • 这时候不要直接git apply 这个patch, 因为当前版本已经改了很多, patch 不会成功。

  • 回到C1之前的那个版本, 从这个版本做一个分支 (B_old), 在这个分支上git apply 自然就能成功

  • git apply 完后, 把这个分支 (B_old) merge 到最新版的分支 (B1), 这时候肯定会有conflict, 因为我们在C1的时候做过一样的操作, 所以这次操作就会问你要保留C1的改变还是保留这次的改变, 而我们是要同时保留。

  • 这个时候我们用Merge工具手动Merge 几下就好了, 我这里用的是 KDiff3. 

  • Merge 完后, Commit 就可以了。

这种方法可以省很多时候, 也不容易漏掉东西。 因为时间关系,就没有图片演示了, 如果有兴趣的话,可以留言给我做个图文教程。

--
Feng

星期五, 十一月 02, 2018

Change your Spark Billing Address in NZ

I looked around My Spark website and couldn't find the settings for billing address. 

MySpark doesn't have this feature. You have to go to fill this form to update your billing address.

星期四, 十一月 01, 2018

2018年11月港澳台直播源更新

Tags: Kodi, 直播, 港澳台,电视


之前的港澳台直播源好多失效了, 这两天我又收集了100多个,亲测后, 保留了70多个好用的。 我记录了直播源的编码格式还有分辨率。 为了方便大家筛选高清源,我在表单里还加了过滤器, 方便只想看高清的小伙伴们。

我的网站提供了直播源文件的下载, 有txt 和 m3u8 两种格式。 

直播的表单和文件下载请到这里


想要删除低清频道的话, 请用列编辑神器自己做直播源列表文件
列编辑神器网址 https://columns.dengnz.com  

不懂做直播源列表文件或者不懂如何使用直播源列表文件的,  请看这个视频, 介绍直播源的文件制作和使用方法


-~-~~-~~~-~~-~-

本频道旨在分享生活中各种小技巧, 如用小米盒子看国内视频, 如何使用KODI看电影等等. 点击进入我的频道: goo.gl/5tyxcf

🔷 订阅我的频道: goo.gl/KuF3bY
🔷 telegram电报群: t.me/fengsharegroup
🔷 我的博客: www.dengnz.com/blog
🔷 Facebook: www.facebook.com/fengnz

觉得我的视频对你帮助很大的话, 请我喝杯咖啡吧
微信赞赏码: goo.gl/uKoE8w
-~-~~-~~~-~~-~-

[Youtube] Telegram Bot 连接Mongo DB 数据库, 超酷超好用的JSON数据库, 不需要学SQL啦[第七集]

Tags:  
Telegram, 机器人,
 聊天机器人,机器人编程,机器人代码, Telegram代码,Telegram BotTelegram编程  

本视频是Telegram Bot 机器人编程系列的第七集。 本集介绍如何在谷歌 Google App Scripts 中使用Mongo Db 数据库。 Mongo DB做为文档数据库, 数据的格式为JSON, 也就是和我们机器人处理的消息是同样的格式, 非常的方便, 而且大家也不用学SQL啦。


相关的代码请
翻到下面


免费数据库申请

下期预告:
 Telegram Bot 使用快捷按钮Inline Button, Reply Button和用户交互[第八集]  


-~-~~-~~~-~~-~-

本频道旨在分享生活中各种小技巧, 如用小米盒子看国内视频, 如何使用KODI看电影等等. 同时我也会分享一些编程的教程, 如编写Telegram机器人, 建站等。 点击进入我的频道: goo.gl/5tyxcf

🔷 订阅我的频道: goo.gl/KuF3bY
🔷 telegram电报群: t.me/fengsharegroup
🔷 我的博客: www.dengnz.com/blog
🔷 Facebook: www.facebook.com/fengnz

觉得我的视频对你帮助很大的话, 请我喝杯咖啡吧
微信赞赏码: goo.gl/uKoE8w
-~-~~-~~~-~~-~-

[javascript]
function doGet(e){
  return HtmlService.createHtmlOutput("Hello World!! No, this link should be hidden!!!");
  
 //  return HtmlService.createHtmlOutputFromFile('Index');
}


function doPost(e){
  var body = JSON.parse(e.postData.contents);
  
  mongo.insert(logColl, body);

  var payload = preparePayload(body);
  var data = {    
    "method": "post",
    "contentType": 'application/json',
    "payload": JSON.stringify(payload),
  }
  
  mongo.insert("to-telegram", payload);
  
}

function getName(user) {
  var name = user.first_name;
  if (user.last_name) {
    name += " " + user.last_name;
  }

  return name;
}

function escapeMarkDown(toEscapeMsg) {
  var escapedMsg = toEscapeMsg
  .replace(/_/g, "\\_")
  .replace(/\*/g, "\\*")
  .replace(/\[/g, "\\[")
  .replace(/`/g, "\\`");
    return escapedMsg;

}


function getMentionName(user) {
  var username = user.username;
  var mentionName = "";

  var name = getName(user);
  if (!name) {
    name = "神秘人";
  }

  // if (!username) {
    mentionName = getMarkDownUserUrl(escapeMarkDown(name), user.id);
  // } else {
  //   mentionName = "[" + escapeMarkDown(name) + "](@" + escapeMarkDown(username) + ")";
  // }

  return mentionName;
}

function getMarkDownUserUrl(userName, userId) {
  return "[" + userName + "](tg://user?id=" + userId + ")";
}


function preparePayload(body){
  var payload;
  
  if (body.message.new_chat_member) {
     payload = {
        "method": "sendMessage",
        "chat_id": body.message.chat.id,
        "text": "你好, 欢迎加入本群",
        "parse_mode": "Markdown",
        "disable_web_page_preview": true,
      } 
      
      payload.text = "你好!" + getMentionName(body.message.new_chat_member) + ", 欢迎加入本群";
      return payload;
  }
  
  if (body.message.left_chat_member) {
     payload = {
        "method": "sendMessage",
        "chat_id": body.message.chat.id,
        "text": "你好, 欢迎加入本群",
        "parse_mode": "Markdown",
        "disable_web_page_preview": true,
      } 
      
      payload.text = getMentionName(body.message.left_chat_member) + "君, 一路走好!";
      return payload;
  }
  
   if (body.message.pinned_message) {
    payload = {
        "method": "sendMessage",
        "chat_id": body.message.chat.id,
        "text": "你好, 欢迎加入本群",
        "parse_mode": "Markdown",
        "disable_web_page_preview": true,
      } 
    var whoPinned = getName(body.message.from);
    var whoOwned = getName(body.message.pinned_message.from);

    payload.text = whoPinned + "置顶了消息:\n\n" + body.message.pinned_message.text
      + "\n\n"
      + "本BOT代表" + whoOwned + "感谢您"
      ;
    return payload;
  }


  body.message.text = body.message.text.toLowerCase();
  body.message.text = body.message.text.replace(/@temptestbot2/g, '');
  
  var paras = body.message.text.trim().split(" ");
  // remove empty strings
  paras = paras.filter(function(para){
    if (para){
      return true;
    }
  });
  
  
  
  if (body.message.text){
  
      payload = {
        "method": "sendMessage",
        "chat_id": body.message.chat.id,
        "text": "你好, 欢迎使用本机器人, 本机器人现在只认识颜色。",
        "parse_mode": "Markdown",
        "disable_web_page_preview": true,
      } 
      
      if(body.message.text.indexOf("/help") === 0){      
         payload.text = "你好, 欢迎使用本机器人, 本机器人现在只认识颜色。";
         return payload;
      }
      
      if(body.message.text.indexOf("/colors") === 0){   
         payload.text = "红\n黄\n蓝";        
         return payload;
      }
      
      if(body.message.text.indexOf("/list") === 0){ 
         if (paras[1]){
           switch (paras[1].toLowerCase()){
             case "people":  
               if (paras[2]){
                 if ("JS神技能".toLowerCase().indexOf(paras[2]) >= 0){
                   payload.text = "JS神技能 - https://www.youtube.com/channel/UC6tPP3jOTKgjqfDgqMsaG4g";
                 }
                 if ("悟空的日常".toLowerCase().indexOf(paras[2]) >= 0){
                   payload.text = "悟空的日常 - https://www.youtube.com/channel/UCii04BCvYIdQvshrdNDAcww";
                 }
                 if ("YuFeng Deng".toLowerCase().indexOf(paras[2]) >= 0){
                   payload.text = "YuFeng Deng - https://www.youtube.com/channel/UCG6xoef2xU86hnrCsS5m5Cw";
                 }
               } else {                 
                 payload.text = "JS神技能\n"
                   + "悟空的日常\n"
                   + "YuFeng Deng\n";        
                   return payload;
                }
               break;
             default:  
               payload.text = "红\n黄\n蓝";            
             break;
           }
                
           return payload;
         } else {         
           payload.text = "*JS神技能*\n"
             + "[悟空的日常](https://www.youtube.com/channel/UCii04BCvYIdQvshrdNDAcww)\n"
             + "[*YuFeng Deng*](https://www.youtube.com/channel/UCG6xoef2xU86hnrCsS5m5Cw)\n"
             + "_YuFeng Deng_\n"
             + "`01|" + "UCii04BCvYIdQvshrdNDAcww" + " | `\n"
             + "`02|" + "UCG6xoef2xU86hnrCsS5m5Cw" + " | `\n"
             + "```javascript\n"
             + 'payload = {\n'
             + '    "method": "sendMessage",\n'
             + '    "chat_id": body.message.chat.id,\n'
             + '    "text": body.message.text,\n'
             + '}'
             + "```"
             ;
                       
            var inlineKeyboardMarkup = {};
            inlineKeyboardMarkup.inline_keyboard = [];
            var keyboardRow = [];
            var keyboardButton1 = {
                text: "按钮1",
                url: "https://www.google.com"
            };
            
            var keyboardButton2 = {
                text: "按钮2",
                url: "https://www.google.com"
            };
            
            var keyboardRow2 = [];
            var keyboardButton3 = {
                text: "按钮3",
                url: "https://www.google.com"
            };
            
            var keyboardButton4 = {
                text: "按钮4",
                url: "https://www.google.com"
            };

            keyboardRow.push(keyboardButton1);
            keyboardRow.push(keyboardButton2);
            
            keyboardRow2.push(keyboardButton3);
            keyboardRow2.push(keyboardButton4);
            inlineKeyboardMarkup.inline_keyboard.push(keyboardRow);
            inlineKeyboardMarkup.inline_keyboard.push(keyboardRow2);
            payload.reply_markup = inlineKeyboardMarkup;

       
           return payload;
         }
      }
      

  
      payload = {
          "method": "sendMessage",
          "chat_id": body.message.chat.id,
          "text": body.message.text,
      } 
  }
  else if (body.message.sticker){
    payload = {
      "method": "sendSticker",
      "chat_id": body.message.chat.id,
      "sticker": body.message.sticker.file_id
    }
   }
  else if (body.message.photo){
    array = body.message.photo;
    text = array[1];
    payload = {
      "method": "sendPhoto",
      "chat_id": body.message.chat.id,
      "photo": text.file_id
    }
   }
    else {
    payload = {
      "method": "sendMessage",
      "chat_id": body.message.chat.id,
      "text": "Try other stuff"
    }
   }
  return payload
}

[javascript]

Test.gs
[javascript]
var testList = '{"update_id":427274836,"message":{"message_id":173,"from":{"id":539065210,"is_bot":false,"first_name":"Yufeng Deng","last_name":"峰哥","username":"fennng","language_code":"en-US"},"chat":{"id":539065210,"first_name":"Yufeng Deng","last_name":"峰哥","username":"fennng","type":"private"},"date":1538193751,"text":"/list","entities":[{"offset":0,"length":5,"type":"bot_command"}]}}';
var testList2 = '{"update_id":427275035,"message":{"message_id":211,"from":{"id":539065210,"is_bot":false,"first_name":"Yufeng Deng","last_name":"峰哥","username":"fennng","language_code":"en-US"},"chat":{"id":"539065210","first_name":"Yufeng Deng","last_name":"峰哥","username":"fennng","type":"private"},"date":1540807486,"text":"/list","entities":[{"offset":0,"length":5,"type":"bot_command"}]}}';
var isDebug = false;

function debug() {
  e = {};
  e.postData = {};
  e.postData.contents = testList2;
  doPost(e);
}

[javascript]

MLab.gs
[javascript]
var dbUrl = baseUrl + "databases/mongo/";
var collectionUrl = dbUrl + "collections/";

var logColl = "logs";

var mongo = {};

function debugMLab(){
  debug();
}

function testMLab(){

  var testObject = {"name": "峰哥"};
  mongo.insert(logColl, testObject);

}

function testMLab2() {
  var query = {"message.from.id": 539065210};
  var q = JSON.stringify(query);
  var a = mongo.get(logColl, "q=" + q);
  var b = a[0];
  Logger.log(a);
}


function testMLab3() {
  mongo.put(logColl, null, []);
}

mongo.insert = function(collection, data) {
  var db = apendAPI(collectionUrl + collection);
  var option = getInsertOption(data);
   Logger.log(data);
  var response = UrlFetchApp.fetch(db, option);
//  Logger.log(response);
   Logger.log(data);
}

mongo.update = function(collection, query, set) {
  var db = apendAPI(collectionUrl + collection);
  db += "&" + query + "&m=true&u=true";
  var option = getPutOption(set);
  UrlFetchApp.fetch(db, option);
}

// Warning, put will override the whole collectoin, put empty array data will clear the whole collection
mongo.put = function(collection, query, data) {
  var db = apendAPI(collectionUrl + collection);
  if (query){
    db += "&" + query;
  }
  var option = getPutOption(data);
  var url = encodeURI(db);
  UrlFetchApp.fetch(url, option);
}
mongo.get = function(collection, query) {
  var db = apendAPI(collectionUrl + collection);

  if (query){
    db += "&" + query;
  }

  var option = getGetOption();
  var response = UrlFetchApp.fetch(encodeURI(db), option);

  return JSON.parse(response);
}

function apendAPI(url){
  return url + "?apiKey=WULdZqaqxqikzrGePcLC5uWBeyvGZqBp";
}


function getInsertOption(data){
  var option = {
    "method": "post",
    'contentType': 'application/json',
//    "muteHttpExceptions": true, 
    "payload": JSON.stringify(data)
  }
  return option;
}
function getPutOption(data){
  var option = {
    "method": "put",
    'contentType': 'application/json',
    "payload": JSON.stringify(data)
  }
  return option;
}
function getGetOption(){
  var option = {
    "method": "get",
  }
  return option;
}






[javascript]

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.