shmoopi / ios-system-services Goto Github PK
View Code? Open in Web Editor NEWiOS System Services is a class to gather all available information about a device.
Home Page: http://www.shmoopi.net/
License: MIT License
iOS System Services is a class to gather all available information about a device.
Home Page: http://www.shmoopi.net/
License: MIT License
I try to detect Jailbreak on iOS 8.3 simulator, and result is jail broken.
I debug and see this function return wrong result:
+ (int)systemCheck
+ (int)fstabCheck
want swift packet manager
please accept my pull request
when I drag the file named System Services into my project instead of pod it,it build failed,it tells that UIInterfaceOrientation is not the expected type,and with many errors ,but the demo runs well, little confused.Can you tell me why? Maybe I should use the pod?
Use isStepCountingAvailable
to check if motion coprocessor supports step counting.
used memory = wired +active + inactive + purgeable memory
why do not equal ram 1024 ?
SSJailbreakCheck.m
line 268
system(0)
'system' is unavailable: not available on iOS
fix this issue..
In the latest pod version not able to get iPhone XR and latest new device...
I've checked the source code in this repo was found iPhone XR and latest model:
https://github.com/Shmoopi/iOS-System-Services/blob/master/System%20Services/Utilities/SSHardwareInfo.m
But in pod install not able to get latest model, please advice.
pod 'SystemServices', '~> 2.0.1'
else if ([deviceType isEqualToString:@"iPhone10,6"])
newDeviceType = @"iPhone X (GSM/LTE)";
// iPods
else if ([deviceType isEqualToString:@"iPod1,1"])
newDeviceType = @"iPod Touch 1G";
After adding this library to my project, I am getting this error.
I have tried all possible ways to debug it, but in-vain. When I remove the library, project builds fine, thus making sure that I have neither imported any .m file nor any other such duplicate linking.
I am in the middle of a very important project and stuck at dead end. Can you please help me in that as soon as possible.
If you have the solution , please tell me...Thanks very much...
when I tried to build the code against iOS 11 sdk, xcode 9 beta 6, there is an error "'system' is unavailable: not available on iOS". Is there any function that can be replaced with 'system'?
Can this be used in production, aka an app in the App Store?
Interested in the Carrier info. I saw you use the CoreTelephony modules.. Pretty sure I read those are private.
// Shouldn't get this far, return jailbroken
return NOTJAIL;
In reference to the code found here , in SSJailbreakCheck.m line 183, the comment and return value seem to contradict each other. Am I misreading the meaning of the comment, or is the return value wrong? As I'm reading the comment as in "shouldn't get this far, return jailbroken", yet it is returning the value of NOTJAIL. Thank you for any clarification.
I don't suppose anyone has found a way to get temperature?
(cpu or even just battery)
It seems to be totally impossible for some yearts now since it was blocked in IOKit :/
Any hope?
NSString *Version = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey];
well ,the version is build-version code!not version code!
it should be
NSString *Version = [[[NSBundle mainBundle] infoDictionary]objectForKey:@"CFBundleShortVersionString"];
How to get deviceSignature in new version?
Like [[SystemServices sharedServices] deviceSignature]
I'm not sure if my observations are correct (and I have currently no way of testing it), but: Can the UDID implementation really be a replacement for the (now deprecated and removed) device UDID? With iOS7 it always returns the same WIFI MAC for all devices. I'm not sure about the Cell MAC, but then some devices do not have a cell part. As far as I can see all other parts of the UDID replacement are not fully unique between devices.
Looking forward to your comments on this.
We can not get process information via sysctl on iOS 9. Can someone try private API?
I am actually trying to find a way in which an app can get the mac address to make an indoor GPS (I mean if (phone connected to (mac address) then u are located in room 212, etc. but I notice that your app has the same problem I am having, the MAC address is 02:00:00:00 and I have been reading a lot about this problem with Apple new update, and I can't figure out a way to get it.
If you can help me with that I will appreciate it. If you get the fix just push a new update on this Git Repository and I will check it.
Best Regards,
Gabriel Posada
I find in SSNetworkInfo.m used the API inet_ntoa. Apple requires app should support Ipv6-only after 1/6/2016.
I assume, by looking at the code, that the numbers assigned in the enum are not important and I can redefine these numbers (randomly)? (enum JailbrokenChecks)
Same with the #define NOTJAIL
You can integrate my Framework BIASystemKit in your pod, if you want. (Read Device Name)
https://github.com/StefaniOSApps/BIASystemKit
Is IOS-System-Services app-store safe?
I wanted to bring to your attention an alarming security issue with your jailbreak checks. I trust you are aware of "xCon," a downright evil patch available for jailbroken devices that actively patches over code intended to detect a compromised device. By making these trade secrets of jailbreak detection publicly available on your GitHub, you are providing the dastardly, inhumane, thieving developers of xCon with very valuable material they can use to make xCon even more robust.
On a positive note, however, this makes the process of reverse engineering apps to find new ways to patch the operating system less fun for these awful fools, causing them to enjoy life less and increasing the potential for depression, which may distract them from the opportunity to help their fellow evil-doers.
I hope you'll reconsider making this information publicly available. I can only hope that the irresponsible, immoral, anarchist developers of xCon haven't yet discovered this repository.
SSJailbreakCheck.m:364:12: Potential leak of memory pointed to by 'process'
@Shmoopi I faced the issue. I have installed pod. When I try to run on simulator, it works. But when I try to run app on iPhone device, it fails saying <net/route.h> file not found in SSNetworkInfo.m file. I tried adding /usr/include/net to User Header Search Path. But it didn't work.
I use iPod 5 , RAM is 512 MB
When I call function:
// Free Memory
if(kernReturn != KERN_SUCCESS) {
return -1;
}
// Check if the user wants it in percent
if (inPercent) {
// Percent
// Convert to doubles
double FM = [self totalMemory];
double AM = ((vm_page_size * vmStats.free_count) / 1024.0) / 1024.0;
// Get the percent
TotalMemory = (AM * 100) / FM;
} else {
// Not in percent
// Total Memory (formatted)
TotalMemory = ((vm_page_size * vmStats.free_count) / 1024.0) / 1024.0;
}
// Check to make sure it's valid
if (TotalMemory <= 0) {
// Error, invalid memory value
return -1;
}
// Completed Successfully
return TotalMemory;
}
@catch (NSException *exception) {
// Error
return -1;
}
in iOS-System-Services/System Services/Utilities/SSMemoryInfo.m file
free memory in result [TotalMemory] is not equal with free memory in Xcode.
For example, free memory in Xcode is 342 MB, but free memory in result function above is only 5.0 MB?
Why?
Please explain for me.
Thank you!
Please support carthage.
Hello,
I just discovered iOS System Services and it's awesome!! Do you think it would be easy to add an extra fonction in SSNetworkInfo to get the router IP address?
Thanks!!
please update SSHardwareInfo, systemDeviceTypeFormatted
else if ([deviceType isEqualToString:@"iPhone10,5"])
newDeviceType = @"iPhone 8 Plus (GSM/LTE)";
else if ([deviceType isEqualToString:@"iPhone10,3"])
newDeviceType = @"iPhone X (CDMA+GSM/LTE)";
else if ([deviceType isEqualToString:@"iPhone10,6"])
newDeviceType = @"iPhone X (GSM/LTE)";
// iPods
else if ([deviceType isEqualToString:@"iPod1,1"])
newDeviceType = @"iPod Touch 1G";
else if ([deviceType isEqualToString:@"iPod2,1"])
newDeviceType = @"iPod Touch 2G";
Hi @Shmoopi , Can you please help in this issue?
I connected to USB from MacBook and headphones to iPhone 6 contains iOS 12.4.7 version.
I also tested this code with iPhone 8 contains iOS 13.5.1 versions.
always getting 0 for number accessories connected.
EAAccessoryManager *accessoryManager = [EAAccessoryManager sharedAccessoryManager];
// Get the number of accessories connected
int numberOfAccessoriesConnected = (int)[accessoryManager.connectedAccessories count];
// Check if there are any connected
if (numberOfAccessoriesConnected > 0) {
// There are accessories connected
return true;
} else {
// There are no accessories connected
return false;
}
in SSAccessoryInfo.m file
I have to do like:
((SystemServices *)[SystemServices sharedServices]).allSystemInformation
Is this intentionally design?
Could you all adopt a formal license so that third-party devs can use this please, if that's the intention? I intend for my app to get all of this data and this lib is very helpful but I don't want to get into any legal trouble. Thanks!
Thank you :)
Hey guys I'm trying to install this great library via Cocoapods and I'm getting a fatal error that says, "fatal: Remote branch 1.0.0 not found in upstream origin" below is the full log
Could yo be so kind to tell me if there is a work around for this issues?
Thanks in advance!
Installing SystemServices (1.0.0)
[!] Error installing SystemServices
[!] /usr/bin/git clone https://github.com/Shmoopi/iOS-System-Services.git /var/folders/r2/g26_5z3x19j23dv81rmpyycc0000gn/T/d20151201-51770-jtmznl --single-branch --depth 1 --branch 1.0.0
Cloning into '/var/folders/r2/g26_5z3x19j23dv81rmpyycc0000gn/T/d20151201-51770-jtmznl'...
warning: Could not find remote branch 1.0.0 to clone.
fatal: Remote branch 1.0.0 not found in upstream origin
With iOS 10.2 , mac address retrieval has been blocked. Is there any way to overcome this?
All the best;
When build in the simulator is successful but when I run in iPhone device fail:
The file route.h not found in your project.
System Services/Utilities/SystemServicesConstants.h:44:10: 'route.h' file not found
When build this source code in Xcode5 have warnings:
Hello,there is a error when i update to xcode9, below:
SSJailbreakCheck.m:268:13: error: 'system' is unavailable: not available on iOS
if (system(0)) {
^
Showing Recent Issues
/Pods/SystemServices/System Services/Utilities/SSJailbreakCheck.m:268:13: 'system' is unavailable: not available on iOS
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.