[HELP] broken lcd + after working with adb doesnt boot - Galaxy S Advance I9070 Q&A, Help & Troubleshooting

Hey xda-community,
might be a long text to read but i want to make it as detailed as possible :/.
I have an i9070 with broken lsd (+touch not working) and pattern lock.
i booted into recoverymode (TWRP) and removed the pattern lock via adb shell ("rm /data/system/gesture.key").
i wanted to use [email protected] so i tried to activate USB Debugging via adb shell.
in the internet i found a method and tried it right away
i had to pull /system/build.prop
add the line "persist.service.adb.enable=1" in the file
and after that i had to push it back, but i couln't.
So i searched to mount /system r/w ..... (prob for the false device ,_, )
i tried the 1st command and forgot the 4 in ext4, so i typed it like this in the adb shell:
# mount -o rw,remount -t ext /dev/block/mmcblk0p8 /system
# mount -o rw,remount -t ext4 /dev/block/mmcblk0p8 /system
after that i was able to push the build.prob back, and used
# mount -o ro,remount -t ext /dev/block/mmcblk0p8 /system
# mount -o ro,remount -t ext4 /dev/block/mmcblk0p8 /system
afterwards.
Rebooted it and it stuck while booting prob.
So i tried the push back the original build.prop. (thought it might be the cause)
Still not booting..
I ended trying all commands without any order:
# mount -o ro,remount -t ext /dev/block/mmcblk0p3 /system
# mount -o rw,remount -t ext /dev/block/mmcblk0p3 /system
# mount -o ro,remount -t ext4 /dev/block/mmcblk0p3 /system
# mount -o rw,remount -t ext4 /dev/block/mmcblk0p3 /system
# mount -o ro,remount -t ext /dev/block/mmcblk0p8 /system
# mount -o rw,remount -t ext /dev/block/mmcblk0p8 /system
# mount -o ro,remount -t ext4 /dev/block/mmcblk0p8 /system
# mount -o rw,remount -t ext4 /dev/block/mmcblk0p8 /system
chmod 755 system
chmod 777 system
i used also mount..../mmcblk0p3 instead of mmcblk0p8 because after using "mount" it showed behind the /system mmcblk0p3 ...
i messed too much around as a newbie :crying:
I am still able to use adb in recovery mode but cant acces the internal storage.
Would be nice if someone could help me
Ty if you read the whole text .. ^^

Related

Newb terminal command questions

What's the difference between these two (at least why they use the mount command, remount command, or shell command?)
su
mount -o remount,rw /dev/mtdblock3 /system
rm [whatever i want]
mount -o remount,ro /dev/mtdblock3 /system
and
adb remount
adb shell rm [whatever i want]
The first is a terminal command from the phone. (Only requires the phone)
The second is through adb to the phone. (Involves a properly configured adb, computer, usb cable, and phone)
evilkorn said:
The first is a terminal command from the phone. (Only requires the phone)
The second is through adb to the phone. (Involves a properly configured adb, computer, usb cable, and phone)
Click to expand...
Click to collapse
Wow, so people manage to type out all that craziness on the phone huh.
Thanks!
Anytime. Doubt they do that all the time, it would be easier to just make a script if you have to do that more than once. I just use root explorer, it has a button that mounts /system/ -rw.
I'm not sure about other terminals, but you can create aliases in Better Terminal Emulator
alias rw='mount -o remount,rw /dev/mtdblock3 /system'
alias ro='mount -o remount,ro /dev/mtdblock3 /system'
so now all you have to do is type rw or ro and it executes the full command. Or you can create scripts:
su
mount -o remount,rw /dev/mtdblock3 /system
cd /system/bin
echo "#! /system/bin/sh" | tee ro rw
echo "mount -o remount,rw /dev/mtdblock3 /system" >> rw
echo "mount -o remount,ro /dev/mtdblock3 /system" >> ro
chmod 755 rw ro
Same thing, except it executes the scripts instead of an alias.

Installing service.jar

How do you do it? Just same as adb push? Or any special way? Don't wanna get stuck to bootloader again.....
Sent from my DROIDX using XDA App
I just do this
Code:
adb push services.jar /sdcard/
adb shell
su
mount -o rw,remount -t ext3 /dev/block/userdata /data
cp /sdcard/services.jar /system/framework/services.jar
mount -o ro,remount -t ext3 /dev/block/userdata /data
reboot

Mount system doesn't work

adb shell
su
mount -o remount,rw /dev/block/stl9 /system
When i'm on step 3 "mount -o remount,rw /dev/block/stl9 /system" it tells me
mount: Invalid argument
How can i fix this? USB debug is on
Could this be a ROM related problem?

Re-enabling ext4 journaling in ROMs based on Stock

Hey there,
it's known that ext4 with disabled journaling is little faster than default, but it is also less reliable.
This can result in screwed up homescreens and force-closes after reboot/shutdown/battery pull.
I have successfully re-enabled journaling for system and cache partition, but it seems not to work correctly for data partition, at least for me. Can you help?
Code:
echo ..............system Partition...............
/sbin/busybox umount -l /system
/sdcard/tmp/tune2fs -O +has_journal -c 5 -i 5d -m 0 -o journal_data_ordered /dev/block/mmcblk0p1
fsck.ext4 -Dfy /dev/block/mmcblk0p1
/sbin/busybox mount -t ext4 -o nosuid,nodev,noatime,nodiratime,barrier=0,nobh,data=ordered,noauto_da_alloc /dev/block/mmcblk0p1 /system
echo ...............done...............
echo ...............cache Partition...............
/sbin/busybox umount -l /cache
/sdcard/tmp/tune2fs -O +has_journal -c 100 -i 100d -m 0 -o journal_data_writeback /dev/block/mmcblk0p2
fsck.ext4 -Dfy /dev/block/mmcblk0p2
/sbin/busybox mount -t ext4 -o nosuid,nodev,noatime,nodiratime,barrier=0,nobh,data=ordered,noauto_da_alloc /dev/block/mmcblk0p2 /cache
echo ...............done...............
echo ...............data Partition...............
/sbin/busybox umount -l /data
/sdcard/tmp/tune2fs -O +has_journal -c 5 -i 5d -m 0 -o journal_data_ordered /dev/block/mmcblk0p8
fsck.ext4 -Dfy /dev/block/mmcblk0p8
/sbin/busybox mount -t ext4 -o nosuid,nodev,noatime,nodiratime,barrier=0,nobh,data=ordered,noauto_da_alloc /dev/block/mmcblk0p8 /data
sync
echo ...............done...............
Semi-finished:
Flash journaling.zip via CWM to enable back journaling
Download
Download 'terminal emulator' from market and type the following to test if it works.
If 'has_journal' is present then journaling is enabled.
For /system
Code:
/system/bin/tune2fs -l /dev/block/mmcblk0p1 | grep features
For /cache
Code:
/system/bin/tune2fs -l /dev/block/mmcblk0p2 | grep features
For /data
Code:
/system/bin/tune2fs -l /dev/block/mmcblk0p8 | grep features
Please post feedback if it works for you (fully)!
nice good work!
Thanks!
Another easy, though more time consuming, way to re-enable journaling is to let CWM do it by a complete backup and restore.
(You can also switch between ext3 and ext4 by changing the file names in clockworkmod/backup/.../ and of course also in the nandroid.md5 file.)
Please post feedback if it works for you (especially for data partition)

Fix Persist Partition in XT1063

Put this zip file in the sdcard internal (very important in marshmallow) and flash but before mount the persist partition in TWRP 3.0.0.1 + theme.
Theme is here http://forum.xda-developers.com/showthread.php?p=65199244
[THEME][TWRP] TWRP 3.0.0 dark stock theme pack w different colors v2 [07.03.2016]
Files and folders, extracted from a XT1063
Mount again the partition before reboot [emoji16]
Note: It does not work if the partition is not mounted and Zip in SDinternal
1.-Reboot to recovery
2.-Mount the persist partition
3.-Flash The zip in SDInternal
4.-Mount the persist partition again
5.-Reboot
6.-Enjoy
jacbarahona72 said:
Put this zip file in the sdcard internal (very important in marshmallow) and flash but before mount the persist partition in TWRP 3.0.0.1 + theme.
Theme is here http://forum.xda-developers.com/showthread.php?p=65199244
[THEME][TWRP] TWRP 3.0.0 dark stock theme pack w different colors v2 [07.03.2016]
Files and folders, extracted from a XT1063
Mount again the partition before reboot [emoji16]
Note: It does not work if the partition is not mounted and Zip in SDinternal
1.-Reboot to recovery
2.-Mount the persist partition
3.-Flash The zip in SDInternal
4.-Mount the persist partition again
5.-Reboot
6.-Enjoy
Click to expand...
Click to collapse
hey..
how can i mount the persist in twrp..? there is no option for persisit..? and mount command alsa not owtrking on twrp..
~ # ←[6nmount -o remount,rw /persist
mount -o remount,rw /persist
mount: can't find /persist in /proc/mounts
~ # ←[6nmount -o remount,rw /mmcblk0p29
mount -o remount,rw /mmcblk0p29
mount: can't find /mmcblk0p29 in /proc/mounts
~ # ←[6nmount -o rw,remount /persist
mount -o rw,remount /persist
mount: can't find /persist in /proc/mounts
t-mobile_mda said:
hey..
how can i mount the persist in twrp..? there is no option for persisit..? and mount command alsa not owtrking on twrp..
~ # ←[6nmount -o remount,rw /persist
mount -o remount,rw /persist
mount: can't find /persist in /proc/mounts
~ # ←[6nmount -o remount,rw /mmcblk0p29
mount -o remount,rw /mmcblk0p29
mount: can't find /mmcblk0p29 in /proc/mounts
~ # ←[6nmount -o rw,remount /persist
mount -o rw,remount /persist
mount: can't find /persist in /proc/mounts
Click to expand...
Click to collapse
this method would solve the changed partition problem xt 1078 by the xt1068 partition.
t-mobile_mda said:
hey..
how can i mount the persist in twrp..? there is no option for persisit..? and mount command alsa not owtrking on twrp..
~ # ←[6nmount -o remount,rw /persist
mount -o remount,rw /persist
mount: can't find /persist in /proc/mounts
~ # ←[6nmount -o remount,rw /mmcblk0p29
mount -o remount,rw /mmcblk0p29
mount: can't find /mmcblk0p29 in /proc/mounts
~ # ←[6nmount -o rw,remount /persist
mount -o rw,remount /persist
mount: can't find /persist in /proc/mounts
Click to expand...
Click to collapse
You read that right ?, while installing THEME, is appended to the menu "mount" The "persist" partition friend. please follow the instruction
Work Only in the version ** TWRP 3.0.0-1 **, and Version 1 from the theme or 2, I am no sure in this moment. [emoji16]
Enviado desde mi Nexus 6

Categories

Resources