ubuntuuser0815 schrieb:
mit meinen zahllosen beim Sreenwechsel zerstörten Nexus 4 (ohne Displays) beschäftigen
Du hast mehrere Nexus 4 mit zerstoertem Display?
Leider ist die adb bei ubuntu touch zunächst inaktiv, und da immer der Begrüßungsbildschirm mit der Erst-Wisch-Aktion kommt, möchte ich die abstelen.
Dazu muss ich aber wie gesagt irgendwie per TWRP - Konsole in das Image kommen (geht so etwas? wie?).
Mein Stand auf einem Handy : df -a
Geh ich recht in der Annahme dass Du hier etwas beim copy/pasten durcheinander gebracht hast? Ich kann mir nicht vorstellen dass etwas nach /data/dev/block/mmcblk0p23 gemountet wurde ..... etwas das keinen Name hat .....
Vergleiche mal Dein Post und meinen Korrekturvorschlag und nochmaliges Probieren am Geraet.
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 957528 20 957508 0% /tmp
/dev/block/mmcblk0p23 13549392 5725144 7824248 42% /data
/dev/block/mmcblk0p23 13549392 5725144 7824248 42% /sdcard
/dev/block/mmcblk0p22 564988 10168 554820 2% /cache
und nach mounten
nur die p21, /system war noch nicht gemountet, alle anderen hattest Du schon.
cat fstab
/dev/block/mmcblk0p21 /system ext4 rw 0 0
...
mount /dev/block/mmcblk0p21
gut. nun hast du /system auch gemountet.
habe ich mit ls immer noch Android
ls in welchem ordner?
poste doch bitte
ls /
und
ls /system
ls /system/etc
ls /system/etc/init
Da finde ich keine /etc/init.d oder sonst etwas wo sich in ubuntu die Erstinitialisierung, wo man von unten nach oben wischen soll (was bei meinem Handy mit Display nicht geht, da die untersten 10 Pixel am Touch defekt sind) vielleicht abschalten oder überspringen könnte und später die ADB aktivieren könnte.
Weiß jemand rat, was ich da machen kann?
Ich weiss nicht wo genau Du Hand anlegen musst um adb zu aktivieren, aber ich poste mal ein paar Ausgaben von meinem nexus 7 deb. Vielleicht hilft das
$ ssh phablet@nexus grep -R adb /etc/init
/etc/init/force-adb.conf:# adbd - run adb debugging shell
/etc/init/force-adb.conf:# This task enables the adb shell
/etc/init/force-adb.conf:# adbd - run adb debugging shell
/etc/init/force-adb.conf:# gadget service - force adb
/etc/init/force-adb.conf:# This service checks if the adb shell user has a password set on boot
/etc/init/force-adb.conf:# It disables adb on the usb gadget if there is no password
/etc/init/force-adb.conf:start on ((file FILE=/var/lib/extrausers/shadow EVENT=modify) or (starting android-tools-adbd))
/etc/init/force-adb.conf: android-gadget-service enable adb
/etc/init/force-adb.conf: if android-gadget-service status adb|grep -q enabled
/etc/init/force-adb.conf: android-gadget-service disable adb
/etc/init/android-tools-adbd-reboot-watcher.conf:# This is used by adbd to signal user asked for reboot
/etc/init/android-tools-adbd.conf:# adbd - run adb debugging shell
/etc/init/android-tools-adbd.conf:# This task enables the adb shell
/etc/init/android-tools-adbd.conf:description "adbd"
/etc/init/android-tools-adbd.conf:start on ((android-container persist.sys.usb.config=*adb) and (started lightdm)) or (android-container ro.debuggable=1)
/etc/init/android-tools-adbd.conf: if ! $(mount|grep -q ^adb)
/etc/init/android-tools-adbd.conf: # we need to mount it to keep adb working
/etc/init/android-tools-adbd.conf: mkdir -p /dev/usb-ffs/adb
/etc/init/android-tools-adbd.conf: mount -o uid=32011,gid=32011 -t functionfs adb /dev/usb-ffs/adb || true
/etc/init/android-tools-adbd.conf: unlink /dev/socket/adbd
/etc/init/android-tools-adbd.conf:exec su - -c adbd
/etc/init/adbd-emergency-shell.conf:# adbd - run adb emergency shell
/etc/init/adbd-emergency-shell.conf:# This task enables the adb shell in emergency mode if the
/etc/init/adbd-emergency-shell.conf:description "adbd emergency shell"
/etc/init/adbd-emergency-shell.conf: if getprop persist.sys.usb.config|grep -q adb; then
/etc/init/adbd-emergency-shell.conf: if ! $(mount|grep -q ^adb)
/etc/init/adbd-emergency-shell.conf: # we need to mount it to keep adb working
/etc/init/adbd-emergency-shell.conf: mkdir -p /dev/usb-ffs/adb
/etc/init/adbd-emergency-shell.conf: mount -t functionfs adb /dev/usb-ffs/adb || true
/etc/init/adbd-emergency-shell.conf: echo -n adb >/sys/class/android_usb/android0/functions
/etc/init/adbd-emergency-shell.conf:exec su - -c adbd
Edit:
Poste doch auch die Ausgabe dieses Befehls
Edit2:
Mhm .... das bringt mich auf ne Idee
Mit aktiviertem Developer Modus:
$ getprop | grep adb
[sys.usb.state]: [mtp,adb]
[sys.usb.config]: [mtp,adb]
[init.svc.adbd]: [stopped]
[persist.sys.usb.config]: [mtp,adb]
[persist.radio.adb_log_on]: [0]
Und mit deaktiviertem Developer Mode:
$ getprop | grep adb
[init.svc.adbd]: [stopped]
[persist.radio.adb_log_on]: [0]
mhmm .... vielleicht liegt es nur an diesen "prop"-erties ... aber ich komm grade nicht drauf wie/wo die eigentlich gesetzt werden
bringt mich aber auf eine andere Idee:
Auf der Ubuntu Touch/Terminal Wikiseite steht wie Du ssh per setprop aktivierst vielleicht ist das einfacher als adb.