[Android Software Development] Teet1:
Hi, I tried installing this but when I ran the app for the first time and tried to install the code mod, it installed successfully and then reboot into TWRP where it flashed a file successfully then proceeded to reboot. However, once it booted I went back to the app and still said it was Unbound, so I tried to install again but this time it said the framework was not supported. Restoring a /system backup allowed me to install the patch once again, but still had the same symptoms.

Using syslog, I grepped "wakeblock" to only show everything related to WakeBlock.

Before and during first patch

event.log:

12-19 15:20:55.400 I/am_create_activity( 1625): [0,241609090,824,com.giovannibozzano.wakeblock/.MainActivity,android.intent.action.MAIN,NULL,NULL,271581184]

12-19 15:20:55.420 I/am_focused_activity( 1625): [0,com.giovannibozzano.wakeblock/.MainActivity,startedActivity]

12-19 15:20:55.460 I/sysui_action( 1625): [323,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:20:55.470 I/sysui_action( 2241): [277,ComponentInfo{com.giovannibozzano.wakeblock/com.giovannibozzano.wakeblock.MainActivity}]

12-19 15:20:55.560 I/am_proc_start( 1625): [0,6091,10011,com.giovannibozzano.wakeblock,activity,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:20:55.630 I/am_proc_bound( 1625): [0,6091,com.giovannibozzano.wakeblock]

12-19 15:20:55.650 I/am_restart_activity( 1625): [0,241609090,824,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:20:55.810 I/am_on_resume_called( 6091): [0,com.giovannibozzano.wakeblock.MainActivity,LAUNCH_ACTIVITY]

12-19 15:20:55.940 I/am_activity_launch_time( 1625): [0,241609090,com.giovannibozzano.wakeblock/.MainActivity,430,430]

12-19 15:20:56.770 I/am_pause_activity( 1625): [0,241609090,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:20:56.790 I/am_on_paused_called( 6091): [0,com.giovannibozzano.wakeblock.MainActivity,handlePauseActivity]

12-19 15:20:56.850 I/am_stop_activity( 1625): [0,241609090,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:20:56.860 I/am_on_stop_called( 6091): [0,com.giovannibozzano.wakeblock.MainActivity,handleStopActivity]

12-19 15:21:27.370 I/am_pss ( 1625): [6091,10011,com.giovannibozzano.wakeblock,20971520,17573888,0]

12-19 15:21:29.400 I/am_focused_activity( 1625): [0,com.giovannibozzano.wakeblock/.MainActivity,moveTaskToFront]

12-19 15:21:29.420 I/sysui_action( 1625): [323,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:21:29.430 I/sysui_action( 2241): [277,ComponentInfo{com.giovannibozzano.wakeblock/com.giovannibozzano.wakeblock.MainActivity}]

12-19 15:21:29.520 I/am_resume_activity( 1625): [0,241609090,824,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:21:29.550 I/am_on_resume_called( 6091): [0,com.giovannibozzano.wakeblock.MainActivity,RESUME_ACTIVITY]

12-19 15:21:30.990 I/am_pause_activity( 1625): [0,241609090,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:21:31.010 I/am_on_paused_called( 6091): [0,com.giovannibozzano.wakeblock.MainActivity,handlePauseActivity]

12-19 15:21:31.360 I/am_focused_activity( 1625): [0,com.giovannibozzano.wakeblock/.MainActivity,finishActivity adjustFocus]

12-19 15:21:31.380 I/am_resume_activity( 1625): [0,241609090,824,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:21:31.440 I/am_on_resume_called( 6091): [0,com.giovannibozzano.wakeblock.MainActivity,RESUME_ACTIVITY]

12-19 15:21:42.130 I/am_pause_activity( 1625): [0,241609090,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:21:42.130 I/am_on_paused_called( 6091): [0,com.giovannibozzano.wakeblock.MainActivity,handlePauseActivity]

12-19 15:21:42.240 I/am_stop_activity( 1625): [0,241609090,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:21:42.250 I/am_on_stop_called( 6091): [0,com.giovannibozzano.wakeblock.MainActivity,handleStopActivity]

logcat:

12-19 15:15:56.653 D/AutoLaunchManager( 1625): test debug autorun getAutoLaunchPackages 777 added sucess pkg: com.giovannibozzano.wakeblock, flags: 952680004,action=android.intent.action.ACTION_SHUTDOWN

12-19 15:15:57.343 D/ZteAlarmManagerService( 1625): ZTE_PM setAppAlignMode in services type 1 for apkcom.giovannibozzano.wakeblock

12-19 15:15:57.343 V/ZteAlarmManagerService( 1625): add new action Checking alarm addRTCWakeupList :40,add com.giovannibozzano.wakeblock

12-19 15:20:55.380 I/ActivityManager( 1625): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10300000 cmp=com.giovannibozzano.wakeblock/.MainActivity} from uid 10114 on display 0

12-19 15:20:55.560 I/ActivityManager( 1625): Start proc 6091:com.giovannibozzano.wakeblock/u0a11 for activity com.giovannibozzano.wakeblock/.MainActivity

12-19 15:20:56.770 D/ActivityManager( 1625): --zc to bg, ProcessRecord{5f7f730 6091:com.giovannibozzano.wakeblock/u0a11} rx/tx = 0 0

12-19 15:20:56.810 E/apptransition( 1625): prev=nulllastFocus=ActivityRecord{e66a982 u0 com.giovannibozzano.wakeblock/.MainActivity t824}

12-19 15:21:29.400 D/ZTEAppChangeStrategyUtils( 1625): sendAppChangeEvent, pkg is: com.giovannibozzano.wakeblock

12-19 15:21:29.430 D/LockScreenCleanReceiver( 3857): handleAppAppChangeFromFramework, switch packageName = com.giovannibozzano.wakeblock

12-19 15:21:29.470 D/AppLockTag( 3857): handleAppAppChangeFromFramework, switch packageName = com.giovannibozzano.wakeblock

12-19 15:21:29.520 D/ZTEAppChangeStrategyUtils( 1625): noticeAppChange packageName.equals(mLastResumedPkg),packageName =com.giovannibozzano.wakeblock

12-19 15:21:29.530 I/ZTEAppProfile( 1625): apk (com.giovannibozzano.wakeblock) at top

12-19 15:21:29.540 D/AppLockTag( 3857): checkAppLockStatus packageName=com.giovannibozzano.wakeblock activity=com.giovannibozzano.wakeblock.MainActivity mustShow=false

12-19 15:21:29.540 I/AppLockTag( 3857): checkNetPermission____mLastDeniedNetPkg=null___packageName=com.giovannibozzano.wakeblock

12-19 15:21:29.560 I/AppLockTag( 3857): checkNetFloater____activity=com.giovannibozzano.wakeblock.MainActivity

12-19 15:21:29.570 E/OpenGLRenderer( 6091): void android::uirenderer::renderthread::CanvasContext::setSurface(android::Surface *) to create EGLSurface com.giovannibozzano.wakeblock/com.giovannibozzano.wakeblock.MainActivity

12-19 15:21:30.990 D/ActivityManager( 1625): --zc to bg, ProcessRecord{5f7f730 6091:com.giovannibozzano.wakeblock/u0a11} rx/tx = 0 0

12-19 15:21:31.010 E/apptransition( 1625): prev=ActivityRecord{e66a982 u0 com.giovannibozzano.wakeblock/.MainActivity t824}lastFocus=ActivityRecord{e66a982 u0 com.giovannibozzano.wakeblock/.MainActivity t824}

12-19 15:21:31.260 W/asset ( 6245): getBasePackageName in Asset, index=3, return 'com.giovannibozzano.wakeblock'

12-19 15:21:31.260 W/asset ( 6245): getBasePackageName in cache, return 'com.giovannibozzano.wakeblock'

12-19 15:21:31.390 D/ZTEAppChangeStrategyUtils( 1625): sendAppChangeEvent, pkg is: com.giovannibozzano.wakeblock

12-19 15:21:31.400 I/ZTEAppProfile( 1625): apk (com.giovannibozzano.wakeblock) at top

12-19 15:21:31.400 D/LockScreenCleanReceiver( 3857): handleAppAppChangeFromFramework, switch packageName = com.giovannibozzano.wakeblock

12-19 15:21:31.410 D/AppLockTag( 3857): handleAppAppChangeFromFramework, switch packageName = com.giovannibozzano.wakeblock

12-19 15:21:31.420 D/AppLockTag( 3857): checkAppLockStatus packageName=com.giovannibozzano.wakeblock activity=com.giovannibozzano.wakeblock.MainActivity mustShow=false

12-19 15:21:31.420 I/AppLockTag( 3857): checkNetPermission____mLastDeniedNetPkg=null___packageName=com.giovannibozzano.wakeblock

12-19 15:21:31.420 I/AppLockTag( 3857): checkNetFloater____activity=com.giovannibozzano.wakeblock.MainActivity

12-19 15:21:31.440 I/com.giovannibozzano.wakeblock( 6091): Patching process is starting...

12-19 15:21:31.440 I/com.giovannibozzano.wakeblock( 6091): Creating /patcher folder...

12-19 15:21:31.440 I/com.giovannibozzano.wakeblock( 6091): Cleaning previous temporary files...

12-19 15:21:31.710 I/com.giovannibozzano.wakeblock( 6091): Copying baksmali/smali from assets...

12-19 15:21:31.750 I/com.giovannibozzano.wakeblock( 6091): Getting application permissions...

12-19 15:21:31.810 I/com.giovannibozzano.wakeblock( 6091): Getting selinux permissions...

12-19 15:21:31.880 I/com.giovannibozzano.wakeblock( 6091): Extracting...

12-19 15:21:31.940 W/asset ( 6156): getBasePackageName in Asset, index=3, return 'com.giovannibozzano.wakeblock'

12-19 15:21:31.950 W/asset ( 6156): getBasePackageName in cache, return 'com.giovannibozzano.wakeblock'

12-19 15:21:40.410 I/com.giovannibozzano.wakeblock( 6091): Patching smali code...

12-19 15:21:40.690 I/com.giovannibozzano.wakeblock( 6091): Copying WakeBlock classes from assets...

12-19 15:21:40.700 I/com.giovannibozzano.wakeblock( 6091): Unzipping WakeBlock classes...

12-19 15:21:40.700 I/art ( 6091): Compiler allocated 5MB to compile java.lang.String com.giovannibozzano.wakeblock.c.d.a(java.lang.String)

12-19 15:21:40.700 I/com.giovannibozzano.wakeblock( 6091): Repackaging...

12-19 15:21:42.130 D/ActivityManager( 1625): --zc to bg, ProcessRecord{5f7f730 6091:com.giovannibozzano.wakeblock/u0a11} rx/tx = 0 0

12-19 15:21:42.170 E/apptransition( 1625): prev=nulllastFocus=ActivityRecord{e66a982 u0 com.giovannibozzano.wakeblock/.MainActivity t824}

Reboots shortly after (taken while it was repackaging to get logs as i cannot get them after reboot)

2 minutes after rebooting

No event.log

logcat:

12-19 15:23:43.331 D/AutoLaunchManager( 1495): test debug autorun getAutoLaunchPackages 777 added sucess pkg: com.giovannibozzano.wakeblock, flags: 952680004,action=android.intent.action.ACTION_SHUTDOWN

12-19 15:23:59.661 D/AutoLaunchManager( 1495): test debug autorun getAutoLaunchPackages 777 added sucess pkg: com.giovannibozzano.wakeblock, flags: 952680004,action=android.intent.action.ACTION_SHUTDOWN

12-19 15:23:59.971 D/ZteAlarmManagerService( 1495): ZTE_PM setAppAlignMode in services type 1 for apkcom.giovannibozzano.wakeblock

12-19 15:23:59.971 V/ZteAlarmManagerService( 1495): add new action Checking alarm addRTCWakeupList :40,add com.giovannibozzano.wakeblock

2nd Attempt at installing core mod:

event.log

12-19 15:24:26.931 I/am_create_activity( 1495): [0,79384052,834,com.giovannibozzano.wakeblock/.MainActivity,android.intent.action.MAIN,NULL,NULL,270532608]

12-19 15:24:26.941 I/am_focused_activity( 1495): [0,com.giovannibozzano.wakeblock/.MainActivity,startedActivity]

12-19 15:24:26.941 I/sysui_action( 1495): [323,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:24:26.961 I/am_proc_start( 1495): [0,6040,10011,com.giovannibozzano.wakeblock,activity,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:24:26.991 I/am_proc_bound( 1495): [0,6040,com.giovannibozzano.wakeblock]

12-19 15:24:26.991 I/am_restart_activity( 1495): [0,79384052,834,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:24:27.121 I/am_on_resume_called( 6040): [0,com.giovannibozzano.wakeblock.MainActivity,LAUNCH_ACTIVITY]

12-19 15:24:27.231 I/am_activity_launch_time( 1495): [0,79384052,com.giovannibozzano.wakeblock/.MainActivity,276,276]

12-19 15:24:28.081 I/am_pause_activity( 1495): [0,79384052,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:24:28.081 I/am_on_paused_called( 6040): [0,com.giovannibozzano.wakeblock.MainActivity,handlePauseActivity]

12-19 15:24:28.251 I/am_focused_activity( 1495): [0,com.giovannibozzano.wakeblock/.MainActivity,finishActivity adjustFocus]

12-19 15:24:28.251 I/am_resume_activity( 1495): [0,79384052,834,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:24:28.291 I/am_on_resume_called( 6040): [0,com.giovannibozzano.wakeblock.MainActivity,RESUME_ACTIVITY]

12-19 15:24:38.311 I/am_pause_activity( 1495): [0,79384052,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:24:38.311 I/am_on_paused_called( 6040): [0,com.giovannibozzano.wakeblock.MainActivity,handlePauseActivity]

12-19 15:24:38.351 I/am_stop_activity( 1495): [0,79384052,com.giovannibozzano.wakeblock/.MainActivity]

12-19 15:24:38.361 I/am_on_stop_called( 6040): [0,com.giovannibozzano.wakeblock.MainActivity,handleStopActivity]

catlog:

12-19 15:23:43.331 D/AutoLaunchManager( 1495): test debug autorun getAutoLaunchPackages 777 added sucess pkg: com.giovannibozzano.wakeblock, flags: 952680004,action=android.intent.action.ACTION_SHUTDOWN

12-19 15:23:59.661 D/AutoLaunchManager( 1495): test debug autorun getAutoLaunchPackages 777 added sucess pkg: com.giovannibozzano.wakeblock, flags: 952680004,action=android.intent.action.ACTION_SHUTDOWN

12-19 15:23:59.971 D/ZteAlarmManagerService( 1495): ZTE_PM setAppAlignMode in services type 1 for apkcom.giovannibozzano.wakeblock

12-19 15:23:59.971 V/ZteAlarmManagerService( 1495): add new action Checking alarm addRTCWakeupList :40,add com.giovannibozzano.wakeblock

12-19 15:24:26.921 I/ActivityManager( 1495): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.giovannibozzano.wakeblock/.MainActivity (has extras)} from uid 10114 on display 0

12-19 15:24:26.961 I/ActivityManager( 1495): Start proc 6040:com.giovannibozzano.wakeblock/u0a11 for activity com.giovannibozzano.wakeblock/.MainActivity

12-19 15:24:28.081 D/ActivityManager( 1495): --zc to bg, ProcessRecord{f2686f2 6040:com.giovannibozzano.wakeblock/u0a11} rx/tx = 0 0

12-19 15:24:28.081 E/apptransition( 1495): prev=ActivityRecord{4bb4df4 u0 com.giovannibozzano.wakeblock/.MainActivity t834}lastFocus=ActivityRecord{4bb4df4 u0 com.giovannibozzano.wakeblock/.MainActivity t834}

12-19 15:24:28.181 W/asset ( 6064): getBasePackageName in Asset, index=3, return 'com.giovannibozzano.wakeblock'

12-19 15:24:28.181 W/asset ( 6064): getBasePackageName in cache, return 'com.giovannibozzano.wakeblock'

12-19 15:24:28.251 D/ZTEAppChangeStrategyUtils( 1495): sendAppChangeEvent, pkg is: com.giovannibozzano.wakeblock

12-19 15:24:28.261 I/ZTEAppProfile( 1495): apk (com.giovannibozzano.wakeblock) at top

12-19 15:24:28.261 D/LockScreenCleanReceiver( 3957): handleAppAppChangeFromFramework, switch packageName = com.giovannibozzano.wakeblock

12-19 15:24:28.261 D/AppLockTag( 3957): handleAppAppChangeFromFramework, switch packageName = com.giovannibozzano.wakeblock

12-19 15:24:28.271 D/AppLockTag( 3957): checkAppLockStatus packageName=com.giovannibozzano.wakeblock activity=com.giovannibozzano.wakeblock.MainActivity mustShow=false

12-19 15:24:28.271 I/AppLockTag( 3957): checkNetPermission____mLastDeniedNetPkg=null___packageName=com.giovannibozzano.wakeblock

12-19 15:24:28.271 I/AppLockTag( 3957): checkNetFloater____activity=com.giovannibozzano.wakeblock.MainActivity

12-19 15:24:28.291 I/com.giovannibozzano.wakeblock( 6040): Patching process is starting...

12-19 15:24:28.291 I/com.giovannibozzano.wakeblock( 6040): Creating /patcher folder...

12-19 15:24:28.291 I/com.giovannibozzano.wakeblock( 6040): Cleaning previous temporary files...

12-19 15:24:28.341 I/com.giovannibozzano.wakeblock( 6040): Copying baksmali/smali from assets...

12-19 15:24:28.381 I/com.giovannibozzano.wakeblock( 6040): Getting application permissions...

12-19 15:24:28.441 I/com.giovannibozzano.wakeblock( 6040): Getting selinux permissions...

12-19 15:24:28.511 I/com.giovannibozzano.wakeblock( 6040): Extracting...

12-19 15:24:28.741 W/asset ( 5566): getBasePackageName in Asset, index=3, return 'com.giovannibozzano.wakeblock'

12-19 15:24:28.741 W/asset ( 5566): getBasePackageName in cache, return 'com.giovannibozzano.wakeblock'

12-19 15:24:37.001 I/com.giovannibozzano.wakeblock( 6040): Patching smali code...

12-19 15:24:37.311 W/System.err( 6040): com.giovannibozzano.wakeblock.c.a

12-19 15:24:37.311 W/System.err( 6040):	at com.giovannibozzano.wakeblock.c.d.b(Unknown Source)

12-19 15:24:37.311 W/System.err( 6040):	at com.giovannibozzano.wakeblock.c.d.a(Unknown Source)

12-19 15:24:37.311 W/System.err( 6040):	at com.giovannibozzano.wakeblock.a.a.c.a(Unknown Source)

12-19 15:24:37.311 W/System.err( 6040):	at com.giovannibozzano.wakeblock.a.a.c.doInBackground(Unknown Source)

12-19 15:24:37.311 I/com.giovannibozzano.wakeblock( 6040): Patching smali code failed

12-19 15:24:37.341 I/art ( 6040): Compiler allocated 5MB to compile java.lang.String com.giovannibozzano.wakeblock.c.d.a(java.lang.String)

12-19 15:24:38.311 D/ActivityManager( 1495): --zc to bg, ProcessRecord{f2686f2 6040:com.giovannibozzano.wakeblock/u0a11} rx/tx = 0 0

12-19 15:24:38.341 E/apptransition( 1495): prev=ActivityRecord{eba7080 u0 com.android.systemui/.recents.RecentsActivity t835}lastFocus=ActivityRecord{4bb4df4 u0 com.giovannibozzano.wakeblock/.MainActivity t834}

I feel like the core mod is being executed and then killed, or just being killed and not starting up at all. I think the app sees that the process isn't working so it assumes it is not installed, but since it is, attempting to install throws an error.

If it's more helpful, i can try to get a log from recovery after install the core mod

I am using a ZTE Axon 7 2017U with M!Favor 5.0 7.1.1 SL!M DF!NR stock rom, stock kernel

EDIT: or perhaps it is the ROM. If it is, i will talk to the developer