Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: get only user apps in file-movement for performance aspect, add comments #1014

Merged
merged 4 commits into from
Jul 26, 2019

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa
Copy link
Member Author

cc @umutuzgur
I just created a PR.

I checked file-management, too.
The target apps should have UIFileSharingEnabled. So far, I could not find the attribute in system app.
So, we probably can ignore "Sytem" for file-management method.
(I just noted it)

@KazuCocoa
Copy link
Member Author

https://github.com/appium/appium-ios-device/pull/38/files is pretty good.
Will leave only comment in this PR.

*/
async function getAvailableBundleIds (udid) {
const service = await services.startInstallationProxyService(udid);
try {
const applications = await service.listApplications();
const applications = await service.listApplications({applicationType: 'User'});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't find UIFileSharingEnabled in system apps so far.
We can ignore it, for now, to improve find app performance.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea

@KazuCocoa KazuCocoa changed the title Show System installed app Add comments, get only user apps in file-movement for performance aspect Jul 26, 2019
@KazuCocoa KazuCocoa changed the title Add comments, get only user apps in file-movement for performance aspect feat: get only user apps in file-movement for performance aspect, add comments Jul 26, 2019
* "CFBundleInfoDictionaryVersion":"6.0",
* "Entitlements":
* {"com.apple.frontboard.delete-application-snapshots":true,..
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can actually speed this part up by using a different API. We can directly ask the phone if a certain bundle id is present. I will try to implement that today

@KazuCocoa KazuCocoa merged commit 203a458 into appium:master Jul 26, 2019
@KazuCocoa KazuCocoa deleted the km/show-system-app-too branch July 26, 2019 23:05
khanayan123 pushed a commit to khanayan123/appium-xcuitest-driver that referenced this pull request May 10, 2021
… comments (appium#1014)

* get only user app in file management since UIFileSharingEnabled probably only has user app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to launch pre-installed (system) App on real device
2 participants