CN113157377B - Method and equipment for realizing control of application part by Android system - Google Patents

Method and equipment for realizing control of application part by Android system Download PDF

Info

Publication number
CN113157377B
CN113157377B CN202110554156.4A CN202110554156A CN113157377B CN 113157377 B CN113157377 B CN 113157377B CN 202110554156 A CN202110554156 A CN 202110554156A CN 113157377 B CN113157377 B CN 113157377B
Authority
CN
China
Prior art keywords
application
interface
management
control
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110554156.4A
Other languages
Chinese (zh)
Other versions
CN113157377A (en
Inventor
娄渊胜
季英会
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Readboy Education Technology Co Ltd
Original Assignee
Readboy Education Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Readboy Education Technology Co Ltd filed Critical Readboy Education Technology Co Ltd
Priority to CN202110554156.4A priority Critical patent/CN113157377B/en
Publication of CN113157377A publication Critical patent/CN113157377A/en
Application granted granted Critical
Publication of CN113157377B publication Critical patent/CN113157377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method and equipment for realizing control of an application part by an Android system. The invention can realize a more fine-granularity control mode, and can control only some interfaces of one application, while other interfaces are not controlled.

Description

Method and equipment for realizing control of application part by Android system
Technical Field
The invention relates to the technical field of Android systems, in particular to a method and equipment for realizing control of application parts by an Android system.
Background
Android learning tablets have become more and more popular, and learning tablets generally have an application management function, and parents can manage the use of an application through the tablet or through a mobile phone bound to the tablet, and such management is generally directed to the whole application. But sometimes a good learning application is because the user has to disable the entire application because some of the interface's advertisements are too numerous or some of the content is not suitable for young children to see.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a method and equipment for realizing control of an application part by an Android system.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
a method for realizing control of application parts by an Android system comprises the following specific processes:
creating an application management and control database, wherein each item of data in the application management and control database comprises two attribute values of an application package name and a class name of the managed application, and an Android system simultaneously provides a system interface for writing and inquiring the database;
when starting the Activity, the startactyLocked () in the Activity starter firstly inquires whether the current to-be-started application package name and the Activity class name are in the application management database or not in the application management database, if so, the interception is implemented, and the starting of the Activity is forbidden, otherwise, the interception is not performed;
in the method of the onResume () of the Activity, judging whether the current application package name and class name of the Activity exist in an application management and control database, if so, finishing, otherwise, not performing any processing.
Further, the method further comprises the steps of: developing a control application, wherein the control application is provided with a suspension widget, the suspension widget is always displayed on any application, and clicking the suspension widget can start a control interface; placing a managed class name list, a button for disabling the current interface and an exit button on the management interface; after the control interface is started, firstly acquiring an application package name of an application below the control interface, then inquiring an application control database through the application package name, acquiring a controlled class name corresponding to the application package name, and displaying the class name in a controlled class name list; when clicking a certain class name, deleting a data item corresponding to the class name from the application management and control database through the system interface by the management and control interface, and removing management and control on the class name; when a forbidden current interface button on the management and control interface is clicked, the management and control interface writes the application package name and the Activity class name of the application below the management and control interface into an application management and control database through a system interface, and then the finish itself; when the management interface finish itself, the visual Activity of the application below it runs the onResume () lifecycle function; as onResume () can judge that the application package name and class name of the current Activity already exist in the application management and control database, the finish function can be actively called to close itself, if the Activity is the main Activity, the whole application can be exited, otherwise, the whole application can be exited to the last Activity interface of the application.
Further, the management interface is a transparent Activity.
Further, when the application package name of the application below the application package name acquired by the control interface is the main interface name, changing the controlled class name list into a controlled application list, and not displaying a button for disabling the current interface, then querying an application control database to acquire all application package names, acquiring the name of each application according to the application package name, and displaying the application package names on the controlled application list; when clicking on the name of an application, the management interface clears all data in the application management database about the application.
A computer readable storage medium having stored therein a computer program which when executed by a processor implements the method described above.
An Android terminal comprises a processor and a memory, wherein the memory is used for storing a computer program; the processor is configured to implement the above-described method when executing the computer program.
The invention has the beneficial effects that: the invention can realize a more fine-granularity control mode, and can control only some interfaces of one application, while other interfaces are not controlled.
Detailed Description
The present invention will be further described below, and it should be noted that, while the present embodiment provides a detailed implementation manner and a specific operation process on the premise of the present technical solution, the protection scope of the present invention is not limited to the present embodiment.
The embodiment provides a method for realizing control of an application part by an Android system, which comprises the following specific processes:
creating an application management and control database, wherein each item of data in the application management and control database comprises two attribute values of an application package name and a class name of the managed application, and an Android system simultaneously provides a system interface for writing and inquiring the database;
the Android system has the following functions:
when starting the Activity, the startactyLocked () in the Activity starter firstly inquires whether the current to-be-started application package name and the Activity class name are in the application management database or not in the application management database, if so, the interception is implemented, and the starting of the Activity is forbidden, otherwise, the interception is not performed;
in the method of the onResume () of the Activity, judging whether the current application package name and class name of the Activity exist in an application management and control database, if so, finishing, otherwise, not performing any processing.
Further, the method further comprises the steps of: developing a control application, wherein the control application is provided with a suspension widget, the suspension widget is always displayed on any application, and clicking the suspension widget can start a control interface; the control interface is a transparent Activity, and a controlled class name list, a button for disabling the current interface and an exit button are placed on the control interface; after the control interface is started, firstly acquiring an application package name of an application below the control interface, then inquiring an application control database through the application package name, acquiring a controlled class name corresponding to the application package name, and displaying the class name in a controlled class name list; when clicking a certain class name, deleting a data item corresponding to the class name from the application management and control database through the system interface by the management and control interface, and removing management and control on the class name; when the disable current interface button on the management and control interface is clicked, the management and control interface writes the application package name and the Activity class name of the application below the management and control interface into the application management and control database through the system interface, and then the finish itself. The control interface is made into a transparent Activity, so that the user has better experience, and the feeling of jumping to another interface is reduced. When the management interface finish itself, the visual Activity of the application below it runs the onResume () lifecycle function; since onResume () will determine that the application package name and class name of the current Activity already exist in the application management database, it will actively call the finish function to turn itself off. The user experiences the control effect in real time, two situations can possibly occur at the moment, if the Activity is the main Activity, the whole application can be withdrawn, otherwise, the user can withdraw to an Activity interface on the application.
By implementing the method, when a user enters a certain application from a main interface or jumps from one Activity in the certain application to another Activity, the startactyLocked () in the actyStarter.java can judge whether an application package name and a class name to be started have an application management database, if so, interception is implemented, starting is forbidden, and a popup prompt tells the user that the interface is forbidden.
When the application package name of the application below the application package name acquired by the control interface is the main interface name, changing the controlled class name list into a controlled application list, and not displaying a button for disabling the current interface, then querying an application control database to acquire all application package names, acquiring the name of each application according to the application package name, and displaying the application package names on the controlled application list; when clicking on the name of an application, the management interface clears all data in the application management database about the application. On the one hand, the method provides a coarse-granularity control mode, and also solves the problem that no entry is released from control after the main Activity is disabled.
Various modifications and variations of the present invention will be apparent to those skilled in the art in light of the foregoing teachings and are intended to be included within the scope of the following claims.

Claims (5)

1. A method for realizing control of application parts by an Android system is characterized by comprising the following specific processes:
creating an application management and control database, wherein each item of data in the application management and control database comprises two attribute values of an application package name and a class name of the managed application, and an Android system simultaneously provides a system interface for writing and inquiring the database;
when starting the Activity, the startactyLocked () in the Activity starter firstly inquires whether the current to-be-started application package name and the Activity class name are in the application management database or not in the application management database, if so, the interception is implemented, and the starting of the Activity is forbidden, otherwise, the interception is not performed;
judging whether the current application package name and class name of the Activity exist in an application management and control database or not in an onResume () method of the Activity, if so, finishing, otherwise, not performing any processing;
the method further comprises the steps of: developing a control application, wherein the control application is provided with a suspension widget, the suspension widget is always displayed on any application, and clicking the suspension widget can start a control interface; placing a managed class name list, a button for disabling the current interface and an exit button on the management interface; after the control interface is started, firstly acquiring an application package name of an application below the control interface, then inquiring an application control database through the application package name, acquiring a controlled class name corresponding to the application package name, and displaying the class name in a controlled class name list; when clicking a certain class name, deleting a data item corresponding to the class name from the application management and control database through the system interface by the management and control interface, and removing management and control on the class name; when a forbidden current interface button on the management and control interface is clicked, the management and control interface writes the application package name and the Activity class name of the application below the management and control interface into an application management and control database through a system interface, and then the finish itself; when the management interface finish itself, the visual Activity of the application below it runs the onResume () lifecycle function; as onResume () can judge that the application package name and class name of the current Activity already exist in the application management and control database, the finish function can be actively called to close itself, if the Activity is the main Activity, the whole application can be exited, otherwise, the whole application can be exited to the last Activity interface of the application.
2. The method of claim 1, wherein the administration interface is a transparent Activity.
3. The method according to claim 1, wherein when the application package name of the application under it acquired by the management interface is the main interface name, the list of managed class names is changed into the list of managed applications, and the button for disabling the current interface is not displayed, then all application package names are acquired by querying the application management database, and the name of each application is acquired according to the application package name, and then displayed on the list of managed applications; when clicking on the name of an application, the management interface clears all data in the application management database about the application.
4. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-3.
5. The Android terminal is characterized by comprising a processor and a memory, wherein the memory is used for storing a computer program; the processor being adapted to implement the method of any of claims 1-3 when the computer program is executed.
CN202110554156.4A 2021-05-20 2021-05-20 Method and equipment for realizing control of application part by Android system Active CN113157377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110554156.4A CN113157377B (en) 2021-05-20 2021-05-20 Method and equipment for realizing control of application part by Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110554156.4A CN113157377B (en) 2021-05-20 2021-05-20 Method and equipment for realizing control of application part by Android system

Publications (2)

Publication Number Publication Date
CN113157377A CN113157377A (en) 2021-07-23
CN113157377B true CN113157377B (en) 2023-06-27

Family

ID=76876963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110554156.4A Active CN113157377B (en) 2021-05-20 2021-05-20 Method and equipment for realizing control of application part by Android system

Country Status (1)

Country Link
CN (1) CN113157377B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116610374A (en) * 2022-02-09 2023-08-18 广州视源电子科技股份有限公司 Application program management and control method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013163903A1 (en) * 2012-05-04 2013-11-07 惠州Tcl移动通信有限公司 Android system-based application program starting method and system
CN104462952A (en) * 2014-12-31 2015-03-25 北京奇虎科技有限公司 Method and device for preventing self-starting of application
CN110188535A (en) * 2019-06-10 2019-08-30 南京领创信息科技有限公司 A method of apparatus management/control is realized based on android system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188227A (en) * 2011-12-29 2013-07-03 北京网秦天下科技有限公司 Method and system for conducting parental control over mobile equipment
US9344422B2 (en) * 2013-03-15 2016-05-17 Oracle International Corporation Method to modify android application life cycle to control its execution in a containerized workspace environment
EP2881882B1 (en) * 2013-12-05 2017-03-01 Kaspersky Lab, ZAO System and method for blocking elements of application interface
CN104123498B (en) * 2014-07-18 2017-12-05 广州猎豹网络科技有限公司 A kind of Android system Activity security determines method and device
CN105607993B (en) * 2015-09-30 2018-04-20 北京奇虎科技有限公司 The method and apparatus that a kind of user interface UI to application is tested
CN106293880B (en) * 2016-08-10 2019-12-13 北京奇虎科技有限公司 method and device for running Android application program on Windows system
CN107817995B (en) * 2016-09-12 2021-03-30 华为技术有限公司 Background silent application starting method and device and terminal equipment
CN106778231A (en) * 2016-12-22 2017-05-31 江苏神州信源系统工程有限公司 A kind of application security management method realized in Android system
CN108874475A (en) * 2017-05-10 2018-11-23 Tcl集团股份有限公司 A kind of implementation method of window background, mobile terminal and storage device
CN107844341B (en) * 2017-11-21 2020-09-29 Oppo广东移动通信有限公司 Process starting control method and device, storage medium and mobile terminal
CN109308241B (en) * 2018-09-05 2020-11-24 腾讯科技(深圳)有限公司 Method and device for monitoring starting process of application program, terminal equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013163903A1 (en) * 2012-05-04 2013-11-07 惠州Tcl移动通信有限公司 Android system-based application program starting method and system
CN104462952A (en) * 2014-12-31 2015-03-25 北京奇虎科技有限公司 Method and device for preventing self-starting of application
CN110188535A (en) * 2019-06-10 2019-08-30 南京领创信息科技有限公司 A method of apparatus management/control is realized based on android system

Also Published As

Publication number Publication date
CN113157377A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN106648869A (en) Intelligent terminal application switch method
CN113157377B (en) Method and equipment for realizing control of application part by Android system
CN105843468A (en) Method for searching application programs in intelligent equipment and intelligent equipment
EP3236355B1 (en) Method and apparatus for managing task of instant messaging application
CN102984387A (en) Method and device for preventing maloperation of mobilephone user
CN111857464A (en) Information display method and device, electronic equipment and readable storage medium
CN106371879A (en) Method and system for shielding non-deletable application of mobile terminal
CN108762983A (en) Multi-medium data restoration methods and device
CN111107147B (en) Message pushing method and device
CN108737655A (en) Image processing method and relevant apparatus
CN103377071B (en) A kind of batch data delet method and system
CN111078383A (en) Timed task management method, device, equipment and storage medium
CN106457046A (en) Prop purchase method and system in game based on multi-modal input
CN107479960B (en) Method and device for displaying unit view
CN109522187B (en) Method and device for quickly extracting state information
US20140235358A1 (en) Role clearing method, device and system for emulator game
CN113144606B (en) Skill triggering method of virtual object and related equipment
CN108829824B (en) Resource processing method and device in internet operation activity
CN115129444A (en) Application program display method and device and computer readable storage medium
CN115061609A (en) Processing method and processing device for group chat operation, electronic equipment and storage medium
CN113962316A (en) Model training method and device and electronic equipment
CN114020376A (en) Processing method and equipment
CN113342755A (en) Display control method and device
US9542569B2 (en) Information processing system, information processing apparatus, storage medium having stored therein information processing program, and method of storing saved data
CN113568654A (en) Application portrait-based accurate management and control method and device for Android system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant