CN112306562A - Method for wifi frequency conversion of android system - Google Patents
Method for wifi frequency conversion of android system Download PDFInfo
- Publication number
- CN112306562A CN112306562A CN202011168133.1A CN202011168133A CN112306562A CN 112306562 A CN112306562 A CN 112306562A CN 202011168133 A CN202011168133 A CN 202011168133A CN 112306562 A CN112306562 A CN 112306562A
- Authority
- CN
- China
- Prior art keywords
- wifi
- android system
- frequency conversion
- country
- channel
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/69—Types of network addresses using geographic information, e.g. room number
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The utility model provides a method of tall and erect system wifi frequency conversion, through the wifi frequency conversion, can obtain national information according to the IP that tall and erect equipment of ann connects, then through the wifi drive that national information matches the rule regulation to avoided carrying out the burning record of different mirror images to different countries, great each tall and erect equipment manufacturer of today of being convenient for globalization carries out globalized sale.
Description
Technical Field
The invention relates to the technical field of android systems, in particular to a wifi frequency conversion method of an android system.
Background
The android system has been for a decade from birth to the present, and the development of the android system cannot be fast from the originally silent unknown to the present market occupancy; from the very beginning, layout handsets have appeared in many areas to now: set-top boxes, speakers, automobiles, etc., android systems have slowly emerged in various industries. However, in the present day of economic globalization, each manufacturer for selling android system equipment is not limited to own country, and is slowly developing to globalization, but each country has different requirements on production standards, so that the manufacturers for android equipment are undoubtedly very troublesome in adaptation, and particularly, the manufacturers for android equipment can only give up in countries with small shipment volumes.
Disclosure of Invention
In order to overcome the defects of the technology, the invention provides a wifi driving method which is used for matching with national regulation and regulation after acquiring national information according to the online IP of the android device.
The technical scheme adopted by the invention for overcoming the technical problems is as follows:
a wifi frequency conversion method of an android system comprises the following steps:
a) starting the android system;
b) starting a frequency conversion service of the installation system;
c) the android system detects whether the android system is started for the first time, if so, the step d) is executed, and if not, the step h) is executed;
d) after the android system runs the startup guide process, determining a country code according to the IP address;
e) matching and acquiring a value of a count _ code or a channel _ plan when wifi drive of the installation system is loaded according to the acquired wifi demand list of the country code;
f) reloading a wifi drive according to the obtained value of the count _ code or the channel _ plan, and triggering a self-defined setprpo ctl.start load _ wifi service in an rc script of the bottom layer of the android system by using the value of the ctl.start attribute of the wifi drive;
g) the android system runs normally;
h) the android system loads a wifi drive according to the attribute value set by the last startup;
h) and the android system is connected with the network through wifi, and then judges whether the current country code is consistent with the country code obtained when the android system is started last time according to the IP address, if so, the android system normally operates, and if not, the steps e) to g) are executed.
Further, in the step b), the frequency conversion service is that the installing system modifies a channel list supported in the wifi driver according to the wifi channel supported by the country where the IP is located, and the wifi channel in the channel list which is no longer supported is not scanned by the wifi driver.
Further, in the step d), the country name, the country code and the country region of the current IP are obtained in the corresponding API website by using the IP address.
The invention has the beneficial effects that: through the wifi frequency conversion, can obtain national information according to the IP that android device connects, then through the wifi drive of national information matching regulation to avoided carrying out the burning record of different mirror images to different countries, great each android device manufacturer of today of being convenient for globalizing carries out globalized sale.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention.
Detailed Description
The invention is further described below with reference to fig. 1.
A wifi frequency conversion method of an android system comprises the following steps:
a) starting the android system.
b) And starting the frequency conversion service of the installation system.
c) And the android system detects whether the android system is started for the first time, if so, the step d) is executed, and if not, the step h) is executed.
d) And after the android system runs the starting guide process, determining a country code according to the IP address.
e) And matching and acquiring a count _ code or channel _ plan value when the wifi driver of the installation system is loaded according to the wifi demand list of the country of the acquired country code.
f) And reloading the wifi drive according to the obtained value of the count _ code or the channel _ plan, and triggering the self-defined setprpo ctl.start load _ wifi service in the rc script of the bottom layer of the android system by using the value of the ctl.start attribute of the wifi drive.
g) And the android system runs normally.
h) And the android system loads the wifi drive according to the attribute value set by the last startup.
h) And the android system is connected with the network through wifi, and then judges whether the current country code is consistent with the country code obtained when the android system is started last time according to the IP address, if so, the android system normally operates, and if not, the steps e) to g) are executed.
Through the wifi frequency conversion, can obtain national information according to the IP that android device connects, then through the wifi drive of national information matching regulation to avoided carrying out the burning record of different mirror images to different countries, great each android device manufacturer of today of being convenient for globalizing carries out globalized sale.
Further, in the step b), the frequency conversion service is that the installing system modifies a channel list supported in the wifi driver according to the wifi channel supported by the country where the IP is located, and the wifi channel in the channel list which is no longer supported is not scanned by the wifi driver.
Further, in the step d), the country name, the country code and the country region of the current IP are obtained in the corresponding API website by using the IP address.
The method has two key points, namely, the method is used for realizing the startup self-starting wifi frequency conversion service application on the application layer and realizing the network monitoring and attribute setting of the application layer. Secondly, realizing wifi frequency conversion on a system level, mainly realizing the reloading of the wifi drive and the parameter setting of the loading of the wifi drive, and mainly having two modification points, 1. 2. The wifi-driven reloading of network IP at a national change is what the system level needs to do.
On the application level: the method comprises the steps of monitoring starting broadcast or customized starting broadcast and then monitoring customized starting broadcast, and starting foreground service after monitoring broadcast (background service is easily killed after Android 8.0, and background service can be used before 8.0 version). And secondly, registering and sending the customized network broadcast in the service. And thirdly, monitoring the network broadcast of the system in the self-defined network broadcast, and acquiring the country name, the country code, the country region and the like of the current IP in a corresponding API website by using the current IP when the network is monitored. And fourthly, matching and acquiring parameters (the values of the count _ code or the channel _ plan) during wifi drive loading by using the obtained country information and the wifi demand lists of each country. Fifthly, reloading the wifi drive according to the obtained value of the count _ code or the channel _ plan, and triggering the self-defined service in the bottom rc script by using the value of the set ctl.start attribute: start load _ wifi.
On a system level: step one, modifying an rc script driven by a wifi during startup loading: (location: hardware/ampligic/wifi/configs/init _ rc/init. ampligic. wifi _ build _ rtl8822cs. rc) instmod 8822cs. ko rtw _ count _ code = { permanent. wifi. code }// rtw _ count _ code parameter represents country code information, and the latter attribute permanent. wifi. code represents the country code that ip gets stored. Secondly, adding a persistence attribute, storing a country code of a corresponding country, and loading a wifi driver to add a position: and (4) setting permission for the added attribute value after adding device/platform/product name/. mk, wherein the current attribute is a String type attribute, and the user group is a system. And thirdly, adding a frequency conversion service in the rc script, and adding a load _ wifi service in the device/platform/product name/init. Step four, adding the frequency conversion service and the script added above to cause a selinux permission problem and a modified position: according to the system/topolicy/, a loadWifi.te file is newly built according to the newly added service, and the reported authority problems are added until no selinux authority problem occurs.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (3)
1. A wifi frequency conversion method of an android system is characterized by comprising the following steps:
a) starting the android system;
b) starting a frequency conversion service of the installation system;
c) the android system detects whether the android system is started for the first time, if so, the step d) is executed, and if not, the step h) is executed;
d) after the android system runs the startup guide process, determining a country code according to the IP address;
e) matching and acquiring a value of a count _ code or a channel _ plan when wifi drive of the installation system is loaded according to the acquired wifi demand list of the country code;
f) reloading a wifi drive according to the obtained value of the count _ code or the channel _ plan, and triggering a self-defined setprpo ctl.start load _ wifi service in an rc script of the bottom layer of the android system by using the value of the ctl.start attribute of the wifi drive;
g) the android system runs normally;
h) the android system loads a wifi drive according to the attribute value set by the last startup;
h) and the android system is connected with the network through wifi, and then judges whether the current country code is consistent with the country code obtained when the android system is started last time according to the IP address, if so, the android system normally operates, and if not, the steps e) to g) are executed.
2. The android system wifi frequency conversion method according to claim 1, characterized in that: in the step b), the variable frequency service is that the installation system modifies a channel list supported in the wifi drive according to the wifi channel supported by the country where the IP is located, and the wifi channel in the channel list which is no longer supported is not scanned by the wifi drive.
3. The android system wifi frequency conversion method according to claim 1, characterized in that: and d) acquiring the country name, the country code and the country region of the current IP from the corresponding API website by using the IP address in the step d).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011168133.1A CN112306562A (en) | 2020-10-28 | 2020-10-28 | Method for wifi frequency conversion of android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011168133.1A CN112306562A (en) | 2020-10-28 | 2020-10-28 | Method for wifi frequency conversion of android system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112306562A true CN112306562A (en) | 2021-02-02 |
Family
ID=74332112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011168133.1A Pending CN112306562A (en) | 2020-10-28 | 2020-10-28 | Method for wifi frequency conversion of android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112306562A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113766543A (en) * | 2021-09-14 | 2021-12-07 | 青岛中科英泰商用系统股份有限公司 | Method, system, electronic device and medium for improving WiFi stability |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685718A (en) * | 2012-05-25 | 2012-09-19 | 华为技术有限公司 | Wi-Fi configuration method and system |
CN103412832A (en) * | 2013-08-27 | 2013-11-27 | 深圳市视维科技有限公司 | Automatic WIFI (Wireless Fidelity) adaptation method |
CN103906272A (en) * | 2012-12-25 | 2014-07-02 | 华为终端有限公司 | Wireless local area network configuration method and wireless terminal |
CN105376757A (en) * | 2015-09-30 | 2016-03-02 | 青岛海信移动通信技术股份有限公司 | Mobile device Wi-Fi channel configuration method and device |
CN109068346A (en) * | 2018-08-27 | 2018-12-21 | 出门问问信息科技有限公司 | A kind of method and device configuring WiFi parameter |
CN111082991A (en) * | 2019-12-19 | 2020-04-28 | 深圳市创维软件有限公司 | Automatic adaptation method of set top box WiFi channel, server and storage medium |
-
2020
- 2020-10-28 CN CN202011168133.1A patent/CN112306562A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685718A (en) * | 2012-05-25 | 2012-09-19 | 华为技术有限公司 | Wi-Fi configuration method and system |
CN103906272A (en) * | 2012-12-25 | 2014-07-02 | 华为终端有限公司 | Wireless local area network configuration method and wireless terminal |
CN103412832A (en) * | 2013-08-27 | 2013-11-27 | 深圳市视维科技有限公司 | Automatic WIFI (Wireless Fidelity) adaptation method |
CN105376757A (en) * | 2015-09-30 | 2016-03-02 | 青岛海信移动通信技术股份有限公司 | Mobile device Wi-Fi channel configuration method and device |
CN109068346A (en) * | 2018-08-27 | 2018-12-21 | 出门问问信息科技有限公司 | A kind of method and device configuring WiFi parameter |
CN111082991A (en) * | 2019-12-19 | 2020-04-28 | 深圳市创维软件有限公司 | Automatic adaptation method of set top box WiFi channel, server and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113766543A (en) * | 2021-09-14 | 2021-12-07 | 青岛中科英泰商用系统股份有限公司 | Method, system, electronic device and medium for improving WiFi stability |
CN113766543B (en) * | 2021-09-14 | 2024-04-30 | 青岛中科英泰商用系统股份有限公司 | Method, system, electronic equipment and medium for improving WiFi stability |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9524156B2 (en) | Flexible feature deployment strategy | |
CN101593121B (en) | Method, device and system for software on-line upgrade | |
US8050242B2 (en) | Method and system for tailoring device provisioning based on device capability information communicated to network | |
EP2608585B1 (en) | Method, device and system for triggering terminal operation | |
AU2013329684B2 (en) | Solution for distributed application life-cycle management | |
CN105335187A (en) | Application processing method and apparatus | |
CN112306562A (en) | Method for wifi frequency conversion of android system | |
CN111316230B (en) | Method and equipment for generating patch package | |
CN101694625A (en) | Method and device for upgrading client software based on encryption sever management | |
US20150277891A1 (en) | Electronic controller software coding system and method for vehicle control | |
CN106708544A (en) | Method and apparatus for assisting in firmware upgrading of electronic devices, and terminal | |
US10078532B2 (en) | Resource management method and device for terminal system among multiple operating systems | |
CN111066333A (en) | Device capable of acquiring ESIM configuration file | |
US9854429B2 (en) | Mobile terminal configuration method and system | |
CN110768811B (en) | Method, device and system for updating YANG model file library | |
CN110035496B (en) | Cloud platform switching method and system and electronic equipment | |
CN105144090A (en) | Method and apparatus for prefetching device drivers for peripheral devices connected to a smartphone prior to high-level operating system (HLOS) boot | |
CN102377793A (en) | Flash interaction method and device based on mobile communication equipment terminal | |
CN106980792B (en) | Control method of application permission, electronic equipment and server | |
CN114553916A (en) | One-key configuration method for barrier and one-key configuration terminal for barrier | |
CN114879993A (en) | Upgrading processing method of software installation package, server and client | |
CN111770487B (en) | Access Point Name (APN) information configuration method, equipment and medium | |
CN109254797B (en) | Mobile terminal, starting control method thereof and storage medium | |
CN113760581A (en) | MQTT-based method and system for synchronizing attribute information of intelligent terminal | |
CN113010206A (en) | Containerization method, system and device for WEB application 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210202 |