Estoy usando Android Studio. Estaba tratando de configurar el entorno de desarrollo y se requiere para modificar hosts
archivo. Así que,
- He creado nuevos dispositivos en ADM (Nexus 4, Android 10 x86_64 sin Google API y sin Google Play).
- He lanzado el emulador
-
Entonces intenté seguir las instrucciones de stackoverflow . Estoy usando Linux Mint así que:
$ ~/Android/Sdk/platform-tools/.adb root
output: restarting adbd as root
Bien, tengo a Root:
$ ~/Android/Sdk/platform-tools/.adb shell whoami
output:
root
Luego supongo que volver a montar y aquí es donde me atasqué:
~/Android/Sdk/platform-tools/.adb remount
output:
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
avb_ops_user.cpp:217: ERROR: Error writing data.
avb_user_verity.c:205: ERROR: Error writing to partition 'vbmeta'
E Skipping /system
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
W DM_DEV_STATUS failed for scratch: No such device or address
E [liblp]No device named scratch
[liblp]Partition scratch will resize from 0 bytes to 814587904 bytes
E [liblp]bool android::fs_mgr::WritePrimaryMetadata(int, const android::fs_mgr::LpMetadata &, uint32_t, const std::string &, const std::function<bool (int, const std::string &)> &) write 540 bytes failed: Operation not permitted
E [libfs_mgr]add partition scratch
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
W DM_DEV_STATUS failed for scratch: No such device or address
E Can not mount overlayfs for partitions: No such file or directory
Skip mounting partition: /product
Skip mounting partition: /product_services
E failed to remount partition dev:/dev/block/dm-1 mnt:/vendor: Read-only file system
E Consider providing all the dependencies to enable overlayfs
/system/bin/remount exited with status 10
remount failed
No sé si remount
es la cuestión crítica, pero supongo que sí. Por el momento no tengo permiso para modificar /etc/
. Por ejemplo:
$ ~/Android/Sdk/platform-tools./adb shell "cp /etc/hosts /etc/hosts.bak"
output:
cp: /etc/hosts.bak: Read-only file system