#pragma once #import "FGPrefix.h" /// Engine giả lập vị trí. Không dùng CydiaSubstrate: /// - Hook -[CLLocation coordinate] / -[CLLocation altitude] bằng runtime. /// - Hook -[CLLocationManager setDelegate:] để biết các manager đang hoạt động. /// - Chủ động đẩy bản tin vị trí giả tới delegate (tuỳ chọn trong Cài đặt). @interface FGSpoofer : NSObject + (instancetype)shared; /// Cài toàn bộ hook (idempotent). Gọi ngay khi dylib được nạp. - (void)installHooks; /// Khởi động timer đẩy cập nhật (gọi trên main thread sau khi app khởi động). - (void)start; /// Áp dụng toạ độ: lưu, bật giả lập, đẩy cập nhật ngay. - (void)applyCoordinate:(CLLocationCoordinate2D)coordinate; /// Bật/tắt nhanh. - (void)setSpoofingEnabled:(BOOL)enabled; /// CLLocation giả theo trạng thái hiện tại. - (CLLocation *)makeFakeLocation; /// Cập nhật toạ độ tức thời (dùng cho mô phỏng tuyến). Không ghi đĩa mỗi bước. - (void)updateLiveCoordinate:(CLLocationCoordinate2D)coordinate; /// Trạng thái đã đồng bộ từ FGStore. @property (nonatomic, readonly) BOOL isActive; @end