Android刷机Nexus5刷机

来自linux中国网wiki
跳到导航 跳到搜索

https://forum.xda-developers.com/

常识

国内三大移动运营商3G标准:

中国移动:TD-SCDMA

中国联通:WCDMA

中国电信:CDMA2000

4G 联通和电信是TD-LTE、LTE FDD; 移动是TD-LTE

手机费用

移动 神舟行 4.9/m 现有 39/mouth 5G流量 30分钟电话 还是比我的联通40贵了

Usage

拨*#*#4636#*#*,手机信息,会看到首选网络类型 可能为 为unknown
我现在是设置为了 lte/wcdma

参考如下 https://club.lenovo.com.cn/thread-4327095-1-1.html


原生安卓 WiFi 4G 信号去叹号去叉教程

国外类原生 ROM 不支持电信卡

强制重启 poweroff+voluem- +volume+ 三个一起按 10s左右就会关机or reboot

重量

ph1 185克 x7 178克

essential ph1 lineageos 电话是没信号问题

6. VoLTE视频无法连接
状态:已解决
现象:使用VoLTE通话过程中,视频信道无法正常建立连接。
原因:LineageOS默认的apns-conf.xml中不包含中国三大运营商的ims类型APN配置。
修复:手工创建一个新的APN,名称为IMS,APN为:ims,APN类型为:ims。

我是完全改了其中一个 然后好了 ?

但是接入点是 wap 网络  China  mobile 终于显示LTE了  

但是换个卡好像又不行了 什么鬼 

sim工具 也要搞一下 

如果是电信卡
网络

手机是全网通的,并且双卡双待。刷机后开机,电话网络都是莫法用的。不要着急,在网络制式中更改首选网络。我是使用电信卡(CDMA 电信2G;EVDO 电信3G;LTE 电信4G),理论上首选网络只要包含这三者的就可以正常使用。

先将首选网络设置为CDMA+EVDO/LTE,此时可以打电话发短信,但是4g数据连接有问题(侧面证明底包等没有问题);然后选择最后几个全网络(只要包含电信全部通道,并且将4G LTE放在第一个都可以),此时可以打电话 ,连接4g数据。

如果没反应,选择简单网络(比如CDMA+EVDO/LTE),重启,选择需要网络,飞行模式开关,刷新查看。

时间

时钟里 要选择上北京 不然可能时间一重启就不对了哦

彻底解决方法:

adb shell "settings put global ntp_server  cn.pool.ntp.org"
adb shell "settings put global ntp_server  time.ustc.edu.cn"
adb shell "settings put global ntp_server pool.ntp.org"

因为默认 NTP 服务器 Google 的 time 服务器,你被墙着,连不上的。

原生系统时间同步服务器在墙外,没有vpn可能无法自己同步时间。需要自己同步的话可以挂t子,也可以进入设置-系统-日期和时间 关闭自动同步手动设置时间。

Android 系统时间不对有遇到的吗

解说

手机OTA功能有什么用?

手机OTA升级是指Android系统提供的标准软件升级方式,可以无损失升级系统,主要手段是通过网络(包括WIFI、3G)自动下载OTA升级包、自动升级,不局限,也支持通过下载OTA升级包到SD卡升级。


Android 玩机终极指南

app

在 Android 手机上看天气,你有这些高颜值、无广告的选择

操作

保留数据 nexus 5升级到安卓 6.0.1 的办法

Install adb and fastboot

Installing adb and fastboot

Install TWRP Recovery

Install TWRP Recovery

Installing LineageOS from recovery

Wipe the device

In the TWRP Home menu, select Wipe > Advanced Wipe. Select Dalvik / ART Cache, System, Data, and Cache. Do not select the Internal Storage otherwise you will lose the data. Then Swipe to Wipe.

Install pixel experience

pixel experience基于AOSP(Android Open-Source Project),后者翻译为android开源代码项目,简单说Android是开源操作系统,Google发布的Android版本会给出对应的开放源代码,即AOSP ROM。应该说在此基础上做出更改和优化的ROM,都是基于AOSP,但是pixel experience为什么特别吸引人了?

Git-Hub对pixel experience介绍是AOSP based ROM, with Google apps included and all Pixel goodies。ROM包含Google应用和所有的pixel系列(包括桌面,壁纸,图标等)--意为在不同型号的手机上获得类似pixel手机的体验。举个最简单的梨子:同样是基于android P,lineageOS 16.0中的相机是他家另外包装的app,但是pixel experience中的相机就是Google Camera;另外lineageOS 16.0的桌面和图标等都是pixel是不同的,但是我用的觉得是一样的呀

https://download.pixelexperience.org/sailfish pixel

最接近android纯净版--在安卓手机上安装pixel experience全过程


Pixel XL 搞机 LineageOS

Install LineageOS

Select Install then select the zip image file. It will take some times to install. Please wait and be patient.

注意 recovery 里面 先要 wipe data 然后才能 卡刷 lineageos

lineage 卡刷包下载地址

https://mirrors.ustc.edu.cn/lineageos/full/hammerhead/

https://download.lineageos.org/hammerhead

问题

解决小米4电信4G版刷LineageOS信号问题

下载方式

方法1

ping or dig 得出 ip

正在解析主机 mirrorbits.lineageos.org (mirrorbits.lineageos.org)... 192.99.39.68

于是 绑hosts

192.99.39.68 mirrorbits.lineageos.org 然后就可以 下载 wget -c https://mirrorbits.lineageos.org/full/hammerhead/20170704/lineage-14.1-20170704-nightly-hammerhead-signed.zip

方法2

还有更加开心的发现 国内有mirrors https://mirrors.ustc.edu.cn/lineageos/full/hammerhead/

Install Google Apps

Root

Root 获取超级权限

1. 下载 SuperSU, 将 zip 文件复制到手机中
2. 关机状态下 同时按住“音量-” “音量+”和“电源”两键进入手机引导模式
3. 按音量键滚动至“Recovery Mode”,按电源键确认,即可进入 Recovery
4. 在 TWRP  Install(安装)第1步中已复制到手机中的 zip 文件

SuperSU下载地址

优化

用刷机精灵可以卸载很多刷机精灵系统强加的软件,如果你安装的不是干净的包

用刷机精灵可以 方便刷入,但是会带很多不要的软件 坑

使用 Lineage OS 系统的感受(别人说的) 我是没有 root 手机的习惯的,一直使用绿色守护来结束后台的。国内的软件在这个系统下大部分可以正常流畅运行,适配良好。但也有极少数软件,比如搜狗输入法可能会有闪退,我并不清楚什么原因造成的,建议使用百度的输入法,适配良好。 看完这篇,你就知道关于 Lineage OS 系统的一切

https://downloads.aospextended.com/

原生安卓 lineageos WiFi 4G 信号去叹号去叉教程

root@myxps:~# adb devices
List of devices attached
PM1LHMA792000781	device

没有的话 先开启  开发者选项的 调试各个开关 

root@myxps:~# adb shell settings delete global captive_portal_mode
Deleted 0 rows
root@myxps:~# adb shell settings put global captive_portal_mode 0
root@myxps:~# adb shell settings delete global captive_portal_https_url
Deleted 0 rows
root@myxps:~# adb shell settings delete global captive_portal_http_url
Deleted 0 rows
root@myxps:~# adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
root@myxps:~# adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204




adb shell settings get global captive_portal_mode
,返回结果应为0。


 注意: http://connect.rom.miui.com/generate_204 是连接验证服务器,想使用其它服务器自行度娘。

下面提供两个访问较为稳定的,选择任何一个网址均可:

   connect.rom.miui.com/generate_204

   www.v2ex.com/generate_2 


trouble shooting

root@myxps:~# adb devices
List of devices attached
PM1LHMA792000781	no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]

root@myxps:~# adb shell settings get global captive_portal_mode
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
root@myxps:~# adb shell settings get global captive_portal_mode
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
root@myxps:~# adb shell "settings put global captive_portal_http_url http://captive.lineageos.org.cn/generate_204"
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information

解决 

adb kill-server
adb start-server
  adb devices
  
  
[https://blog.csdn.net/ShadowySpirits/article/details/83536479?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.control  原生安卓 WiFi 4G 信号去叹号去叉教程]  

https://hky.moe/archives/162/

== pixel ==
===lineageos===
https://wiki.lineageos.org/devices/sailfish/install
=== pixelexperience===
有google pixel 相关服务的 

https://wiki.pixelexperience.org/devices/sailfish/install/

https://wiki.pixelexperience.org/help/adb-fastboot-guide/

[https://zhuanlan.zhihu.com/p/81081582 最接近android纯净版--在安卓手机上安装pixel experience全过程]

<pre>
开启usb调试 



出现“无命令”机器人倒地红叉的时候,然后只需先按住电源键(电源键不松开),然后再按一下 音量加 在上面 即可进入官方的Recovery,进行双清恢复出厂设置



要先这一步才可以 进入  recovery 啦 
fastboot flash boot  PixelExperience_sailfish-10.0-20201116-1331-OFFICIAL.img 


然后要先 factory reset



我了个去  官方有说这个的 我还找了半天 以为出事了 还有  要先 刷入img文件的呢  不然进入不了  remover 

root@myxps:/home/evan/google# adb sideload PixelExperience_sailfish-10.0-20201116-1331-OFFICIAL.zip 
adb: failed to read command: Success



Tip: If the installation process reports the message "(~47%) adb: failed to read the command: No error", do not worry, the process was completed successfully and you can restart the device.


原来有有刷入的 哈哈 有黄色壁纸,虽然后来    换 lineageos 

essential刷机相关

注意 ph1刷入 lineageos17 后是没volte支持的 联通卡室内可能没信号

Unlock Bootloader, Install LineageOS ,TWRP and Root Essential PH-1

还是官方教程好呀 网上到处找教程都出错,终于在官网找到了 666  不过会清空配置哦  20180201
Unlock your bootloader
NOTE: Installing the factory image will erase all information from your device. So remember to backup your phone before continuing.
• Run the command: fastboot flashing unlock


adb reboot bootloader

C:\Users\Administrator>fastboot oem unlock
...
FAILED (remote: unknown comma
finished. total time: 0.000s
昨天到这里

 fastboot flash boot twrp.img


Q:为什么手机什么也不做就发热严重?Google Play服务异常耗电?
 
A:因为你的手机没有科学上网。解决办法有以下几种,一,挂t子。二,用冰箱,黑阈,绿守冻结Google Play服务,停用Google等系列应用(chrome最好不要停用)。三,应用控制器,ifw功能,点进谷歌服务,然后随便去开一个需要谷歌服务的app,然后控制器里把所有正在运行的服务都禁止(需要root)。四,刷没有谷歌服务的第三方rom。

twrp for essential-ph1 Essential-PH1-WindowsDrivers

magisk

How To Unlock Bootloader Of Any Android Using Fastboot


http://rootmygalaxy.net/root-essential-phone-install-twrp-unlock-bootloader/

Essential Phone PH1原生系统常见问题以及解答

essential官方固件 和官方教程

asus刷机相关

电神5000刷入非官方Lineage OS(Android7.1) http://zentalk.asus.com.cn/forum.php?mod=viewthread&tid=30586&extra=page%3D1

电神ww版已出6.0官方正式版。正式版的刷机,root方法(转载自XDA) http://zentalk.asus.com.cn/forum.php?mod=viewthread&tid=19630&extra=page%3D1


http://www.asus.com.cn/Phone/ZenFone-Max-ZC550KL/helpdesk_download/

进阶

Android9.0源码编译[OnePlus6][LineageOS16.0]

参考

Nexus/Pixel亲儿子系列设备变砖怎么办

Android如何在No command下进入recovery


Unlock Bootloader, Install LineageOS ,TWRP and Root Essential PH-1

How to install TWRP Recovery on Nexus 5

https://twrp.me/devices/lgnexus5.html

https://www.techonia.com/6129/install-twrp-recovery-nexus-5


Install LineageOS on hammerhead

https://wiki.lineageos.org/devices/hammerhead/install


使用TWRP Recovery刷魔趣ROM图文教程


mokee http://www.mokeedev.com/

下载 https://download.mokeedev.com/?device=hammerhead&type=release

保留数据 nexus 5升级到安卓 6.0.1 的办法 http://blog.linuxchina.net/?p=2050


LineageOS

https://zh.wikipedia.org/wiki/LineageOS


LineageOS 刷机root简要通用教程 http://www.pixcn.cn/portal.php?mod=view&aid=5434

https://zhuanlan.zhihu.com/p/25041097