-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Xposed on lollipop does not write to application log #34
Comments
I cannot reproduce this, the lines are written to the log that can be seen in the installer app. Are you sure that your module is loaded correctly? Can you add an initZygote() method with the same logging and then post your log file? |
Besides that, please use the XposedBridge repository the next time, this repo is for the native part... |
package kz.virtex.htc.tweaker.lollipop;
import de.robv.android.xposed.IXposedHookInitPackageResources;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.IXposedHookZygoteInit;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.callbacks.XC_InitPackageResources.InitPackageResourcesParam;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;
public class XMain implements IXposedHookZygoteInit, IXposedHookInitPackageResources, IXposedHookLoadPackage
{
@Override
public void handleLoadPackage(LoadPackageParam paramLoadPackageParam) throws Throwable
{
XposedBridge.log("-------------handleLoadPackage: " + paramLoadPackageParam.packageName);
}
@Override
public void handleInitPackageResources(InitPackageResourcesParam resparam) throws Throwable
{
XposedBridge.log("-------------handleInitPackageResources: " + resparam.packageName);
}
@Override
public void initZygote(StartupParam startupParam) throws Throwable
{
XposedBridge.log("-------------initZygote");
}
} Log from application: 04-08 00:03:44.173 I/Xposed (11488): -----------------
04-08 00:03:44.173 I/Xposed (11488): Starting Xposed binary version 61, compiled for SDK 21
04-08 00:03:44.173 I/Xposed (11488): Device: HTC One dual sim (HTC), Android version 5.0.2 (SDK 21)
04-08 00:03:44.173 I/Xposed (11488): ROM: LRX22G release-keys
04-08 00:03:44.173 I/Xposed (11488): Build fingerprint: htc/htc_europe/m7cdug:5.0.2/LRX22G/499633.5:user/release-keys
04-08 00:03:44.173 I/Xposed (11488): Platform: armeabi-v7a, 32-bit binary, system server: yes
04-08 00:03:44.173 I/Xposed (11488): SELinux enabled: yes, enforcing: yes
04-08 00:03:45.204 I/Xposed (11488): -----------------
04-08 00:03:45.204 I/Xposed (11488): Added Xposed (/system/framework/XposedBridge.jar) to CLASSPATH
04-08 00:03:45.274 I/Xposed (11488): Detected ART runtime
04-08 00:03:45.284 I/Xposed (11488): Found Xposed class de/robv/android/xposed/XposedBridge, now initializing
04-08 00:03:45.504 I/Xposed (11488): Initializing XposedBridge version 62
04-08 00:03:45.584 I/Xposed (11488): Loading modules from /data/app/kz.virtex.htc.tweaker.lollipop-1/base.apk
04-08 00:03:45.694 I/Xposed (11488): Loading class kz.virtex.htc.tweaker.lollipop.XMain
04-08 00:03:45.694 I/Xposed (11488): -------------initZygote
04-08 00:03:45.694 I/Xposed (11488): Loading modules from /data/app/com.sensetoolbox.six-2/base.apk
04-08 00:03:45.774 I/Xposed (11488): Loading class com.sensetoolbox.six.mods.XMain Logcat: |
Very strange... As I mentioned, this is not a general issue, it's working fine for me. I don't know what could cause this, just two thoughts:
|
shell@m7cdug:/ $ cat /data/data/de.robv.android.xposed.installer/log/error.log
a/data/de.robv.android.xposed.installer/log/error.log <
04-08 00:03:44.173 I/Xposed (11488): -----------------
04-08 00:03:44.173 I/Xposed (11488): Starting Xposed binary version 61, compiled for SDK 21
04-08 00:03:44.173 I/Xposed (11488): Device: HTC One dual sim (HTC), Android version 5.0.2 (SDK 21)
04-08 00:03:44.173 I/Xposed (11488): ROM: LRX22G release-keys
04-08 00:03:44.173 I/Xposed (11488): Build fingerprint: htc/htc_europe/m7cdug:5.0.2/LRX22G/499633.5:user/release-keys
04-08 00:03:44.173 I/Xposed (11488): Platform: armeabi-v7a, 32-bit binary, system server: yes
04-08 00:03:44.173 I/Xposed (11488): SELinux enabled: yes, enforcing: yes
04-08 00:03:45.204 I/Xposed (11488): -----------------
04-08 00:03:45.204 I/Xposed (11488): Added Xposed (/system/framework/XposedBridge.jar) to CLASSPATH
04-08 00:03:45.274 I/Xposed (11488): Detected ART runtime
04-08 00:03:45.284 I/Xposed (11488): Found Xposed class de/robv/android/xposed/XposedBridge, now initializing
04-08 00:03:45.504 I/Xposed (11488): Initializing XposedBridge version 62
04-08 00:03:45.584 I/Xposed (11488): Loading modules from /data/app/kz.virtex.htc.tweaker.lollipop-1/base.apk
04-08 00:03:45.694 I/Xposed (11488): Loading class kz.virtex.htc.tweaker.lollipop.XMain
04-08 00:03:45.694 I/Xposed (11488): -------------initZygote
04-08 00:03:45.694 I/Xposed (11488): Loading modules from /data/app/com.sensetoolbox.six-2/base.apk
04-08 00:03:45.774 I/Xposed (11488): Loading class com.sensetoolbox.six.mods.XMain
1|shell@m7cdug:/ $ ps|grep xposed
ps|grep xposed
root 11517 11488 32716 1808 ffffffff 00000000 S xposed_service_system
root 11518 11488 33744 1808 ffffffff 00000000 S xposed_service_app
root 11519 11516 29612 1632 ffffffff 00000000 S xposed_logcat
u0_a304 16943 11488 1640360 73152 ffffffff 00000000 S de.robv.android.xposed.installer
shell@m7cdug:/ $ |
Hm. Really strange. You can check the source code yourself: https://github.com/rovo89/Xposed/blob/master/xposed_logcat.cpp#L83
|
you know, when android sends broadcast boot complete, i can issue adb logcat command, but after a couple of seconds command ends and I have to give adb logcat again. do xposed_logcat handles such scenarios in case of logcat restart? |
is it strange or normal behavior? ps|grep logcat
root 407 404 1112 592 ffffffff 00000000 S logcat
root 11516 11488 1112 596 ffffffff 00000000 S logcat
root 11519 11516 29612 1632 ffffffff 00000000 S xposed_logcat
shell@m7cdug:/ $ |
It doesn't restart logcat, and it shouldn't need to... logcat should keep running all the time. It displays the output line by line as they are logged, so the buffer size should be a limiting factor. Actually, once logcat ends, xposed_logcat should end as well. I don't know what the first logcat command is about, but the second one seems to be the one started by Xposed. So It seems that the logcat command on your device is somehow buggy... what if you start |
this happens before disconnect W/libprocessgroup( 840): failed to open /acct/uid_10087/pid_5183/cgroup.procs: No such file or directory
I/Xposed ( 5434): -------------handleLoadPackage: com.htc.demoflopackageinstaller
I/Xposed ( 5434): -------------handleInitPackageResources: com.htc.demoflopackageinstaller
D/DFPI.PIReciver( 5434): onReceiver action:android.intent.action.MEDIA_SCANNER_FINISHED
I/DFPI.ApkInstallService( 5434): onHandleIntent
I/DFPI.ApkInstallService( 5434): Media Scan Finished Case
D/DFPI.ApkInstallService( 5434): check CID = HTC__001
I/DFPI.ApkInstallService( 5434): There is no Demo.apk in sd card or phone storage
D/PMS ( 840): acquireWL(527d2d9): PARTIAL_WAKE_LOCK NlpWakeLock 0x1 2015 10024 null
D/PMS ( 840): releaseWL(527d2d9): PARTIAL_WAKE_LOCK NlpWakeLock 0x1 null
D/GCM ( 1649): GcmService start Intent { act=com.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.google.android.gms/.gcm.GcmService } com.google.andro
id.gms.INITIALIZE
D/AuthorizationBluetoothService( 1649): Received GmsCore event: Intent { act=com.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.google.android.gms/.auth.
be.proximity.authorization.bt.AuthorizationBluetoothService$AutoStarter }.
D/c ( 1649): Getting all permits...
D/a ( 1649): Opening database...
D/a ( 1649): Opening database auth.proximity.permit_store...
D/a ( 1649): Closing database...
V/GmsCoreStatsServiceLauncher( 2153): Received broadcast intent Intent { act=com.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.google.android.gms/.commo
n.stats.GmsCoreStatsServiceLauncher }
E/MDM ( 2015): [187] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null}
D/LocationInitializer( 2153): Restart initialization of location
I/Xposed ( 5375): -------------handleInitPackageResources: com.buak.Link2SD
I/art ( 2611): Debugger is no longer active
I/WSP ( 1189): [Receiver] EVENT - CURRENT LOCATION CHANGED
D/MtpReceiver( 2375): [MTP][handleUsbStateAsync]+
D/MtpReceiver( 2375): [MTP][handleUsbStateAsync]1:1-
D/MtpReceiver( 2375): [MTP][handleUsbState]+
D/CDMountReceiver( 5130): receive action: com.htc.intent.action.USB_CONNECT2PC connected :true
D/CDMountReceiver( 5130): USB connected to PC
D/MtpReceiver( 2375): [MTP][scanExternalVolumeIfNeed] scan external volume
D/MtpReceiver( 2375): [MTP][handleUsbState]-
D/MtpReceiver( 2375): [MTP][handleMessage]-
D/PMS ( 840): acquireWL(bbddc38): PARTIAL_WAKE_LOCK wake:com.google.android.gms/com.google.android.libraries.social.mediamonitor.MediaMonitorIntentService 0x1 2153 10024 null
D/MtpService( 2375): updating state; isCurrentUser=true, mMtpLocked=false
D/MtpDatabase( 2375): TotalSize=1857004,MediaCacheLimit=6000
D/Atlas ( 5375): Validating map...
D/FOTAReceiver( 5130): onReceive() enter
D/FOTAReceiver( 5130): receive action: com.htc.intent.action.USB_CONNECT2PC connected :true
D/MtpService( 2375): [isMtpConnected] connected: true
D/TetherSettings( 5356): CustomizedNS:true CustomizedML:false CustomizedSPCSC:false CustomizedIPT:true CustomizedSingleUSBfalse
D/ ( 5356): Cust_ConnectToPC : Internet_Sharing>true
D/ ( 5356): Cust_ConnectToPC : Modem_Link>false
D/ ( 5356): Cust_ConnectToPC : spcsc>false
D/ ( 5356): Cust_ConnectToPC : IPT>true
D/ ( 5356): Cust_ConnectToPC : Singel_USB>false
W/Settings( 5356): Setting tethering_blocked has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
E/SmartNS_Utility( 5356): hasRemovableStorageSlot: true
D/SmartNS_Utility( 5356): [ACC]Settings-Wireless_+_network-USB_tethering_:usb_storage_notification=false
D/SmartNS_NSReceiver( 5356): onReceive : com.htc.intent.action.USB_CONNECT2PC hasTethered:false isNSOpening:false
D/SmartNS_Utility( 5356): usb_cable_connect = 1
D/SmartNS_Utility( 5356): usb_denied = 0
D/MediaProvider( 2375): [resizeThumb] thumbnail original width 500, height 500
D/MediaProvider( 2375): [resizeThumb] thumbnail 1st resize width 500, height 500, mAlbumSize=512
I/SmartNS_NSReceiver( 5356): locked:falsesecurity:falseisLocked:false
D/SmartNS_NSReceiver( 5356): USB = true hasTethered = false isNSOpening: false
I/PSReceiver( 5356): onReceive:com.htc.intent.action.USB_CONNECT2PC
W/ContextImpl( 5356): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1824 android.content.ContextWrapper.startService:515 and
roid.content.ContextWrapper.startService:515 com.android.settings.PSReceiver.onReceive:36 android.app.ActivityThread.handleReceiver:2712
I/SmartNS_PSService( 5356): onReceive:com.htc.intent.action.USB_CONNECT2PC
W/Settings( 5356): Setting tethering_blocked has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
I/SmartNS_PSService( 5356): defaultType:1
I/SmartNS_PSService( 5356): fail notificaiton:false
D/SmartNS_Utility( 5356): usb_cable_connect = 1
D/SmartNS_Utility( 5356): usb_denied = 0
I/SmartNS_PSService( 5356): usb notificaiton:true
E/WifiStateMachine( 840): WiFiDisplay: getWifidisplayApEnabled=false
I/ActivityManager( 840): Start proc com.htc.calendar for broadcast com.htc.calendar/.ProviderChangeReceiver: pid=5465 uid=10071 gids={50071, 9997, 3003, 1028, 1015, 1023} abi=arme
abi-v7a
I/iu.UploadsManager( 2153): End new media; added: 0, uploading: 0, time: 122 ms
D/MediaProvider( 2375): [resizeThumb] resizeThumb thumbnail bm.width 512, bm.height 512
D/PMS ( 840): releaseWL(bbddc38): PARTIAL_WAKE_LOCK wake:com.google.android.gms/com.google.android.libraries.social.mediamonitor.MediaMonitorIntentService 0x1 null
D/SmartNS_Utility( 5356): usb_cable_connect = 1
I/RemoteViews( 1128): reapply : com.android.settings 1 36
D/SmartNS_Utility( 5356): usb_denied = 0
I/SmartNS_PSService( 5356): usb notificaiton:true
E/WifiStateMachine( 840): WiFiDisplay: getWifidisplayApEnabled=false
E/MediaScannerService( 2375): [onStartCommand] --- Should not be here, redirect request. ----
E/MediaScannerService( 2375): [handleMessage] --- Should not be here, ignore request. ----
D/MediaProvider( 2375): [getAlbumArtOutputUri] invalid thumb, album_id:110
D/SmartNS_Utility( 5356): usb_cable_connect = 1
D/SmartNS_Utility( 5356): usb_denied = 0
I/RemoteViews( 1128): reapply : com.android.settings 1 36
I/SmartNS_PSService( 5356): KeyGuard locked:falseKeyGuard is secured:false
D/SmartNS_PSService( 5356): USB Plugged, Set USBPlugged= truePSenabled:false
I/SmartNS_PSService( 5356): triggerFromIPT_UI:false
W/ContextImpl( 5356): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1459 android.content.ContextWrapper.sendBroadcast:376 c
om.android.settings.PSService.onStartCommand:507 android.app.ActivityThread.handleServiceArgs:3072 android.app.ActivityThread.access$2100:144
D/SmartNS_PSService( 5356): PSEnabled = true
I/Xposed ( 5465): -------------handleLoadPackage: com.htc.calendar
W/ResourcesManager( 5465): Asset path '/system/framework/android.test.runner.jar' does not exist or contains no resources.
I/art ( 840): Explicit concurrent mark sweep GC freed 20756(995KB) AllocSpace objects, 3(48KB) LOS objects, 33% free, 20MB/30MB, paused 1.922ms total 184.556ms
I/RemoteViews( 1128): reapply : com.android.settings 2 36
D/SmartNS_PSService( 5356): NDIS flow run...
D/SmartNS_Utility( 5356): usb_cable_connect = 1
D/SmartNS_Utility( 5356): usb_denied = 0
D/SmartNS_PSService( 5356): Set IP: 192.168.99.249
D/SmartNS_PSService( 5356): Set Mask: 255.255.255.0
D/SmartNS_PSService( 5356): Set Gateway: 192.168.99.26
D/SmartNS_PSService( 5356): Set DNS: 192.168.99.26
D/UsbDeviceManager( 840): [USBNET] bCheckSuppFunc: ipt_enable
D/UsbDeviceManager( 840): [USBNET] isFunctionEnabled: ipt_enable
D/UsbDeviceManager( 840): [USBNET] mUsbnetService.UsbMiscControl_IPT: 1
D/UsbnetService( 840): [USBNET] MiscControl_IPT: 1
D/NetworkManagementService( 840): [USBNET] setIptDhcp
D/NetworkManagementService( 840): [USBNET] Use temp dhcp range
I/Xposed ( 5465): -------------handleInitPackageResources: com.htc.calendar
E/UsbnetService( 840): Exception of setIptDhcp
W/System.err( 840): java.lang.IllegalArgumentException: command '54 tether ipt set 192.168.99.26' failed with '500 54 Unknown tether cmd'
W/System.err( 840): at com.android.server.NetworkManagementService.setIptDhcp(NetworkManagementService.java:1380)
W/System.err( 840): at com.android.server.UsbnetService.setIptDhcp(UsbnetService.java:1253)
W/System.err( 840): at com.android.server.UsbnetService.UsbMiscControl_IPT(UsbnetService.java:1113)
W/System.err( 840): at com.android.server.usb.UsbDeviceManager.isFunctionEnabled(UsbDeviceManager.java:1971)
W/System.err( 840): at com.android.server.usb.UsbService.isFunctionEnabled(UsbService.java:290)
W/System.err( 840): at android.hardware.usb.IUsbManager$Stub.onTransact(IUsbManager.java:340)
W/System.err( 840): at android.os.Binder.execTransact(Binder.java:454)
W/System.err( 840): Caused by: com.android.server.NativeDaemonConnector$NativeDaemonArgumentException: command '54 tether ipt set 192.168.99.26' failed with '500 54 Unknown tether
cmd'
W/System.err( 840): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:421)
W/System.err( 840): at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:360)
W/System.err( 840): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:325)
W/System.err( 840): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:310)
W/System.err( 840): at com.android.server.NetworkManagementService.setIptDhcp(NetworkManagementService.java:1378)
W/System.err( 840): ... 6 more
D/UsbnetService( 840): [USBNET] MiscControl+: 1,usb_ipt
I/dnsmasq ( 5485): started, version 2.51 cachesize 150
I/dnsmasq ( 5485): compile time options: no-IPv6 GNU-getopt no-DBus no-I18N DHCP no-scripts no-TFTP
D/UsbDeviceManager( 840): setCurrentFunctions(ipton) default: false
W/dnsmasq ( 5485): warning: no upstream servers configured
D/UsbDeviceManager( 840): [USBNET] handleMessage: 2; mConnected=true, mConfiguration=true
I/dnsmasq ( 5485): DHCP, IP range 192.168.99.26 -- 192.168.99.26, lease time 1d
D/PMS ( 840): acquireWL(270fd04d): SCREEN_BRIGHT_WAKE_LOCK ON_AFTER_RELEASE WindowManager 0x2000000a 840 1000 WorkSource{10207}
I/dnsmasq ( 5485): DHCP, IP range 192.168.43.2 -- 192.168.43.254, lease time 1h
D/UsbDeviceManager( 840): setEnabledFunctions(ipton; false; mAcmEnabled: false)
E/dnsmasq ( 5485): bad address at /etc/hosts line 2
D/UsbDeviceManager( 840): send Fake intent while setEnabledFunctions
E/dnsmasq ( 5485): bad address at /etc/hosts line 3
D/UsbDeviceManager( 840): sendStickyBroadcast: broadcasting Intent { act=android.hardware.usb.action.USB_STATE flg=0x20000000 (has extras) } connected: true configured: true; SetC
urrentFunctions= mass_storage,adb
E/dnsmasq ( 5485): bad address at /etc/hosts line 4
D/UsbDeviceManager( 840): [USBNET] check if ACM should be enabled
E/dnsmasq ( 5485): bad address at /etc/hosts line 5
D/UsbDeviceManager( 840): Re-send Fake intent due to no setUsbConfig
E/dnsmasq ( 5485): bad address at /etc/hosts line 6
D/UsbDeviceManager( 840): sendStickyBroadcast: broadcasting Intent { act=android.hardware.usb.action.USB_STATE flg=0x20000000 (has extras) } connected: true configured: true; SetC
urrentFunctions= ipton,mtp,adb
D/Tethering( 840): got USB_STATE change: usbConnected=true, mRndisEnabled=false, mUsbTetherRequested=false
D/UsbnetService( 840): BroadcastReceiver::onReceive+
D/UsbnetService( 840): onReceive ACTION_USB_STATE: true,false
D/Tethering( 840): got USB_STATE change: usbConnected=true, mRndisEnabled=false, mUsbTetherRequested=false
D/FindExtension( 5375): FindExtension: before mHardwareRenderer.initialize, mSurface.isValid() = true
I/Adreno-EGL( 5375): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.AF.1.1_RB1.05.00.02.006.020 - CR771817 ()
I/Adreno-EGL( 5375): OpenGL ES Shader Compiler Version: E031.25.03.06
I/Adreno-EGL( 5375): Build Date: 03/04/15 Wed
I/Adreno-EGL( 5375): Local Branch:
I/Adreno-EGL( 5375): Remote Branch: refs/tags/AU_LINUX_ANDROID_LA.AF.1.1_RB1.05.00.02.006.020
I/Adreno-EGL( 5375): Local Patches: NONE
I/Adreno-EGL( 5375): Reconstruct Branch: NOTHING
E/MediaScannerServiceEx( 2375): [getStorageMaskIdFromPath] path is null
D/MediaScannerServiceEx( 2375): [ServiceHandler][handleMessage] , action: null, Id: 0, path: /storage/emulated/0
D/NetworkManagementService( 840): [USBNET] startIptMode 2
D:\> |
rebooted again to compare logs D/SmartNS_Utility( 2736): usb_cable_connect = 1
D/SmartNS_Utility( 2736): usb_denied = 0
D/SmartNS_PSService( 2736): Set IP: 192.168.99.239
D/SmartNS_PSService( 2736): Set Mask: 255.255.255.0
D/SmartNS_PSService( 2736): Set Gateway: 192.168.99.70
D/SmartNS_PSService( 2736): Set DNS: 192.168.99.70
D/UsbDeviceManager( 833): [USBNET] bCheckSuppFunc: ipt_enable
D/UsbDeviceManager( 833): [USBNET] isFunctionEnabled: ipt_enable
D/UsbnetService( 833): [USBNET] MiscControl_IPT: 1
D/UsbDeviceManager( 833): [USBNET] mUsbnetService.UsbMiscControl_IPT: 1
D/NetworkManagementService( 833): [USBNET] setIptDhcp
D/NetworkManagementService( 833): [USBNET] Use temp dhcp range
E/UsbnetService( 833): Exception of setIptDhcp
W/System.err( 833): java.lang.IllegalArgumentException: command '55 tether ipt set 192.168.99.70' failed with '500 55 Unknown tether cmd'
W/System.err( 833): at com.android.server.NetworkManagementService.setIptDhcp(NetworkManagementService.java:1380)
W/System.err( 833): at com.android.server.UsbnetService.setIptDhcp(UsbnetService.java:1253)
W/System.err( 833): at com.android.server.UsbnetService.UsbMiscControl_IPT(UsbnetService.java:1113)
W/System.err( 833): at com.android.server.usb.UsbDeviceManager.isFunctionEnabled(UsbDeviceManager.java:1971)
W/System.err( 833): at com.android.server.usb.UsbService.isFunctionEnabled(UsbService.java:290)
W/System.err( 833): at android.hardware.usb.IUsbManager$Stub.onTransact(IUsbManager.java:340)
W/System.err( 833): at android.os.Binder.execTransact(Binder.java:454)
W/System.err( 833): Caused by: com.android.server.NativeDaemonConnector$NativeDaemonArgumentException: command '55 tether ipt set 192.168.99.70' failed with '500 55 Unknown tether
cmd'
W/System.err( 833): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:421)
W/System.err( 833): at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:360)
W/System.err( 833): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:325)
W/System.err( 833): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:310)
D/UsbDeviceManager( 833): setCurrentFunctions(ipton) default: false
W/System.err( 833): at com.android.server.NetworkManagementService.setIptDhcp(NetworkManagementService.java:1378)
W/System.err( 833): ... 6 more
D/UsbDeviceManager( 833): [USBNET] handleMessage: 2; mConnected=true, mConfiguration=true
D/UsbnetService( 833): [USBNET] MiscControl+: 1,usb_ipt
D/UsbDeviceManager( 833): setEnabledFunctions(ipton; false; mAcmEnabled: false)
D/UsbDeviceManager( 833): send Fake intent while setEnabledFunctions
D/NetworkManagementService( 833): [USBNET] startIptMode 2
I/art ( 4556): Explicit concurrent mark sweep GC freed 4329(462KB) AllocSpace objects, 0(0B) LOS objects, 51% free, 1949KB/3MB, paused 457us total 84.816ms
D/UsbDeviceManager( 833): sendStickyBroadcast: broadcasting Intent { act=android.hardware.usb.action.USB_STATE flg=0x20000000 (has extras) } connected: true configured: true; SetC
urrentFunctions= mass_storage,adb
I/Xposed ( 6155): -------------handleLoadPackage: eu.chainfire.supersu
I/dnsmasq ( 6181): started, version 2.51 cachesize 150
I/dnsmasq ( 6181): compile time options: no-IPv6 GNU-getopt no-DBus no-I18N DHCP no-scripts no-TFTP
W/dnsmasq ( 6181): warning: no upstream servers configured
I/dnsmasq ( 6181): DHCP, IP range 192.168.99.70 -- 192.168.99.70, lease time 1d
I/dnsmasq ( 6181): DHCP, IP range 192.168.43.2 -- 192.168.43.254, lease time 1h
E/dnsmasq ( 6181): bad address at /etc/hosts line 2
E/dnsmasq ( 6181): bad address at /etc/hosts line 3
E/dnsmasq ( 6181): bad address at /etc/hosts line 4
E/dnsmasq ( 6181): bad address at /etc/hosts line 5
E/dnsmasq ( 6181): bad address at /etc/hosts line 6
D:\> |
it is strange why I have 2 logcat processes after phone restart |
The same happen not to me only. I asked my users provide log file and their log files shows errors only from initZygote. |
Are those users on the same (or a similar) ROM? If so, maybe the logcat binary is indeed broken on that ROM. Could you send it to me so I can test this myself? Maybe it would also be interesting to do the following:
And then compare the logs to find out what happens around the crash. Maybe something is logged about why logcat ends. |
I've also a simliar problem: there is no log from the Xposed Installer application. The file /data/data/de.robv.android.xposed.installer/log/error.log is empty, like error.log.old (same directory). There aren't other files here. I'm running CM 12 on Galaxy S4, Xposed works great, without problems. |
Changed phone and got the same problem. Previous was HTC One M7 Dual SIM, |
the problem is following adb does not show any device connected until boot complete broadcast happen.
|
I can reproduce this. CM12 nightly on a jfltevzw. The Xposed log will show the logcat output during boot (the Loading modules from... stuff) but after the boot no further output is added. |
Interestingly, and this may be related, the boot halts if I call Things seem to boot normally and the log works:
And the last message I get from Zygote is the "end preload." I get a few other driver-related messages afterwards but then everything just stops. The device does not reboot and the boot animation continues until the screen goes black but remains on. |
@kmark Do you have the same issue that a manually started logcat stops? If yes, could you try this please? #34 (comment) As for the halting boot: Do you by any chance start a thread in |
@rovo89 , it does not stop. behavior is following.
the same if disconnect USB, restart phone and during boot plug usb - adb does not see any devices until boot complete broadcast is received and USB reconnected. ps shows two automatically started logcat processes. @kmark , please confirm if the same happens to you also. |
Wait, you wrote:
Is this (still) the case or not? It's normal that adb isn't available during early boot, but I don't see how that should be related to this issue. If the |
@rovo89 , yes.. that was for with HTC One M7 dual sim, Now I have HTC One M8 dual sim. the main problem is that phone has two logcat processes started by the system and Xposed parses from earlier process while main garbage in the second one. |
shell@htc_m8dug:/ $ ps |grep logcat
ps |grep logcat
root 557 544 1380 808 ffffffff 00000000 S logcat
root 755 457 1384 820 ffffffff 00000000 S logcat
root 759 755 29656 1652 ffffffff 00000000 S xposed_logcat
shell@htc_m8dug:/ $ |
So? Your
Sorry, I don't understand what you're trying to say. How do you know which process Xposed parses from? And what's "main garbage"? The existence of two logcat processes doesn't necessarily mean anything. |
I do not have two logcat processes. I did a soft reboot to see if another would appear but it would not. The PIDs of both of the below did change suggesting they restarted properly.
logcat does not seem to crash either. I did a quick check and
If you don't do output redirection (the
Depending on your ROM things will be different but it should be pretty obvious you're capturing the initial boot. It sounds like, at least for you, adb isn't able to reconnect to your device unless you physically unplug the device from your computer? adb is able to reconnect just fine for me.
That would be it, thanks. |
found this in kernel.log after renaming, no more entries in /devlog/kernel_log 05-07 23:51:53 <6>[ 5.827965] c0 393 type=1400 audit(1431021113.333:7): avc: denied { read } for pid=455 comm="zygote" name="input" dev="tmpfs" ino=7238 scontext=u:r:zygote:s0 tcontext=u:object_r:input_device:s0 tclass=dir
05-07 23:51:53 <6>[ 5.829247] c0 142 [USBDIAG] diagchar_ioctl:kworker/u:3(parent:kthreadd): tgid=142, iocmd=0, ioarg=-296667904
05-07 23:51:53 <6>[ 5.829313] c0 142 [USBDIAG] diagchar_ioctl:kworker/u:3(parent:kthreadd): tgid=142, iocmd=0, ioarg=-296667904
05-07 23:51:53 <6>[ 5.831083] c0 393 type=1400 audit(1431021113.333:8): avc: denied { syslog } for pid=764 comm="logcat" capability=34 scontext=u:r:untrusted_app:s0 tcontext=u:r:untrusted_app:s0 tclass=capability2
05-07 23:51:53 <6>[ 5.831282] c0 393 type=1400 audit(1431021113.333:9): avc: denied { syslog } for pid=764 comm="logcat" capability=34 scontext=u:r:untrusted_app:s0 tcontext=u:r:untrusted_app:s0 tclass=capability2 |
Yes, I did not output to a file so I could watch the new data roll in. |
OK, so maybe it's a problem caused by SELinux? Although the description for "syslog" is "Configure kernel syslog subsystem", and access to the log daemon is configured differently in the policy files... And it would also mean that HTC and any other affected ROM enables SELinux later. |
@flar2, could you please confirm if you have this kind of issue with M8? |
Just wanted to add that this bug, or at least my variant of it, continues into Android 5.1 (latest CM nightlies) and the most recent unofficial Xposed 5.1 Alpha 4 (20150514). |
Been doing some work about this since it's reproducible on every Samsung Touchwiz devices. I think we should add some kinds of "respawn" code when logcat pipe dies. |
Update - No it's not dying. It's not elevated to root. This should be enough info for fixing the issue, @rovo89. |
Here's the built binary and its source code, which I workarounded the issue. (If you are using SuperSU, you need to enable "Enable su on boot" option) |
I'm pretty sure that the daemon is executed as root. The output of I would like to avoid the uncertainty of the various su versions, dependency on their configuration etc.... |
This is running on my custom kernel, which has SELinux force set to permissive. So it's not "denied". Maybe some source parts of logging functionality checks for some context and if its valid..? The output of not patched Xposed log seems very similar to what we can get from '$ logcat' in a ordinary, non-root terminal app. Or we can go ask Chainfire for some help.. :) |
Actually I tried your binary and have the same problem. |
I didn't try his binary, but my built binary with his solution is working great on my GNote4. |
@arter97 Could you please try it without |
Mmmm will try soon. On Sun, Jun 7, 2015 at 6:05 PM, rovo89 notifications@github.com wrote:
|
Additionally (?), it could help to change the group ID of the process to AID_LOG (1007) before dropping the capabilities. That what |
It doesn't seem to log on both cases:
But changing the group ID to AID_LOG with xposed::dropCapabilities(CAP_SYSLOG) seems to work fine. |
Thanks. After quite some research, I found out that capabilities are not kept after Could you try if my patch works as well? And if it works fine even without changing the group ID? |
Thanks, your patch is working fine on my Note4. |
Can anybody give binaries to test? |
@wanam , Thanks. replaced, but phone won't boot anymore logcat is here |
got it working. |
And? Is it fixed for you? Btw, build instructions and scripts are here: https://github.com/rovo89/XposedTools |
@rovo89 , looks yes. A lot of garbage in logfile now )) need to double check before confirming. |
@rovo89 , thanks!!!! It is working now! Shall I close issue or you will do it? |
I closed it by merging the commit into the master branch. ;) |
I do not see any debug or exception log from Xposed under application menu except logs coming from initZygote.
But this log can be found in logcat. Unfortunately logcat contains only last 10k lines, so I'm not able see any exceptions or debug information after phone full restart.
how to solve this issue?
The text was updated successfully, but these errors were encountered: