Modify the system settings of the Android phone (broncho A1) under the terminal

Source: Internet
Author: User

Indicate the source and author's contact information during reprinting.
Article Source: http://www.limodev.cn/blog
Author contact: Li xianjing <xianjimli@gmail.com>

A friend played with the broncho A1 lock screen. As a result, the mobile phone is locked and the Google ID cannot be entered (I can do it here ). Recover the system, and he didn't want to reinstall all the software. So I studied how to modify the system settings on the command line. He is not engaged in technology, so I asked him to change the settings. DB name or delete it, but it was a bit violent. Here we will introduce a slightly more troublesome but user-friendly method.

1. Compile a sqlite3 command line tool (external/SQLite/Dist) first ).
(You Need To comment out local_module_tags: = debug line in Android. mk)

2. Upload compiled sqlite3 to A1.

# ADB push out/target/product/Littleton/system/xbin/sqlite3/Data

3. Use a serial port or ADB to connect to the A1 terminal.
ADB shell <br/> # cd/Data <br/> # chmod 775 sqlite3

4. Use sqlite3 to set up a database in the data system.
#./Sqlite3/data/COM. Android. providers. Settings/databases/settings. DB

View tables in the database:
SQLite>. Tables <br/> android_metadata bookmarks secure <br/> define th_devices gservices System

View the content in the table system:

SQLite> select * from system; <br/> 1 | volume_music | 11 <br/> 3 | volume_system | 5 <br/> 5 | volume_alarm | 6 <br/> 7 | mode_ringer | 2 <br/> 8 | vibrate_on | 4 <br/> 9 | mode_ringer_streams_affected | 38 <br/> 10 | mute_streams_affected | 46 <br/> 11 | dim_screen | 1 <br/> 12 | average | 0 <br/> 13 | screen_off_timeout | 60000 <br/> 14 | airplane_mode_on | 0 <br/> 15 | airplane_mode_radios | cell, bluetooth, wiFi <br/> 16 | auto_time | 1 <br/> 17 | screen_brightness | 102 <br/> 18 | window_animation_scale | 1.0 <br/> 19 | transition_animation_scale | 0.0 <br/> 20 | accelerometer_rotation | 1 <br/> 21 | dtmf_tone | 0 <br/> 22 | date_format | mm-dd-yyyy <br/> 23 | yy_led_color | 255 <br/> 24 | notify_incoming_call | 1 <br/> 25 | yy_missed_call | 1 <br/> 26 | yy_sms_mms | 1 <br/> 27 | yy_email | 1 <br/> 28 | notify_voice_mail | 1 <br/> 29 | policy_remind | 1 <br/> 63 | volume_voice | 4 <br/> 64 | volume_voice_last_audible | 4 <br/> 73 | required | 0 <br /> 111 | lock_pattern_visible_pattern | 1 <br/> 122 | font_scale | 1.0 <br/> 127 | next_alarm_formatted | <br/> 129 | lock_pattern_autolock | 1 <br/> 130 | lockscreen. patterneverchosen | 1 <br/> 131 | volume_notification | 5 <br/> 132 | volume_notification_last_audible | 5 <br/> 133 | volume_ring | 5 <br/> 134 | limit | 5 <br/> 135 | lockscreen. lockedoutpermanently | 1

View the schema of the system table:

SQLite>. schema System <br/> Create Table System (_ id integer primary key autoincrement, Name text unique on conflict replace, value text ); <br/> Create index systemindex1 on system (name );

Modify Table content:

SQLite> Update System set value = '0' where name = 'lockscreen. lockedoutpermanently '; <br/> SQLite> Update System set value = '0' where name = 'lock _ pattern_autolock '; <br/> SQLite> Update System set value = '0' where name = 'lock _ pattern_visible_pattern ';

Exit database:

SQLite>. Quit

5. Restart broncho A1:

/Data # reboot

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.