Optimizing use of location services in mobile applications to improve battery consumption
First Claim
1. A method for modifying a computer code of a mobile application to become adapted to an optimized use of location services, comprising:
- analyzing a computer code of a mobile application executable on a processor of a mobile device;
identifying, in said computer code, at least one code segment which includes program instructions for requesting location data from at least one location service device of said mobile device;
identifying, in said computer code, an other code segment which includes program instructions for using the data acquired from said at least one location service device;
obtaining a pre-defined set of location request rules defining preferred practices for requesting location services to achieve optimized use of said location services;
analyzing said program instructions of said at least one code segment and said other code segment to identify a relation between a location, within said computer code, of said at least one code segment and a location of said other code segment;
determining when said relation violates at least one of said location request rules, wherein said at least one of said location request rules requires a reduction in time window during which said at least one location service device provides location data updates as a result of said request for said location data, before said location data is used; and
upon said determination, providing at least one suggested modification to said program instructions, to adapt said computer code to said optimized use, according to said at least one of said location request rules.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for optimizing use of location services in mobile applications, comprising: analyzing a computer code executable on a processor of a mobile device; identifying in the computer code program instructions for receiving location data from at least one location service device of the mobile device; analyzing the program instructions according to a set of location request rules to identify program instructions violating at least one of the location request rules; and providing at least one suggested change to the program instructions according to the at least one of the location request rules.
-
Citations
20 Claims
-
1. A method for modifying a computer code of a mobile application to become adapted to an optimized use of location services, comprising:
-
analyzing a computer code of a mobile application executable on a processor of a mobile device; identifying, in said computer code, at least one code segment which includes program instructions for requesting location data from at least one location service device of said mobile device; identifying, in said computer code, an other code segment which includes program instructions for using the data acquired from said at least one location service device; obtaining a pre-defined set of location request rules defining preferred practices for requesting location services to achieve optimized use of said location services; analyzing said program instructions of said at least one code segment and said other code segment to identify a relation between a location, within said computer code, of said at least one code segment and a location of said other code segment; determining when said relation violates at least one of said location request rules, wherein said at least one of said location request rules requires a reduction in time window during which said at least one location service device provides location data updates as a result of said request for said location data, before said location data is used; and upon said determination, providing at least one suggested modification to said program instructions, to adapt said computer code to said optimized use, according to said at least one of said location request rules. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A system for modifying a computer code of a mobile application to become adapted to an optimized use of location services, comprising:
-
a memory storing a pre-defined set of location request rules defining preferred practices for requesting location services; a code store storing a code of an application; and at least one processor coupled to a graphical user interface (GUI), the memory and the program store for executing the stored code, the code comprising; code instructions to analyze a computer code of a mobile application executable on a processor of a mobile device; code instructions to identify in said computer code at least one code segment which includes program instructions for requesting location data from at least one location service device of said mobile device; code instructions to identify, in said computer code, an other code segment which includes program instructions for using the data acquired from said at least one location service device; code instructions to analyze said program instructions of said at least one code segment and said other code segment to identify a relation between a location, within said computer code, of said at least one code segment and a location of said other code segment; code instructions to determine when said relation violates at least one of said location request rules, wherein said at least one of said location request rules requires a reduction in time window during which said at least one location service device provides location data updates as a result of said request for said location data, before said location data is used; and code instructions to provide, upon said determination, at least one suggested modification to said program instructions, to adapt said computer code to said optimized use, according to said at least one of said location request rules.
-
-
20. A software program product for modifying a computer code of a mobile application to become adapted to an optimized use of location services, comprising:
-
a non-transitory computer readable storage medium; first program instructions for analyzing a computer code of a mobile application, executable on a processor of a mobile device; second program instructions for identifying in said computer code at least one code segment which includes program instructions for requesting location data from at least one location service device of said mobile device; third program instructions for identifying, in said computer code, an other code segment which includes program instructions for using the data acquired from said at least one location service device; fourth program instructions for obtaining a pre-defined set of location request rules defining preferred practices for requesting location services to achieve optimized use of said location services; fifth program instructions for analyzing said program instructions of said at least one code segment and said other code segment to identify a relation between a location, within said computer code, of said at least one code segment and a location of said other code segment; sixth program instructions for determining when said relation violates at least one of said location request rules, wherein said at least one of said location request rule requires a reduction in time window during which said at least one location service device provides location data updates as a result of said request for said location data, before said location data is used; and seventh program instructions for providing, upon said determination, at least one suggested modification, to adapt said computer code to said optimized use, according to said at least one of said location request rules; wherein said first, second, third, fourth, fifth, sixth and seventh program instructions are executed by at least one computerized processor from said non-transitory computer readable storage medium.
-
Specification