LINUX.ORG.RU
ФорумMobile

как отменить FACTORY_RESET Android

 , ,


0

1

у меня смартфон не может включиться и перезагружается в режим восстановления
вот часть лога, что это значит? я не хочу стирать данные т.к. это все равно не поможет инфа100
https://cs.android.com/android/platform/superproject/+/master:frameworks/base/services/core/java/com/android/server/RescueParty.java?q=RescueParty
с подключенным usb bootloop
adb не работает

...
--------- switch to system
05-21 21:57:24.558704 15426 15426 D AppOps  : AppOpsService published
05-21 21:57:24.560031 15426 15426 D SystemServerTiming: StartActivityManager took to complete: 248ms
05-21 21:57:24.560139 15426 15426 I SystemServer: StartPowerManager
05-21 21:57:24.560196 15426 15426 I SystemServiceManager: Starting com.android.server.power.PowerManagerService
05-21 21:57:24.567573 15426 15426 D SystemServerTiming: StartPowerManager took to complete: 8ms
05-21 21:57:24.567681 15426 15426 I SystemServer: StartThermalManager
05-21 21:57:24.567739 15426 15426 I SystemServiceManager: Starting com.android.server.power.ThermalManagerService
05-21 21:57:24.568559 15426 15426 D SystemServerTiming: StartThermalManager took to complete: 1ms
05-21 21:57:24.568675 15426 15426 I SystemServer: InitPowerManagement
05-21 21:57:24.569695 15426 15426 D SystemServerTiming: InitPowerManagement took to complete: 1ms
05-21 21:57:24.569801 15426 15426 I SystemServer: StartRecoverySystemService
05-21 21:57:24.569875 15426 15426 I SystemServiceManager: Starting com.android.server.RecoverySystemService
05-21 21:57:24.570542 15426 15426 D SystemServerTiming: StartRecoverySystemService took to complete: 1ms
--------- switch to events
05-21 21:57:24.572387 15426 15426 I rescue_note: [0,5,102431]
--------- switch to system
05-21 21:57:24.572561 15426 15426 W RescueParty: Noticed 5 events for UID 0 in last 102 sec
--------- switch to events
05-21 21:57:24.573367 15426 15426 I rescue_level: [4,0]
--------- switch to system
05-21 21:57:24.573784 15426 15426 W PackageManager: Incremented rescue level to FACTORY_RESET triggered by UID 0
--------- switch to events
05-21 21:57:24.573861 15426 15426 I pm_critical_info: Incremented rescue level to FACTORY_RESET triggered by UID 0
--------- switch to system
05-21 21:57:24.574829 15426 15426 W RescueParty: Attempting rescue level FACTORY_RESET
05-21 21:57:24.576978 15426 15426 W ContextImpl: Missing ActivityManager; assuming 1000 holds android.permission.RECOVERY
--------- switch to kernel
05-21 21:57:24.580619     0     0 D [2:  system_server:15426] usb: state_show buf=DISCONNECTED
05-21 21:57:24.587026     0     0 I [2:           init:    1] init: Received control message 'start' for 'setup-bcb' from pid: 15426 (system_server)
05-21 21:57:24.588068     0     0 I [2:           init:    1] init: starting service 'setup-bcb'...
05-21 21:57:24.590855     0     0 I [0:           init:15465] init: Created socket '/dev/socket/uncrypt', mode 600, user 1000, group 1000
...

мне он не нужен нисколько, как отключить сброс полностью? не могу понять


Ответ на: комментарий от doc0

И делает он это после попытки сброса? Recavery какой (twnp там, какой то другой), rom делал сам или взял и откуда, он от создателей rom или от васяна? Сброс был сделан из системы?

Pups ()
Последнее исправление: Pups (всего исправлений: 1)
Ответ на: комментарий от Pups

он сначала перезапускался в lineage recovery и там предлагал factory reset и еще что-то, что я там выбирал не помню,
возможно нажал в recovery сброс данных, как минимум выключать пробовал
сейчас twrp установлен, userdata на месте
rom делал сам и предпочел бы исправить без полного сброса

doc0 ()
Последнее исправление: doc0 (всего исправлений: 3)
--------- switch to main
05-21 21:56:54.222874  3551  3551 E bauth_FPBAuthService: active_group path is diff : /data/system/users/0/fpdata
05-21 21:56:54.222904  3551  3551 D bauth_FPBAuthService: FPBAuthService, 4222

E SystemServer: BOOT FAILURE starting ...

--------- switch to system
05-21 21:56:54.226289 15025 15025 W SystemServer: ***********************************************
05-21 21:56:54.226713 15025 15025 E SystemServer: BOOT FAILURE starting StartBackgroundDexOptService
05-21 21:56:54.226713 15025 15025 E SystemServer: java.lang.IllegalStateException: Apps may not schedule more than 100 distinct jobs
05-21 21:56:54.226713 15025 15025 E SystemServer: 	at com.android.server.job.JobSchedulerService.scheduleAsPackage(JobSchedulerService.java:1038)
05-21 21:56:54.226713 15025 15025 E SystemServer: 	at com.android.server.job.JobSchedulerService$JobSchedulerStub.schedule(JobSchedulerService.java:2740)
05-21 21:56:54.226713 15025 15025 E SystemServer: 	at android.app.JobSchedulerImpl.schedule(JobSchedulerImpl.java:43)
05-21 21:56:54.226713 15025 15025 E SystemServer: 	at com.android.server.pm.BackgroundDexOptService.schedule(BackgroundDexOptService.java:125)
05-21 21:56:54.226713 15025 15025 E SystemServer: 	at com.android.server.SystemServer.startOtherServices(SystemServer.java:1810)
05-21 21:56:54.226713 15025 15025 E SystemServer: 	at com.android.server.SystemServer.run(SystemServer.java:529)
05-21 21:56:54.226713 15025 15025 E SystemServer: 	at com.android.server.SystemServer.main(SystemServer.java:356)
05-21 21:56:54.226713 15025 15025 E SystemServer: 	at java.lang.reflect.Method.invoke(Native Method)
05-21 21:56:54.226713 15025 15025 E SystemServer: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-21 21:56:54.226713 15025 15025 E SystemServer: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:918)
05-21 21:56:54.227232 15025 15025 D SystemServerTiming: StartBackgroundDexOptService took to complete: 3ms
--------- switch to kernel
05-21 21:56:55.478443     0     0 I         : [3:         mc_log: 2456] MobiCore mcd: 104| SMGNT smgntCloseSession done
--------- switch to events
05-21 21:56:54.227326 15025 15053 I am_wtf  : [0,15025,system_server,-1,SystemServer,Apps may not schedule more than 100 distinct jobs]
--------- switch to system
05-21 21:56:54.227359 15025 15025 I SystemServer: StartDynamicCodeLoggingService
--------- switch to kernel
05-21 21:56:55.480588     0     0 I         : [2:         mc_log: 2456] MobiCore mcd: 104| SMGNT send MSG_CLOSE_TRUSTLET for thread 801 to IPCH
--------- switch to system
05-21 21:56:54.228182 15025 15053 I DropBoxManagerService: add tag=system_server_wtf isTagEnabled=true flags=0x2
05-21 21:56:54.228182 15025 15025 W JobScheduler: Too many jobs for uid 1000
05-21 21:56:54.228471 15025 15025 W SystemServer: ***********************************************
--------- switch to kernel
05-21 21:56:55.480607     0     0 I         : [2:         mc_log: 2456] MobiCore mcd: 103|BroadCast loop send Event to 202 (UUID=02010000-0000-0000-0000-000000005000) (server 0/5 status is 00000001)
--------- switch to system
05-21 21:56:54.228851 15025 15025 E SystemServer: BOOT FAILURE starting DynamicCodeLoggingService
05-21 21:56:54.228851 15025 15025 E SystemServer: java.lang.IllegalStateException: Apps may not schedule more than 100 distinct jobs
05-21 21:56:54.228851 15025 15025 E SystemServer: 	at com.android.server.job.JobSchedulerService.scheduleAsPackage(JobSchedulerService.java:1038)
05-21 21:56:54.228851 15025 15025 E SystemServer: 	at com.android.server.job.JobSchedulerService$JobSchedulerStub.schedule(JobSchedulerService.java:2740)
05-21 21:56:54.228851 15025 15025 E SystemServer: 	at android.app.JobSchedulerImpl.schedule(JobSchedulerImpl.java:43)
05-21 21:56:54.228851 15025 15025 E SystemServer: 	at com.android.server.pm.DynamicCodeLoggingService.schedule(DynamicCodeLoggingService.java:79)
05-21 21:56:54.228851 15025 15025 E SystemServer: 	at com.android.server.SystemServer.startOtherServices(SystemServer.java:1821)
05-21 21:56:54.228851 15025 15025 E SystemServer: 	at com.android.server.SystemServer.run(SystemServer.java:529)
05-21 21:56:54.228851 15025 15025 E SystemServer: 	at com.android.server.SystemServer.main(SystemServer.java:356)
05-21 21:56:54.228851 15025 15025 E SystemServer: 	at java.lang.reflect.Method.invoke(Native Method)
05-21 21:56:54.228851 15025 15025 E SystemServer: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-21 21:56:54.228851 15025 15025 E SystemServer: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:918)
--------- switch to kernel
05-21 21:56:55.484346     0     0 I         : [3:         mc_log: 2456] MobiCore mcd: 103|BroadCast loop send Event to 302 (UUID=ffffffff-0000-0000-0000-000000000002) (server 1/5 status is 00000001)
--------- switch to system
05-21 21:56:54.229284 15025 15025 D SystemServerTiming: StartDynamicCodeLoggingService took to complete: 1ms
05-21 21:56:54.229383 15025 15025 I SystemServer: StartPruneInstantAppsJobService
--------- switch to kernel
05-21 21:56:55.484365     0     0 I         : [3:         mc_log: 2456] MobiCore mcd: 103|BroadCast loop send Event to 402 (UUID=ffffffff-0000-0000-0000-000000000001) (server 2/5 status is 00000001)
--------- switch to system
05-21 21:56:54.229829 15025 15025 W JobScheduler: Too many jobs for uid 1000
05-21 21:56:54.230125 15025 15025 W SystemServer: ***********************************************
--------- switch to kernel
05-21 21:56:55.484379     0     0 I         : [3:         mc_log: 2456] MobiCore mcd: 103|BroadCast loop send Event to 501 (UUID=ffffffff-d000-0000-0000-00000000000a) (server 3/5 status is 00000001)
--------- switch to system
05-21 21:56:54.230437 15025 15025 E SystemServer: BOOT FAILURE StartPruneInstantAppsJobService
05-21 21:56:54.230437 15025 15025 E SystemServer: java.lang.IllegalStateException: Apps may not schedule more than 100 distinct jobs
05-21 21:56:54.230437 15025 15025 E SystemServer: 	at com.android.server.job.JobSchedulerService.scheduleAsPackage(JobSchedulerService.java:1038)
05-21 21:56:54.230437 15025 15025 E SystemServer: 	at com.android.server.job.JobSchedulerService$JobSchedulerStub.schedule(JobSchedulerService.java:2740)
05-21 21:56:54.230437 15025 15025 E SystemServer: 	at android.app.JobSchedulerImpl.schedule(JobSchedulerImpl.java:43)
05-21 21:56:54.230437 15025 15025 E SystemServer: 	at com.android.server.PruneInstantAppsJobService.schedule(PruneInstantAppsJobService.java:46)
05-21 21:56:54.230437 15025 15025 E SystemServer: 	at com.android.server.SystemServer.startOtherServices(SystemServer.java:1831)
05-21 21:56:54.230437 15025 15025 E SystemServer: 	at com.android.server.SystemServer.run(SystemServer.java:529)
05-21 21:56:54.230437 15025 15025 E SystemServer: 	at com.android.server.SystemServer.main(SystemServer.java:356)
05-21 21:56:54.230437 15025 15025 E SystemServer: 	at java.lang.reflect.Method.invoke(Native Method)
05-21 21:56:54.230437 15025 15025 E SystemServer: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-21 21:56:54.230437 15025 15025 E SystemServer: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:918)
05-21 21:56:54.231725 15025 15025 D SystemServerTiming: StartPruneInstantAppsJobService took to complete: 2ms
doc0 ()
Последнее исправление: doc0 (всего исправлений: 1)
Ответ на: комментарий от doc0
    /** The maximum number of concurrent jobs we run at one time. */
    static final int MAX_JOB_CONTEXTS_COUNT = 16;
    /** Enforce a per-app limit on scheduled jobs? */
    private static final boolean ENFORCE_MAX_JOBS = true;
    /** The maximum number of jobs that we allow an unprivileged app to schedule */
    private static final int MAX_JOBS_PER_APP = 100;

https://cs.android.com/android/platform/superproject/+/master:frameworks/base/apex/jobscheduler/service/java/com/android/server/job/JobSchedulerService.java;l=154?q=Apps%20may%20not%20schedule%20more%20than%20100%20distinct%20jobs&ss=android%2Fplatform%2Fsuperproject

увеличение MAX_JOBS_PER_APP = 1000 помогло, но наверное это не лучшее решение

doc0 ()
Последнее исправление: doc0 (всего исправлений: 2)
Ответ на: комментарий от tyamur

у меня больше 500 приложений установлено, из логов видно что срабатывало ограничение 100 непривилегированных процессов, почему они не привилегированные если из-за них не стартует система хз
можете попробовать подключить usb во время загрузки и посмотреть adb wait-for-device logcat adb logcat --help изменить режим usb можно наверное в prop файле

doc0 ()