[Android Software Development] smarek:
Hi, due to twrp/cwm recovery not available, i'm trying to install Gapps manually into "u101_ylx_ty103_V1.06.zip" (tonstep TY103 10" gold tablet)

Using "IMG v3 x64" for Windows, I've unpacked the system.img (and file_contexts from boot.img), and copied over the files (app priv-app etc/permissions etc/preferred-apps etc/sysconfig) from pico/nano package (gapps arm64 sdk=22 platform=5.1 open_version=20180422) into the system (which is built on "Wed Oct 26 18:26:53 CST 2016" alps/full_u101_charg_ylx_ty103/u101_charg_ylx_ty103:5.1/LMY47D/1477476267:user/test-keys )

What seems to be problem, when I restart the device, GMS chimera part is not creating or handling correctly missing configuration in path "/data/data/com.google.android.gms/app_chimera/"

Few relevant out-takes from logcat

I/PackageManager( 820): Package com.google.android.gms checking com.google.android.gms.chimera.permission.CONFIG_CHANGE: BasePermission{16cf051d com.google.android.gms.chimera.permission.CONFIG_CHANGE}
I/PackageManager( 820): Package com.google.android.gms granting com.google.android.gms.chimera.permission.CONFIG_CHANGE
I/PackageManager( 820): Package com.google.android.gms checking com.google.android.gms.chimera.permission.CONFIG_CHANGE: BasePermission{16cf051d com.google.android.gms.chimera.permission.CONFIG_CHANGE}
I/PackageManager( 820): Package com.google.android.gms granting com.google.android.gms.chimera.permission.CONFIG_CHANGE
W/dex2oat ( 2077): Compilation of void com.google.android.contextmanager.service.ContextManagerChimeraService.dump(java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[]) took 128.653ms
D/ActivityManager( 820): removeDyingProviderLocked: cpr=ContentProviderRecord{15bb1455 u0 com.google.android.gms/.chimera.container.GmsModuleProvider} always=false inLaunching=false
I/ActivityManager( 820): Start proc 2101:com.google.android.gms.persistent/u0a8 for broadcast com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
W/dex2oat ( 2121): Compilation of void com.google.android.contextmanager.service.ContextManagerChimeraService.dump(java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[]) took 129.860ms
W/BroadcastQueue( 820): Receiver during timeout: ResolveInfo{2d6e28a0 com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver m=0x108000}
I/ANRManager( 820): startAsyncDump: AnrDumpRecord{ Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver } ProcessRecord{ebff1d4 2101:com.google.android.gms.persistent/u0a8} IsCompleted:false IsCancelled:false }
I/ActivityManager( 820): appNotResponding-before get this lock: ProcessRecord{ebff1d4 2101:com.google.android.gms.persistent/u0a8} Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver }
I/ActivityManager( 820): appNotResponding-got this lock: ProcessRecord{ebff1d4 2101:com.google.android.gms.persistent/u0a8} Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver }
I/ANRManager( 820): dumpAnrDebugInfo begin: AnrDumpRecord{ Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver } ProcessRecord{ebff1d4 2101:com.google.android.gms.persistent/u0a8} IsCompleted:false IsCancelled:false }
I/ANRManager( 820): dumpAnrDebugInfoLocked: AnrDumpRecord{ Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver } ProcessRecord{ebff1d4 2101:com.google.android.gms.persistent/u0a8} IsCompleted:false IsCancelled:false }
I/ANRManager( 820): START_ANR_DUMP_MSG: AnrDumpRecord{ Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver } ProcessRecord{ebff1d4 2101:com.google.android.gms.persistent/u0a8} IsCompleted:false IsCancelled:false }
I/ANRManager( 820): dumpAnrDebugInfo begin: AnrDumpRecord{ Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver } ProcessRecord{ebff1d4 2101:com.google.android.gms.persistent/u0a8} IsCompleted:false IsCancelled:false }
E/ANRManager( 820): Reason: Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver }
I/ANRManager( 820): dumpAnrDebugInfo end: AnrDumpRecord{ Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver } ProcessRecord{ebff1d4 2101:com.google.android.gms.persistent/u0a8} IsCompleted:true IsCancelled:false }
I/ANRManager( 820): dumpAnrDebugInfoLocked: AnrDumpRecord{ Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver } ProcessRecord{ebff1d4 2101:com.google.android.gms.persistent/u0a8} IsCompleted:true IsCancelled:false }
I/ANRManager( 820): dumpAnrDebugInfo end: AnrDumpRecord{ Broadcast of Intent { act=android.location.PROVIDERS_CHANGED flg=0x10 cmp=com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver } ProcessRecord{ebff1d4 2101:com.google.android.gms.persistent/u0a8} IsCompleted:true IsCancelled:false }
D/ActivityManager( 820): removeDyingProviderLocked: cpr=ContentProviderRecord{125c6942 u0 com.google.android.gms/.chimera.container.GmsModuleProvider} always=false inLaunching=false
E/ChimeraCfgMgr( 2229): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2254): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/BoundService( 2254): Failed to get Chimera config
E/BoundService( 2254): com.google.android.chimera.config.InvalidConfigException: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/BoundService( 2254):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):182)
E/BoundService( 2254):	at com.google.android.chimera.BoundService.getStartIntent(:com.google.android.gms@12529010@12.5.29 (020400-192802242):3)
E/BoundService( 2254): Caused by: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/BoundService( 2254):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):153)
E/BoundService( 2229): Failed to get Chimera config
E/BoundService( 2229): com.google.android.chimera.config.InvalidConfigException: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/BoundService( 2229):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):182)
E/BoundService( 2229):	at com.google.android.chimera.BoundService.getStartIntent(:com.google.android.gms@12529010@12.5.29 (020400-192802242):3)
E/BoundService( 2229): Caused by: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/BoundService( 2229):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):153)
E/ChimeraCfgMgr( 2229): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2254): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/BoundService( 2254): Failed to get Chimera config
E/BoundService( 2254): com.google.android.chimera.config.InvalidConfigException: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/BoundService( 2254):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):182)
E/BoundService( 2254):	at com.google.android.chimera.BoundService.getStartIntent(:com.google.android.gms@12529010@12.5.29 (020400-192802242):3)
E/BoundService( 2254): Caused by: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/BoundService( 2254):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):153)
E/BoundService( 2229): Failed to get Chimera config
E/BoundService( 2229): com.google.android.chimera.config.InvalidConfigException: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/BoundService( 2229):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):182)
E/BoundService( 2229):	at com.google.android.chimera.BoundService.getStartIntent(:com.google.android.gms@12529010@12.5.29 (020400-192802242):3)
E/BoundService( 2229): Caused by: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/BoundService( 2229):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):153)
E/ChimeraCfgMgr( 2254): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2254): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2229): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/ConfigFileUtils( 2254): Failed to read config file: /data/data/com.google.android.gms/app_chimera/current_fileapks.pb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2229): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/ConfigFileUtils( 2229): Failed to read config file: /data/data/com.google.android.gms/app_chimera/current_fileapks.pb: open failed: ENOENT (No such file or directory)
E/ConfigFileUtils( 2254): Failed to read config file: /data/data/com.google.android.gms/app_chimera/current_fileapks.pb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2254): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/ConfigFileUtils( 2229): Failed to read config file: /data/data/com.google.android.gms/app_chimera/current_fileapks.pb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2229): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2254): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/IntentOperation( 2254): Failed to get Chimera config
E/IntentOperation( 2254): com.google.android.chimera.config.InvalidConfigException: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/IntentOperation( 2254):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):182)
E/IntentOperation( 2254):	at com.google.android.chimera.IntentOperation.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):3)
E/IntentOperation( 2254):	at com.google.android.chimera.IntentOperation.getStartIntent(:com.google.android.gms@12529010@12.5.29 (020400-192802242):3)
E/IntentOperation( 2254):	at com.google.android.chimera.IntentOperation.getStartIntent(:com.google.android.gms@12529010@12.5.29 (020400-192802242):1)
E/IntentOperation( 2254):	at com.google.android.gms.chimera.debug.ModuleSetJournalUpdate$ModuleSetJournalIntentOperation.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):1)
E/IntentOperation( 2254):	at com.google.android.gms.chimera.debug.ModuleSetJournalUpdate.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):17)
E/IntentOperation( 2254):	at com.google.android.gms.chimera.container.GmsModuleFinder.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):118)
E/IntentOperation( 2254):	at com.google.android.gms.chimera.container.GmsModuleFinder.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):103)
E/IntentOperation( 2254): Caused by: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/IntentOperation( 2254):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):153)
E/ChimeraCfgMgr( 2254): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2229): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/IntentOperation( 2229): Failed to get Chimera config
E/IntentOperation( 2229): com.google.android.chimera.config.InvalidConfigException: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/IntentOperation( 2229):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):182)
E/IntentOperation( 2229):	at com.google.android.chimera.IntentOperation.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):3)
E/IntentOperation( 2229):	at com.google.android.chimera.IntentOperation.getStartIntent(:com.google.android.gms@12529010@12.5.29 (020400-192802242):3)
E/IntentOperation( 2229):	at com.google.android.chimera.IntentOperation.getStartIntent(:com.google.android.gms@12529010@12.5.29 (020400-192802242):1)
E/IntentOperation( 2229):	at com.google.android.gms.chimera.debug.ModuleSetJournalUpdate$ModuleSetJournalIntentOperation.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):1)
E/IntentOperation( 2229):	at com.google.android.gms.chimera.debug.ModuleSetJournalUpdate.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):17)
E/IntentOperation( 2229):	at com.google.android.gms.chimera.container.GmsModuleFinder.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):118)
E/IntentOperation( 2229):	at com.google.android.gms.chimera.container.GmsModuleFinder.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):103)
E/IntentOperation( 2229): Caused by: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/IntentOperation( 2229):	at com.google.android.chimera.container.ConfigurationManager.a(:com.google.android.gms@12529010@12.5.29 (020400-192802242):153)
I/ChimeraCfgMgr( 2254): Invalid module set config ModuleSet Info [a: "container-only"
I/ChimeraCfgMgr( 2254): b: 1252902
I/ChimeraCfgMgr( 2254): c: 64
I/ChimeraCfgMgr( 2254): d: 12529020400
I/ChimeraCfgMgr( 2254): ] Container APKs [] Required APKs [] Optional APKs []: com.google.android.chimera.config.InvalidConfigException: No usable modules
E/ChimeraCfgMgr( 2229): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
I/ChimeraCfgMgr( 2229): Invalid module set config ModuleSet Info [a: "container-only"
I/ChimeraCfgMgr( 2229): b: 1252902
I/ChimeraCfgMgr( 2229): c: 64
I/ChimeraCfgMgr( 2229): d: 12529020400
I/ChimeraCfgMgr( 2229): ] Container APKs [] Required APKs [] Optional APKs []: com.google.android.chimera.config.InvalidConfigException: No usable modules
E/ConfigFileUtils( 2254): Failed to read config file: /data/data/com.google.android.gms/app_chimera/current_fileapks.pb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2254): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)
E/ChimeraCfgMgr( 2254): Failed to read module config: java.io.FileNotFoundException: /data/data/com.google.android.gms/app_chimera/current_config.fb: open failed: ENOENT (No such file or directory)

Full logcat from several tries, which all suffer from same issue here:

https://gist.github.com/smarek/1297a8dd07ba4fa7a84088bfc93284a5

https://gist.github.com/smarek/0bb14a5fe40f8f45041a3496aba15317

https://gist.github.com/smarek/56e771a31835d5a36bac6499d52eb3e0

https://gist.github.com/smarek/218ae3b34d7df5568ac0ecc8b4d22f29

Rom configuration (adb shell getprop, dumpsys)

https://gist.github.com/smarek/21c3987a671b6fbe42511fd3673cf02b

https://gist.github.com/smarek/e6e8a7b328c086762116ec3d563e92d3

Anybody got an idea, what is going on here, and what should be fixed for opengapps to work correctly?