cbanks Active Member Licensed User Longtime User Dec 12, 2013 #1 Right now I am using the OSLibrary library to detect free internal memory with this command: OS.AvailableInternalMemorySize But, is there a way to detect the same thing without using the OSlibrary because the OSlibrary requires so many permissions and my users don't like seeing all of those required permissions? oslibrary requires these permissions: android.permission.INTERNET android.permission.REBOOT android.permission.DUMP android.permission.ACCESS_NETWORK_STATE android.permission.BATTERY_STATS android.permission.KILL_BACKGROUND_PROCESSES android.permission.WRITE_SETTINGS android.permission.GET_TASKS
Right now I am using the OSLibrary library to detect free internal memory with this command: OS.AvailableInternalMemorySize But, is there a way to detect the same thing without using the OSlibrary because the OSlibrary requires so many permissions and my users don't like seeing all of those required permissions? oslibrary requires these permissions: android.permission.INTERNET android.permission.REBOOT android.permission.DUMP android.permission.ACCESS_NETWORK_STATE android.permission.BATTERY_STATS android.permission.KILL_BACKGROUND_PROCESSES android.permission.WRITE_SETTINGS android.permission.GET_TASKS
thedesolatesoul Expert Licensed User Longtime User Dec 12, 2013 #2 If you are not using those actions then you can just remove those permissions manually in the manifest. Alternatively you can use this one: http://www.b4x.com/android/forum/th...d-osstats-and-getforegroundapp.34954/#content It also adds android.permission.GET_TASKS but you can remove it. Upvote 0
If you are not using those actions then you can just remove those permissions manually in the manifest. Alternatively you can use this one: http://www.b4x.com/android/forum/th...d-osstats-and-getforegroundapp.34954/#content It also adds android.permission.GET_TASKS but you can remove it.
cbanks Active Member Licensed User Longtime User Dec 12, 2013 #3 thedesolatesoul said: If you are not using those actions then you can just remove those permissions manually in the manifest. Alternatively you can use this one: http://www.b4x.com/android/forum/th...d-osstats-and-getforegroundapp.34954/#content It also adds android.permission.GET_TASKS but you can remove it. Click to expand... None of those options in the MSOS library give me the same result as OS.AvailableInternalMemorySize from the OSlibrary. I"m looking for how much internal space is free. The result should be a static number, unless an app is installed to internal storage or data is created on the internal storage. Last edited: Dec 12, 2013 Upvote 0
thedesolatesoul said: If you are not using those actions then you can just remove those permissions manually in the manifest. Alternatively you can use this one: http://www.b4x.com/android/forum/th...d-osstats-and-getforegroundapp.34954/#content It also adds android.permission.GET_TASKS but you can remove it. Click to expand... None of those options in the MSOS library give me the same result as OS.AvailableInternalMemorySize from the OSlibrary. I"m looking for how much internal space is free. The result should be a static number, unless an app is installed to internal storage or data is created on the internal storage.
Erel B4X founder Staff member Licensed User Longtime User Dec 13, 2013 #5 As posted above you can remove the permissions with the RemovePermission command: Code: Copy RemovePermission(android.permission.REBOOT) ... Upvote 0
As posted above you can remove the permissions with the RemovePermission command: Code: Copy RemovePermission(android.permission.REBOOT) ...
cbanks Active Member Licensed User Longtime User Dec 13, 2013 #6 Thanks. I'll use the removepermission to solve the problem. Upvote 0