JohnCoatesOSS / Limitless

Fork of Cydia. Different name to avoid confusion. Goal: Refactor Cydia to make contributions easier. Backport features to Cydia's coding style so they can be submitted for consideration.
GNU General Public License v3.0
155 stars 28 forks source link

Merge in all of Saurik's commits up until now #110

Closed JohnCoates closed 6 years ago

JohnCoates commented 6 years ago

This is going to be fun.

JohnCoates commented 6 years ago

I tried a merge but there were so many conflicts that I gave up. This will be done iteratively

JohnCoates commented 6 years ago

Last commit by saurik in this fork is this one from October 22nd, 2015: https://github.com/JohnCoatesOSS/Limitless/commit/0193c0d3e1633676d73477d3fb2c2be319e9da1b

First commit I'm looking at for this merge is from March 9th, 2016: https://github.com/JohnCoatesOSS/Limitless/commit/af7a541a90f647596ccf1309d0d77925b8c5f742

cydo has been renamed to runAsSuperuser

I've added an official property to the Paths class that has the application binary path. A check should be added to the future, but Cydia uses a private API for it and I'm avoiding those for resiliency.

commit: https://github.com/JohnCoatesOSS/Limitless/commit/b697593b75b40e1ab0ae82884706d27170fa32de

JohnCoates commented 6 years ago

Avoid system headers to compile using macOS 10.12. - Nov 2, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/e67b009f8f8c7b64e3489eedf40b75056fc45a08

Skipping this one, already compiling fine.

JohnCoates commented 6 years ago

Fix a typo: verify the objects found, not the set. - Nov 19, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/e0c35524d9e2f829122142790bc6d1ab0c0a7afb

Skipping this one. Code is not present in runAsSuperuser.

JohnCoates commented 6 years ago

Fix LogBrowser logic (as it was only for testing). - Dec 26, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/c66799b9a7cc38772cdda9873bee8ca850173e88

I had fixed the NSLog issue, but besides that this brings in two better ways of doing something.

https://github.com/JohnCoatesOSS/Limitless/commit/a9a9efe440093870ee652de1adb5e3c6825197f0

JohnCoates commented 6 years ago

Move to CoreTelephony's _CTServerConnectionCreate. - Dec 27, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/019bd407df21b38dc22972771fc8557e45a844d3

What does this do? It allows javascript to get cellular information? I'm skipping it because it uses private APIs and I don't understand the purpose of this.

nullpixel commented 6 years ago

:+1: this will help electra

JohnCoates commented 6 years ago

Compile Cydia to arm64 by linking with APT 1.4~b1. - Dec 28, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/0209cce51675512f80e740ce45d568ed6d0029c0

I'm not sure why there's different code between 64 bit and 32 bit? Does APT 32 bit remain on an older version? https://github.com/JohnCoatesOSS/Limitless/commit/0209cce51675512f80e740ce45d568ed6d0029c0#diff-c3a7a7a4b6d0f978dba4976db94969eaR2623

Not switching to fdistream since I already switched that portion of the code to FILE

Not sure what the point of main_store is: https://github.com/JohnCoatesOSS/Limitless/commit/0209cce51675512f80e740ce45d568ed6d0029c0#diff-c3a7a7a4b6d0f978dba4976db94969eaR10222

I suppose a store method has to be included: https://github.com/JohnCoatesOSS/Limitless/commit/0209cce51675512f80e740ce45d568ed6d0029c0#diff-c3a7a7a4b6d0f978dba4976db94969eaR10580

commit: https://github.com/JohnCoatesOSS/Limitless/commit/c93a5913f8729f9b85813b7de0ffaba483cbebd3

nullpixel commented 6 years ago

For apt, see https://git.nito.tv/nitotv/apt

JohnCoates commented 6 years ago

Seriously: not a single person actually helped :/. - Dec 30, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/8bd55062b41bb5598bba59417a90b57e720d3e9b

Weird commit message. I had asked Saurik how I could contribute to Cydia and he told me about this issue. So I fixed it and sent him the commits. He promised it'd get integrated.

citations: https://github.com/JohnCoatesOSS/cydia/tree/bugfix/displayIdentifiers https://github.com/JohnCoatesOSS/cydia/commit/b50fe87104ff3fa675dd03acc82201525e39c8f4 https://github.com/JohnCoatesOSS/cydia/commit/81d3a7b223e87930e77c5acb8e49bd84f95f25f0

commit: https://github.com/JohnCoatesOSS/Limitless/commit/8bd55062b41bb5598bba59417a90b57e720d3e9b

JohnCoates commented 6 years ago

@nullpixel thanks, coolstar gave me a heads up about that repo. Getting APT working stalled the merge, but finally got everything integrated with https://github.com/JohnCoatesOSS/Limitless/commit/c93a5913f8729f9b85813b7de0ffaba483cbebd3

JohnCoates commented 6 years ago

Apparently, setlocale never actually did anything. - Dec 30, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/6220fd7da99b2edf6b1c6e98e65b45216a32e7af

Changed some of the code to Objective-C.

commit:https://github.com/JohnCoatesOSS/Limitless/commit/bcc182883adab924a56106d8dc59e2a499a8aaaa

JohnCoates commented 6 years ago

Further work to improve language configuration :/. - Dec 30, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/f886c114ebd1027618550e23b2517876a1c20ef6

commit: https://github.com/JohnCoatesOSS/Limitless/commit/f202b7438d19185b4749ba6b032a5bcadaa50b2f

JohnCoates commented 6 years ago

Provide more guarantees against merge catastrophe. - Dec 31, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/fec09a82a82c55ef19723940d96cb15e15fc4ed2

commit: https://github.com/JohnCoatesOSS/Limitless/commit/7c9a8a0d835b54373cabbd45364185ceed77af00

JohnCoates commented 6 years ago

Fix APT issue where IMS-Hit leads to a full wedge. - Dec 31, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/6f03b6ca6f07c5a032c8e76244c7591f981654b4

skipped

JohnCoates commented 6 years ago

strip was enough for Cydia, and this broke bins/*. - Dec 31, 2016 https://github.com/JohnCoatesOSS/Limitless/commit/bcf098f9b52d0ebda7477466a2d21ebc2a9fdc88

skipped

JohnCoates commented 6 years ago

APT incorrectly overlaps http and https origin :/. - Jan 27, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/34903f15854bf6a58663da0cc991ac3aa45bba2b

commit: https://github.com/JohnCoatesOSS/Limitless/commit/b09adc63993d6245ad7b683fc78baf94d267fc8b

JohnCoates commented 6 years ago

Fix case-insensitive lookup of package Depends :/. - Jan 27, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/109355f19df80de62ab05eec18df8ae15ad423ec

skipped

JohnCoates commented 6 years ago

Try to protect firmware.sh against reentrant bugs. - Jan 29, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/ceffc5bc20c1ab16c4d02e1d3ae8fcfb65557797

commit: https://github.com/JohnCoatesOSS/Limitless/commit/4e1ced825a63d00f79638596f72231630b304a3c

JohnCoates commented 6 years ago

Cytore values need to be _packed (I got lucky :D). - Jan 29, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/1fe922cd8b76cffdb15eac07f6e686449e1b1469

commit: https://github.com/JohnCoatesOSS/Limitless/commit/80f6d9c665532c729cebfd12b04e2b16fdb4abbd

JohnCoates commented 6 years ago

If Cytore fails to allocate an empty file, unlink. - Jan 29, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/7a6e17cff79a3a007a2519bdb676f1be8e937624

commit: https://github.com/JohnCoatesOSS/Limitless/commit/f22e2ab45539bcc56f8f715547d632ed4fb577f5

JohnCoates commented 6 years ago

Rewrite error handling in APT to make it saner :/. - Jan 30, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/e5f70bc138d8a794fffa6e33801dba160189001d

skipped

JohnCoates commented 6 years ago

Don't strip the binary when releasing beta builds. - Jan 30, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/01c1b94c09355e8ac95086b783a8b141f3d7e4f8

skipped

JohnCoates commented 6 years ago

If Cytore failed to save the first block, restart. - Jan 30, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/2f722d4cc3bf949960a3774e2c4d79df1afded95

commit:https://github.com/JohnCoatesOSS/Limitless/commit/beccd4097dc03f78caafcf964b7ed3f6729aaa5c

JohnCoates commented 6 years ago

Let's try to avoid making Guillem Jover sad today. - Jan 30, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/069ee7886cc06b3db4a8d67f2a03a2f4e8d30fa6

commit: https://github.com/JohnCoatesOSS/Limitless/commit/d40489e4879fd8fa73972190886291fa4236ecfc

JohnCoates commented 6 years ago

Removing a repository was just kind of locking up. - Jan 30, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/6406cc326ee8a4e72afe375db67c6a10c784afeb

commit: https://github.com/JohnCoatesOSS/Limitless/commit/8e25925cdc1c675887e917c6d49adbaf38976234

JohnCoates commented 6 years ago

iOS 10.2 claims "Not privileged to stop service.". - Jan 30, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/5652087ef8eac68233426e3675bf26b0c1585d55

Skipped: We're reloading SpringBoard in a better way already.

JohnCoates commented 6 years ago

Do not pass -Wl,-segalign,4000 to the arm64 build. - Jan 31, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/ae975e88affdfae74671885ad2e5af168d98dd95

Skipped: We already don't.

JohnCoates commented 6 years ago

Finally found the crazy APT memory corruption bug. - Jan 31, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/ae3e7be7d3dddffa0f403482aa1240dbe68c1ddb

Skipped: Not using submodules.

JohnCoates commented 6 years ago

Fix a crash in NewTag and remove "I am shit" flag. - Jan 31, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/a07675e1d9fe1344f04b9d436c8de174d086c480

Skipped: Not using submodules.

JohnCoates commented 6 years ago

For progress JS on iOS 10 to solve race and flash. - Feb 1, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/f9c8848fc9d0b954980f2dbad9d338ded4ad2a1b

commit: 9c5fc09ef8544a4a66e52d67057bc52f0c2b2289

JohnCoates commented 6 years ago

Slim result of NewTag and correct cache iterators. - Feb 2, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/5ecd43c35e8a5bb666624af9ab6279ccc78c7cf2

Skipped: Not using submodules.

JohnCoates commented 6 years ago

firmware.sh has no assumed "current" directory :/. - Feb 2, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/b1b79d408f3cda3965b8d9087c334f26b7603208

commit: 5eda79be631937bc1302f4b83c9f724eae77f565

JohnCoates commented 6 years ago

The default permission from mktemp is only 600 :/. - Feb 2, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/02ccb263caa97381f1eaf9ed305ff57fd7b69734

Skipped

JohnCoates commented 6 years ago

Users do not actually have stat (which is stupid). - Feb 2, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/8c346d337c4b10013d1c81c39e4f3d526e9d3049

commit: c28953860e6e2775e1c2b56fb2ee08350d8ff0ab

JohnCoates commented 6 years ago

This check was obviously backwards (OMG I'm dumb). - Feb 3, 2017 ed3caba999d35cd2d60025fa24ea2e6e7087b86b

commit: f90c34e45b364ce4d40de1f403f4cd863e840bc0

JohnCoates commented 6 years ago

Do not finish:restart if MoveStash did nothing :/. - Feb 3, 2017 ec89f5e6ae3a97b3f4f854f7baa35559e3d55457

commit: 18403d4baae73607d280609994b4560296bb7a31

JohnCoates commented 6 years ago

On 64-bit some of these floats are really CGFloat. - Feb 4, 2017 09e03d2385c301e68025da688831f50dd2e3734d

commit: ba008d8d2429c36278e8ad3290466fdea6a4dce7

JohnCoates commented 6 years ago

Move more of sysroot's sadness into iPhonePrivate. - Feb 15, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/63755c48fd5fe4f31775e0f38857314879b93f39

Also fixed most warnings.

commit: e9b33843991e7bc574eefa9cb322f00890fd5d2b

JohnCoates commented 6 years ago

Use setPageColor instead of messing with scroller. - Feb 15, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/caa861bdca0452534fccc101228458f5cc6f41f2

commit: c507dbb2e9905a787741c2acfe028251c32bd674

JohnCoates commented 6 years ago

Hide custom function_ as an implementation detail. - Feb 15, 2017 f274bb0c14b13e0e7bbf65fc5a07f40fcaa482cc

commit: a1565e885469cae1562f6bd67c65008209d9c652

JohnCoates commented 6 years ago

This loaded_ hack is hopefully no longer required. - Feb 15, 2017 2f722d4cc3bf949960a3774e2c4d79df1afded95

https://github.com/JohnCoatesOSS/Limitless/commit/8eedf7e7e7afb78df8388ab7692118e6b9f3b466

JohnCoates commented 6 years ago

Move private ivars in CyteKit to @implementations. - Feb 15, 2017 f8c9fd4c9a853ca14ac1d1fb123e2e6200879bb4

commit: 759f114733428ce2be17879ec658f752e68d93ad

JohnCoates commented 6 years ago

Move some of our clearly shared code into CyteKit. - Feb 16, 2017 7ccc1484ab74ebf5797820bdd24edccfd42aaa50

commit: 3b23b7b4aa06b1be488a91cc999e1385e4c5edb0

JohnCoates commented 6 years ago

Cache sorts (really really important for Chinese). - Feb 16, 2017 187cb9203a03e766172b266b8f99bd9b0fd0ba05

commit: 0e23a9e6aae4037e8722066e1f51af4f4c704e9d

JohnCoates commented 6 years ago

Amortize linear probing with a binary search sort. - Feb 16, 2017 8f246508d03eb6540bf07f6478cf40cf656a5e1c

Skipped: I don't see where this code is actually used.

JohnCoates commented 6 years ago

Avoid sorting packages_ (it is now Foundation :/). - Feb 16, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/5ddde60fb69b9b9d2466044e208977981d2e1fcb

Skipped: Let's revisit this some other time.

JohnCoates commented 6 years ago

Make an executive decision to not support regions. - Feb 16, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/bb347c4c58cfcd72dd17be9eeb2fcb8c813140b9

commit: 87a307a8d0d53f3abf467502de8e6f5b730c3e32

JohnCoates commented 6 years ago

Do not rely on specific filenames in source cells. - Feb 16, 2017 https://github.com/JohnCoatesOSS/Limitless/commit/018ea8acbdde7f5ee5d68c7431f9f514dcb27714

commit: 8a935019b7d3ffd2b924235e80de4df8ea4d2238

JohnCoates commented 6 years ago

Do not rely on specific filenames in source cells. - Feb 16, 2017 018ea8acbdde7f5ee5d68c7431f9f514dcb27714

commit: 8a935019b7d3ffd2b924235e80de4df8ea4d2238