J'utilise Android Studio. J'ai essayé de mettre en place l'environnement de développement et il faut modifier hosts
fichier. Donc,
- J'ai créé de nouveaux appareils dans ADM (Nexus 4, Android 10 x86_64 sans Google API et sans Google Play).
- J'ai lancé l'émulateur
-
J'ai ensuite essayé de suivre les instructions de stackoverflow . J'utilise Linux Mint donc :
$ ~/Android/Sdk/platform-tools/.adb root
output: restarting adbd as root
Ok, j'ai eu Root :
$ ~/Android/Sdk/platform-tools/.adb shell whoami
output:
root
Puis je suppose que je dois remonter et c'est là que je suis bloqué :
~/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
Je ne sais pas si remount
est le point critique, mais je suppose que oui. Pour l'instant, je n'ai pas la permission de modifier les données de la base de données. /etc/
. Par exemple :
$ ~/Android/Sdk/platform-tools./adb shell "cp /etc/hosts /etc/hosts.bak"
output:
cp: /etc/hosts.bak: Read-only file system