Bug 7409 - Calls to ps should use system ps
Summary: Calls to ps should use system ps
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: unspecified
Hardware: PC Windows
: --- minor
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2012-09-23 21:37 UTC by Ben Keane
Modified: 2017-06-28 19:55 UTC (History)
5 users (show)

Tags: bb clb
Is this bug a regression?: ---
Last known good build:


Attachments
Screenshot of error. (148.60 KB, image/png)
2012-09-23 21:37 UTC, Ben Keane
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Ben Keane 2012-09-23 21:37:46 UTC
Created attachment 2604 [details]
Screenshot of error.

I noticed this when upgrading to 4.2.5 - I didn't see this issue when using the previous version.

I have busybox installed onto my Android System (which is using used in an Embedded Product - not as a phone) and if the busybox `ps` was in the PATH before the Android /system/bin/ps I could get an error while deploying. I worked out that it was caused by the 'incorrect' ps being called.

I was hoping you could change the call to `ps` to include the path /system/bin/ps so people with a modified Android system won't have problems if they choose to modify their Android system?

I have changed the PATH back to the default so Mono4Android finds the Android ps first instead of the busybox one.

Thanks,

Ben
Comment 1 Mikayla Hutchinson [MSFT] 2012-09-24 13:04:56 UTC
FWIW, we already added parsing for that particular busybox output format (there are several!) but it didn't make it into 4.2.5.

It would make sense to use the system ps, thought it might break in ROMs where packagers have removed "unnecessary" files after installing busybox. So we'd need some kind of check and fallback.
Comment 2 Cody Beyer (MSFT) 2017-06-28 19:55:53 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Android. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.