rovo89 / XposedBridge

The Java part of the Xposed framework.
3.87k stars 1.1k forks source link

handleLoadPackage never called for some apps? #110

Open Robotex opened 8 years ago

Robotex commented 8 years ago

I'm trying to get started writing Xposed modules. According to your API documentation, I should use public void handleLoadPackage(final LoadPackageParam lpparam) to hook into specific apps code. I wrote the following simple log code to test if Xposed is working

    public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {
        XposedBridge.log("Loaded app: " + lpparam.packageName);

        if (!lpparam.packageName.equals("com.nianticlabs.pokemongo"))
            return;
        XposedBridge.log("App detected!");
    }

I can see the "Loaded app" output is shown for some packages such as those from system com.google.android, however the apps I'm targeting never appear in the logs, but I know they're there because if I implement public void handleInitPackageResources(InitPackageResourcesParam resparam) as

    public void handleInitPackageResources(InitPackageResourcesParam resparam) {

        if (!resparam.packageName.equals("com.nianticlabs.pokemongo"))
            return;

        XposedBridge.log("Loaded app res: " + resparam.packageName);

    }

they do appear in the logs. Am I missing something?

Device: OnePlus 2 ROM: OxygenOS error.log.txt

rovo89 commented 8 years ago

I noticed that the log only shows one Xposed startup sequence. Usually, 64-bit ROMs have two stacks, one for 64-bit apps and one for 32-bit apps. Is this always the case? Could you please check if multiple "zygote" processes are running (one should be named "zygote64")?

Robotex commented 8 years ago

Yes it shows always the same start sequence. Here is the list of currently running processes

130|shell@OnePlus2:/ $ ps
USER      PID   PPID  VSIZE  RSS   WCHAN              PC  NAME
root      1     0     5548   1588  SyS_epoll_ 0000000000 S /init
root      2     0     0      0       kthreadd 0000000000 S thread
root      3     2     0      0     smpboot_th 0000000000 S ksoftirqd/0
root      5     2     0      0     worker_thr 0000000000 S kworker/0:0H
root      7     2     0      0     smpboot_th 0000000000 S migration/0
root      8     2     0      0     rcu_gp_kth 0000000000 S rcu_preempt
root      9     2     0      0     rcu_gp_kth 0000000000 S rcu_bh
root      10    2     0      0     rcu_gp_kth 0000000000 S rcu_sched
root      11    2     0      0     smpboot_th 0000000000 S migration/1
root      12    2     0      0     smpboot_th 0000000000 S ksoftirqd/1
root      14    2     0      0     worker_thr 0000000000 S kworker/1:0H
root      15    2     0      0     smpboot_th 0000000000 S migration/2
root      16    2     0      0     smpboot_th 0000000000 S ksoftirqd/2
root      18    2     0      0     worker_thr 0000000000 S kworker/2:0H
root      19    2     0      0     smpboot_th 0000000000 S migration/3
root      20    2     0      0     smpboot_th 0000000000 S ksoftirqd/3
root      22    2     0      0     worker_thr 0000000000 S kworker/3:0H
root      23    2     0      0     rescuer_th 0000000000 S khelper
root      24    2     0      0     rescuer_th 0000000000 S netns
root      25    2     0      0     rescuer_th 0000000000 S perf
root      30    2     0      0     watchdog_k 0000000000 S msm_watchdog
root      31    2     0      0     rescuer_th 0000000000 S smd_channel_clo
root      32    2     0      0     rescuer_th 0000000000 S smsm_cb_wq
root      33    2     0      0     msm_mpm_wo 0000000000 D kworker/u16:1
root      34    2     0      0     rescuer_th 0000000000 S deferwq
root      35    2     0      0     irq_thread 0000000000 S irq/48-cpr
root      36    2     0      0     irq_thread 0000000000 S irq/51-cpr
root      37    2     0      0     smpboot_th 0000000000 S migration/4
root      38    2     0      0     smpboot_th 0000000000 S ksoftirqd/4
root      40    2     0      0     worker_thr 0000000000 S kworker/4:0H
root      41    2     0      0     rescuer_th 0000000000 S mlm
root      52    2     0      0     rescuer_th 0000000000 S write back
root      53    2     0      0     rescuer_th 0000000000 S bioset
root      54    2     0      0     rescuer_th 0000000000 S crypto
root      55    2     0      0     rescuer_th 0000000000 S kblockd
root      56    2     0      0     hub_thread 0000000000 S khubd
root      57    2     0      0     ion_heap_d 0000000000 S system
root      58    2     0      0     rescuer_th 0000000000 S ipa_power_mgmt
root      59    2     0      0     rescuer_th 0000000000 S sps_ipa_power_m
root      60    2     0      0     rescuer_th 0000000000 S ipawq14
root      61    2     0      0     rescuer_th 0000000000 S iparepwq14
root      62    2     0      0     rescuer_th 0000000000 S ipawq43
root      63    2     0      0     rescuer_th 0000000000 S iparepwq43
root      64    2     0      0     rescuer_th 0000000000 S ipawq13
root      65    2     0      0     rescuer_th 0000000000 S iparepwq13
root      66    2     0      0     rescuer_th 0000000000 S ipa_power_mgmt
root      67    2     0      0     rescuer_th 0000000000 S ipa_rm_wq
root      68    2     0      0     rescuer_th 0000000000 S ipa_interrupt_w
root      69    2     0      0     irq_thread 0000000000 S irq/261-msm_iom
root      70    2     0      0     irq_thread 0000000000 S irq/263-msm_iom
root      71    2     0      0     irq_thread 0000000000 S irq/261-msm_iom
root      72    2     0      0     irq_thread 0000000000 S irq/263-msm_iom
root      73    2     0      0     irq_thread 0000000000 S irq/261-msm_iom
root      74    2     0      0     irq_thread 0000000000 S irq/263-msm_iom
root      75    2     0      0     irq_thread 0000000000 S irq/261-msm_iom
root      76    2     0      0     irq_thread 0000000000 S irq/263-msm_iom
root      77    2     0      0     irq_thread 0000000000 S irq/261-msm_iom
root      78    2     0      0     irq_thread 0000000000 S irq/263-msm_iom
root      79    2     0      0     irq_thread 0000000000 S irq/261-msm_iom
root      80    2     0      0     irq_thread 0000000000 S irq/263-msm_iom
root      81    2     0      0     irq_thread 0000000000 S irq/261-msm_iom
root      82    2     0      0     irq_thread 0000000000 S irq/263-msm_iom
root      83    2     0      0     irq_thread 0000000000 S irq/102-msm_iom
root      84    2     0      0     irq_thread 0000000000 S irq/102-msm_iom
root      85    2     0      0     irq_thread 0000000000 S irq/102-msm_iom
root      86    2     0      0     irq_thread 0000000000 S irq/102-msm_iom
root      87    2     0      0     irq_thread 0000000000 S irq/74-msm_iomm
root      88    2     0      0     irq_thread 0000000000 S irq/75-msm_iomm
root      89    2     0      0     irq_thread 0000000000 S irq/75-msm_iomm
root      90    2     0      0     irq_thread 0000000000 S irq/75-msm_iomm
root      91    2     0      0     irq_thread 0000000000 S irq/75-msm_iomm
root      92    2     0      0     irq_thread 0000000000 S irq/273-msm_iom
root      93    2     0      0     irq_thread 0000000000 S irq/273-msm_iom
root      94    2     0      0     irq_thread 0000000000 S irq/272-msm_iom
root      95    2     0      0     irq_thread 0000000000 S irq/97-msm_iomm
root      96    2     0      0     irq_thread 0000000000 S irq/97-msm_iomm
root      97    2     0      0     irq_thread 0000000000 S irq/97-msm_iomm
root      98    2     0      0     irq_thread 0000000000 S irq/350-msm_iom
root      99    2     0      0     irq_thread 0000000000 S irq/350-msm_iom
root      100   2     0      0     irq_thread 0000000000 S irq/350-msm_iom
root      101   2     0      0     irq_thread 0000000000 S irq/298-msm_iom
root      102   2     0      0     irq_thread 0000000000 S irq/298-msm_iom
root      103   2     0      0     irq_thread 0000000000 S irq/298-msm_iom
root      104   2     0      0     irq_thread 0000000000 S irq/79-msm_iomm
root      105   2     0      0     irq_thread 0000000000 S irq/78-msm_iomm
root      106   2     0      0     irq_thread 0000000000 S irq/78-msm_iomm
root      107   2     0      0     worker_thr 0000000000 S kworker/4:1H
root      108   2     0      0     rescuer_th 0000000000 S devfreq_wq
root      109   2     0      0     rescuer_th 0000000000 S cfg80211
root      110   2     0      0     irq_thread 0000000000 S irq/15-bcl_vbat
root      111   2     0      0     irq_thread 0000000000 S irq/460-bcl_iba
root      134   2     0      0     rescuer_th 0000000000 S power_off_alarm
root      135   2     0      0         kswapd 0000000000 S kswapd0
root      136   2     0      0     fsnotify_m 0000000000 S fsnotify_mark
root      155   2     0      0     rescuer_th 0000000000 S ad_calc_wq
root      156   2     0      0     rescuer_th 0000000000 S rot_commit_work
root      157   2     0      0     dsi_event_ 0000000000 D mdss_dsi_event
root      158   2     0      0     rescuer_th 0000000000 S apr_driver
root      159   2     0      0     rescuer_th 0000000000 S pil_vote_wq
root      160   2     0      0     rescuer_th 0000000000 S shm_svc
root      161   2     0      0     rescuer_th 0000000000 S qmi_hndl0000000
root      162   2     0      0     rescuer_th 0000000000 S msm_ipc_router
root      163   2     0      0     rescuer_th 0000000000 S k_hsuart
root      164   2     0      0     kthread_wo 0000000000 S msm_serial_hs_0
root      165   2     0      0     kthread_wo 0000000000 S msm_serial_hs_0
root      166   2     0      0     add_hwgene 0000000000 S hwrng
root      167   2     0      0     rescuer_th 0000000000 S diag_real_time_
root      168   2     0      0     rescuer_th 0000000000 S diag_modem_data
root      169   2     0      0     rescuer_th 0000000000 S diag_lpass_data
root      170   2     0      0     rescuer_th 0000000000 S diag_wcnss_data
root      171   2     0      0     rescuer_th 0000000000 S diag_sensors_da
root      172   2     0      0     rescuer_th 0000000000 S diag_wq
root      173   2     0      0     rescuer_th 0000000000 S DIAG_USB_diag
root      174   2     0      0     rescuer_th 0000000000 S diag_cntl_wq
root      175   2     0      0     rescuer_th 0000000000 S diag_dci_wq
root      176   2     0      0     rescuer_th 0000000000 S kgsl-3d0
root      177   2     0      0     rescuer_th 0000000000 S kgs-events
root      178   2     0      0     rescuer_th 0000000000 S governor_msm_ad
root      179   2     0      0     rescuer_th 0000000000 S kgsl_devfreq_wq
root      200   2     0      0     kthread_wo 0000000000 S spi0
root      201   2     0      0     kthread_wo 0000000000 S spi12
root      204   2     0      0     rescuer_th 0000000000 S usante
root      205   2     0      0     rescuer_th 0000000000 S sharedmem_qmi_w
root      206   2     0      0     rescuer_th 0000000000 S qmi_hndl0000000
root      207   2     0      0     irq_thread 0000000000 S irq/212-msm_dwc
root      208   2     0      0     rescuer_th 0000000000 S k_gserial
root      209   2     0      0     rescuer_th 0000000000 S nether
root      211   2     0      0     rescuer_th 0000000000 S tpd_probe_optim
root      212   2     0      0     rescuer_th 0000000000 S tc_probe_optimi
root      213   2     0      0     irq_thread 0000000000 S irq/604-spi12.0
root      216   2     0      0     rescuer_th 0000000000 S msm_cci_wq
root      217   2     0      0     rescuer_th 0000000000 S msm_cci_wq
root      219   2     0      0     rescuer_th 0000000000 S msm_cpp_workque
root      220   2     0      0     worker_thr 0000000000 S kworker/u17:0
root      221   2     0      0     irq_thread 0000000000 S irq/495-batt-mi
root      222   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      223   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      224   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      225   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      226   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      227   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      228   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      229   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      230   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      231   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      232   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      233   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      234   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      235   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      236   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      237   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      238   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      239   2     0      0     irq_thread 0000000000 S irq/216-tsens_i
root      240   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      241   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      242   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      243   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      244   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      245   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      246   2     0      0     rescuer_th 0000000000 S dm_bufio_cache
root      247   2     0      0     cpufreq_in 0000000000 S cfinteractive
root      248   2     0      0     irq_thread 0000000000 S irq/170-f982490
root      250   2     0      0     irq_thread 0000000000 S irq/499-qpnp_wl
root      251   2     0      0     rescuer_th 0000000000 S usb_bam_wq
root      252   2     0      0     irq_thread 0000000000 S irq/500-qpnp_sc
root      253   2     0      0     rescuer_th 0000000000 S vibthread
root      254   2     0      0     irq_thread 0000000000 S irq/224-spdm_bw
root      255   2     0      0     rescuer_th 0000000000 S binder
root      256   2     0      0     rescuer_th 0000000000 S tfa98xx
root      258   2     0      0     rfcomm_run 0000000000 S krfcommd
root      259   2     0      0     irq_thread 0000000000 S irq/609-adsp
root      260   2     0      0     rescuer_th 0000000000 S qmi_svc_event_w
root      261   2     0      0     irq_thread 0000000000 S irq/641-modem
root      262   2     0      0     mmc_queue_ 0000000000 S mmcqd/0
root      263   2     0      0     mmc_queue_ 0000000000 S mmcqd/0rpmb
root      265   2     0      0     irq_thread 0000000000 S irq/505-synapti
root      266   2     0      0     rescuer_th 0000000000 S msm_vidc_worker
root      267   2     0      0     rescuer_th 0000000000 S pm_workerq_venu
root      268   2     0      0     rescuer_th 0000000000 S synaptics_wq
root      269   2     0      0     rescuer_th 0000000000 S synaptics_repor
root      270   2     0      0     irq_thread 0000000000 S irq/503-synapti
root      272   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      273   2     0      0     irq_thread 0000000000 S irq/464-chg-err
root      274   2     0      0     irq_thread 0000000000 S irq/9-chg-taper
root      275   2     0      0     irq_thread 0000000000 S irq/10-chg-tcc-
root      276   2     0      0     irq_thread 0000000000 S irq/8-chg-rechg
root      277   2     0      0     irq_thread 0000000000 S irq/468-chg-p2f
root      278   2     0      0     irq_thread 0000000000 S irq/469-batt-ho
root      279   2     0      0     irq_thread 0000000000 S irq/11-batt-war
root      280   2     0      0     irq_thread 0000000000 S irq/13-batt-coo
root      281   2     0      0     irq_thread 0000000000 S irq/12-batt-col
root      282   2     0      0     irq_thread 0000000000 S irq/7-batt-miss
root      283   2     0      0     irq_thread 0000000000 S irq/470-batt-lo
root      284   2     0      0     irq_thread 0000000000 S irq/1-usbin-uv
root      285   2     0      0     irq_thread 0000000000 S irq/2-usbin-ov
root      286   2     0      0     irq_thread 0000000000 S irq/3-usbin-src
root      287   2     0      0     irq_thread 0000000000 S irq/6-aicl-done
root      288   2     0      0     irq_thread 0000000000 S irq/4-otg-fail
root      289   2     0      0     irq_thread 0000000000 S irq/5-otg-oc
root      290   2     0      0     irq_thread 0000000000 S irq/472-usbid-c
root      291   2     0      0     irq_thread 0000000000 S irq/473-dcin-uv
root      292   2     0      0     irq_thread 0000000000 S irq/475-power-o
root      293   2     0      0     irq_thread 0000000000 S irq/476-temp-sh
root      294   2     0      0     irq_thread 0000000000 S irq/477-safety-
root      295   2     0      0     rescuer_th 0000000000 S rq_stats
root      296   2     0      0     events_not 0000000000 S msm_perf:events
root      297   2     0      0     rescuer_th 0000000000 S sb-1
root      298   2     0      0     irq_thread 0000000000 S irq/195-ngd_sli
root      299   2     0      0     ngd_slim_r 0000000000 D ngd_rx_thread1
root      300   2     0      0     ngd_notify 0000000000 D ngd_notify_sl1
root      301   2     0      0     rescuer_th 0000000000 S k_bam_data
root      302   2     0      0     rescuer_th 0000000000 S f_mtp
root      303   2     0      0     sleep_thre 0000000000 S file-storage
root      304   2     0      0     do_samplin 0000000000 D msn-core:sampli
root      305   2     0      0     do_hotplug 0000000000 S msm_thermal:hot
root      306   2     0      0     do_freq_mi 0000000000 S msm_thermal:fre
root      307   2     0      0     do_thermal 0000000000 S msm_thermal:the
root      308   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      309   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      310   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      311   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      312   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      313   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      314   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      315   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      316   2     0      0     sensor_sys 0000000000 S therm_core:noti
root      317   2     0      0     boost_mig_ 0000000000 S boost_sync/0
root      318   2     0      0     boost_mig_ 0000000000 S boost_sync/1
root      319   2     0      0     boost_mig_ 0000000000 S boost_sync/2
root      320   2     0      0     boost_mig_ 0000000000 S boost_sync/3
root      321   2     0      0     boost_mig_ 0000000000 S boost_sync/4
root      322   2     0      0     boost_mig_ 0000000000 S boost_sync/5
root      323   2     0      0     boost_mig_ 0000000000 S boost_sync/6
root      324   2     0      0     boost_mig_ 0000000000 S boost_sync/7
root      325   2     0      0     rescuer_th 0000000000 S ipa_A7_svc
root      326   2     0      0     rescuer_th 0000000000 S qmi_hndl0000000
root      327   2     0      0     rescuer_th 0000000000 S clnt_req
root      329   2     0      0     rescuer_th 0000000000 S clnt_resp
root      330   2     0      0     rescuer_th 0000000000 S clnt_req
root      331   1     4520   1076  poll_sched 0000000000 S /sbin/ueventd
root      336   2     0      0     worker_thr 0000000000 S kworker/0:1H
root      337   2     0      0     kjournald2 0000000000 S jbd2/mmcblk0p42
root      338   2     0      0     rescuer_th 0000000000 S ext4-dio-unwrit
root      341   2     0      0     worker_thr 0000000000 S kworker/3:1H
root      343   2     0      0     kjournald2 0000000000 S jbd2/mmcblk0p43
root      344   2     0      0     rescuer_th 0000000000 S ext4-dio-unwrit
root      345   2     0      0     kjournald2 0000000000 S jbd2/mmcblk0p41
root      346   2     0      0     rescuer_th 0000000000 S ext4-dio-unwrit
root      347   2     0      0     kjournald2 0000000000 S jbd2/mmcblk0p37
root      348   2     0      0     rescuer_th 0000000000 S ext4-dio-unwrit
root      349   2     0      0     worker_thr 0000000000 S kworker/1:1H
root      350   1     21116  5328  sigsuspend 0000000000 S /system/bin/logd
root      351   2     0      0     worker_thr 0000000000 S kworker/2:1H
root      356   2     0      0     kauditd_th 0000000000 S kauditd
root      357   1     16176  3068  hrtimer_na 0000000000 S /system/bin/vold
root      387   2     0      0     loop_threa 0000000000 S loop0
root      389   2     0      0     kjournald2 0000000000 S jbd2/loop0-8
root      390   2     0      0     rescuer_th 0000000000 S ext4-dio-unwrit
root      402   1     5800   676   __skb_recv 0000000000 S daemonsu:mount:master
root      433   1     9176   836   __skb_recv 0000000000 S daemonsu:master
root      472   2     0      0     rescuer_th 0000000000 S IPCRTR
root      474   2     0      0     rescuer_th 0000000000 S adsp_IPCRTR
root      491   2     0      0     kthread_wo 0000000000 S msm_slim_qmi_cl
root      492   2     0      0     rescuer_th 0000000000 S qmi_hndl0000000
root      495   1     4280   476   SyS_epoll_ 0000000000 S /sbin/healthd
root      496   1     6664   1436  SyS_epoll_ 0000000000 S /system/bin/lmkd
system    497   1     6280   1468  binder_thr 0000000000 S /system/bin/servicemanager
nobody    501   1     31604  1672  poll_sched 0000000000 S /system/bin/rmt_storage
rfs       502   1     8452   1588  poll_sched 0000000000 S /system/bin/rfs_access
rfs       503   1     6980   1332  poll_sched 0000000000 S /system/bin/tftp_server
root      507   1     7892   1304  __skb_recv 0000000000 S /system/bin/oemlogkit
system    509   1     11616  2448     do_wait 0000000000 S /system/bin/qseecomd
system    510   1     18280  2140  do_sigtime 0000000000 S /system/bin/pm-service
root      519   507   0      0        do_exit 0000000000 Z logcat
root      523   2     0      0     irq_thread 0000000000 S irq/449-wcd9xxx
root      528   1     3192   1092  __skb_recv 0000000000 S /system/bin/debuggerd
root      530   1     6732   1396  __skb_recv 0000000000 S /system/bin/debuggerd64
radio     531   1     76252  12112 hrtimer_na 0000000000 S /system/bin/rild
drm       534   1     18136  5656  binder_thr 0000000000 S /system/bin/drmserver
root      541   1     6384   1848  unix_strea 0000000000 S /system/bin/installd
keystore  544   1     10940  2680  binder_thr 0000000000 S /system/bin/keystore
root      547   1     13896  2440  poll_sched 0000000000 S /system/bin/qcom-system-daemon
system    550   1     19936  5912  binder_thr 0000000000 S /system/bin/wfdservice
root      551   1     75604  2844  sigsuspend 0000000000 S /system/vendor/bin/thermal-engine
system    557   509   19648  1348  sigsuspend 0000000000 S /system/bin/qseecomd
media     562   1     8020   1136  poll_sched 0000000000 S /system/bin/adsprpcd
root      565   1     1532456 59176 poll_sched 0000000000 S zygote
system    566   1     10252  2388  binder_thr 0000000000 S /system/bin/gatekeeperd
system    567   1     71244  15712 SyS_epoll_ 0000000000 S /system/bin/cnd
root      568   1     12596  2044  unix_strea 0000000000 S /system/bin/dpmd
system    569   1     12520  2180  __skb_recv 0000000000 S /system/bin/cnss-daemon
gps       573   1     8072   1692  sigsuspend 0000000000 S /system/bin/loc_launcher
camera    587   1     137092 23392 poll_sched 0000000000 S /system/bin/mm-qcamera-daemon
system    588   1     13908  2476  binder_thr 0000000000 S /system/bin/fingerprintd
system    589   1     14624  2296  futex_wait 0000000000 S /system/bin/time_daemon
system    590   1     27976  6436  binder_thr 0000000000 S /system/bin/audiod
system    591   1     16760  2240  do_sigtime 0000000000 S /system/bin/mm-pp-daemon
system    592   1     62248  13780 binder_thr 0000000000 S /system/vendor/bin/fidodaemon
system    598   1     11748  1792  hrtimer_na 0000000000 S /system/bin/pm-proxy
radio     682   1     13700  2052  poll_sched 0000000000 S /system/bin/qmuxd
system    687   1     9232   1552  poll_sched 0000000000 S /system/bin/ipacm-diag
net_admin 691   1     14680  1956  futex_wait 0000000000 S /system/bin/ipacm
system    694   568   19524  3504  SyS_epoll_ 0000000000 S /system/bin/dpmd
gps       699   573   23684  1404  futex_wait 0000000000 S /system/bin/xtwifi-inet-agent
gps       700   573   36192  5900  futex_wait 0000000000 S /system/bin/xtwifi-client
gps       701   573   80064  15812 poll_sched 0000000000 S /system/vendor/bin/slim_daemon
radio     719   1     74956  11448 hrtimer_na 0000000000 S /system/bin/rild
radio     732   1     13044  1836  poll_sched 0000000000 S /system/vendor/bin/qti
sensors   734   1     58184  3092  poll_sched 0000000000 S /system/bin/sensors.qcom
radio     737   1     24612  3588  __skb_recv 0000000000 S /system/bin/netmgrd
nobody    740   1     6588   1540  poll_sched 0000000000 S /system/bin/msm_irqbalance
root      1045  2     0      0     rescuer_th 0000000000 S IPCRTR
root      1046  2     0      0     rescuer_th 0000000000 S modem_IPCRTR
root      1060  2     0      0     rescuer_th 0000000000 S qmi_hndl0000000
root      1106  2     0      0     rescuer_th 0000000000 S qmi_hndl0000000
root      1144  2     0      0     worker_thr 0000000000 S kworker/0:0
root      1930  2     0      0     worker_thr 0000000000 S kworker/7:1
root      2006  2     0      0     worker_thr 0000000000 S kworker/4:1
system    2064  1     158496 25452 SyS_epoll_ 0000000000 S /system/bin/surfaceflinger
root      2068  1     2104792 78076 poll_sched 0000000000 S zygote64
root      2069  1     21800  2648  hrtimer_na 0000000000 S /system/bin/netd
media     2070  1     118584 19948 binder_thr 0000000000 S /system/bin/mediaserver
root      2137  2068  62228  3868  binder_thr 0000000000 S xposed_service_system
root      2142  2068  63268  3824  binder_thr 0000000000 S xposed_service_app
root      2320  2068  5664   1212  __skb_recv 0000000000 S logcat
root      2321  2320  59916  3648   pipe_wait 0000000000 S xposed_logcat
root      2366  2     0      0     rescuer_th 0000000000 S ipawq44
root      2367  2     0      0     rescuer_th 0000000000 S iparepwq44
system    2395  2068  2341880 151648 SyS_epoll_ 0000000000 S system_server
media_rw  2640  357   13940  6568  inotify_re 0000000000 S /system/bin/sdcard
u0_a23    2668  2068  1686164 135492 SyS_epoll_ 0000000000 S com.android.systemui
u0_a10    2680  2068  1605968 69284 SyS_epoll_ 0000000000 S android.process.media
u0_a12    2861  2068  1599244 51156 SyS_epoll_ 0000000000 S com.google.process.gapps
u0_a12    2936  2068  1776016 113576 SyS_epoll_ 0000000000 S com.google.android.gms.persistent
u0_a7     3009  2068  1593612 54320 SyS_epoll_ 0000000000 S android.process.acore
u0_a24    3065  2068  2179520 50560 SyS_epoll_ 0000000000 S com.google.android.googlequicksearchbox:interactor
u0_a56    3081  2068  1616636 73180 SyS_epoll_ 0000000000 S com.google.android.inputmethod.latin
u0_a19    3151  2068  1661272 69736 SyS_epoll_ 0000000000 S com.android.vending
system    3170  2068  1586864 43404 SyS_epoll_ 0000000000 S com.quicinc.cne.CNEService
system    3184  2068  1590476 47704 SyS_epoll_ 0000000000 S com.qti.dpmserviceapp
system    3196  2068  1586060 44512 SyS_epoll_ 0000000000 S com.fingerprints.serviceext
system    3219  2068  1595820 47700 SyS_epoll_ 0000000000 S com.qualcomm.qti.tetherservice
radio     3235  2068  1657816 76320 SyS_epoll_ 0000000000 S com.android.phone
system    3279  2068  1786980 145016 SyS_epoll_ 0000000000 S com.android.launcher3
u0_a83    3570  2068  1586172 43192 SyS_epoll_ 0000000000 S com.android.smspush
root      3586  2     0      0     worker_thr 0000000000 S kworker/3:1
radio     3610  2068  1589692 45176 SyS_epoll_ 0000000000 S com.qualcomm.qcrilmsgtunnel
root      3663  565   37052  2488  futex_wait 0000000000 S xposed_zygote_service
u0_a18    3720  2068  1585044 45536 SyS_epoll_ 0000000000 S net.oneplus.odm.provider
system    3966  2068  1586748 45032 SyS_epoll_ 0000000000 S com.qualcomm.telephony
root      4088  2     0      0     worker_thr 0000000000 S kworker/5:1
u0_a12    4189  2068  1917348 116228 SyS_epoll_ 0000000000 S com.google.android.gms
system    4304  2068  1586764 44848 SyS_epoll_ 0000000000 S com.qti.service.colorservice
u0_a84    4400  2068  1596604 54116 SyS_epoll_ 0000000000 S com.android.dialer
root      4471  2     0      0     worker_thr 0000000000 S kworker/5:2
system    4516  2068  1592320 48820 SyS_epoll_ 0000000000 S net.oneplus.odm
system    4604  2068  1590644 45972 SyS_epoll_ 0000000000 S com.android.engineeringmode
system    4655  2068  1586484 45836 SyS_epoll_ 0000000000 S com.qualcomm.qti.modemtestmode
u0_a105   4923  2068  1636704 69628 SyS_epoll_ 0000000000 S de.robv.android.xposed.installer
u0_a89    5112  565   1652864 53196 SyS_epoll_ 0000000000 S com.tencent.mm:push
u0_a93    5234  2068  1592340 46412 SyS_epoll_ 0000000000 S com.macropinch.swan:remote
u0_a31    5471  2068  1634388 61052 SyS_epoll_ 0000000000 S com.google.android.calendar
u0_a5     5503  2068  1588488 49160 SyS_epoll_ 0000000000 S com.android.providers.calendar
root      5988  2     0      0     VosWDThrea 0000000000 S VosWDThread
root      5989  2     0      0     VosMCThrea 0000000000 S VosMCThread
root      5990  2     0      0     VosTXThrea 0000000000 S VosTXThread
root      5991  2     0      0             $x 0000000000 S VosRXThread
root      5992  2     0      0     VosTlshimR 0000000000 S VosTlshimRxThre
root      6001  2     0      0     wlan_loggi 0000000000 S wlan_logging_th
wifi      6011  1     16588  4404  poll_sched 0000000000 S /system/bin/wpa_supplicant
u0_a55    6014  2068  1619096 59012 SyS_epoll_ 0000000000 S com.google.android.keep
root      6278  2     0      0     try_hotplu 0000000000 S hcube/0
root      6279  2     0      0     try_hotplu 0000000000 S hcube/4
root      6450  433   8392   848   __skb_recv 0000000000 S daemonsu:10000
u0_a89    6451  565   1895056 62680 SyS_epoll_ 0000000000 S com.tencent.mm
u0_a86    6465  2068  2372148 90764 SyS_epoll_ 0000000000 S com.google.android.youtube
u0_a52    6623  2068  1766564 67144 SyS_epoll_ 0000000000 S com.google.android.talk:matchstick
u0_a62    6660  2068  1783440 77876 SyS_epoll_ 0000000000 S com.google.android.music:main
u0_a12    6732  2068  1723136 64848 SyS_epoll_ 0000000000 S com.google.android.gms:car
u0_a12    6765  2068  1726212 76920 SyS_epoll_ 0000000000 S com.google.android.gms.unstable
shell     6793  18569 6332   1588  sigsuspend 7fb3a203fc S /system/bin/sh
shell     6857  6793  6016   1264           0 7fa6e18cfc R ps
root      6858  2     0      0     worker_thr 0000000000 S kworker/0:3
root      7631  2     0      0     __kthread_ 0000000000 R migration/5
root      7632  2     0      0     __kthread_ 0000000000 R ksoftirqd/5
root      8360  2     0      0     smpboot_th 0000000000 S migration/6
root      8361  2     0      0     smpboot_th 0000000000 S ksoftirqd/6
root      8882  2     0      0     __kthread_ 0000000000 R migration/7
root      8883  2     0      0     __kthread_ 0000000000 R ksoftirqd/7
root      8885  2     0      0     worker_thr 0000000000 S kworker/5:0H
root      8887  2     0      0     worker_thr 0000000000 S kworker/6:0H
root      8889  2     0      0     worker_thr 0000000000 S kworker/7:0H
root      8890  2     0      0     irq_thread 0000000000 S irq/215-fc38800
root      8899  2     0      0     worker_thr 0000000000 S kworker/5:1H
root      8900  1     11496  1228  futex_wait 0000000000 S /system/vendor/bin/perfd
root      8903  2     0      0     notify_use 0000000000 S wrkld_notify
root      8916  433   9432   880   __skb_recv 0000000000 S daemonsu:0
root      9054  2     0      0     worker_thr 0000000000 S kworker/6:1H
root      9056  2     0      0     worker_thr 0000000000 S kworker/7:1H
root      14089 2     0      0     worker_thr 0000000000 S kworker/4:0
root      14090 2     0      0     worker_thr 0000000000 S kworker/6:2
root      14796 2     0      0     worker_thr 0000000000 S kworker/1:0
shell     18569 1     7896   672              0000000000 S /sbin/adbd
root      19513 2     0      0     worker_thr 0000000000 S kworker/4:2
root      19990 2     0      0     worker_thr 0000000000 S kworker/7:0
root      20234 433   10472  852   __skb_recv 0000000000 S daemonsu:10105
root      25174 2     0      0     worker_thr 0000000000 S kworker/6:0
root      28835 2     0      0     worker_thr 0000000000 S kworker/2:2
root      28956 2     0      0     worker_thr 0000000000 S kworker/3:2
root      30453 2     0      0     worker_thr 0000000000 S kworker/2:1
root      30884 2     0      0     worker_thr 0000000000 S kworker/0:2
root      31040 2     0      0     worker_thr 0000000000 S kworker/1:1
root      31169 2     0      0     worker_thr 0000000000 S kworker/0:1
root      31425 2     0      0     worker_thr 0000000000 S kworker/u16:16
root      31426 2     0      0     worker_thr 0000000000 S kworker/u16:17
root      31432 2     0      0     worker_thr 0000000000 S kworker/u16:22
root      31600 2     0      0     worker_thr 0000000000 S kworker/1:2
root      31883 2     0      0     worker_thr 0000000000 S kworker/7:2
root      31962 2     0      0     worker_thr 0000000000 S kworker/3:0
root      31993 2     0      0     worker_thr 0000000000 S kworker/2:0
root      32040 2     0      0     worker_thr 0000000000 S kworker/u16:7
root      32045 2     0      0     worker_thr 0000000000 S kworker/u16:12
root      32406 2     0      0     worker_thr 0000000000 S kworker/u16:25
shell@OnePlus2:/ $ 

With a quick CTRL+F I can see there are a zygote, a zygote64 and a xposed_zygote_service processes

Robotex commented 8 years ago

Just updating about my situation: I uninstalled the official SDK and Xposed Installer and then installed the modded Xposed Installer with material design and used the builtin function to download the systemless sdk, it seems working fine now.

brandc87 commented 7 years ago

Is my issue related to this?

if (!loadPackageParam.packageName.equals("com.nianticlabs.pokemongo"))
            return;

        XposedBridge.log("Loaded Application: " + loadPackageParam.packageName);

This works fine, but none of the logs in my hooks are showing?

final Class<?> NiaNetClass = XposedHelpers.findClass("com.nianticlabs.nia.network.NiaNet", loadPackageParam.classLoader);

        findAndHookMethod(NiaNetClass, "readDataSteam", HttpURLConnection.class, new XC_MethodHook()
        {
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable
            {
                XposedBridge.log("NiaNetClass.readDataSteam() Before Hook.");
                Field bufferField = NiaNetClass.getDeclaredField("readBuffer");
                //bufferget.setAccessible(true);

                ThreadLocal<ByteBuffer> buffer = (ThreadLocal<ByteBuffer>) bufferField.get(null);
                XposedBridge.log("readDataSteam: Buffer = " + buffer);

                super.beforeHookedMethod(param);
            }
        });

Nexus 5X

rovo89 commented 7 years ago

@mythicaldog Sounds more like that method isn't called.

rdegelo commented 7 years ago

Same issue here. com.nianticlabs.pokemongo never calls handleLoadPackage

Even if I kill/launch the app.

Any suggestions?

Edit: Downloaded some Xposed modules from internet those hooks the same package and they seems to be working. So am I doing something wrong?

public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {
        Log("Loaded App " + lpparam.packageName);

        if (!lpparam.packageName.equals(Constants.POKEMON_GO_PACKAGE))
            return;

        Log("Found Pokemon App");
}

Edit2: My device is x64, I have the following processes running: root 3036 1 1549084 16076 ffffffff 00000000 S zygote root 3897 3036 41920 372 ffffffff 00000000 S xposed_zygote_service root 12760 1 2147928 24364 ffffffff 00000000 S zygote64

Robotex commented 7 years ago

In my case the problem wasn't related only to PGO but also other apps such as WeChat and like rovo89 said the cause probably was the XPosed stack not being called for either 32 or 64 bit arch, however my issue went away just by using unofficial third party SDKs builds.

rdegelo commented 7 years ago

Thanks Robotex, The problem is that I cannot modify my Xposed SDK Binaries since by ROM only works with Wanam Xposed which works with Samsung Devices.

So, there is a way to fix it without modifying my binaries?

Thx anyway!

rovo89 commented 7 years ago

As far as I know, the unofficial build you used doesn't have any relevant code changes. However, it might be a side effect of the installation, which patches the SELinux policy. If you can get a logcat of boot sequence with the official Xposed binaries, I can check if there's an SELinux denial that prevents the second stack from writing to the log file. Generally, you could also run logcat to see if the log messages appear there. This should be the case no matter whether Xposed's daemon that persists the logcat to file is working or not.

rdegelo commented 7 years ago

Hi Rovo89, I cannot test with official Xposed binaries because I get bootloop.

You can check my boot logs with Wanam binaries: dmesg.txt logcat.txt cpuinfo.txt

Edit: Updated my phone to MM OS, but same issue happens.

Thx

ZhangPeibin commented 7 years ago

Hi Rovo89 How to solve this ?

ZhangPeibin commented 7 years ago

It's strange that I installed that Uninstaller and then reboot system directly

rovo89 commented 6 years ago

Is there still any open issue?

henrytom1703 commented 6 years ago

Hello @rovo89 . I have a same issue. How to fix it. I'm using http://dl-xda.xposed.info/framework/sdk23/arm64/

ciaoSora commented 4 years ago

Same issue.

It's weird that handleLoadPackage will not be called for all the 32-bit apps on my phone. And it WILL be called for all 64-bit apps. When "ps | grep zygote" I can see zygote, zygote64 and xposed_zygote_service. So what's the problem?

I have also tried using logcat but it doesn't log as well (But it does log for 64-bit apps). So I think XposedBridge.log might not be the reason for this.

I noticed that the log only shows one Xposed startup sequence. Usually, 64-bit ROMs have two stacks, one for 64-bit apps and one for 32-bit apps. Is this always the case? Could you please check if multiple "zygote" processes are running (one should be named "zygote64")?

The log file only contains one xposed startup sequence. So it should be have 2? The last 2 line of the sequence is

04-10 17:25:20.210 I/Xposed  (27840): Platform: arm64-v8a, 64-bit binary, system server: yes
04-10 17:25:20.210 I/Xposed  (27840): SELinux enabled: yes, enforcing: no
ciaoSora commented 4 years ago

I'm not sure if I have found the solution. The following is how I finally make handleLoadPackage be called for both 32-bit and 64-bit apps.

  1. adb remount
  2. adb shell
  3. cat /system/xposed.prop What I see is
    version=89
    arch=arm64
    minsdk=25
    maxsdk=25
  4. Use vim or other text editor to modify the second line to arch=arm . That is, simply delete the last 2 characters.
  5. Restart the phone, and everything goes just right.

At least, this work for me.