aboutsummaryrefslogtreecommitdiff
path: root/research/smartphone.mdwn
blob: 2a161ca87a83b7defcc9c523788bccdbaef4ef1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[[!meta title="Smartphone"]]

Pesquisa rápida sobre smartphones.

Objetivo
--------

* [LineageOs](https://lineageos.org).

Prós
----

* Código mais aberto.
* Risco menor de backdoors.
* Google Apps não-mandatório.

Contras
-------

* Menos base de aplicativo.
* Atualizações de segurança mais lentas.
* Redução de segurança por conta to root?

LineageOS
---------

* [Update and build preparation](http://lineageos.org/Update-and-Build-Prep/).
* [Moto E surnia builds](https://download.lineageos.org/surnia).
* [Verifying builds](http://wiki.lineageos.org/verifying-builds.html).

### Destravamento

    # stretch onwards: sudo apt install adb fastboot
    sudo apt install android-tools-adb android-tools-fastboot

    1 20160410 14:55:06 user@box:~ $ adb reboot bootloader
    0 20160410 14:55:22 user@box:~ $ fastboot devices
    0012711246      fastboot
    0 20160410 14:55:40 user@box:~ $ fastboot oem get_unlock_data
    ...
    (bootloader) [...]
    OKAY [  0.235s]
    finished. total time: 0.235s
    0 20160410 14:56:01 user@box:~ $ fastboot oem unlock $code
    ...
    (bootloader) Check 'Allow OEM Unlock' in Developer Options.
    FAILED (remote failure)
    finished. total time: 0.007s
    1 20160410 15:30:32 user@box:~ $ fastboot devices
    0012711246      fastboot
    0 20160410 15:30:49 user@box:~ $ 

## Recovery

Usando o [TWRP para Moto E surnia](https://twrp.me/devices/motorolamotoelte.html):

    adb reboot bootloader
    fastboot flash recovery recovery.img
    fastboot reboot

Instalação manual de apps
-------------------------

    adb install app.apk

Upgrade
-------

Procedimento:

* Atualizar ROM.
* Atualizar apps via F-Droid.
* Atualizar apks manualmente.
* Alguns apps podem ser auto-autualizáveis.

Arquivos
--------

Movendo arquivos do sdcard para o armazenamento interno:

    adb shell
    cd /storage/emulated/0
    mv /storage/1FAC-34C3/Music/* Music/

Backups
-------

* [Full Phone Backup without Unlock or … | Samsung Galaxy Nexus](https://forum.xda-developers.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351).
* [How to use ADB backup to back up your unrooted phone - Pocketables](http://www.pocketables.com/2012/09/how-to-use-adb-backup-to-back-up-your-unrooted-phone.html).

    adb backup -all
    adb restore backup.ab

Dicas
-----

* [Hide Certain Files in Android Music Player (or Photo Gallery)](http://www.guidingtech.com/15563/hide-certain-files-android-music-player-photo-gallery/):

    touch /storage/emulated/0/SomeApp/Media/.nomedia

* [Validating the Android 4.2.2 RSA fingerprint](https://shred.zone/cilla/page/374/validating-the-android-422-rsa-fingerprint.html):

    awk '{print $1}' < ~/.android/adbkey.pub | openssl base64 -A -d -a | openssl md5 -c | \
    awk '{print $2}' | tr '[:lower:]' '[:upper:]'

Referências
-----------

* Aplicativos interessantes: snoopsnitch.
* [Modificações](https://web.archive.org/web/20160402005909/https://people.torproject.org/~ioerror/skunkworks/moto_e/).
* [List of custom android firmware](https://en.wikipedia.org/wiki/List_of_custom_Android_firmware).