RK默认值设置
Near the end of the project, today also happens to initialize the default values in the system, Google a bit, and sometimes have to do a take ism, not only when they do wheel drops, huh, huh
1 boot pictures:
Android-logo-mask.png
Android-logo-shine.png
Here are the two pictures. One is on the next, and the other is down
./out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes/assets/images/android-logo-shine.png
./frameworks/base/core/res/assets/images/android-logo-shine.png
Note: if the source does not have make, you can change the pictures in the frameworks directly
Then directly make, otherwise, must be fully changed and cannot make, only make firmwar
2 default boot wallpaper position:
Default_wallpaper.jpg
./out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes/res/drawable/default_wallpaper.jpg
./frameworks/base/core/res/res/drawable/default_wallpaper.jpg
Note: this setting is the same as above. Neither of them can change the file name
3 change the PC machine to delete the text in the hardware kernel
Drivers/usb/gadget/f_mass_storage.c
Fsg->vendor = "XXXXXXXXXXXXX"";
4 change:
Bootable/recovery/etc/init.rc
Setprop UserVolumeLabel "XXXXXXXXXXXXX""
Direct packing
5 modify the screen lock:
(1)
Frameworks/base/packages/SettingsProvider/res/values/defaults.xml
60000
60000 change to desired time if it is not locked for -1
(2)
Frameworks/policies/base/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
Private, Boolean, mExternallyEnabled = true;
Modify it to false
This change will no longer go into hibernation
6 initialization language:
Refer to the next article
7 setting initialization home page:
Package/app/Browser/res/values/String.xml
The 655 line
The back should be in the bookmark
8 set brightness 0~255:
Frameworks/base/packages/SettingsProvider/res/values/defaults.xml
Def_screen_brightness--> this value initializes as if it were more than 100
9 volume:
Frameworks/base/media/java/android/media/AudioManager.java
Array DEFAULT_STREAM_VOLUME fourth values (the maximum I set to 30, but still the difference between 2 squares to the maximum - default is 11
It is recommended that all values in the array be set to a maximum of OK.)
Mm frameworks/base
The maximum volume level of each audio stream is defined in AudioService.java:
[java], view, plaincopyprint?
01./** @hide Maximum volume index values for audio streams.
2, private, int[], MAX_STREAM_VOLUME = new, int[] {
3.5 / / STREAM_VOICE_CALL
4.7 / / STREAM_SYSTEM
5.7 / / STREAM_RING
6.15 / / STREAM_MUSIC
7.7 / / STREAM_ALARM
8.7 / / STREAM_NOTIFICATION
9.15 / / STREAM_BLUETOOTH_SCO
10.7 / / STREAM_SYSTEM_ENFORCED
11.15 / / STREAM_DTMF
12.15 / / STREAM_TTS
13.};
@hide Maximum volume index values for / * * * audio streams
Private, int[], MAX_STREAM_VOLUME = new, int[] {
5 / / STREAM_VOICE_CALL
7 / / STREAM_SYSTEM
7 / / STREAM_RING
15 / / STREAM_MUSIC
7 / / STREAM_ALARM
7 / / STREAM_NOTIFICATION
15 / / STREAM_BLUETOOTH_SCO
7 / / STREAM_SYSTEM_ENFORCED
15 / / STREAM_DTMF
15 / / STREAM_TTS
};
10 set up the Google account, the upper left corner prompt "set RK2818SDK", "change" to "set W9"":
Default.prop file in out\target\product\sdkDemo\root thirteenth lines
Ro.product.model=rk2818sdk instead of ro.product.model=W9
11 recordings are not shown for hours. Ask for more:
Packages\apps\SoundRecorder\src\com\android\soundrecorder
(1) SoundRecorder.java: private, void, updateTimerView ()
Put String timeStr = String.format (mTimerFormat, time/60, time%60);
Instead: long hour=time/3600;
String, timeStr = String.format (mTimerFormat, hour, (time-hour*3600), /60, time%60);
(2) change "strings.xml" to "\res\values" in ":
%02d:%02d:%02d
12 remove Bluetooth:
(the main interface - > Add Folder ->Bluetooth received)
Ic_launcher_folder_bluetooth.png (72*72):
在\包装\程序\蓝牙\物\ drawable hdpi
解决
:删除\出\目标\产品\ sdkdemo \系统\程序下的
bluetooth.apk
13充电锁屏时图片:
框架\基础\核心\水库\水库\ drawable hdpi:
ic_lock_idle_charging.png
14去掉锁屏时显示充电百分比在:
框架\基础\核心\水库\水库\值ZH RCN中strings.xml的
lockscreen_plugged_in括号中的
及括号~~
15去掉动态桌面背景选项:
包\壁纸\基本中AndroidManifest. xml的<服务>这些,如星系注释掉如下这些:
<服务
安卓:标签=“@字符串/ wallpaper_galaxy”
安卓:名称=“COM。Android。壁纸。银河。galaxywallpaper”
安卓:=“Android权限。权限。bind_wallpaper”>
<意图筛选器>
<行动机器人:名称=“Android服务。壁纸。WallpaperService”/>
<意图筛选器>
<元数据> Android
< /服务>
16更改版本号:
建立/核心/ makefile
79行
rk_ver:= xxx
17更改界面布局
位置:包/应用程序/ launcher2 /物/ XML / default_workspace.xml
注意:adb shell里当你点击任意的一个APK的时候,在后台会输出
我/ ActivityManager(728):开始活动:意向行为=猫=
{ android.intent.action.main [ Android。意图。范畴。发射器]看图= = 0x10200000 CMP组件。es。Android。流行。
view.fileexploreractivity塞内加尔国家开发银行= [ 294373 ] [ 393478 ] }
我/窗口管理器(728):设置旋转1,animflags = 0
看蓝色的部分就可以找到/前是包名/后面是类名-->这个是在
default_workspace XML里面需要用到的。
发射器:packagename =“COM。Android浏览器”
发射器:className =“COM。Android的浏览器,BrowserActivity”。
18如何将PDF类的文件放到桌面上
客户要求将他们自己制作的PDF帮助文档放置到桌面上使客人可以直接点击就浏览
字符串urlstring =“/系统/应用程序/ nvsbl p4dv2英文手
册.pdf”;
intent intent = new intent ();
intent.setaction (android.content.intent.action _ view);
intent.setdataandtype (uri.fromfile (new file (urlstring)),
"application / pdf");
startactivity (intent);
finish ();
解释下:
首先将pdf文档放到out / target / product / sdkdemo / system
/ app下
将固定地址给出urlstring, 使用intent
intent.setaction (android.content.intent.action _ view); 启动view
intent.setdataandtype (uri.fromfile (new file (urlstring)),
"application / pdf");
application / pdf可以指定别的格式包括音频, 视频, 图片等等但是没有试过有需要可以试试
注意: 这个方法很不到如果只放置一些图片还可以但是如果放置文件比较大那么打包出来的
system.img文件会很大也就是占用本身的系统内存 ----- > 所以不推荐使用! !! !! !! !! !!
19.发现pin解锁界面出现5秒之后就会自动进入睡眠, 之后将无法再次解锁.目前解决方法:
修改文件 frameworks and policies' base 'phone. com \ android \ internal "policy \ impl \ keyguardviewmediator.java
将如下这行:
protected static final int awake _ interval _ default _ ms = 5000;
修改为:
protected static final int awake _ interval _ default _ ms = 1000 * 60 * 5;