If, like me, the annoying unclearable notification that storage is low when you go below 500mb really winds you up then this will help. I know how much space I have!!!
Really simple. Decompile services.jar and open com/android/server/DeviceStorageMonitorService.smali.
Find .method private final sendNotification()V
To stop the nag altogether just replace the whole method with...
Compile and youre done! :)
Or to make it optional add this at the start of the method...
Then search for return-void in that method and put :cond_new before it.
Add a toggle to secsettings in the nornal way (lots of guides for this) with the key "low_storage".
Thats it. Compile and be nag free!
Enjoy :)
Sent from my GT-I9305 using Tapatalk
Really simple. Decompile services.jar and open com/android/server/DeviceStorageMonitorService.smali.
Find .method private final sendNotification()V
To stop the nag altogether just replace the whole method with...
Code:
.method private final sendNotification()V
return-void
.end methodOr to make it optional add this at the start of the method...
Code:
iget-object v1, p0, Lcom/android/server/DeviceStorageMonitorService;->mContext:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
const-string v2, "low_storage"
const/4 v3, 0x1
invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v1
if-eqz v1, :cond_newAdd a toggle to secsettings in the nornal way (lots of guides for this) with the key "low_storage".
Thats it. Compile and be nag free!
Enjoy :)
Sent from my GT-I9305 using Tapatalk