Monday, March 13, 2017

[Release] BatteryPlus 1.0.5 - Detailed specification.

Change Log:

  • Removed some hooks that causes this tweak to not work on some devices.

  • Removed some hook which are available in settings for user to disable e.g BackgroundAppRefresh, AutoAppUpdates, AutoAppDownload.

  • Removed percentage calculation which causes percentage to fluctuate.

DETAILS:

%hook BCBatteryDevice --> Tricks the battery to think device is low battery which clock down the CPU.

-(bool)isLowBattery

-(void)setLowBattery:(BOOL)arg1

%SBApplication --> In charge of all running applications.

-(void)setApplicationNextWakeDate:(id)arg2

-(BOOL)isRunning

-(void)purgeAllCaches

%hook HDDaemon --> Health Daemon

-(BOOL)_motionTrackingAvailable

-(BOOL)_shouldInitializeDaemon

-(void)_periodicUpdates

%hook HDBackgroundTask --> Health daemon functioning in the background

-(BOOL)taskValid

-(BOOL)taskSatisfied

-(BOOL)taskExpired

-(id)_initWithJob:(id)arg1

%hook HDBackgroundTaskScheduler Health daemon scheduling task in the background

-(void)addTask:(id)arg1 withName:(id)arg2 forClientNamed:(id)arg3

-(void)_queue_addTask:(id)arg1 withName:(id)arg2 forClientNamed:(id)arg3

%hook HDBackgroundTaskClient

-(void)deliverTask:(id)arg1 taskName:(id)arg2 onQueue:(id)arg3

%hook HDBackgroundWorkoutRunner --> Health daemon background tracker

-(void)stop

-(void)start

-(BOOL)_queue_hasBackgroundPermission

-(BOOL)_queue_takeAssertion

-(void)_queue_releaseAssertion

%hook CoreActivity --> Pedometer is used for counting steps as you walk

-(bool)pedometerIsOn

-(void)setPedometerIsOn:(bool)arg1

%hook WKProcessAssertionBackgroundTaskManager --> Background webkit process

-(void)_notifyClientsOfImminentSuspension

-(void)_updateBackgroundTask

-(void)incrementNeedsToRunInBackgroundCount

-(void)decrementNeedsToRunInBackgroundCount

%hook SUBackgroundTaskOperation --> iTunes store/App store related background service

-(void)run

-(void)_takeBackgroundAssertion

-(void)_removeBackgroundAssertion

-(void)_cancelBackgroundAssertion

%hook AppLaunchStatsScheduler --> Stats for when an app is supposed to be launched

-(void)generateFireDates

-(void)checkTimeZone

-(void)programTimer

-(void)timerFired:(id)arg1

%hook ATEventScheduler --> AirTraffic scheduler

-(void)start

-(void)_scheduleNextEvent

-(BOOL)hasScheduledEvent:(id)arg1

%hook _CDActivityScheduler --> Cache delete scheduler

-(void)callStartHandler:(id)arg1

-(BOOL)isUserAsleep

-(void)processSubmittedActivity:(id)arg1

-(void)setDispatchTimer

%hook _SBFQueueScheduler --> SpringBoard Foundation related

-(id)initWithQueue:(id)arg1

%hook BackgroundStockUpdater --> Stocks updating in the background (Not necessary as they will be updated anyway when app is opened)

-(id)taskForRequest:(id)arg1 delegate:(id)arg2

//Parallax

%hook _UIParallaxMotionEffect

-(double)maximumHorizontalTiltAngle

-(void)setMaximumHorizontalTiltAngle:(double)arg1

-(double)maximumVerticalTiltAngle

-(void)setMaximumVerticalTiltAngle:(double)arg1

-(double)rotatingSphereRadius

-(double)horizontalSlideAccelerationBoostFactor

-(double)verticalSlideAccelerationBoostFactor

-(void)_updateSlideEffectsWithCurrentSlideMagnitude

-(void)_updateGroupMotionEffect

-(void)_activateTiltEffectIfNecessary

-(void)setHorizontalSlideAccelerationBoostFactor:(double)arg1

-(void)setVerticalSlideAccelerationBoostFactor:(double)arg1

%hook AppLaunchStatsLaunchQueue

-(void)setBatterySaverMode:(BOOL)arg1

%hook ISOperationQueue --> In-charge of running multiple processes at the same time.

-(long long)maxConcurrentOperationCount

-(void)setMaxConcurrentOperationCount:(long long)arg1

-(void)addOperations:(id)arg1 waitUntilFinished:(BOOL)arg2

%hook AppLaunchStatsState --> Stats when an application is launched

-(bool)isDeviceUnderThermalPressure

-(void)setIsDeviceUnderThermalPressure:(bool)arg1

-(BOOL)inMemoryPressure

-(BOOL)isDeviceInCall

-(void)setIsDeviceInCall:(BOOL)arg1

-(BOOL)isBatteryChargerConnected

-(void)setIsBatteryChargerConnected:(BOOL)arg1

%hook CLLocationManager --> Disable location keeping track on your every movement.

-(void)setPersistentMonitoringEnabled:(bool)arg1

-(bool)persistentMonitoringEnabled

%hook MCProfileConnection --> In-charge of sending app analytics (Better for security too).

-(bool)isAppAnalyticsAllowed

%hook SBThermalController

-(BOOL)isInSunlight

-(void)_setLevel:(long long)arg1

WARNING: People who uses health app should avoid this tweak for the moment, till I implement a kill switch for health related hooks.

Note: This tweak manipulates the device to run CPU lower along with lesser processes and lesser background process, this tweak does not stop power hungry apps/tweaks from draining your battery.

This tweak is 100% safe to use and should work on all devices, non of the hooks writes on to system file thus this is 100% substrate based without any system modification.

Repo http://bit.ly/2kg11SN

Report Bugs. Thanks.

PS. Sorry for the miscommunication in 1.0 as I was out of town and not able to reply too.


EDIT 1: Update version is 1.1 not 1.0.5 as stated in title.

">View Post Link Below


by /u/Rishanan - Link to original post

No comments:

Post a Comment