Android
|
Index
|
|
|
|
General
|
|
Maquinari / Hardware
|
|
Dispositius / Devices
|
- List
of Android devices (wp)
- Supported
devices (Google Play)
- Comparativa
OnePlus
X: ŋel mejor mķvil barato de 5 pulgadas?
-
marca |
model |
data |
info |
Pantalla |
|
|
Memōria / RAM |
targeta SD |
Cāmeres |
|
Android / Capa |
dimensions |
pes |
bateria / carregador |
jack āudio |
FM |
NFC |
preus |
|
|
|
|
mida |
resoluciķ |
tipus |
|
|
principals |
frontals |
|
|
|
|
|
|
|
|
Google |
Pixel 4 |
10/2019
|
|
5,7"
|
2160 x 1080
|
P-OLED
|
- 64 GB / 6 GB
- 128 GB / 6 GB
|
-
|
|
8 MP
|
Android 10
|
|
|
2800mAh
|
-
|
-
|
x
|
|
Pixel 3 |
11/2018 |
|
5,5" |
2160 x 1080 |
P-OLED |
- 64 GB / 4 GB
- 128 GB / 4 GB
|
- |
|
- 8 MP (wide)
- 8 MP (ultrawide)
|
Android 10 |
145.6 x 68.2 x 7.9 mm |
148g |
2915mAh |
- |
- |
x |
|
One Plus
|
7 Pro |
5/2019
|
|
6,67"
|
3120 x 1440
|
Fluid AMOLED
|
- 128 GB / 6 GB
- 256 GB / 8 GB
- 256 GB / 12 GB
|
-
|
- 48 MP (wide)
- 8 MP (tele)
- 16 MP (ultrawide)
|
16 MP (pop-up) |
Android 9.0 / OxygenOS 9.5.11
|
162.6 x 75.9 x 8.8 mm
|
206g |
4000mAh |
-
|
-
|
x
|
|
7 |
5/2019
|
|
6,41"
|
2340 x 1080 |
Optic AMOLED
|
- 128 GB / 6 GB
- 256 GB / 8 GB
|
-
|
- 48 MP (wide)
- 5 MP (depth)
|
16 MP
|
Android 9.0 / OxygenOS 9.5.8
|
157.7 x 74.8 x 8.2 mm
|
182g |
3700mAh
|
-
|
-
|
x
|
|
Oppo |
Reno2 |
8/2019
|
|
6,5"
|
2400 x 1080
|
AMOLED
|
|
micro SD: 256 GB |
- 48 MP (wide)
- 13 MP (tele)
- 8 MP (ultrawide)
- 2 MP (b/w)
|
16 MP (pop-up)
|
Android 9.0 / ColorOS 6.1
|
160 x 74.3 x 9.5 mm
|
189g |
4000mAh
|
x
|
x
|
x
|
|
Reno |
4/2019 |
|
6,4" |
2340 x 1080 |
AMOLED |
|
|
- 48 MP (wide)
- 5 MP (depth)
|
16 MP (pop-up) |
Android 9.0 / ColorOS 6 |
156.6 x 74.3 x 9 mm |
185g |
3765mAhx |
x |
- |
x |
|
Sony
|
Xperia XZ3 |
8/2018
|
|
6,0"
|
2880 x 1440
|
P-OLED
|
|
micro SD: 1 TB |
|
13 MP
|
Android 9.0 |
158 x 73 x 9.9 mm
|
193g |
3300mAh
|
-
|
-
|
x
|
|
Xperia XZ2 Compact |
2/2018 |
|
5,0" |
2160 x 1080 |
IPS |
|
micro SD: 1 TB |
|
5 MP |
Android 8 |
135 x 65 x 12.1 mm |
168g |
2870mAh |
- |
- |
x |
|
Xperia Z5
|
9/2015
|
|
5,2"
|
1920 x 1080
|
IPS
|
|
micro SD: 256 GB |
|
5.1 MP
|
Android 7
|
146 x 72 x 7.3 mm
|
154g |
2900mAh
|
x
|
x
|
x
|
|
Xperia M5 |
9/2015 |
|
5.0" |
1920 x 1080 |
IPS |
|
micro SD: 256 GB |
|
13 MP |
Android 6 |
145 x 72 x 7.6 mm |
142g |
2600mAh |
x |
|
|
|
|
Xperia
1 III |
|
|
6,5"
|
3840 x 1644
|
OLED 120Hz
|
|
micro SDXC: 1 TB |
- 12 MP (24mm)
- 12 MP (70, 105mm)
- 12 MP (16mm)
|
8 MP
|
Android 12
|
165 x 71 x 8,2
|
186g
|
4500mAh / USB PD
|
3,5mm |
-
|
NFC
|
|
Xiaomi |
Redmi
Note 12 Pro 5G |
|
|
6,67" |
2400 x 1080 |
AMOLED 120Hz |
|
- |
- 50 MP
- 8 MP (ultra wide)
- 2 MP (macro)
|
16 MP |
Android 12 (S) / MIUI 14 |
162 x 76 x 7,9 |
187g |
5000mAh
67W |
3,5mm |
|
NFC |
|
Poco X4
Pro 5G |
|
|
6,67" |
2400x1080 |
Super AMOLED 120Hz |
|
micro SD: 1 TB |
- 108 MP
- 8 MP (ultra wide)
- 2 MP (macro)
|
16 MP |
Android 11 / MIUI 13 |
164,19 x 76,1 x 8,12 |
205g |
5000mAh
67W |
3,5mm |
FM |
NFC |
|
Redmi Note 11 Pro [5G] |
|
|
6,67" |
2400x1080 |
Super AMOLED 120Hz |
- 128 GB / 6 GB
- 128 GB / 8 GB
- 256 GB / 8 GB
|
micro SD: 1 TB |
- 108 MP (f/1,8)
- 8 MP (ultra wide, FOV)
- 2 MP (macro)
|
16 MP |
Android 11 / MIUI 12.5 |
163,65 x 76,19 x 8,34 |
204g |
5000mAh
67W |
3,5mm |
- |
NFC |
- 5G, 128/6
- 5G, 128/8
- 4G: 349¤
|
Redmi Note 11 |
|
|
6,43"
|
2400x1080
|
AMOLED 90Hz
|
- 64 GB / 4GB
- 128 GB / 4GB
- 128 GB / 6 GB
|
microSD
|
- 50 MP
- 8 MP (ultra wide)
- 2 MP (macro)
- 2 MP (FOV)
|
13 MP
|
Android 11 / MIUI 13
|
159,87 x 73,87 x 8,09
|
179g
|
5000mAh
33W
|
3,5mm
|
|
NFC
|
|
Redmi Note 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Redmi
Note 8 Pro |
8/2019 |
|
6,53" |
2340 x 1080 |
IPS |
- 64 GB / 6 GB
- 128 GB / 6 GB
|
micro SD: 256 GB |
- 64 MP (wide)
- 8 MP (ultrawide)
- 2 MP (macro)
- 2 MP (depth)
|
20 MP |
Android 9.0 / MIUI 10 |
161.4 x 76.4 x 8.8 mm |
200g |
4500mAh |
x |
x |
x |
|
Redmi Note 8 |
8/2019
|
|
6,3" |
2340 x 1080 |
IPS |
- 64 GB / 4 GB
- 64 GB / 6 GB
- 128 GB / 6 GB
|
micro SD: 256 GB |
- 48 MP (wide)
- 8 MP (ultrawide)
- 2 MP (macro)
- 2 MP (depth)
|
13 MP |
Android 9.0 / MIUI 10 |
158.3 x 75.3 x 8.4 mm |
190g |
4000mAh |
x |
x |
- |
|
Redmi Note 7 Pro |
2/2019 |
|
6,3" |
2340 x 1080 |
IPS |
- 64 GB / 4 GB
- 64 GB / 6 GB
- 128 GB / 6 GB
|
micro SD: 256 GB |
- 48 MP (wide)
- 5 MP (depth)
|
13 MP |
Android 9.0 / MIUI 10 |
159.2 x 75.2 x 8.1 mm |
|
4000mAh |
x |
x |
- |
|
Redmi Note 7 |
1/2019
|
|
6,3" |
2340 x 1080 |
IPS
|
- 32 GB / 3 GB
- 64 GB / 4 GB
- 64 GB / 6 GB
- 128 GB / 4 GB
|
micro SD: 256 GB |
- 48 MP (wide)
- 5 MP (depth)
|
13 MP
|
Android 9.0 / MIUI 10 |
159.2 x 75.2 x 8.1 mm
|
|
|
|
|
|
|
Redmi 7 |
|
|
6,26" |
1520 x 720 |
|
|
micro SD: 512 GB |
|
8 MP |
Android 9.0 / MIUI 10 |
|
|
|
|
|
|
|
Redmi 7A |
|
|
5,45" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Xiaomi 12T Pro | 5G |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Xiaomi 12T |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Xiaomi 12X |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mi 9 Pro |
9/2019 |
|
6,39" |
2340 x 1080 |
Super AMOLED |
- 128 GB / 8 GB
- 256 GB / 8 GB
- 256 GB / 12 GB
- 512 GB / 12 GB
|
- |
- 48 MP (wide)
- 16 MP (ultrawide)
- 12 MP (tele)
|
20 MP |
Android 10 / MIUI 11 |
157.2 x 74.6 x 8.5 mm |
|
4000mAh |
|
- |
x |
|
Mi 9 |
2/2019 |
|
6,39" |
2340 x 1080 |
Super AMOLED |
|
- |
|
|
|
|
|
|
|
- |
|
|
Mi 9T Pro |
8/2019
|
|
6,39" |
2340 x 1080 |
Super AMOLED |
- 64 GB / 6 GB
- 128 GB / 6GB
- 256 GB / 8 GB
|
-
|
- 48 MP (wide)
- 13 MP (ultrawide)
- 8 MP (tele)
|
20 MP (pop-up)
|
|
|
|
|
|
|
|
|
Mi 9T |
6/2019
|
|
6,39" |
2340 x 1080 |
AMOLED
|
|
-
|
|
20 MP (pop-up) |
|
156.7 x 74.3 x 8.8 mm
|
191g
|
4000mAh / 18W |
|
x
|
|
|
Mi 9 Lite |
|
|
6,39" |
2340 x 1080 |
Super AMOLED |
|
micro SD: 256 GB |
|
|
|
156.8 x 74.5 x 8.7 mm |
|
4030mAh |
x |
x |
|
|
Mi 8 Pro |
|
|
6,21" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mi 8 |
|
|
6,21" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mi 8 Lite |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mi A3 |
|
|
6,01" |
1560 x 720 |
Super AMOLED |
- 64 GB / 4 GB
- 128 GB / 4 GB
- 128 GB / 6 GB
|
micro SD: 256 GB |
- 48 MP (wide)
- 8 MP (ultrawide)
- 2 MP (depth)
|
32 MP |
Android 9.0 / Android One |
153.5 x 71.9 x 8.5 mm |
173g |
4030mAh / [18W] |
x |
x |
- |
|
-
marca
|
model
|
info
|
Android
|
CPU
|
RAM
|
pantalla
|
cāmera
|
bateria
|
NFC
|
FM
|
4G
|
dimensions
|
pes
|
memōria
|
mSD
|
preu
|
|
|
|
|
|
|
mida
|
res
|
ppi
|
tecnologia
|
frontal
|
posterior
|
|
|
|
|
al
|
am
|
fn
|
|
|
|
iElectro
|
Phone House
|
PC Componentes
|
Value Basket
|
Mediamarkt
|
DX
|
altres
|
Jazztel
|
Google
|
BQ
|
Aquaris M5
|
|
5.0
|
QualcommŽ
Snapdragon™ 615 Octa Core A53 up to 1.5 GHz
|
2GB
|
5
|
1920x1080 |
400
|
|
5MP
(flash)
|
13MP |
3120
mAh
|
x
|
x
|
x
|
143
|
69.4
|
8.4
|
144
|
16GB |
x
(64)
|
|
|
|
|
|
|
259
|
|
|
3GB |
16GB |
|
|
|
|
|
|
279
|
|
|
3GB |
32GB |
|
|
|
|
|
|
299
|
|
|
Google
|
Pixel XL
|
|
7.1
|
Qualcomm Snapdragon 821
quad-core 2.1GHz |
4GB |
5.5
|
2560 x 1440 |
|
|
8
|
12
|
3450 |
|
|
|
154.7 |
75.7 |
8.6 |
168 |
32GB
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128GB
|
|
|
|
|
|
|
|
|
|
|
Pixel
|
|
7.1 |
Qualcomm Snapdragon 821
quad-core 2.1GHz
|
4GB
|
5
|
1920x1080 |
|
|
8
|
12
|
2770
|
|
|
|
143.8 |
69.5 |
8.6 |
143 |
|
|
|
|
|
|
|
|
|
|
|
Nexus 5X
|
|
6
|
Qualcomm
Snapdragon 808
6 core 1.8GHz
|
2GB
|
5.2
|
1920x1080
|
423
|
|
5
|
12.3
|
2700
|
|
|
|
147,0
|
72.6
|
7.9
|
136
|
16GB
|
|
|
|
|
|
|
|
|
|
429
|
32GB
|
|
|
|
|
|
|
|
|
|
479
|
Nexus
6P
|
|
6
|
Qualcomm
Snapdragon 810 v 2.1
8 core 2.0GHz
|
3GB
|
5.7
|
2560x1440
|
518
|
|
8
|
12.3
|
3450
mAh
|
x
|
-
|
x
|
159,3
|
77,8
|
7,3
|
178
|
32GB |
-
|
|
|
|
|
|
|
|
|
649
|
64GB |
|
|
|
|
|
|
|
|
699
|
128GB |
|
|
|
|
|
|
|
|
799
|
HTC
|
One M10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
One A9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
One
M9
|
|
5.0 (6.0)
|
Quad-core 1.5 GHz
Cortex-A53 & Quad-core 2 GHz Cortex-A57
|
|
5
|
1920x1080 |
|
|
4MP
|
20MP
|
|
x
|
x
|
|
144.6
|
69.7
|
9.6
|
157
|
32GB |
x (128)
|
|
|
|
389
|
|
|
|
|
|
One
M8
|
|
5.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32GB
|
|
|
|
|
|
|
300
|
|
|
|
|
|
2GB |
5
|
1920x1080 |
|
|
5MP |
13MP |
|
|
|
|
|
|
|
|
16GB |
|
|
|
|
374
|
|
|
|
|
|
One
Mini 2
|
|
4.4.2 (5.0)
|
|
1GB
|
4.5
|
1280x720 |
|
|
5MP |
13MP |
|
|
|
|
|
|
|
|
16GB |
|
|
|
|
337,292
|
|
|
223
|
|
|
Desire 816X
|
|
4.2.2
|
|
1.5GB
|
5.5
|
1280x720 |
|
|
5MP |
13MP |
|
|
|
|
|
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
Desire 610
|
|
4.2
|
|
1GB
|
4.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294
|
|
|
|
|
Huawei
|
P8
|
|
5.0.2
|
8-core 64bit, 2.0GHz
|
3GB |
5.2
|
1920x1080 |
|
|
8MP
|
13MP
|
|
x
|
-
|
-
|
|
|
|
|
16GB |
x
|
399
|
|
|
|
|
|
|
|
|
Honor 6
|
|
4.4.2
|
dual Quad-Core
|
3GB |
5
|
1920x1080 |
|
|
5MP
|
13MP |
|
x
|
x
|
x
|
|
|
|
|
16GB |
|
299
|
|
|
|
|
|
|
|
|
Ascend G7
|
|
4.4.2
|
Quad-Core a 1.2 GHz
|
2GB |
5.5
|
1280x720
|
|
|
5MP |
13MP |
|
x
|
x
|
x
|
|
|
|
|
16GB |
|
219
|
|
|
|
|
|
|
|
|
P8 Lite
|
|
5.0.2
|
Octa-core 1.2 GHz
|
2GB |
5
|
1280x720 |
|
|
5MP |
13MP |
|
x
|
?
|
|
143
|
70.6
|
7.7
|
131
|
16GB |
x
|
209
|
|
|
199
|
|
|
|
|
|
Honor 4X
|
|
4.4.4
|
Cortex A53 Octa-Core a
1.2 Ghz
|
2GB |
5.5 |
1280x720 |
|
|
5MP |
13MP |
|
-
|
x
|
x
|
152.9
|
77.2
|
8.7
|
165
|
8GB |
x (32)
|
199
|
|
|
|
|
|
|
|
|
Motorola
(Lenovo)
|
Z
|
no jack 3.5
|
|
|
4GB
|
5.5
|
2560x1440 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Z Play
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RAZR HD
|
|
4.0
|
|
|
4.7
|
1280x720 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
429
|
|
|
|
|
|
RAZR |
|
4.0.4
|
2 GHz Intel Atom
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
419,
374
|
|
|
|
|
|
Moto
X Play XT1562
|
|
5.1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32GB
|
|
|
|
|
|
|
|
|
|
|
|
|
2GB |
|
|
|
|
|
|
|
|
|
|
148
|
75
|
10.9
|
169
|
16GB
|
|
|
|
|
329
|
|
|
|
|
|
Moto
G 4 plus
|
|
6.0.1
|
QualcommŽ
Snapdragon™ 617, 8 cores, 1,5GHz
|
2GB |
5.5 |
1920x1080 |
|
|
5MP |
16MP
|
|
|
|
|
153 |
76.6
|
7.9-9.8
|
155
|
16GB |
x
(<128) |
|
|
|
|
|
|
|
|
|
Moto
G 4
|
|
|
|
13MP |
|
|
|
|
|
|
|
|
|
|
|
|
|
Moto
G (3rd) XT1541
|
|
5.1
|
1.4 GHz / Quad Core
|
1GB
|
5
|
1280x720 |
|
|
5MP |
13MP |
|
-
|
|
x
|
142
|
72
|
11
|
155
|
8GB |
x
|
|
|
|
212
|
189
|
|
|
|
|
Moto G (2nd) XT1072
|
|
|
Quad-core de 1,2 GHz
Cortex-A7
|
1GB |
5
|
1280x720 |
|
|
2MP
|
8MP
|
|
-
|
|
x
|
|
|
|
|
8GB |
|
|
|
|
199
|
|
|
|
|
|
OnePlus
|
One
Plus 3
|
|
OxygenOS |
Snapdragon 820
|
6GB
|
5.5
|
1920x1080 |
|
|
8MP
|
12MP
|
|
|
-
|
|
152.7
|
74.7
|
7.35
|
|
64GB
|
-
|
|
|
|
|
|
|
399
|
|
|
One
Plus 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319
|
|
|
One
|
|
|
|
|
5.5
|
1920x1080
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
299
|
|
|
|
|
|
|
|
|
X
|
|
OxygenOS (5.1.1)
|
Snapdragon 801 2,3GHz
|
3GB
|
5
|
1920x1080 |
|
|
|
|
2525mAh
|
|
|
|
140
|
69
|
|
|
16GB
|
x
|
269
|
|
|
|
|
|
239
|
|
|
Sony
Xperia
|
XZ
|
|
(N)
|
QualcommŽ Snapdragon™
820, 64-bit Quad-core processor
|
3GB |
5.2
|
1920x1080 |
|
|
13MP |
23MP
|
|
|
-
|
|
|
|
|
|
32
64
|
|
|
699
|
|
|
|
|
|
|
|
X
Performance |
|
M (N)
|
QualcommŽ
Snapdragon™
820, 64-bit
|
3GB |
5 |
1920x1080 |
|
|
13MP |
23MP |
2700mAh
|
|
-
|
|
|
|
|
|
32GB |
|
|
599
|
|
|
|
|
|
|
|
X
|
stereo speakers
|
6.0 (N)
|
QualcommŽ
Snapdragon
650 Processor |
3GB
|
5
|
1920x1080 |
|
Triluminos
|
13MP |
23MP |
2620mAh |
|
x
|
|
143
|
69
|
7.7
|
|
32GB
|
|
429
|
495
|
|
|
|
|
|
|
|
X
compact
|
|
(N)
|
|
|
4.6
|
1080x720 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
449 |
|
|
|
|
|
|
|
XA
Ultra
|
|
(N)
|
|
|
6
|
1920x1080 |
|
|
|
|
|
|
|
|
|
|
|
|
16
|
|
329
|
396
|
|
|
|
|
|
|
|
XA
|
|
(N)
|
|
|
5
|
1080x720 |
|
|
|
|
|
|
|
|
|
|
|
|
16
|
|
249
|
252
|
|
|
|
|
|
|
|
Z5
|
4k recording,
stabilizer, IPxx
|
6.0.1
(N) |
QualcommŽ Snapdragon™ 810
Quad-core 1.5 GHz + Quad-core 2 GHz
|
3GB
|
5.2
|
1920x1080 |
|
IPS Triluminos
|
5MP
|
23MP
|
2900mAh
|
|
x
|
|
146
|
72
|
7.3
|
|
32GB
|
x (<200)
|
479
|
499
(rosa)
|
479
|
|
|
|
|
|
|
Z5 Compact |
|
5.1.1 (6.0)
|
Quad-core 1.5 GHz +
Quad-core 2 GHz
|
2GB
|
4.7
|
1080x720
|
|
|
5.1MP
|
23MP
|
2700 mAh
|
|
x
|
x
|
|
|
|
|
32GB
|
x
|
549
|
|
|
499 |
|
|
|
|
|
Z3 Plus
|
|
5.0 (6.0)
|
Quad-core 1.5 GHz
Cortex-A53 & Quad-core 2 GHz Cortex-A57
|
3GB
|
5.2
|
1920x1080 |
|
|
5.1MP |
20.7MP
|
|
x
|
x
|
x
|
|
|
|
|
32GB
|
|
499
|
|
|
|
|
|
|
|
|
Z3
|
|
4.4 (6.0)
|
2.5 GHz Qualcomm de
cuatro núcleos
|
3GB |
5.2
|
1920x1080 |
|
|
2.2MP
|
20.7MP |
|
x
|
-
|
x
|
|
|
|
|
16GB
|
|
449
|
|
|
|
|
|
|
499
|
|
Z3
Compact
|
|
4.4 (5.1) (6.0)
|
Qualcomm Snapdragon 4
cores a 2,5 GHz |
2GB |
4.6
|
1280x720 |
|
Triluminos
|
2.2MP |
20.7MP |
|
x
|
x
|
x
|
127
|
64.9
|
8.6
|
|
16GB |
|
|
|
|
|
449
|
|
329
|
|
|
M5
(es)
|
|
5.0 (6.0)
|
octacore (2.0 Ghz) MediaTek
Helio X10 (MT6795)
|
3GB |
5
|
1920x1080 |
|
|
13MP
|
21.5MP
|
2600mAh
|
x
|
x
|
- E5633: 1, 3, 5, 7, 8, 20
- E5643: 2, 4 , 5, 7, 28
- E5663: 1, 3, 5, 7, 8, 28, 40
|
145
|
72
|
7.6
|
142.5
|
16GB
|
x
|
|
|
|
390
(E5663, dual)
|
|
|
385
(E5663, dual)
|
|
|
C5 Ultra
|
|
5.0 (6.0)
|
Octa-Core a 1.7 GHz
|
2GB
|
6
|
1920x1080 |
|
|
13MP |
13MP |
|
|
|
|
|
|
|
|
16GB |
x
|
379
|
|
|
|
|
|
|
|
|
C4
|
|
5.0 (6.0)
|
Octa-core 1.7 GHz
Cortex-A53
|
2GB |
5.5
|
1920x1080 |
|
|
5MP (flash)
|
13MP |
|
x
|
x
|
x
|
150.3
|
77.4
|
7.9
|
147
|
16GB |
|
309
|
|
|
274
|
|
|
260,
266
|
|
|
M4
Aqua
|
|
5.0
(6.0)
|
Quad-core
1.5 GHz Cortex-A53 & quad-core 1.0 GHz Cortex-A53
|
2GB
|
5
|
1280x720
|
|
|
5MP
|
13MP
|
2450mAh
|
x
|
x
|
x
|
145.5
|
72.6
|
7.3
|
136
|
16GB
|
x
(128)
|
|
|
|
228
|
|
|
227
|
|
|
8GB
|
229
|
|
|
|
|
|
|
240
|
|
E4
|
|
4.4.4
|
|
|
4.7
|
960x540
|
|
|
|
5MP
|
|
|
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
|
|
ZTE
|
Blade S6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240
|
|
Blade A460
|
|
5.1
|
Quadcore a 1.1 GHz
|
1GB
|
|
480x854
|
|
|
2MP
|
8MP
|
2200 mAh |
|
|
|
|
|
|
|
8GB
|
|
|
|
|
|
|
|
|
0
|
|
Blade A450 |
|
4.4
|
|
1GB |
|
480x854 |
|
|
|
|
|
|
|
|
|
|
|
|
8GB |
|
|
|
|
|
|
|
|
0
|
|
-
|
|
info
|
Android
|
CPU
|
memōria
|
pantalla
|
cāmera
|
NFC
|
FM
|
connectors
|
dimensions
|
pes
|
USB
ID
|
companyia
|
|
|
|
ROM |
RAM |
emm
|
mida
|
res
|
ppi
|
tecnologia
|
frontal
|
posterior
|
|
|
uUSB
|
jack
|
am
|
al
|
fn
|
|
vendor
|
product
|
|
Google
Nexus
|
Nexus One (HTC)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nexus S (Samsung)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Galaxy Nexus (Samsung)
|
and
wp
|
4.0
|
|
|
|
|
4,5"
|
1280x720 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Alcatel
|
975 (Vodafone Smart III)
|
|
4.1.1
|
MediaTek MT6575 chipset
1 GHz ARM Cortex-A9 CPU
PowerVR SXG531T GPU |
|
512MB
|
4GB
|
4,0"
|
480x800
|
233
|
|
-
|
5MP
|
x
|
x
|
x
|
x
|
64 |
123 |
11 |
136 |
|
|
Vodafone |
HTC
|
Dream
|
wp
|
1.5
|
MSM7201A ARM11 @ 528MHz |
256 |
192 |
|
3,2"
|
320x480
HVGA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Movistar
|
Magic |
wp
|
1.5
|
Qualcomm
MSM7201A
(ARM1136J(F)-S,)
(ARMv6)
528 MHz |
512
|
32A:
288
32B: 192
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
0bb4 |
0c01 (no USB debug)
|
Vodafone
|
|
|
|
|
|
|
|
|
|
|
|
0c02 (USB debug)
|
|
|
|
|
|
|
|
|
|
|
|
0fff (fastboot)
|
Hero
|
wp
|
1.5
|
Qualcomm MSM 7201A 528
MHz
|
512 |
288 |
|
|
|
|
|
|
|
|
|
|
|
|
|
0bb4
|
0c99 (debug)
|
Orange
|
Tattoo
|
wp
|
1.6
|
|
512
|
256
|
|
2,8
|
320x240
|
|
|
|
|
|
x
|
|
|
|
|
|
|
|
|
|
Desire
S
|
|
2.3
|
1 GHz
|
1.1GB
|
768
|
|
3,7
|
480x800 |
|
|
|
|
|
x
|
|
|
60
|
115
|
12
|
130
|
|
|
|
Wildfire
|
wp
|
|
|
|
|
|
3,2
|
240x320
QVGA
|
125
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sensation
|
|
2.3.3
|
1.2 GHz doble nucli
|
|
768
|
|
4,3" |
540x960 |
|
|
VGA
|
8MP
|
|
x
|
|
|
65
|
126
|
11
|
148
|
|
|
|
Holiday
|
al
|
2.3.4 |
1.2 GHz dc
|
|
1GB
|
|
4,5"
|
960x540 |
|
|
|
8MP |
|
|
|
|
|
|
|
|
|
|
|
Vigor
|
al |
2.3.4 |
1.5 GHz dc Qualcomm
Snapdragon MSM8x60 |
|
1GB
|
16GB
|
4,3" |
1280x720 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bliss
|
al |
|
800MHz
|
|
|
|
3,5"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
One V
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
One S
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Vodafone
Orange
|
One
X
|
xm
xm
xm-t
vf
vf
al
al
acc
*
|
4
|
Tegra 3 1,5GHz (4+1
nuclis)
|
|
1GB
|
32GB |
4,7"
|
1280x720 |
312
|
Super IPS LCD2
|
1.3
|
8MP
|
x
|
x
|
x
|
x
|
70
|
134
|
9
|
130
|
|
|
Vodafone
|
Motorola
|
Droid / Milestone
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Samsung
|
Galaxy S
(GT-I9000)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Galaxy
S
II
(GT-I9100)
|
wp
|
2.3
|
doble nucli
|
|
|
16GB
|
4.3"
AMOLED
|
480 x 800 |
|
|
2MP
|
8MP
|
|
|
x
|
x
|
66
|
125
|
8
|
|
|
|
|
GT-B5510 |
al
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GT-S5360 |
al |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GT-S5610 |
al |
2.3.3 |
|
|
|
|
|
320x240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GT-I8150 |
al |
2.3.4 |
1.4GHz |
|
|
4GB
|
|
480x800 |
|
TFT
|
|
5MP
|
|
x
|
|
|
|
|
|
|
|
|
|
GT-I9210 |
al |
2.3.3 |
|
|
|
16GB
|
|
480x800 |
|
Super AMOLED |
|
|
|
|
|
|
|
|
|
|
|
|
|
GT-I9220 |
al |
2.3.3 |
1.4 GHz dc
|
|
|
|
4,3"
|
1280x720 |
|
Super AMOLED
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GT-I9250 |
al |
4.0
|
|
|
|
|
4,65"
|
1280x720 |
|
Super AMOLED |
|
|
|
|
|
|
|
|
|
|
|
|
|
Sony
|
Xperia L
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
marca
|
model
|
info
|
Android
|
CPU
|
ROM
|
RAM
|
emm
|
mida
|
resoluciķ
|
ppi
|
tecnologia
|
frontal
|
posterior
|
|
FM
|
uUSB
|
jack
|
am
|
al
|
fn
|
|
vendor |
product |
companyia |
|
|
|
|
|
memōria
|
pantalla
|
cāmera
|
|
|
connectors
|
dimensions
|
pes
|
USB ID |
|
|
- Comercial / Commercial
- Alliberament / SIM unlock
- Sony Xperia
- Support
- Sony developer world
(Sony)
- Sony Service
- Xperia 1 III
- lsusb
-
Configuraciķ
Connexiķ del dispositiu
USB
Utilitza l'USB per a |
lsusb |
Transferčncia de fitxers (MTP) |
ID 0fce:020d Sony Ericsson Mobile
Communications AB XQ-BC52 |
Comparticiķ de xarxa per USB |
ID 0fce:720d Sony Ericsson Mobile
Communications AB XQ-BC52 |
MIDI |
ID 0fce:c20d Sony Ericsson Mobile
Communications AB XQ-BC52 |
Cap transferčncia de dades |
ID 0fce:020d Sony Ericsson Mobile
Communications AB XQ-BC52 |
Instalˇlaciķ de l'Xperia Companion |
ID 0fce:420d Sony Ericsson Mobile
Communications AB XQ-BC52 |
- ...
- ID 0fce:420d Sony Ericsson Mobile Communications AB
XQ-BC52
- Transferčncia de fitxers
- ID 0fce:020d Sony Ericsson Mobile Communications AB
XQ-BC52
- MTP
- dolphin
- disk (targeta SD)
- DCIM
- PHOTOGRAPHY_PRO (cāmera Xperia)
- Emmagatzematge intern compartit
- ...
- Xperia M5
- HTC
- Nexus
- Tauletes
/
Tablets
- TV
- Reproductors multimčdia / Multimedia players
|
|
- Info
- Cables
- E-Marker
- per a aguantar PD amb més de 3A, el cable ha de tenir
E-Marker
- el cable portarā imprčs: 5A
- mesura amb FNB58
- FNB alimentat des d'un port diferent a l'USB-C input
(p.ex. l'USB-A connectat a l'ordinador)
- el cable a analitzar: TYPE-C out
- menú: Toolbox -> USB-C Cable
- si el cable:
- no porta E-Marker: Finding...
- porta E-Marker:
SAMSUNG
(venut amb carregador 45W) |
- Vendor ID: 0x04E8
- Type: Passive
- Speed: USB 2.0
- Length: 0-1 m
- Max Vol: 20V
- Cur: 5A
- Hardware: 0x0001
- Firmware: 0x0000
|
- Marques / Brands
- ...
|
|
|
analitzador
|
|
exemples |
|
|
|
|
FNB58 trigger
|
FNB58 detection |
carregador |
dispositiu |
USB
Battery Charging 1.2 |
|
|
|
BC1.2 |
|
|
Qualcomm
Quick Charge (wp:en)
|
1.0 |
|
|
|
|
|
2.0 |
|
Qualcomm QC2.0
|
QC2.0 |
|
|
3.0 |
|
Qualcomm QC3.0
|
QC3.0 |
|
|
4.0 |
|
|
|
|
|
4.0+ |
|
|
|
|
|
5.0 |
|
|
|
|
|
USB
Power Delivery (wp:en)
|
1.0 (2012) |
|
|
|
|
|
2.0 (2014) |
profiles: 0..5 |
|
|
|
|
3.0 (2015) |
- modes:
- fixed (PDO)
- PPS Programmable Power Supply (APDO)
- 4.05A (3.3-11.0V)
- 2.8A (3.3-16V)
- 2.1A (3.3-21.0V)
|
PD Trigger
|
PD |
|
|
3.1 (2021) |
- adds EPR Extended Power Range
|
|
|
|
Adaptive Fast Charge (Samsung) |
|
|
SAMSUNG AFC
|
SAMSUNG AFC |
|
|
FCP (Huawei) |
|
|
HUAWEI FCP
|
HUAWEI FCP |
|
|
SCP (Huawei) |
|
|
HUAWEI SCP
|
HUAWEI SCP |
|
|
VOOC (Oppo) / WARP (OnePlus) / (formerly: Dash Charge)
(OnePlus) |
|
|
VOOC/WARP
|
VOOC/DASH/WARP |
|
|
SVOOC (Oppo) 1.0 10V 5A / ?DART |
|
|
SVOOC 1.0 10V 5A |
SuperVOOC |
|
|
Mi Fast Charge (Xiaomi) (QC) (PD?) |
|
|
|
QC, PD? |
|
- Mi 9T
- POCO X4 Pro
- Mi 12 Pro 5G
|
(Apple) |
|
|
|
APPLE |
|
|
- ...
|
cable suministrat |
venut amb el dispositiu
(no venut, perō habitual) |
connector |
potčncia |
especificacions |
protocols (FNB58)
|
|
|
|
|
|
|
PD
|
APPLE |
BC 1.2 |
SAMSUNG AFC |
HUAWEI FCP |
HUAWEI SCP |
QC2.0
|
QC3.0
|
VOOC/DASH/WARP-3.3 |
SuperVOOC |
Cellularline BC306Q |
|
(Mi A3) |
USB-A |
18W |
- 5V/3A (15W), 9V/2A (18W), 12V/1,5A (18W)
|
|
|
|
|
|
|
|
|
|
|
Sony
XQZ-UC1
|
USB-C USB-C E-Marker |
Xperia 1 III |
USB-C |
30W |
- PDO: 5V/3A (15W), 9V/3A (27W), 15V/2A (30W)
- PPS: 3,3V/3A (9,9W) - 16V/1,85A (29,6W)
|
PD3.0 33.00W PDO:5
- 5.00V 3.00A
- 9.00V 3.00A
- 15.00V 2.00A
- 3.30-11.00V 3.00A
- 3.30-16.00V 2.00A
|
5V 0.5A |
DCP 5V 1.5A |
- |
- |
- |
- |
- |
- |
- |
UGREEN 30W (USB-C) (az) |
- |
(Xperia 1 III) |
USB-C
|
30W |
- 5V/3A (15W), 9V/3A (27W), 12V/2,5A, 15V/2A (30W),
20V/1,5A, 5V/2,4A, 5V/2A, 5V/1A
|
PD3.0 30.0W PDO:6
- 5.00V 3.00A
- 9.00V 3.00A
- 12.00V 2.50A
- 15.00V 2.00A
- 20.00V 1.50A
- 3.30-11.00V 2.70A
|
5V 2.4A
|
DCP 5V 1.5A
|
9V 12V
|
5V 9V 12V
|
-
|
5V 9V 12V
|
11.98V Max
QC4.0
|
-
|
-
|
UNBREAKcable
transmissor FM BT (az) |
- |
- |
USB-A (QC3.0)
USB-C (PD) |
20W |
- QC3.0: 5V/3A, 9V/2A, 12V/1,5A
- PD3.0: 5V/3A, 9V/2A, 12V/1,5A
|
|
|
|
|
|
|
|
|
|
|
Xiaomi MDY-10-EF |
x |
Mi 9T |
USB-A |
18W |
- 5V/3A (15W), 9V/2A (18W), 12V/1,5A (18W)
|
- |
|
|
|
|
|
5V 9V 12V
|
11.97V Max
|
|
|
Xiaomi MDY-12-EH |
USB-A USB-C 6A E-Marker |
POCO X4 Pro |
USB-A |
67W |
- 5V/3A
- 5.0-20.0V/6,2-3,25A (67W max)
|
PD3.0 65.00W PDO:4
- 5.00V 3.00A
- 9.00V 3.00A
- 15.00V 3.00A
- 20.00V 3.25A
|
-
|
DCP 5V 1.5A |
-
|
-
|
-
|
5V 9V 12V
|
19.98V Max
|
-
|
-
|
Xiaomi MDY-14-EW (QC3) |
x |
Mi 12 Pro 5G |
USB-A |
67W |
- 5V/3A
- 5.0-20.0V/6,2-3,25A (67W max)
|
PD3.0 65.00W PDO:4
- 5.00V 3.00A
- 9.00V 3.00A
- 15.00V 3.00A
- 20.00V 3.25A
|
- |
DCP 5V 1.5A |
- |
- |
- |
5V 9V 12V
|
20.01V Max
|
- |
- |
Samsung EP-TA 845
(Super Fast Charging) |
USB-C USB-C 1m 5A E-Marker |
(Samsung Tab S8+)
|
USB-C
|
45W
|
- PDO: 5V/3A (15W), 9V/3A, 15V/3A, 20V/2.25A (45W)
- PPS: 3.3-20.0V/2.25A (7.5-45W)
|
PD3.0 55.0W PDO:7
- 5.00V 3.00A
- 9.00V 3.00A
- 15.0V 3.00A
- 20.00V 2.25A
- 3.30-11.00V 5.00A
- 3.30-16.00V 3.00A
- 3.30-21.00V 2.25A
|
-
|
DCP 5V 1.5A
|
-
|
-
|
-
|
-
|
-
|
-
|
-
|
Samsung cable EP-DW767 GH39-02132A JWE |
USB-C USB-C ? m E-Marker |
Samsung Tab S8+ |
USB-C USB-C |
|
|
|
|
|
|
|
|
|
|
|
|
Raspberry Pi Official USB-C Power Supply
KSA-15E-051300HE (black) (USB-C cable) |
fix |
RPi 4 |
|
|
|
- |
- |
DCP 5V 1.5A |
- |
- |
- |
- |
- |
- |
- |
|
IOIO
|
- IOIO for
Android (Sparkfun)(Android >= 1.5) (open
source hardware)
- Ytai IOIO wiki
- Models
- IOIO
for Android (host)
- IOIO-OTG
- PIC24FJ256GB206
- two
modes (can be controlled via a switch on the IOIO:
Auto, Host)
- host mode (IOIO provides
current to Android) (connected through a supplied
OTG USB cable)(switch: Auto or Host):
- IOIO-OTG
Beginners Guide
- Eclipse
Troubleshooting
Unable to resolve target
'android-3'
Android requires compiler
compliance level 5.0 or 6.0. Found
'1.4' instead.
- using a Bluetooth dongle
- protocols
- ADB
(Android Debug Bridge)
- AOA (Android Open Accessory) (when ADB is
disabled on the Android device)
- accessory mode (for PC) (switch on Auto mode: USB
device):
- IOIO
Over
OpenAccessory Beta
- Motors
- Desenvolupament
/
Development
- Problemes / Problems
Android requires compiler compliance level 5.0
or 6.0. Found '1.4' instead.
- Soluciķ / Solution
- Window -> Preferences -> Java /
Installed JREs:
- Add: /usr/lib/jvm/java-1.6.0
- Update of a TextView in the GUI
- Ofuscaciķ
/ Obfuscation
- Problemes / Problems
- Flashing
stat
led
- Soluciķ / Solution
- Connecteu al IOIO uns moments a qualsevol
ordinador, i després torneu-la a connectar al
dispositiu Android
- Commercial
|
TV
|
- Chromecast
(wp)
- Google TV
(wp)
- VP8 codec
- HTML5
video
- Notícies / News
- Google TV: Fabricants / Manufacturers
- Android
TV
- Notícies / News
- Maquinari /Hardware
- Aplicacions / Applications
- Live Channels (Google Play)
- reference tv app
- Info
- Backends (sources)
- Desenvolupament /
Development
- Stackoverflow: Android
TV
- Samples
- Developers
- Guides
- App basics
- Devices
- Android
TV
- Build TV apps
- Build TV playback apps
- Help users find content on TV
- Build TV games
- Build TV input services (TIF)
- TV Apps checklist
- TV Accessibility
- Design & Quality
- Android design
- Quality guidelines
- Design guidelines
- Android
TV design guidelines
- Android TV
- Design principles
- System overview
- TV apps
- App structure
- Browse view
- Detail view
- Consumption view
- In-app search
- Patterns
- Dialog
- Wizard
- In-app settings
- Notifications
- Style
- Color
- Typography
- Branding
- Source
- ...
|
Firmware
|
|
Firmware update howto (HTC Magic
Vodafone ES - 32B) (primera vegada / first time) to CyanogenMod
5/6
|
- Instalˇleu les eines bāsiques al vostre PC / Install basic
tools on the PC (CM
wiki):
- Afegiu les regles udev
/ Add the udev
rules
- Instalˇleu adb / Install adb
- Instalˇleu fastboot
(facilitat per HTC) / Install fastboot
(provided by HTC);
- i comproveu que funciona / and then check:
- Arrenqueu el dispositiu en mode fastboot
(enrere+encesa) / Boot device into fastboot mode
(back+power)
- you should see: FASTBOOT USB
- PC:
fastboot devices
- Hauríeu de veure alguna cosa similar a / You
should get something like:
- Aconseguiu el nou firmware
/ Get the new firmware:
- Baixeu-vos la darrera
versiķ des de CyanogenMod / Get the latest
version from CyanogenMod, and the Google apps:
- v5.0.7-DS
update-cm-6.0.0-DS-signed.zip
- Google apps for MDPI
(Magic): gapps-ds-ERE36B-signed.zip Google
Apps
(20100816)-tiny
- Poseu-los a l'arrel de la targeta SD / Put both on the
root of /sdcard:
- Reinicieu el telčfon en mode normal / Reboot the phone
to normal use: <MENU>
- Munteu la particiķ sdcard del telčfon en el vostre Pc
/ Mount the phone sdcard partition in your PC:
- phone: slide down the notification bar
- click over "USB connected: Select to copy files
to/from your computer". Select "Mount".
- Mount it from your PC (e.g. on /media/disk)
- Copy both files to it:
cp update-cm-6.0.0-DS-signed.zip
gapps-mdpi-tiny-20100816-signed.zip /media/disk
- També es pot posar a la targeta SD fent servir adb, des
del recovery (falta comprovar-ho):
adb push update-cm-6.0.0-DS-signed.zip
/sdcard/
adb push gapps-mdpi-tiny-20100816-signed.zip
/sdcard/
- Android device: start with alternative recovery
and make a nandroid backup (CM
wiki):
- Get the latest AMON_RA
recovery (G version for Google devices):
recovery-RA-sapphire-v1.7.0G.img (*)
- Start the device with the AMON_RA recovery:
- Start the device in fastboot mode (back+power)
- PC:
fastboot boot
recovery-RA-sapphire-v1.7.0G.img
- Make a nandroid backup and a backup of Google proprietary
files:
- "Nand backup" (saved to sdcard:
nandroid/HT93TKF03116/BCDS-YYYYMMDD-hhmm)
- "Bck Google files" (to /cache/google) (or: Cķmo
obtener
las aplicaciones propietarias de Google) (no sé
si cal aquest pas...)
- OPTIONAL: Effectively install new recovery image (flash it
into recovery partition) (not always working...)
adb devices
adb push recovery-RA-sapphire-v1.x.xG.img
/sdcard/recovery.img
adb shell flash_image recovery
/sdcard/recovery.img
- Install new firmware (your phone is still at AMON_RA
recovery):
- Flash the new firmware:
- Wipe: Wipe
data/factory reset
- "Flash zip from sdcard":
update-cm-6.0.0-DS-signed.zip
(it performs "Backing up proprietary files..")
- "Flash zip from sdcard":
gapps-mdpi-tiny-20100816-signed.zip
- Reboot (expect 5-15 minutes to start the first new
reboot): "Reboot system now"
|
SPL and radio update
|
- Us cal actualitzar-vos per a instalˇlar una versiķ recent de
CM 6.1, o bé CM 7.x
- Info
- Steps
- descarregueu-vos a l'ordinador els següents fitxers /
download to your computer the following files:
- copieu a la SD del telčfon els següents fitxers (muntant
la SD card o bé amb adb des del recovery) / copy the
following files to the SD card (by mounting the SD card or
with adb from recovery):
- update.Engineering-SPL-HBOOT-1.33.2009-signed.zip
- aneu al recovery ([home] + [power]) i feu / go to recovery
([home] + [power]) and do:
- Backup/restore -> Nandroid backup
- flash zip from sdcard:
update.Engineering-SPL-HBOOT-1.33.2009-signed.zip
- reboot
- power off
- aneu al fastboot ([back] + [power], 3 skating androids) i
feu, des del PC / go to fastboot ([back] + [power], 3
skating androids) and do:
fastboot devices
- només si encara no el teníeu:
fastboot flash recovery
recovery-RA-sapphire-v1.7.0G-cyan.img
fastboot flash radio
radio-2.22.27.08.img (o bé: fastboot
flash radio RADIO-2.22.28.25.img )
fastboot flash hboot
hboot-1.33.0013d.img
fastboot reboot-bootloader
fastboot erase system -w
fastboot erase boot
- podeu comprovar que tot ha anat bé entrant de nou al
fastboot / you can check that all is ok by going to the
fastboot:
SAPPHIRE PVT 32B SHIP S-ON G
HBOOT-1.33.0013d (SAPP1000)
CPLD-10
RADIO-2.22.27.08
Oct 21 2009,22:33:27
|
Firmware update howto (HTC Magic
Vodafone ES - 32B) (radio
2708+) to CyanogenMod 7
|
- Info
- CyanogenMod 6.1
2708port
- CyanogenMod 7.1.0
(Gingerbread)
- CyanogenMod 7.2.0
(Gingerbread)
- Passos / Steps:
- descarregueu-vos a l'ordinador els següents fitxers /
download to your computer the following files:
- copieu a la SD del telčfon els següents fitxers (muntant
la SD card o bé amb adb des del recovery) / copy the
following files to the SD card (by mounting the SD card or
with adb from recovery):
- update-cm-7.2.0-RC1-dream_sapphire-UNOFFICIAL-signed.zip
/ signed_update-cm-7.1.0-09302011.zip
- gapps-gb-20110828-signed.zip
- ezBiffTestKernel20110222-2708_S.zip
- si encara no ho heu fet, feu una actualitzaciķ
de SPL i radio
- aneu al recovery ([home] + [power]) i feu / go to recovery
([home] + [power]) and do:
- Backup/restore -> Nandroid backup
- reboot
- power off
- reinicieu al recovery ([home] + [power]) i feu / boot to
recovery ([home] + [power]) and do:
- Backup/restore -> Nandroid backup
- flash zip from sdcard (un dels dos)
- update-cm-7.2.0-RC1-dream_sapphire-UNOFFICIAL-signed.zip
- signed_update-cm-7.1.0-09302011.zip
- flash zip from sdcard: gapps-gb-20110828-signed.zip
- reinicieu (pacičncia...) i comproveu / reboot
(patience...) and check:
- Model number: Dream/Sapphire
- Android version: 2.3.7
- Baseband version: 62.50SF.20.17U_2.22.27.08
- Kernel version: 2.6.37.1-cyanogenmod+sileht@hurrycat
#4
- CPU info: ARMv6-compatible processor rev 2 (v6l)
- Mem info (avail/total): 30 MB / 109 MB
- Mod version: CyanogenMod-7.1.0-09302011-DS
- Build number: GWK74
- aneu al
recovery i feu:
- flash zip from sdcard:
ezBiffTestKernel20110222-2708_S.zip
- reinicieu i
comproveu:
- Kernel version: 2.6.34.8-cm6-biffmod ezterry@zack #1
- Altres kernels / Other kernels:
|
Firmware update howto (HTC Magic
Vodafone ES - 32B) to COS-DS
|
- Info
- Steps
- update SPL and radio
(optional?)
- download:
- copy to sd card:
- recovery:
- flash zip from sdcard
- flash zip from sdcard (potser no cal)
- gapps-gb-20110828-signed.zip
- si no el fem, quan engeguem el telčfon per primera
vegada, encara que demanem el catalā, l'assistent
("Welcome to COS-DS") és en anglčs
- wipe data/factory reset
- reboot system now
- run only-once: yes
- choose the apps to install:
- Perō no l'instalˇleu: feu enrere. Si no ho feu així,
no apareix el Market, després. Potser només cal
instalˇlar almenys una de les aplicacions proposades.
- Resultat
- Número de model: COS-DS
- Versiķ d'Android: 2.3.4
- Versiķ de banda base: 62.50SF.20.17U_2.22.27.08
- Versiķ de nucli: 2.6.36.4-s3-cos alex@buildbox #1
- Mod version: COS-DS-07182011
- Número de muntatge: GRJ22
|
Compilaciķ de CyanogenMod / CyanogenMod
Compilation
|
- Info:
- Prerequisits / Prerequisites
urpmi git-core gnupg flex bison gperf squashfs-tools
zip
curl java-1.6.0-sun-devel pngcrush schedtool
libSDL-devel
libwxgtk2.8-devel libwxgtku2.8 libncurses-devel
libzlib-devel java-1.6.0-sun-devel
- ??
libesd0-dev build-essential
- Repositori / Repository
- CM 7.1
../../bin/repo init -u
git://github.com/CyanogenMod/android.git -b
gingerbread-release
repo sync -j16
- Llengües / Languages
- [Ref]
Compile
Android Froyo from Source
- Totes les llengües disponibles / All available languages:
android/system/build/target/product/languages_full.mk
- Opciķ 1: afegir el catalā al conjunt reduīt de llengües
que cal incloure
android/system/build/target/product/languages_small.mk
- PRODUCT_LOCALES := en_US en_GB fr_FR it_IT de_DE
es_ES ca_ES
- Opciķ 2: compilar amb totes les llengües disponibles
android/system/device/htc/dream_sapphire/full_dream.mk
$(call
inherit-product,
$(SRC_TARGET_DIR)/product/small_base.mk)
$(call inherit-product,
$(SRC_TARGET_DIR)/product/full_base.mk)
- Alternativa a
android/system/device/htc/dream_sapphire/
- Cōpia de fitxers des del telčfon via adb / Copy of files from
the phone via adb:
cd android/system/device/htc/dream_sapphire/
- afegiu "
EOF " com a última línia del fitxer extract-files.sh
./extract-files.sh
- ROM Manager
cd android/system/vendor/cyanogen
./get-rommanager
- Build
vendor/cyanogen/products/AndroidProducts.mk
- esborreu la línia / remove the line:
$(LOCAL_DIR)/cyanogen_olympus.mk \
- o bé esborreu totes les línies execpte la que voleu.
Per exemple: / or remove all the lines except the
one you want to compile. E.g.:
$(LOCAL_DIR)/cyanogen_dream_sapphire.mk
cd android/system
. build/envsetup.sh
lunch cyanogen_dream_sapphire-eng
- Compilaciķ / Compilation
cd android/system
- gpslib
problem (No rule to make target
`out/target/product/dream_sapphire/obj/lib/libgps.so',
needed by
`out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/gps.sapphire_intermediates/LINKED/gps.sapphire.so'.
Stop.):
cp
vendor/htc/dream_sapphire/proprietary/libgps.so
out/target/product/dream_sapphire/obj/lib/libgps.so
mkdir -p
out/target/product/dream_sapphire/system/lib
cp
vendor/htc/dream_sapphire/proprietary/libgps.so
out/target/product/dream_sapphire/system/lib/libgps.so
- camera
problem:
device/htc/dream_sapphire/BoardConfig.mk
"USE_CAMERA_STUB := false"
cp
vendor/htc/dream_sapphire/proprietary/libcamera.so
out/target/product/dream_sapphire/obj/lib/libcamera.so
cp
vendor/htc/dream_sapphire/proprietary/libcamera.so
out/target/product/dream_sapphire/system/lib/libcamera.so
make update-api
mka bacon
- resultat a / result in:
android/system/out/target/product/dream_sapphire/update-cm-7.1.0-RC1-DS-KANG-signed.zip
- Instalˇlaciķ / Installation
- Resultat
- Número de model: Dream/Sapphire
- Versiķ d'Android: 2.3.7
- Versiķ de banda base: Desconegut
- Versiķ de nucli: 2.6.37.1-cyanogenmod+sileht@hurrycat
#4
- CPU info: ARMv6-compatible processor rev 2 (v6l)
- Mem info (avail/total): 28 MB / 109 MB
- Mod version: CyanogenMod-7.1.0-RC1-DS-KANG
- Número de muntatge: GWK74
- Problemes / Problems
|
Aplicacions / Applications
|
- General
- Categories / Categories
- Āudio
- A online Radio (streaming)
- AV
conferčncia / AV conference
- Control remot / Remote control
- Griffin Beacon (*)
- Sony remote
- Chomecast
- Fotografia / Photography
- Google for
Android (mobile)
- HTPC
- Localiltzaciķ / Location
- Missatgeria
- Navegadors / Browsers
- Oficina / Office
- Organitzaciķ / Organization
- PC
- Publicacions / Publications
- Realitat augmentada / Augmented reality
- Reconeixement i cerca / Recognition and search
- Salut / Health
- Seguretat / Security
- TV
- Teclat / Keyboard
- UPnP / DLNA
- Utilitats / Utilities
- Video playing
- Video recording
- Vídeo
streaming
- Xarxa / Network
- Scan local network
- WiFi
- VPN
|
Desenvolupament / Development
|
- TV
- Android developers
- Design:
Up and running with material design
- Material design
- Altres recursos / Other resources
- Old resources
- Get started
- Style
- Patterns
- Building blocks
- Downloads
- Videos
- Develop
- Training
- API
Guides
- Reference
- android.hardware
- Camera.Parameters
- getSupportedPreviewSizes()
(MediaRecorder)
- getSupportedVideoSizes()
(MediaRecorder)
-
|
|
Video
encoding
recommendations
|
Sony
Xperia Z5
|
Huawei
P9 Lite
|
name
|
aspect
|
|
|
getSupportedVideoSizes() |
getSupportedPreviewSizes() |
getSupportedVideoSizes() |
getSupportedPreviewSizes() |
|
1.77
(16:9)
|
|
|
3840*2160
|
|
|
|
QXGA |
1.33
(4:3)
|
|
|
2048*1536
|
|
|
|
|
1.77
(16:9)
|
HD
1080p (VP8)
|
1920*1080 |
1920*1080
|
1920*1080 |
1920*1080 |
1920*1080 |
?
|
|
|
|
|
|
1440*1080
|
1440*1080 |
?
|
1.33
(4:3)
|
|
|
|
|
1280*960
|
1280*960 |
|
1.77
(16:9) |
HD
720p (H.264, VP8)
|
1280*720
|
1280*720 |
1280*720 |
1280*720 |
1280*720 |
?
|
1.33
(4:3)
|
|
|
|
|
960*720
|
960*720 |
?
|
1.76
(:)
|
|
|
|
|
960*544
|
960*544 |
?
|
1.00
(1:1)
|
|
|
|
|
720*720
|
720*720 |
CCIR-601,
D1 |
1.50
(3:2)
|
|
|
720*480
|
720*480
|
|
|
VGA |
1.33
(4:3)
|
|
|
640*480
|
640*480 |
640*480 |
640*480 |
|
1.77
(16:9)
|
SD HQ
(VP8)
|
640*360
|
|
|
|
|
|
1.33
(4:3)
|
SD HQ
(H.264)
|
480*360
|
|
|
|
|
CIF-601,
D4, SIF* |
1.22
(:)
|
|
|
352*288
|
352*288 |
352*288 |
352*288 |
QVGA |
1.33
(4:3)
|
|
|
320*240
|
320*240 |
320*240 |
320*240 |
|
1.77
(16:9)
|
SD LQ
(VP8)
|
320*180
|
|
|
|
|
|
1.44
(:)
|
|
|
|
|
208*144
|
208*144 |
QCIF |
1.22
(:)
|
SD LQ
(H.264)
|
176*144 |
176*144
|
176*144 |
176*144 |
176*144 |
- Tools
- Google Services
- Distribute
- Google Play
- Publishing
- Promoting
- App Quality
- Policies
- Spotlight
- Google Play for Education
- Open Distribution
- Vogella
tutorials
- Android Developers
- Android developers
- AppInventor
for
Android
- ASE
(Android Scripting Environment)
- Getting
started
with Android development
- Recursos
per
desenvolupar amb Android
- SDK
- urpmi
eclipse-platform eclipse-jdt eclipse-gef eclipse-gef-sdk...
- get Eclipse Ganymedes from eclipse.org
- http://download.eclipse.org/webtools/updates/
- Audio / Video
- New
Layout
Libraries Available
- PhoneGap
(multiplatform)
- HTC
- Web
View
- Developing
Speech
Enabled Android Applications
- How
to
Port phoneME Advanced Software to Google Android, iPhone ...
- Hands-on Android (Linux Magazine)
- API
- Versions (Android
version
history: distribution chart):
-
- Pantalles i densitats /
Screens and densities
- android_mides.ods
- Size (Android<3.2) (=> alternative layouts)
size
(layout- )
|
minimum dp
|
examples
|
new sw...dp
|
small
|
426dp x 320dp |
|
|
normal
|
470dp x 320dp |
|
sw320dp |
large
|
640dp x 480dp |
|
sw360dp
sw600dp |
xlarge
|
960dp x 720dp |
|
sw720dp
sw800dp
|
- Smallest available width (Android>3.2) (=>
alternative layouts)
smallest
width
(layout- )
|
examples
|
sw320dp
|
|
handset
|
sw360dp
|
|
sw600dp |
7" tablets |
tablets
|
sw720dp |
10"
tablets
|
sw800dp
|
- Density (=> alternative bitmaps)
density
|
dpi
|
1 dp
|
|
example
icons
|
|
drawable- |
|
|
multiplier
|
launcher
|
action bar
|
contextual
|
notification
|
low
|
ldpi
|
120
|
|
0.75x
|
-
|
|
|
|
medium
|
mdpi
|
160
|
1 pixel
|
1x
|
48x48
|
32x32 (24+8)
|
16x16 (12+4)
|
24x24 (24+2)
|
high
|
hdpi
|
240
|
|
1.5x
|
72x72
|
|
|
|
extra high
|
xhdpi
|
320
|
|
2x
|
96x96
|
|
|
|
extra extra high
|
xxhdpi
|
480
|
|
3x
|
144x144
|
|
|
|
px = dp * (dpi / 160)
- Combinacions / Combinations:
|
ldpi
|
mdpi
|
tvdpi
(213 ppi)
|
hdpi
|
xhdpi
|
small
|
- 2.7" QVGA
(320x240) (148 dpi)
|
|
|
|
|
normal
|
- 3.3"
WQVGA (400x240) (141 dpi)
- 3.4"
WQVGA (432x240) (145 dpi)
|
- 3.2" HVGA
slider (480x320) (180 dpi)
|
|
- Nexus S
(800x480) (233 dpi)
- Nexus One
(800x480) (252 dpi)
- 3.7"
FWVGA slider (854x480) (264 dpi)
- 3.7 WVGA
(800x480) (252 dpi)
- 4.0" WVGA
(800x480) (233 dpi)
|
- Nexus 4
(1280x768) (317 dpi)
- Galaxy
Nexus (1280x720) (312 dpi)
- 4.65"
720p (1280x720) (315 dpi)
- 4.7" WXGA
(1280x720) (312 dpi)
|
large
|
|
- 5.1" WVGA
(800x480) (182 dpi)
- 5.4"
FWVGA (854x480) (181 dpi)
- 7.0"
WSVGA (tablet) (1024x600) (169 dpi)
|
- Nexus 7
(1280x800) (206 dpi)
|
|
|
xlarge
|
|
- 10.1"
WXGA (tablet) (1280x800) (149 dpi)
|
|
|
- Nexus 10
(2560x1600) (298 dpi)
|
- Libraries
/ Biblioteques
- Per a treballar
amb dispositius reals, afegiu les regles udev següents als fitxers /
To work with real devices, add the followin udev rules to the files
(*):
- /lib/udev/rules.d/51-android.rules,
/etc/udev/rules.d/51-android.rules :
SUBSYSTEMS=="usb", SYSFS{idVendor}=="0bb4",
MODE="0666" #HTC
SUBSYSTEMS=="usb",
ATTRS{idVendor}=="0bb4",
ATTRS{idProduct}=="0c01", MODE="0666",
OWNER="[user_name]" #HTC Magic Normal
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4",
ATTRS{idProduct}=="0c02", MODE="0666",
OWNER="[user_name]" #HTC Magic Recovery
(USB debug)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4",
ATTRS{idProduct}=="0fff", MODE="0666",
OWNER="[user_name]" #HTC
Magic
Fastboot
SUBSYSTEMS=="usb",
ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0ff9",
MODE="0666", OWNER="[user_name]" #HTC Hero (USB
normal) SUBSYSTEMS=="usb",
ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c99",
MODE="0666", OWNER="[user_name]" #HTC Hero (USB debug)
- Install
the Android SDK: (adb
-
Android Debug Bridge)
(CM
wiki) (Eclipse
no needed)
- Prerequisits
- IMPORTANT:
if you install Android
Studio
bundle, Android SDK will be automatically installed on
a subdirectory:
- /opt/android-studio/sdk/tools/android
- ~/Android/Sdk/
- Noves instruccions / New instructions
- Install just the command line tools:
- set variable
ANDROID_SDK_ROOT:
echo "# android" >>~/.bashrc
- echo "
export
ANDROID_SDK_ROOT=/disc/Android/Sdk "
>>~/.bashrc
mkdir -p ${ ANDROID_SDK_ROOT }
cd ${
ANDROID_SDK_ROOT }
- mkdir
platforms
- mkdir
cmdline-tools
- cd cmdline-tools
- Get
just
the command line tools to
${ANDROID_SDK_ROOT}/cmdline-tools
unzip
commandlinetools-linux-6514223_latest.zip
- add to PATH:
echo 'export
PATH="${ANDROID_SDK_ROOT}/cmdline-tools/bin:${PATH}"'
>>~/.bashrc
- dir structure:
${
ANDROID_SDK_ROOT }/
- cmdline-tools/
- platforms/
- ...
- use
sdkmanager
to install platform-tools/adb binary (among others)
sdkmanager --sdk_root=${ANDROID_SDK_ROOT}
"platform-tools"
- add to PATH
echo 'export
PATH="${ANDROID_SDK_ROOT}/platform-tools:${PATH}"'
>>~/.bashrc
- Problemes / Problems
Warning: Could not create settings
java.lang.IllegalArgumentException
- you may want to install some ...
- get needed target by your project:
- grep targetSdkVersion app/build.gradle
- install it:
- using sdkmanager:
sdkmanager --list
sdkmanager "platforms;android-27"
- using Studio:
- File -> Settings -> Appearance &
Behaviour -> System Settings ->
Android SDK -> SDK Platforms
- use
avdmanager
- command
android is deprecated
- Velles instruccions / Old instructions
- Download
the SDK starter package (SDK
tools
only)
android-sdk_rxx-linux_86.tgz
- Install it to
~/android-sdk-linux_x86/ :
tar --directory ~ -xvzf
android-sdk_rxx-linux_86.tgz
- Afegiu la següent línia al fitxer
~/.bashrc
/ Add the following line in the file ~/.bashrc :
export PATH="${HOME}/android-sdk-linux
/tools/
: ${HOME}/android-sdk-linux
/platform-tools/
: ${PATH}"
$ source ~/.bashrc
- run and configure Android SDK Manager:
- $
android
- or from Studio:
Tools / Android / SDK Manager
- Add packages:
- Tools / Android SDK Platform-tools
- Android x.y
- Android 3.1 (API 12)
- Google
TV Addon
- installed at:
~/android-sdk-linux/add-ons/addon-google_tv_addon-google-12/
- Third
Party / Google / Google TV
- Add a virtual
device (AVD):
- Run
Apps
on the Android Emulator
- Tools / Android / AVD Manager Manage
AVD
- phone:
- Google TV:
- Start...
urpmi libmesagl1
- Problems:
- Failed to load libGL.so
cd /usr/lib
ln -s libGL.so.1
libGL.so
- Performance
- Problemes / Problems
- Incompatible with VirtualBox
running
Device does not have package
com.google.android.gsf
- Llista d'objectius diponibles /
List of available targets
- Creaciķ d'un nou
projecte / Creation of a new
project:
android create project --name
YourProjectName --path /path/to/your_project --target
android-10 --package com.example.testproject
--activity MainActivity
- crearā els fitxers i directoris següents / it
will create the following files and directories:
build.xml
ant.properties
local.properties
project.properties
proguard-project.txt
AndroidManifest.xml
bin/
libs/
res/
src/
- Connecteu dispositius
reals... / Connect real
devices...
- ... o bé feu servir l'emulador
/ ... or run the emulator
(AVD):
- phone
- Configuring
VM
acceleration on Linux
- GoogleTV
emulator
- You need KVM
working
- Name:
"GoogleTV_device"
SD
Card: 10 MiB
Skin
resolution: 1152 x 648
DPad
support (New...): yes
Keyboard
lid support: yes
Max VM
application heap size: 48
Device
ram size: 256
Touch-screen
support (New...): no
- ADB
- Instalˇlaciķ /
Installation
- Android
Debug
Bridge (adb)
- ADB
over
IP
- ADB
over
WiFi
- Dispositius
reals / Real devices
- Initializing
a
build environment: Configuring USB access
(android.com)
- Make
ADB To Support Android Devices
- bq
Edison
ICS – Root (on any operating system)
- Using
hardware
devices
- Al dispositiu Android / In Android device:
- Settings /
Applications / Development / USB debugging: enable
- PC:
- Hauríeu de veure alguna cosa similar a / You should
get something like:
List of devices attached
HT93TKFxxxxx device
- Google
TV / ADB
- Problemes / Problems
adb: error while loading shared libraries:
libncurses.so.5: cannot open shared object file: No such file or directory
urpmi libncurses5
(media: Core 32bit)
- (no detected devices with
adb devices )
- on device:
- Android >=4.2: enable developer
options: (*)
- tap 7 times over About phone ->
Build number
- Settings -> Developer options -> USB
debugging
- Sony Xperia:
- Settings -> Xperia -> USB
Connectivity -> USB mode -> MSC
- Android 7 (Sony Xperia)
- Parāmetres -> Opcions per a
desenvolupadors -> Activat ->
Depuraciķ USB
- on PC:
- trobeu el fabricant (primera mitja part de
l'ID) amb lsusb / determine the vendor
(first half of ID) with lsusb (
urpmi
usbutils ):
Bus 008 Device 049: ID 2207:0010
[.../tools/android update adb]
- afegiu aquesta
línia amb l'id del fabricant (en
hexadecimal) al fitxer:
/ add
the following line containing the vendor id
(in hexadecimal) to the file:
~/.android/adb_usb.ini
- afegiu aquesta
línia amb l'id del fabricant al fitxer: /
add the following line with the found vendor
to the file:
/etc/udev/rules.d/51-android.rules
SUBSYSTEMS=="usb",
ATTR{idVendor}=="2207", MODE="0666"
service
udev restart
List of devices attached
R32CA089MLB no
permissions; see [http://developer.android.com/tools/device.html]
error: insufficient permissions for
device.
- Solution
- start server as root:
adb kill-server
sudo adb usb
- accept authorization on device
- lsusb (e.g. for Nexus 10)
Bus 001 Device 011: ID 18d1:4ee7
Google Inc.
List of devices attached
???????????? no permissions
- Soluciķ / Solution
- Make sure that you have
ATTR
on android.rules, and not SYSFS
- Utilitzaciķ / Usage
- llistat de dispositius / list of devices
- shell al dispositiu / shell in the device
- instalˇla una aplicaciķ / install an application
- reinicia el servidor adb / restart adb server
adb kill-server
adb start-server
- puja fitxers al dispositiu / upload files to the
device
adb push
/home/user/toto.png
- baixa fitxers del dispositiu / download files from the
device:
adb pull
/sdcard/toto.png
- baixa recursivament tots els fitxers del directori
/sdcard:
- captura de pantalla / screenshot
adb shell
screencap -p /sdcard/toto.png
adb pull /sdcard/toto.png
adb shell rm /sdcard/toto.png
- Cōpia de seguretat / Backup
- Gradle
- IDE
- Android
Studio
- Migrating
from
Eclipse
- Working
in
Eclipse Compatibility Mode
- Dependencies
- Java
- Oracle
Java
- OpenJDK
(not recommended)
urpmi java-1.7.0-openjdk-devel
export
JDK_HOME=/usr/lib/jvm/jre-openjdk/lib/
- Installation notes:
- use the latest version
- Download
Android
Studio
- install it:
- on user dir:
unzip -d ~ android-studio-...zip
- on /opt/android-studio/
tar
--directory /opt -xvzf
android-studio-bundle-133.1028713-linux.tgz
sudo unzip -d /opt
android-studio-ide-145.3537739-linux.zip
- user files:
~/.AndroidStudio2.3
~/.gradle
- run it:
android-studio/bin/studio.sh
- Settings -> Appearance & Behavior
-> System Settings -> Android SDK
- Problemes / Problems
- "Target folder is neither empty
nor does point to an existing SDK
installation"
- Soluciķ / Solution
mkdir -p
${ANDROID_SDK_ROOT}/platforms
- Please provide the path to the Android SDK
Select Android SDK: ...
- Problemes / Problems
- "The selected directory is not a
valid home for Android SDK"
- Old: SDK
will be installed on
- by default:
- Custom installation. Set it to:
/disc/Android/Sdk
/opt/Android/Sdk
cd
android-studio/bin; ./studio.sh
- Create a virtual
device (AVD) ...
- ... o
bé connecteu un dispositiu real / ... or connect a
real device
- check that:
- File / Other settings / Default project
Structure is OK
- when moving from another user, check that the
following files inside the project have the right
paths:
- local.properties
sdk.dir=/disc/Android/Sdk
sdk.dir=/opt/Android/Sdk
- .idea/gradle.xml
<option
name="externalProjectPath"
value="$PROJECT_DIR$/build.gradle" />
- Plugins
- Code
Iris: This plugin visualizes the modules,
packages and classes of your project. It's like a
UML based "Google Maps" for your Source Code.
- Gradle
- File -> Project Structure
- Android Gradle Plugin Version: ...
- Gradle Version: ...
- Tools -> Android -> Sync Project with Gradle
Files
- Git
- Problemes / Problems
Failed to find Build Tools revision 23.0.3
- May appear when importing a project. The
revision is specified at app/build.gradle
- Soluciķ / Solution
- Install 23.0.3 version of Android SDK
Buid-tools:
- From command line:
android
- From Studio: Tools / Android / SDK
Manager:
- SDK Platforms / Show package
details
failed to find build tools revision 17.0.0
- Soluciķ / Solution
- comproveu que la versiķ de l'Android SDK
Platform Tools és la 17 / check that your
Android SDK Platform Tools is at least
version 17:
- /opt/android-studio/sdk/tools/android
(or,
from Studio: Tools / Android / SDK
Manager)
- Tools
- Android SDK Tools: Rev. 22
- Android SDK Platform-tools:
Rev. 17
- Android SDK Build-tools: Rev.
17
Gradle: : java.lang.NullPointerException
Could not find
com.android.support.constraint:constraint-layout:1.0.2.
- Soluciķ / Solution
- Install ConstraintLayout:
- From Studio: Tools / Android:
- SDK Tools / Support Repository
- ConstraintLayout for Android
- Solver for ConstraintLayout
- File / Settings / Gradle always Loading...
- java.lang.NoClassDefFoundError: Failed resolution
of: Luk/co/chrisjenx/calligraphy/R$attr;
Caused by: org.gradle.api.GradleException:
Lint found fatal errors while assembling a release
target.
- Soluciķ / Solution
- app/build.gradle
android {
...
lintOptions {
checkReleaseBuilds false
}
}
- Eclipse
- Instalˇlaciķ
/ Installation
- Prerequisites
- Install
Android
SDK
urpmi java-1.6.0-sun-devel ant [eclipse]
- Download
Eclipse:
- Install
Eclipse
plugins:
- JDT (Java)
- Install
ADT (Android Development Tools) plugin
- Help -> Install new software -> Add:
- Name: Android ADT Plugin
- Location: https://dl-ssl.google.com/android/eclipse/
- Check "Developer Tools"
- Next / Next / Finish
- Problems:
- Configure Android
SDK into Eclipse:
- Window -> Preferences -> Android
- SDK location:
/home/username/android-sdk-linux/
- Welcome to Android Development
- Use existing SDKs
- Existing location:
- /home/username/android-sdk-linux
- Window -> Android
SDK Manager
- Window -> Android
Virtual
Device Manager
- Problemes / Problems
- No apareixen les icones Android / Android
icons not present
- Create a virtual
device (AVD) ...
- ... o
bé connecteu un dispositiu real / ... or connect a
real device
- Problemes / Problems
...
Error generating final archive: Debug
certificate expired on...
- Soluciķ / Solution:
rm ~/.android/debug.keystore
- Hello
World
Tutorial (other Tutorials)
- Incidčncies
/ Issues
- Subversion
and Eclipse
- do NOT ignore:
default.properties
ant.properties
project.properties
build.poperties
- svn:ignore
bin
gen
.classpath
local.properties
build.xml
(.project) si s'ignora, a
l'hora d'importar-lo a l'Eclipse, haurem
d'especificar de quin tipus de projecte es
tracta, o bé convertir-lo
postreriorment
- Convert existing
project into Android project in Eclipse?
.project
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> </natures>
Android requires compiler compliance level
5.0 or 6.0. Found '1.7' instead
- Solution:
Properties / Java Compiler / Enable
project specific settings / Compiler
compliance level: 1.6 ( If 1.6 does
not exist, you need to add it with ...)
Android Tools / Fix project
properties
gen already exists but is not a source
folder.
- Properties / Java Build Path / Source / Add
Folder...: <project>/gen
Errors occurred during the build. Errors
running builder 'Android Pre Compiler' on project
'XXX' java.lang.NullPointerException
- R cannot be resolved
- R
cannot be resolved - Android error
- Solution
- Check that <project>/gen/R.java has
been generated
- Check if any file in res directory (e.g.
xml files) is breaking the build; or missing
drawables, etc
- Delete any occurrence of "import
android.R" (don't use Ctrl+Shift+O any more)
- ...
- Ofuscaciķ / Obfuscation
- Developers
- Docs
- App Basics
- Introduction
- Build your first app
- App fundamentals
-
App component |
info |
Studio IDE creation |
generated code |
entry in manifest |
activated by |
|
|
app: New
/ ... |
MyFirstApp/app/main/ |
MyFirstApp/app/main/AndroidManifest.xml |
|
|
|
|
|
Device
compatibility
- required hardware (for Google
Play)
<uses-feature
android:name="android.hardware.sensor.compass"
android:required="true" />
- required sdk version (for Google
Play)
|
|
Activity |
- associated user interface
|
Activity
|
- java/.../MyFirstActivity.java
public
class MyFirstActivity extends
AppCompatActivity
{
@Override
protected
void onCreate(Bundle
savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my_first);
}
}
- res/layout/activity_my_first.xml
|
- main activity:
<activity
android:name=".MainActivity">
<intent-filter>
<action
android:name="android.intent.action.MAIN"
/>
<category
android:name="android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
- child activity
<activity
android:name=".MyFirstActivity"
android:parentActivityName=".MainActivity">
<!-- The meta-data tag is
required if you support API
level 15 and lower -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity"
/>
</activity>
|
Intent
to:
- startActivity()
- startActivityForResult()
|
Service |
|
Service |
- java/.../MyFirstService.java
public
class MyFirstService extends Service
{
public
MyFirstService() {
}
@Override
public
IBinder onBind(Intent intent)
{
// TODO: Return the
communication channel to the
service.
throw new
UnsupportedOperationException("Not
yet implemented");
}
}
|
- service
<service
android:name=".MyFirstService"
android:enabled="true"
android:exported="true" />
|
Intent:
- API >=21: JobScheduler
- Intent to:
- startService()
- bindService()
|
Broadcast
receiver |
- respond to system-wide broadcast
announcements
- each broadcast is delivered as an
Intent object
|
Other / Broadcast receiver |
- java/.../MyFirstReceiver.java
public
class MyFirstReceiver extends
BroadcastReceiver
{
@Override
public void
onReceive(Context context,
Intent intent) {
// TODO: This method is called
when the BroadcastReceiver is
receiving
// an Intent broadcast.
throw new
UnsupportedOperationException("Not
yet implemented");
}
}
|
- receiver
<receiver
android:name=".MyFirstReceiver"
android:enabled="true"
android:exported="true"></receiver>
|
Intent to:
- sendBroadcast()
- sendOrderedBroadcast()
- sendStickyBroadcast()
|
Content
provider |
- shared set of app data, in a
SQLite database, ...
|
Other / Content provider |
|
|
request from a ContentResolver:
|
- App
resources
- App
manifest file
- File features
- Package name and application ID
- App components
- <application>
- <activity>
- <service>
- <receiver>
- <provider>
- Permissions
- Device compatibility
- <uses-feature>
- <uses-sdk>
- values are overridden by
build.gradle:
- minSdkVersion
- targetSdkVersion
- File conventions
- Manifest elements reference
- Example manifest file
- App permissions
- Devices
- Core topics
- Jetpack
|
Codi / Code
|
- Unique ID
- Dates
- Criptografia
/ Cryptography
- Exemples
/ Examples
- base64
- Signatures
- Verifying
a
digital signature (The Java tutorials)
- Verifying signature on
android in-app purchase message in Python on Google
App Engine
- Verifying a Digital
Signature produced by C# on an Android Device
-
import android.util.Base64; import java.security.KeyFactory; import java.security.PublicKey; import java.security.spec.X509EncodedKeySpec; import java.security.Signature; // signaturaBase64 is the signature obtained with: // "echo -n "toto" | openssl dgst -sha1 -sign pub_priv.key | openssl enc -base64" // and the private key corresponding to base64EncodedPublicKey
String signaturaBase64 = "signatura_del_document";
// public key, obtained with: // "openssl rsa -in priv_public.key -out public.pem -outform PEM -pubout". // Paste here the characters between -----BEGIN PUBLIC KEY----- and // -----END PUBLIC KEY-----, without line breaks String base64EncodedPublicKey = "your_public_key_here"; // candidate to be the original document
String originalDocument = "toto"
// build a public key object
byte[] decodedKey = Base64.decode(base64EncodedPublicKey,0); PublicKey publicKey = KeyFactory.getInstance("RSA").generatePublic(
new X509EncodedKeySpec(decodedKey) );
// verify if the signature corresponds to the
candidate
Signature sign = Signature.getInstance("SHA1withRSA");
sign.initVerify(publicKey);
sign.update(originalDocument.getBytes("ASCII")); boolean
ok = sign.verify(Base64.decode(signatura Base64 ,0)); //boolean
ok = sign.verify(Base64.decode(signatura Base64 ,URL_SAFE));
- Diālegs / Dialogs
- TextView
- ImageView
android:adjustViewBounds="true"
- Geolocalitzaciķ / geolocation
- Lists / Llistes
- Peticiķ HTTP a una URL / HTTP
request to a URL
- HttpURLConnection
- Android’s
HTTP
Clients: comparison between Apache http client and
HttpURLConnection
- Tutorial:
Registering
an IntentFilter
- HTTP
url = new
URL("http://www.google.com/");
HttpURLConnection urlConnection = (HttpURLConnection)
url.openConnection();
try {
InputStream in = new
BufferedInputStream(urlConnection.getInputStream());
BufferedReader rd = new
BufferedReader(new InputStreamReader(in));
String line = "";
while ((line = rd.readLine()) !=
null) {
text.append(line);
}
}
finally{
urlConnection.disconnect();
}
- Problemes / Problems
- it is impossible to support gba now
- POST
- JSON
- Autenticaciķ / Authentication (Apache and
Django):
- HTTPS
- HttpsURLConnection
- Java
HTTPS
client – HttpsURLConnection example
- Android: Trusting SSL
certificates (extension of Apache
DefaultHttpClient)
- Trusting
all
certificates using HttpClient over HTTPS
- "Create a custom SSLSocketFactory that uses the
built-in certificate KeyStore, but falls back on an
alternate KeyStore for anything that fails to verify
with the default."
- The
Most Dangerous Code in the World: Validating SSL
Certificates in Non-Browser Software (pdf)
- Passos / Steps:
- get CA certificate:
echo | openssl s_client -connect remote_server:8443
2>&1 | sed -ne '/-BEGIN
CERTIFICATE-/,/-END CERTIFICATE-/p' >
mycert.pem
- generate mystore.bks file (protected by password
"totototo") from mycert.pem:
#! /bin/bash
export CLASSPATH=bcprov-1.46.jar
CERTSTORE=res/raw/mystore.bks
if [ -a $CERTSTORE ]; then
rm $CERTSTORE || exit 1
fi
keytool \
-import \
-v \
-trustcacerts \
-alias 0 \
-file
<(openssl x509 -in mycert.pem) \
-keystore
$CERTSTORE \
-storetype BKS
\
-provider
org.bouncycastle.jce.provider.BouncyCastleProvider
\
-providerpath
/usr/share/java/bcprov.jar \
-storepass
totototo
- https connection:
...
TextView text = (TextView)
findViewById(R.id.textView);
URL url;
try {
text.append("Connecting...");
KeyStore keyStore =
KeyStore.getInstance("BKS");
InputStream inMyStore =
getResources().openRawResource(R.raw.mystore);
try {
keyStore.load(inMyStore,
"totototo".toCharArray());
}
finally {
inMyStore.close();
}
TrustManagerFactory tmf =
TrustManagerFactory.getInstance("X509");
tmf.init(keyStore);
SSLContext context =
SSLContext.getInstance("TLS");
context.init(null,
tmf.getTrustManagers(),
null);
url = new
URL("https://remote_server:8443/");
HttpsURLConnection
urlConnection = (HttpsURLConnection)
url.openConnection();
urlConnection.setSSLSocketFactory(context.getSocketFactory());
text.append( "Response
code: " + urlConnection.getResponseCode());
try {
InputStream in = new
BufferedInputStream(urlConnection.getInputStream());
BufferedReader rd = new BufferedReader(new
InputStreamReader(in));
String
line = "";
while
((line = rd.readLine()) != null) {
text.append(line);
}
}
finally{
urlConnection.disconnect();
}
}
} catch (Exception e) {
text.append(
e.getMessage() );
e.printStackTrace();
}
...
- Problemes / Problems
- "CertPathValidatorException: Trust anchor for
certification path not found"
"certificate has unsupported critical
extension"
|
Root
|
|
Perfil restringit / Restricted
profile
|
- Home directories
- /mnt/shell/emulated/<user_id>/
- /mnt/shell/emulated/<user_id>/DCIM/
- /mnt/shell/emulated/<user_id>/games/com.mojang/minecraftWorlds/
- /mnt/shell/emulated/<user_id>/FxGuru/
- only with root access:
- Backup data files from restricted profile
- PC:
- mkdir <user_id>
- adb pull /mnt/shell/emulated/<user_id>/
./<user_id>/
- Comunicaciķ entre el perfil privat i l'usuari del qual depčn
/storage/sdcard0/Android/obb/toto_dir/
- Backup
&
Restore Apps + Data of RESTRICTED Profile
- [Q]
Restricted
Kitkat profile & Google+ profile
- Clash of Clans from a restricted profile
|
Seguretat / Security
|
|
http://www.francescpinyol.cat/android.html
Primera versiķ: 18 de maig de 2009 / First version: 18th May 2009
Darrera modificaciķ: 28 d'agost de 2023 / Last update: 28th August
2023
Cap a casa / Back home. |