[categories] [index] [all (531)] [latest]
$ echo "0x28 0x46" | llvm-mc --disassemble -triple=thumbv7
.text
mov r0, r5
$ echo "mov r0, r5" | llvm-mc -assemble -triple=thumbv7 -show-encoding
.text
mov r0, r5 @ encoding: [0x28,0x46]
$ echo "movs r0, 0x1" | llvm-mc -assemble -triple=thumbv7 -show-encoding
.text
movs r0, #1 @ encoding: [0x01,0x20]
See also iOS binary patching: http://www.zdziarski.com/blog/?p=2172
from PIL import Image
LEFT = 38
TOP = 146
WIDTH = 320
HEIGHT = 460
img = Image.open('sc.png')
box = (LEFT, TOP, LEFT+WIDTH, TOP+HEIGHT)
area = img.crop(box)
area.save('sc2.png')
#import <QuartzCore/QuartzCore.h>
...
view.layer.borderColor = [UIColor blackColor].CGColor;
view.layer.borderWidth = 1;
$ rvictl -s UDID
$ sudo launchctl list com.apple.rpmuxd
$ sudo tcpdump -n -t -i rvi0 -q tcp
$ codesign -d --entitlements - MyApp.app
the result should include:
<key>aps-environment</key>
<string>production</string>
With an iPhone, dial and call:
*3001#12345#*
Add them into scheme > arguments
-AppleLanguages (de)
-AppleLocale fr_FR
po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]
#if os(iOS)
#elseif os(tvOS)
#else
#endif
$ export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
$ codesign -fs "MyName" MyBinary
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ) {
// ...
}
xcrun simctl io booted recordVideo movie.mp4