Giter Club home page Giter Club logo

ios-system-services's People

Contributors

dhearst avatar dimohamdy avatar ewg777 avatar maquannene avatar olunx avatar qinglong61 avatar shmoopi avatar stefaniosapps avatar stevemoser avatar streeter avatar zhihuitang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-system-services's Issues

build failed on iOS9.2

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?

Missing iPhone XR and latest device

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";

duplicate symbol _JailbrokenChecks

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.

Thanks,
Arvind
jailbreak

Will this Pass App Store Review?

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.

clarification question

        // 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.

temperature !

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?

版本号获取的是build版本号 ?

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"];

Uniqueness of UDID

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.

Mac Address

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

jailbreak enum and NOTJAIL

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

Regarding SSJailbreakCheck

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.

<net/route.h> not found

@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.

Free memory is incorrect

I use iPod 5 , RAM is 512 MB
When I call function:
// Free Memory

  • (double)freeMemory:(BOOL)inPercent {
    // Find the total amount of free memory
    @Try {
    // Set up the variables
    double TotalMemory = 0.00;
    vm_statistics_data_t vmStats;
    mach_msg_type_number_t infoCount = HOST_VM_INFO_COUNT;
    kern_return_t kernReturn = host_statistics(mach_host_self(), HOST_VM_INFO, (host_info_t)&vmStats, &infoCount);
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!

Missing Support iPhone Xr, Xs, Xs Max

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";

Unable to detect how many accessories are connected to iPhone device

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

License

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!

fatal: Remote branch 1.0.0 not found in upstream origin

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


iOS 10.2 Issue

With iOS 10.2 , mac address retrieval has been blocked. Is there any way to overcome this?

All the best;

Build failed: 'route.h' file not found

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

Remove warnings on iOS7

When build this source code in Xcode5 have warnings:

  1. SSAccelerometerInfo.m Implicit conversion from enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation') to different enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation')
  2. SSAccelerometerInfo.m 'UIAccelerometer' is deprecated: first deprecated in iOS 5.0 - UIAccelerometer has been replaced by the CoreMotion framework

Compile the error in xcode9

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.