找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2864|回复: 4

[T1] [教程]斐讯T1/N1变更系统默认语言

[复制链接]
发表于 2019-3-8 07:16 | 显示全部楼层 |阅读模式
按照网上的教程,按理说变更系统默认语言只需修改 build.prop
  1. ro.product.locale.language=zh
  2. ro.product.locale.region=CN
复制代码
然而猜想斐讯官方大概是没打算支持,所以改了也没用,於是乎只好另想办法,如果只是想研究其他语言介面,那麽只需安装 MoreLocale 2,然後随时调用即可
https://play.google.com/store/apps/details?id=jp.co.c_lis.ccl.morelocale

如果不想每次开机都得执行一次 MoreLocale 2,那麽就得修改 /system/bin/lazy-start.sh

首先请下载软件 ADB Change Language
https://play.google.com/store/apps/details?id=net.sanapeli.adbchangelanguage
或是到 apkpure.com 下载 ADB_Change_Language_v0.80_apkpure.com.apk

其次请参照各位大神的教程,安装adb工具於Windows之下的 "c:\adb",请将以下192.168.1.31置换成斐讯T1/N1的IP,开启CMD视窗
  1. c:\adb>adb connect 192.168.1.31
  2. connected to 192.168.1.31:5555

  3. c:\adb>adb shell setprop service.phiadb.root 1

  4. c:\adb>adb shell setprop service.adb.root 1

  5. c:\adb>adb connect 192.168.1.31
  6. connected to 192.168.1.31:5555

  7. c:\adb>adb shell "mount | grep ro,"
  8. rootfs on / type rootfs (ro,seclabel)
  9. /dev/block/system on /system type ext4 (ro,seclabel,relatime,data=ordered)

  10. c:\adb>adb remount
  11. remount succeeded

  12. c:\adb>adb shell "mount | grep system"
  13. /dev/block/system on /system type ext4 (rw,seclabel,relatime,data=ordered)

  14. c:\adb>adb shell ls -l /system/bin/lazy-start.sh
  15. -rwxr-xr-x 1 root shell 471 2018-04-16 20:59 /system/bin/lazy-start.sh

  16. c:\adb>adb pull /system/bin/lazy-start.sh
复制代码
以下为斐讯T1 YYFROM讯飞语音版修改后的 lazy-start.sh
  1. #!/system/bin/sh

  2. /system/xbin/supolicy --live --sdk=25
  3. /system/xbin/supolicy --live "permissive init;permissive kernel;permissive untrusted_app;permissive toolbox;permissive shell;permissive priv_app;"

  4. # patch for sogou ime
  5. ime enable tv.yuyin/com.iflytek.xiri.ime.InputMethod
  6. ime set tv.yuyin/com.iflytek.xiri.ime.InputMethod
  7. ime disable com.sohu.inputmethod.sogou.tv/.SogouIME

  8. #ssh功能
  9. /system/xbin/dropbear &

  10. #optware功能
  11. /system/etc/install-recovery.sh

  12. #以下为新增
  13. #Change locale
  14. am start -n net.sanapeli.adbchangelanguage/.AdbChangeLanguage -e language en

  15. #Start adbd as root
  16. setprop service.phiadb.root 1
  17. setprop service.adb.root 1
复制代码
保存为Unix格式以后,继续执行
  1. c:\adb>adb shell mv /system/bin/lazy-start.sh /system/bin/lazy-start.sh.bak

  2. c:\adb>adb push lazy-start.sh /system/bin
  3. 10 KB/s (630 bytes in 0.060s)

  4. c:\adb>adb shell chmod 755 /system/bin/lazy-start.sh

  5. c:\adb>adb shell ls -l /system/bin/lazy-start.sh
  6. -rwxr-xr-x 1 root shell 630 2019-03-08 01:00 /system/bin/lazy-start.sh

  7. c:\adb>adb install ADB_Change_Language_v0.80_apkpure.com.apk
  8. 1027 KB/s (832522 bytes in 0.791s)
  9. Success

  10. c:\adb>adb shell pm grant net.sanapeli.adbchangelanguage android.permission.CHANGE_CONFIGURATION
复制代码
以上重启后系统默认语言改成英文
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-6-29 12:32 | 显示全部楼层
其实直接启动语言偏好设置对应的活动就能切换语言,虽然入口被斐讯给隐藏了(com.android.settings.Settings$LocalePickerActivity)不过我这里拆了一大堆系统应用,发现包括framework在内大部分系统级应用除了简中以外就没有其他语言配置了2333
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-6-29 13:05 | 显示全部楼层
切换语言还是有必要的,有时上XDA找解答,总得知道原文长什么样子

另外我发现切换语言貌似不需要脚本,详细还没心思研究
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-20 18:18 | 显示全部楼层
Yes, you can change the locale in bulid.pro
but you need to do factory rest .....

then the language will take effect, but the system has no language packs, also morelocal2

and give permission through adb

pm list packages morelocale: pm grant jp.co.c_lis.ccl.morelocale android.permission.CHANGE_CONFIGURATION


Do you have a solution how to make the T1 remote control micrafon work with Google's voice assistant ?????

点评

Sorry. I have no idea. Besides, there's a bug in the voice driver which leads to 100% CPU usage. Don't know if Phicomm have fixed it in the latest release.  详情 回复 发表于 2019-7-21 06:28
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-7-21 06:28 | 显示全部楼层
loock12345 发表于 2019-7-20 18:18
Yes, you can change the locale in bulid.pro
but you need to do factory rest .....

Sorry. I have no idea. Besides, there's a bug in the voice driver which leads to 100% CPU usage. Don't know if Phicomm have fixed it in the latest release.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-28 21:29

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表