Reasons for Factory mode test item cannot display

Source: Internet
Author: User

Factory mode test item cannot display
 
If the test item of factory mode cannot be displayed normally, check the following reasons:
 
Cause 1: The test item is not defined in ftm_test_item [] of factory. c.
 
Make sure that the test item is defined in the ftm_test_item [] array in alps/mediatek/factory/src/factory. c.

Static item_t ftm_test [] = {
# Ifdef FEATURE_FTM_KEYS
Item (ITEM_KEYS, uistr_keys ),
# Endif
# Ifdef FEATURE_FTM_JOGBALL
Item (ITEM_JOGBALL, uistr_jogball ),
# Endif
# Ifdef FEATURE_FTM_OFN;
Item (ITEM_OFN, uistr_ofn ),
# Endif
# Ifdef FEATURE_FTM_TOUCH
Item (ITEM_TOUCH, uistr_touch ),
# Endif
 
Cause 2: no macro definition is made
 
Check whether the corresponding macro is defined when this test item is defined.
In ftm_test_items [] of alps/mediatek/factory/src/factory. c, view the macro that wraps the test item.
# Ifdef MTK_WLAN_SUPPORT
# Ifdef FEATURE_FTM_WIFI
Item (ITEM_WIFI, "Wi-Fi "),
# Endif
# Endif

View the definition of FEATURE_FTM_WIFI in alps/mediatek/custom/[project]/factoryinc/cust. h.
# If defined (MTK_WLAN_SUPPORT)
# Define FEATURE_FTM_WIFI
# Endif
 
For MTK_WLAN_SUPPORT definitions, you must view them in alps/mediatek/config/[project]/ProjectConfig. mk.
Note: Check whether the AUTO_ADD_GLOBAL_DEFINE_BY_NAME and AUTO_ADD_GLOBAL_DEFINE_BY_VALUE definitions exist in the ProjectConfig. mk file. Make sure that the macro definitions required for this test item are added by NAME or VALUE.
 
Note that the macro definition must be compiled
# Define FEATURE_DUMMY_AUDIO
 
# Ifndef FEATURE_DUMMY_AUDIO
# Define FEATURE_FTM_AUDIO
# Define FEATURE_FTM_FM
# Define feature_ftm_fctx
 
# Ifdef HAVE_MATV_FEATURE
# Define FEATURE_FTM_MATV
# Endif
# Endif
As shown above, even if # define FEATURE_FTM_FM is defined, the definition will never be compiled from the previous # ifndef statement.
 
Cause 3: The test item is not changed in factory. ini.

Sometimes, after the factory. ini is modified, build the factory module and push the factory module to the mobile phone.
At this time, please note that if the test item cannot be displayed normally, please check whether the factory. ini on the mobile phone has included this test item.
The check method is as follows:
The mobile phone enters normal mode or factory mode and connects to the computer.
Open the command line and enter the adb shell command
Enter the mobile phone directory, enter the cd etc command, and enter the etc directory
Enter the cat factory. ini command to check whether factory. ini in the mobile phone contains the test item.
 
Cause 4: inconsistent string Definitions
 
To display the test items properly, make sure that the test item string is the same in ftm_test_item [] and factory. ini.
Factory. c
Static item_t ftm_test_items [] = {
# Ifdef FEATURE_FTM_KEYS
Item (ITEM_KEYS, uistr_keys ),
# Endif
# Ifdef FEATURE_FTM_JOGBALL
Item (ITEM_JOGBALL, uistr_jogball ),
# Endif
 
Alps/mediatek/factory/inc/uistrings_chn.h
# Define uistr_keys "buttons"
# Define uistr_jogball "trackball"
 
 
Factory. chn. ini
MenuItem = buttons;
MenuItem = trackball;
 
Cause 5: The Language in factory. ini is the same as that in factory mode.
If factory mode is a Chinese version, make sure that the strings in factory. ini are also a Chinese version, and vice versa.
If you want to display only the test items in Wi-Fi, BT, and other Chinese and English versions, check whether the factory mode and factory. ini are the same.
Note: The factory. ini shown here refers to

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.