Help with Root on Moto E6 - Moto E6 Questions & Answers

Greetings All,
I have a confusion about root usage with Magisk that maybe someone can help me with.
I would like to change some files on the /system directory in the Moto E6.
Using TWRP would make this change trivial.
Alas, there does not appear to be a functional TWRP available for this device.
So I am using the next best thing, Magisk rooted.
Booting up with the Magisk patched recovery, I can adb shell from a Linux terminal,
and execute 'su' for root privileges.
Attempting to remount /system rw results in '/system not in /proc/mounts' message (which is true).
If I attempt to mount /dev/block/by-name/system, I get a 'device or resource busy' message.
I CAN remount '/', and the /system directory can then be modified.
However, when the system is booted normally, those changes do not show in the 'normal' /system directory.
I suspect that Magisk is creating it's own /system directory for the recovery boot.
Is there any way to access/update the REAL /system image on this phone?
Thanx
Richard Rosa

Here is another mystery:
Boot with Magisk recovery.
adb shell
su
mount -o rw,remount /oem
cd oem
touch junk_file
ls -a
(file created is there)
(wait 10 seconds)
ls -a
(the file has disappeared).
Can someone enlighten me as to why?
Thanx.
Richard Rosa

It happens on my XT2005-5, as well.
Once the file is gone, I could not make any other file, either.
Right after mounting:
surfna:/ # ls -altr /oem
total 52
drwxr-xr-x 21 root root 4096 2009-01-01 01:00 ..
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 usc
-rw-r--r-- 1 root root 272 2021-01-27 16:15 oem.prop
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 comcast
drwxr-xr-x 9 root root 4096 2021-01-27 16:16 .
drwxr-xr-x 6 root root 4096 2021-01-27 16:16 app
drwxr-xr-x 7 root root 4096 2021-01-27 16:16 overlay
drwxr-xr-x 12 root root 4096 2021-01-27 16:16 priv-app
drwxr-xr-x 7 root root 4096 2021-01-27 16:17 etc
drwx------ 2 root root 16384 2021-01-27 16:17 lost+found
Creating a file (TTT):
surfna:/ # touch /oem/TTT
surfna:/ # ls -altr /oem/
total 52
drwxr-xr-x 21 root root 4096 2009-01-01 01:00 ..
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 usc
-rw-r--r-- 1 root root 272 2021-01-27 16:15 oem.prop
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 comcast
drwxr-xr-x 6 root root 4096 2021-01-27 16:16 app
drwxr-xr-x 7 root root 4096 2021-01-27 16:16 overlay
drwxr-xr-x 12 root root 4096 2021-01-27 16:16 priv-app
drwxr-xr-x 7 root root 4096 2021-01-27 16:17 etc
drwx------ 2 root root 16384 2021-01-27 16:17 lost+found
-rw-r--r-- 1 root root 0 2021-05-30 03:58 TTT
drwxr-xr-x 9 root root 4096 2021-05-30 03:58 .
And it disappered:
surfna:/ # ls -altr /oem/
total 52
drwxr-xr-x 21 root root 4096 2009-01-01 01:00 ..
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 usc
-rw-r--r-- 1 root root 272 2021-01-27 16:15 oem.prop
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 comcast
drwxr-xr-x 6 root root 4096 2021-01-27 16:16 app
drwxr-xr-x 7 root root 4096 2021-01-27 16:16 overlay
drwxr-xr-x 12 root root 4096 2021-01-27 16:16 priv-app
drwxr-xr-x 7 root root 4096 2021-01-27 16:17 etc
drwx------ 2 root root 16384 2021-01-27 16:17 lost+found
drwxr-xr-x 9 root root 4096 2021-05-30 03:58 .
I did touch and then chmod 700, without error.
But no TTT. The time stamp of oem stayed unchanged.
surfna:/ # touch /oem/TTT
surfna:/ # chmod 700 /oem/TTT
surfna:/ # ls -altr /oem/
total 52
drwxr-xr-x 21 root root 4096 2009-01-01 01:00 ..
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 usc
-rw-r--r-- 1 root root 272 2021-01-27 16:15 oem.prop
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 comcast
drwxr-xr-x 6 root root 4096 2021-01-27 16:16 app
drwxr-xr-x 7 root root 4096 2021-01-27 16:16 overlay
drwxr-xr-x 12 root root 4096 2021-01-27 16:16 priv-app
drwxr-xr-x 7 root root 4096 2021-01-27 16:17 etc
drwx------ 2 root root 16384 2021-01-27 16:17 lost+found
drwxr-xr-x 9 root root 4096 2021-05-30 03:58 .
Same thing, but without delay. No effect.
surfna:/ # touch /oem/TTT; chmod 700 /oem/TTT
surfna:/ # ls -altr /oem/
total 52
drwxr-xr-x 21 root root 4096 2009-01-01 01:00 ..
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 usc
-rw-r--r-- 1 root root 272 2021-01-27 16:15 oem.prop
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 comcast
drwxr-xr-x 6 root root 4096 2021-01-27 16:16 app
drwxr-xr-x 7 root root 4096 2021-01-27 16:16 overlay
drwxr-xr-x 12 root root 4096 2021-01-27 16:16 priv-app
drwxr-xr-x 7 root root 4096 2021-01-27 16:17 etc
drwx------ 2 root root 16384 2021-01-27 16:17 lost+found
drwxr-xr-x 9 root root 4096 2021-05-30 03:58 .
Trying to create more files ==> I/O error.
surfna:/ # touch /oem/TTT2
touch: '/oem/TTT2': I/O error
1|surfna:/ # touch /oem/123
touch: '/oem/123': I/O error
Repeating same thing. This time, time stamp of oem changed!
surfna:/ # touch /oem/TTT23
touch: '/oem/TTT23': I/O error
1|surfna:/ # touch /oem/TTT23
surfna:/ # touch /oem/T12
touch: '/oem/T12': I/O error
1|surfna:/ # touch /oem/TDD
touch: '/oem/TDD': I/O error
1|surfna:/ # ls -altr /oem/
total 52
drwxr-xr-x 21 root root 4096 2009-01-01 01:00 ..
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 usc
-rw-r--r-- 1 root root 272 2021-01-27 16:15 oem.prop
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 comcast
drwxr-xr-x 6 root root 4096 2021-01-27 16:16 app
drwxr-xr-x 7 root root 4096 2021-01-27 16:16 overlay
drwxr-xr-x 12 root root 4096 2021-01-27 16:16 priv-app
drwxr-xr-x 7 root root 4096 2021-01-27 16:17 etc
drwx------ 2 root root 16384 2021-01-27 16:17 lost+found
drwxr-xr-x 9 root root 4096 2021-05-30 04:03 .
Using echo instead of touch to create a file.
Error for TDD, but no error for TTT, the original file, somehow.
But it doesn't show up is ls.
surfna:/ # echo 123 > /oem/TDD
/system/bin/sh: can't create /oem/TDD: I/O error
1|surfna:/ # echo 123 > /oem/TTT
surfna:/ # ls -altr /oem/
total 52
drwxr-xr-x 21 root root 4096 2009-01-01 01:00 ..
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 usc
-rw-r--r-- 1 root root 272 2021-01-27 16:15 oem.prop
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 comcast
drwxr-xr-x 6 root root 4096 2021-01-27 16:16 app
drwxr-xr-x 7 root root 4096 2021-01-27 16:16 overlay
drwxr-xr-x 12 root root 4096 2021-01-27 16:16 priv-app
drwxr-xr-x 7 root root 4096 2021-01-27 16:17 etc
drwx------ 2 root root 16384 2021-01-27 16:17 lost+found
drwxr-xr-x 9 root root 4096 2021-05-30 04:03 .
But it shows up with full path.
surfna:/ # ls -altr /oem/TTT
-rwx------ 1 root root 4 2021-05-30 04:03 /oem/TTT
I rebooted (recoverly) and checked original mount parameters.
surfna:/ # mount |grep oem
/dev/block/dm-1 on /oem type ext4 (ro,context=ubject_remfs:s0,nosuid,nodev,relatime,block_validity,delalloc,barrier,user_xattr)
Remounting as "rw" doesn't change other parameters.
surfna:/ # mount -o rw,remount /oem
surfna:/ # mount |grep oem
/dev/block/dm-1 on /oem type ext4 (rw,context=ubject_remfs:s0,nosuid,nodev,relatime,block_validity,delalloc,barrier,user_xattr)
This time, the file didn't stay.
surfna:/ # touch /oem/TTT;chmod 700 /oem/TTT;ls -altr /oem/;mount |grep oem
total 52
drwxr-xr-x 21 root root 4096 2009-01-01 01:00 ..
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 usc
-rw-r--r-- 1 root root 272 2021-01-27 16:15 oem.prop
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 comcast
drwxr-xr-x 6 root root 4096 2021-01-27 16:16 app
drwxr-xr-x 7 root root 4096 2021-01-27 16:16 overlay
drwxr-xr-x 12 root root 4096 2021-01-27 16:16 priv-app
drwxr-xr-x 7 root root 4096 2021-01-27 16:17 etc
drwx------ 2 root root 16384 2021-01-27 16:17 lost+found
drwxr-xr-x 9 root root 4096 2021-05-30 04:40 .
/dev/block/dm-1 on /oem type ext4 (rw,context=ubject_remfs:s0,nosuid,nodev,relatime,block_validity,delalloc,barrier,user_xattr)
But it's there when I used full path, again.
surfna:/ # touch /oem/TTT;chmod 700 /oem/TTT;ls -altr /oem/TTT ;mount |grep oem
-rwx------ 1 root root 0 2021-05-30 04:41 /oem/TTT
Writing to the file did not change the time stamp of oem, but touching it changed.
surfna:/ # touch /oem; ls -altr /oem/
total 52
drwxr-xr-x 21 root root 4096 2009-01-01 01:00 ..
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 usc
-rw-r--r-- 1 root root 272 2021-01-27 16:15 oem.prop
drwxr-xr-x 3 root root 4096 2021-01-27 16:15 comcast
drwxr-xr-x 6 root root 4096 2021-01-27 16:16 app
drwxr-xr-x 7 root root 4096 2021-01-27 16:16 overlay
drwxr-xr-x 12 root root 4096 2021-01-27 16:16 priv-app
drwxr-xr-x 7 root root 4096 2021-01-27 16:17 etc
drwx------ 2 root root 16384 2021-01-27 16:17 lost+found
drwxr-xr-x 9 root root 4096 2021-05-30 04:53 .
It's a block device (rw) and special block.
It's small. Too small to contain all directories.
surfna:/ # ls -al /dev/block/dm-1
brw------- 1 root root 252, 1 1970-01-27 08:20 /dev/block/dm-1
surfna:/ # file /dev/block/dm-1
/dev/block/dm-1: block special

Related

Help: JF1.41, Apps and Data on SD - No space error

Sorry, for creating a new thread, but the others are getting so deep reading through them, and I have seen a few others with this problem, moving /data/app and /data/data
Below is EVERYTHING I have done. Ive installed the modded JF1.41 that includes the modded mountd.conf and init.rc. Everything works.. essentially.
busybox df -h shows the proper mount as /system/sd, system/sd exists.
init.rc contains
mount ext2 /dev/mmcblk0p2 /system/sd noatime nodiratime
mountd.conf contains
block_device /dev/block/mmcblk0p1
The commands I run are
busybox cp -a /data/app /system/sd
rm -r /data/app
ln -s /system/sd/app /data/app
busybox cp -a /data/app-private /system/sd/app-private
rm -r /data/app-private
ln -s /system/sd/app-private /data/app-private
cp -a /data/data /system/sd
rm -r /data/data
ln -s /system/sd/data /data/data
reboot, and I get the error.
Ok I've narrowed it down to the data/data move.
I did it again, this time using the Batch files that were posted in the other thread(Great work!) Everything worked until I moved the /data/data..
adb shell mkdir /system/sd/data
adb shell cp -rp /data/data /system/sd
adb shell rm -r /data/data
adb shell ln -s /system/sd/data /data/data
These were the commands used. Please help
Immediately upon reversing this using
C:\Google\SDK\tools>adb shell
# rm -r /data/data
rm -r /data/data
# busybox cp -a /system/sd/data /data/data
busybox cp -a /system/sd/data /data/data
#
I was able to install applications again.
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 48.4M 0 48.4M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 67.5M 64.0M 3.5M 95% /system
/dev/block/loop0 1.5M 1.5M 0 100% /system/modules
/dev/block/loop1 3.1M 3.1M 0 100% /system/xbin
/dev/mmcblk0p2 2.3G 6.8M 2.1G 0% /system/sd
/dev/block/mtdblock5 74.8M 9.9M 64.8M 13% /data
/dev/block/mtdblock4 67.5M 1.1M 66.4M 2% /cache
/dev/block/mmcblk0p1 5.2G 1.4G 3.8G 27% /sdcard
I have created a large partition, 2.3GB on an 8GB c6, so its not a space issue, I have previously formated the ext2 partition with paragon and still have the problem. When I move /data/data my phone displays 67MB free. Thats when the problems arrise.
the /data dir should look like this
#
Code:
cd /data
cd /data
# ls -l
ls -l
drwxrwxrwx 1 1000 1000 2048 Jan 25 07:23 anr
lrwxrwxrwx 1 0 0 14 Jan 25 07:35 app -> /system/sd/app
lrwxrwxrwx 1 0 0 22 Jan 25 07:36 app-private -> /system/s
d/app-private
drwxrwx--x 1 1000 1000 2048 Jan 25 21:24 dalvik-cache
lrwxrwxrwx 1 0 0 15 Jan 28 02:53 data -> /system/sd/data
drwxrwx--x 1 2000 2000 2048 Jan 25 07:23 local
drwxrwx--- 1 0 0 2048 Jan 25 07:23 lost+found
drwxrwx--t 1 1000 9998 2048 Jan 25 07:23 misc
drwx------ 1 0 0 2048 Jan 25 07:23 property
drwxrwxr-x 1 1000 1000 2048 Jan 25 07:23 system
#
/data/data dir on the sdcard should look like something like this:
Code:
# ls -l
ls -l
drwxr-xr-x 3 10028 10028 4096 Jan 25 07:36 bz.ktk.bubble
drwxr-xr-x 4 10079 10079 4096 Jan 25 08:31 com.NamcoNetworks.PacMan
drwxr-xr-x 5 10076 10076 4096 Jan 25 07:37 com.acme.android.powerma
nager
drwxr-xr-x 3 10002 10002 4096 Jan 25 07:23 com.amazon.mp3
drwxr-xr-x 4 10026 10026 4096 Jan 25 07:23 com.android.alarmclock
drwxr-xr-x 4 10032 10032 4096 Jan 25 07:36 com.android.app.schwarz
drwxr-xr-x 10 10025 10025 4096 Jan 28 04:27 com.android.browser
drwxr-xr-x 3 10024 10024 4096 Jan 25 07:23 com.android.bugreport
drwxr-xr-x 3 10023 10023 4096 Jan 25 07:23 com.android.calculator2
drwxr-xr-x 4 10022 10022 4096 Jan 25 07:23 com.android.calendar
drwxr-xr-x 3 10016 10016 4096 Jan 25 07:23 com.android.camera
drwxr-xr-x 4 10018 10018 4096 Jan 25 07:23 com.android.contacts
drwxr-xr-x 3 10072 10072 4096 Jan 25 07:37 com.android.development
drwxr-xr-x 3 10021 10021 4096 Jan 25 07:23 com.android.email
drwxr-xr-x 3 10018 10018 4096 Jan 25 07:23 com.android.googlesearch
drwxr-xr-x 3 10019 10019 4096 Jan 25 07:23 com.android.htmlviewer
drwxr-xr-x 4 10018 10018 4096 Jan 25 07:23 com.android.launcher
drwxr-xr-x 4 10015 10015 4096 Jan 25 07:23 com.android.mms
drwxr-xr-x 3 10014 10014 4096 Jan 25 07:23 com.android.music
drwxr-xr-x 4 10013 10013 4096 Jan 25 07:23 com.android.packageinsta
ller
drwxr-xr-x 4 1001 1001 4096 Jan 25 07:23 com.android.phone
drwxr-xr-x 4 10022 10022 4096 Jan 25 07:23 com.android.providers.ca
lendar
drwxr-xr-x 4 10018 10018 4096 Jan 25 07:23 com.android.providers.co
ntacts
drwxr-xr-x 4 10016 10016 4096 Jan 25 07:23 com.android.providers.do
wnloads
drwxr-xr-x 4 10016 10016 4096 Jan 25 07:23 com.android.providers.dr
m
drwxr-xr-x 4 10018 10018 4096 Jan 25 07:23 com.android.providers.im
drwxr-xr-x 4 10016 10016 4096 Jan 25 07:23 com.android.providers.me
dia
drwxr-xr-x 4 1000 1000 4096 Jan 25 07:23 com.android.providers.se
ttings
drwxr-xr-x 5 1000 1000 4096 Jan 25 07:23 com.android.providers.su
bscribedfeeds
drwxr-xr-x 4 1001 1001 4096 Jan 25 07:23 com.android.providers.te
lephony
drwxr-xr-x 5 1000 1000 4096 Jan 25 07:23 com.android.settings
drwxr-xr-x 3 10012 10012 4096 Jan 25 07:23 com.android.setupwizard
drwxr-xr-x 3 10011 10011 4096 Jan 25 07:23 com.android.soundrecorde
r
drwxr-xr-x 3 10008 10008 4096 Jan 25 07:23 com.android.sync
drwxr-xr-x 4 10001 10001 4096 Jan 25 07:23 com.android.term
drwxr-xr-x 3 10073 10073 4096 Jan 25 07:37 com.android.trystania.vo
lumecontrol
drwxr-xr-x 3 10006 10006 4096 Jan 25 07:23 com.android.updater
drwxr-xr-x 6 10005 10005 4096 Jan 28 04:26 com.android.vending
drwxr-xr-x 5 10004 10004 4096 Jan 28 14:29 com.android.voicedialer
drwxr-xr-x 3 10033 10033 4096 Jan 25 07:36 com.appdroid.anycut
drwxr-xr-x 3 10034 10034 4096 Jan 25 07:36 com.appdroid.videoplayer
drwxr-xr-x 5 10027 10027 4096 Jan 28 05:26 com.biggu.shopsavvy
drwxr-xr-x 6 10029 10029 4096 Jan 28 05:56 com.compareeverywhere
drwxr-xr-x 3 10037 10037 4096 Jan 25 07:37 com.dynamix.mobile.Smart
TacToe
drwxr-xr-x 4 10053 10053 4096 Jan 25 07:37 com.evancharlton.g1centr
al
drwxr-xr-x 4 10060 10060 4096 Jan 25 07:37 com.fsck.k9
drwxr-xr-x 4 10075 10075 4096 Jan 25 07:37 com.geekyouup.android.bo
okmarker
drwxr-xr-x 3 10000 10000 4096 Jan 25 07:23 com.google.android.apps.
gtalkservice
drwxr-xr-x 6 10017 10017 4096 Jan 25 07:23 com.google.android.apps.
maps
drwxr-xr-x 3 10038 10038 4096 Jan 25 07:37 com.google.android.apps.
uploader
drwxr-xr-x 3 10039 10039 4096 Jan 25 07:37 com.google.android.check
ers
drwxr-xr-x 3 10040 10040 4096 Jan 25 07:37 com.google.android.chess
drwxr-xr-x 6 10020 10020 4096 Jan 25 07:23 com.google.android.gm
drwxr-xr-x 4 10000 10000 4096 Jan 25 07:23 com.google.android.googl
eapps
drwxr-xr-x 4 10000 10000 4096 Jan 25 07:23 com.google.android.provi
ders.gmail
drwxr-xr-x 3 10010 10010 4096 Jan 25 07:23 com.google.android.stree
t
drwxr-xr-x 3 1000 1000 4096 Jan 25 07:23 com.google.android.syste
mupdater
drwxr-xr-x 3 10007 10007 4096 Jan 25 07:23 com.google.android.talk
drwxr-xr-x 5 10003 10003 4096 Jan 25 07:23 com.google.android.youtu
be
drwxr-xr-x 3 10041 10041 4096 Jan 25 07:37 com.google.tts
drwxr-xr-x 6 10031 10031 4096 Jan 28 05:46 com.google.zxing.client.
android
drwxr-xr-x 3 1001 1001 4096 Jan 25 07:23 com.htc.fieldtest
drwxr-xr-x 3 10043 10043 4096 Jan 25 07:37 com.ideal.speakingpad
drwxr-xr-x 6 10030 10030 4096 Jan 25 07:36 com.imeem.gynoid
drwxr-xr-x 4 10009 10009 4096 Jan 25 07:23 com.koushikdutta.superus
er
drwxr-xr-x 3 10045 10045 4096 Jan 25 07:37 com.metago.astro
drwxr-xr-x 3 10046 10046 4096 Jan 25 07:37 com.metaworldsolutions.a
ndroid.ruler
drwxr-xr-x 3 10047 10047 4096 Jan 25 07:37 com.mmg.appin
drwxr-xr-x 4 10049 10049 4096 Jan 25 07:37 com.p1.chompsms
drwxr-xr-x 5 10050 10050 4096 Jan 25 07:37 com.quirkconsulting.tick
er
drwxr-xr-x 4 10051 10051 4096 Jan 25 07:37 com.rerware.android.MyBa
ckup
drwxr-xr-x 3 10052 10052 4096 Jan 25 07:37 com.rerware.android.MyBo
okmarks
drwxr-xr-x 3 10074 10074 4096 Jan 25 07:37 com.schwimmer.andrew.tog
gleair
drwxr-xr-x 3 10054 10054 4096 Jan 25 07:37 com.schwimmer.android.to
gglebluetooth
drwxr-xr-x 3 10055 10055 4096 Jan 25 07:37 com.schwimmer.android.to
gglewifi
drwxr-xr-x 4 10057 10057 4096 Jan 25 07:37 com.skwid.systemmonitor
drwxr-xr-x 4 10058 10058 4096 Jan 25 07:37 com.starobject.android.s
tarcontact
drwxr-xr-x 6 10071 10071 4096 Jan 28 04:26 com.stylem.wallpapers
drwxr-xr-x 3 10061 10061 4096 Jan 25 07:37 com.swwomm.ringtoggle
drwxr-xr-x 3 10077 10077 4096 Jan 25 07:37 com.taskManager.rootTask
Manager
drwxr-xr-x 5 10062 10062 4096 Jan 25 07:37 com.weather.Weather
drwxr-xr-x 3 10066 10066 4096 Jan 25 07:37 koushikdutta.screenshot
drwxr-xr-x 3 10068 10068 4096 Jan 25 07:37 org.mmin.handycalc
drwxr-xr-x 3 10069 10069 4096 Jan 25 07:37 org.openintents.flashlig
ht
drwxr-xr-x 3 10070 10070 4096 Jan 25 07:37 posimotion.Tic_Tac_Toe
#
cd data
Code:
# ls -l
ls -l
drwxrwxrwx 1 1000 1000 2048 Jan 28 20:17 anr
lrwxrwxrwx 1 0 0 14 Jan 28 20:52 app -> /system/sd/app
lrwxrwxrwx 1 0 0 22 Jan 28 20:52 app-private -> /system/s
d/app-private
drwxrwx--x 1 1000 1000 2048 Jan 28 20:17 dalvik-cache
lrwxrwxrwx 1 0 0 15 Jan 28 23:33 data -> /system/sd/data
drwxrwx--x 1 2000 2000 2048 Jan 28 20:17 local
drwxrwx--- 1 0 0 2048 Jan 28 20:17 lost+found
drwxrwx--t 1 1000 9998 2048 Jan 28 20:17 misc
drwx------ 1 0 0 2048 Jan 28 20:17 property
drwxrwxr-x 1 1000 1000 2048 Jan 28 20:17 system
#
cd system/sd/data
Code:
cd ..
# cd system
cd system
# cd sd
cd sd
# cd data
cd data
# ls -l
ls -l
drwxr-xr-x 4 10034 10034 1024 Jan 28 21:22 com.acme.android.powerma
nager
drwxr-xr-x 3 10002 10002 1024 Jan 28 20:17 com.amazon.mp3
drwxr-xr-x 4 10027 10027 1024 Jan 28 20:17 com.android.alarmclock
drwxr-xr-x 10 10026 10026 1024 Jan 28 20:17 com.android.browser
drwxr-xr-x 3 10025 10025 1024 Jan 28 20:17 com.android.bugreport
drwxr-xr-x 3 10024 10024 1024 Jan 28 20:17 com.android.calculator2
drwxr-xr-x 4 10023 10023 1024 Jan 28 20:17 com.android.calendar
drwxr-xr-x 3 10017 10017 1024 Jan 28 20:17 com.android.camera
drwxr-xr-x 3 10014 10014 1024 Jan 28 20:17 com.android.contacts
drwxr-xr-x 3 10022 10022 1024 Jan 28 20:17 com.android.email
drwxr-xr-x 3 10014 10014 1024 Jan 28 20:17 com.android.googlesearch
drwxr-xr-x 3 10020 10020 1024 Jan 28 20:17 com.android.htmlviewer
drwxr-xr-x 3 10019 10019 1024 Jan 28 20:17 com.android.im
drwxr-xr-x 3 10014 10014 1024 Jan 28 20:17 com.android.launcher
drwxr-xr-x 4 10016 10016 1024 Jan 28 20:17 com.android.mms
drwxr-xr-x 3 10015 10015 1024 Jan 28 20:17 com.android.music
drwxr-xr-x 3 10013 10013 1024 Jan 28 20:17 com.android.packageinsta
ller
drwxr-xr-x 4 1001 1001 1024 Jan 28 20:17 com.android.phone
drwxr-xr-x 4 10023 10023 1024 Jan 28 20:17 com.android.providers.ca
lendar
drwxr-xr-x 4 10017 10017 1024 Jan 28 20:17 com.android.providers.do
wnloads
drwxr-xr-x 4 10017 10017 1024 Jan 28 20:17 com.android.providers.dr
m
drwxr-xr-x 4 10014 10014 1024 Jan 28 20:17 com.android.providers.im
drwxr-xr-x 3 10019 10019 1024 Jan 28 20:17 com.android.providers.im
credential
drwxr-xr-x 4 10017 10017 1024 Jan 28 20:17 com.android.providers.me
dia
drwxr-xr-x 4 1000 1000 1024 Jan 28 20:17 com.android.providers.se
ttings
drwxr-xr-x 5 1000 1000 1024 Jan 28 20:17 com.android.providers.su
bscribedfeeds
drwxr-xr-x 4 1001 1001 1024 Jan 28 20:17 com.android.providers.te
lephony
drwxr-xr-x 5 1000 1000 1024 Jan 28 20:17 com.android.settings
drwxr-xr-x 3 10012 10012 1024 Jan 28 20:17 com.android.setupwizard
drwxr-xr-x 3 10011 10011 1024 Jan 28 20:17 com.android.soundrecorde
r
drwxr-xr-x 3 10008 10008 1024 Jan 28 20:17 com.android.sync
drwxr-xr-x 3 10001 10001 1024 Jan 28 20:17 com.android.term
drwxr-xr-x 3 10006 10006 1024 Jan 28 20:17 com.android.updater
drwxr-xr-x 5 10005 10005 1024 Jan 28 20:17 com.android.vending
drwxr-xr-x 3 10004 10004 1024 Jan 28 20:17 com.android.voicedialer
drwxr-xr-x 3 10037 10037 1024 Jan 28 21:09 com.angryredplanet.andro
id.rings_extended
drwxr-xr-x 3 10030 10030 1024 Jan 28 21:04 com.appdroid.anycut
drwxr-xr-x 5 10035 10035 1024 Jan 28 21:22 com.aws.android
drwxr-xr-x 3 10031 10031 1024 Jan 28 21:08 com.biggu.shopsavvy
drwxr-xr-x 3 10036 10036 1024 Jan 28 21:09 com.bonfiremedia.android
_ebay
drwxr-xr-x 3 10000 10000 1024 Jan 28 20:17 com.google.android.apps.
gtalkservice
drwxr-xr-x 3 10018 10018 1024 Jan 28 20:17 com.google.android.apps.
maps
drwxr-xr-x 6 10021 10021 1024 Jan 28 20:17 com.google.android.gm
drwxr-xr-x 4 10000 10000 1024 Jan 28 20:17 com.google.android.googl
eapps
drwxr-xr-x 4 10000 10000 1024 Jan 28 20:17 com.google.android.provi
ders.gmail
drwxr-xr-x 3 10039 10039 1024 Jan 28 21:10 com.google.android.radar
drwxr-xr-x 3 10010 10010 1024 Jan 28 20:17 com.google.android.stree
t
drwxr-xr-x 3 10007 10007 1024 Jan 28 20:17 com.google.android.talk
drwxr-xr-x 3 10003 10003 1024 Jan 28 20:17 com.google.android.youtu
be
drwxr-xr-x 3 10038 10038 1024 Jan 28 21:09 com.google.tts
drwxr-xr-x 3 1001 1001 1024 Jan 28 20:17 com.htc.fieldtest
drwxr-xr-x 3 10009 10009 1024 Jan 28 20:17 com.koushikdutta.superus
er
drwxr-xr-x 3 10029 10029 1024 Jan 28 20:58 com.myspace.android
drwxr-xr-x 3 10032 10032 1024 Jan 28 21:08 com.ringdroid
drwxr-xr-x 3 10033 10033 1024 Jan 28 21:08 com.shazam.android
drwxr-xr-x 5 10014 10014 1024 Jan 28 20:17 com.tmobile.myfaves
drwxr-xr-x 5 10028 10028 1024 Jan 28 20:27 com.weather.Weather
#
Looks right, not sure why I'm getting the error, as I am using the Data2ext2.bat which as stated above contains
Code:
adb shell mkdir /system/sd/data
adb shell cp -rp /data/data /system/sd
adb shell rm -r /data/data
adb shell ln -s /system/sd/data /data/data
Have rebooted afterwards with and without the USB cable attached to the computer.
Thanks so much for any help!
Has anyone else encountered the insuffecient space problem after the /data/data move that has found a fix for it?
I am also using rc30 mod(1.41) not ADP1.
forceshield said:
Has anyone else encountered the insuffecient space problem after the /data/data move that has found a fix for it?
I am also using rc30 mod(1.41) not ADP1.
Click to expand...
Click to collapse
i did before but i only moved apk files at that time... i reinstalled jf41.. now also you using the old command to move data/data ... see the updated thread will fix your issues with foreclosing and possibly the low space..
I've had the same issue as well. I downloaded an application from a site OTA and had the "low disk space" issue. I could download to pc and put the application on the SD card manually and that works fine.

Anyone can use overclock on G2?

Is G2 have same overclock files as G1?
If not sure, please try the following commands on super terminal.
ls -l /sys/devices/system/cpu/cpu0/cpufreq/
Then post the output here, please.
Great thanks.
# ls -l /sys/devices/system/cpu/cpu0/cpufreq
ls -l /sys/devices/system/cpu/cpu0/cpufreq
-r--r--r-- root root 4096 2009-06-04 10:09 cpuinfo_min_freq
-r--r--r-- root root 4096 2009-06-04 10:09 cpuinfo_max_freq
-rw-r--r-- root root 4096 2009-06-04 10:09 scaling_min_freq
-rw-r--r-- root root 4096 2009-06-04 10:09 scaling_max_freq
-r--r--r-- root root 4096 2009-06-04 10:09 affected_cpus
-r--r--r-- root root 4096 2009-06-04 10:09 related_cpus
-rw-r--r-- root root 4096 2009-06-04 10:09 scaling_governor
-r--r--r-- root root 4096 2009-06-04 10:09 scaling_driver
-r--r--r-- root root 4096 2009-06-04 10:09 scaling_available_governors
-rw-r--r-- root root 4096 2009-06-04 10:09 scaling_setspeed
-r--r--r-- root root 4096 2009-06-04 10:09 scaling_cur_freq
drwxr-xr-x root root 2009-06-04 10:09 ondemand
Thanks dude, it helps me a lot!

[Q] external sd card not seen on Xoom Wifi running TIAMAT 1.4.4 kernel

I just loaded the TIAMAT 1.4.4 kernel on the Xoom Wifi, and I'm not seeing my 32gb sdcard. I'm looking for it with ASTRO file manager. Any ideas? I can see that there is a directory called /sdcard/sdcard2, but the files that I know are on the sdcard don't show up. The directory is empty from astro, and also from adb:
ls -la
drwxrwxr-x root sdcard_rw 2011-06-22 21:27 Alarms
drwxrwxr-x root sdcard_rw 2011-06-22 21:27 Android
drwxrwxr-x root sdcard_rw 2011-06-22 21:27 DCIM
drwxrwxr-x root sdcard_rw 2011-06-22 21:27 Download
drwxrwxr-x root sdcard_rw 2011-06-22 21:27 Movies
drwxrwxr-x root sdcard_rw 2011-06-22 21:27 Music
drwxrwxr-x root sdcard_rw 2011-06-22 21:27 Notifications
drwxrwxr-x root sdcard_rw 2011-06-22 21:27 Pictures
drwxrwxr-x root sdcard_rw 2011-06-22 21:27 Podcasts
drwxrwxr-x root sdcard_rw 2011-06-22 21:27 Ringtones
-rw-rw-r-- root sdcard_rw 1601020 2011-06-23 10:10 busybox
drwxrwxr-x root sdcard_rw 2011-06-23 11:34 drocap
drw-rw-r-- root sdcard_rw 2011-06-22 21:46 external
drwxrwxr-x root sdcard_rw 2011-06-23 14:55 sdcard2
drwxrwxr-x root sdcard_rw 2011-06-22 23:22 tmp
# pwd
/mnt/sdcard
# df
df
Filesystem Size Used Free Blksize
/dev 359M 32K 359M 4096
/mnt/asec 359M 0K 359M 4096
/mnt/obb 359M 0K 359M 4096
/system 236M 205M 30M 4096
/data 28G 163M 28G 2048
/cache 163M 8M 155M 2048
/pds 1M 108K 1M 2048
/mnt/sdcard 28G 163M 28G 2048
#
It just seems like the external sdcard isn't being mounted. Any suggestions?
Some 32gb cards aren't read, try popping in a smaller one if you got it and then check, also look for another location, or make a folder on the internal sd( if you don't already have one there) call externel_SD. Then reboot
Sent from SGS Captivate CM7 or MIUI with Escapist orTKGlitch using XDA premium app.

[Q] where is ramdisk.img ?

hi, all!
Modify /init.rc configure file is my plan, in android(linux) box, /(rootfs) locate RAM.
So, modify ramdisk.img(initrd.img) is aim, However, I find any image file except recovery backup image:
[email protected]:/ # /system/xbin/busybox find / -name '*.img'
/mnt/sdcard2/clockworkmod/backup/2012-01-01.00.03.03/boot.img
/mnt/sdcard2/clockworkmod/backup/2012-01-01.00.03.03/recovery.img
/system/etc/firmware/modem.img
Did the partition that ramdisk.img save in not mount by kernel ?
My phone information:
all partition:
[email protected]:/ # ll /dev/block/
brw------- root root 254, 0 2012-11-30 22:08 dm-0
brw------- root root 7, 0 2012-11-30 22:07 loop0
brw------- root root 7, 1 2012-11-30 22:07 loop1
brw------- root root 7, 2 2012-11-30 22:07 loop2
brw------- root root 7, 3 2012-11-30 22:07 loop3
brw------- root root 7, 4 2012-11-30 22:07 loop4
brw------- root root 7, 5 2012-11-30 22:07 loop5
brw------- root root 7, 6 2012-11-30 22:07 loop6
brw------- root root 7, 7 2012-11-30 22:07 loop7
brw-rw---- root system 179, 0 2012-11-30 22:07 mmcblk0
brw------- root root 179, 32 2012-11-30 22:07 mmcblk0boot0
brw------- root root 179, 64 2012-11-30 22:07 mmcblk0boot1
brw------- root root 179, 1 2012-11-30 22:07 mmcblk0p1
brw------- root root 179, 2 2012-11-30 22:07 mmcblk0p2
brw------- root root 179, 3 2012-11-30 22:07 mmcblk0p3
brw------- root root 179, 4 2012-11-30 22:07 mmcblk0p4
brw------- root root 179, 5 2012-11-30 22:07 mmcblk0p5
brw------- root root 179, 6 2012-11-30 22:07 mmcblk0p6
brw------- root root 179, 96 2012-11-30 22:07 mmcblk1
brw------- root root 179, 97 2012-11-30 22:07 mmcblk1p1
drwxr-xr-x root root 2012-11-30 22:07 platform
drwxr-xr-x root root 2012-11-30 22:07 vold
mounted partition:
[email protected]:/ # mount|/system/xbin/busybox grep mmc
/[email protected] /system ext4 ro,noatime,user_xattr,commit=1,barrier=1,data=ordered,noauto_da_alloc 0 0
/[email protected] /data ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered,noauto_da_alloc 0 0
/[email protected] /cache ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered,noauto_da_alloc 0 0
had be linked partition:
[email protected]:/ # ll / |/system/xbin/busybox mmc
lrwxrwxrwx root root 1970-01-01 08:00 [email protected] -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-01-01 08:00 [email protected] -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-01-01 08:00 [email protected] -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-01-01 08:00 [email protected] -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-01-01 08:00 [email protected]_ro -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-01-01 08:00 [email protected] -> /dev/block/mmcblk0p5
[email protected]:/ # cat /proc/mtd
dev: size erasesize name
[email protected]:/ #
My phone do not use mtd ?
what other technology my phone used? and, what can I locate recovery and boot partition ?
Ramdisk is inside boot.img, you must use dsixda's kitchen to decompile it.
Sent from my PC36100 using xda app-developers app
Yes, the ramdisk is inside the boot.img. The recovery.img contains its own ramdisk. The partition is a basic format created just for android. The first 0x30ish bytes contain offsets and sizes for the kernel image, ramdisk, kernel command line, and stuff like that. And no, the ramdisk is not compiled; you do no decompile it. It is compressed. You can pull the ramdisk out of the partition and decompress it using standard commandline tools.

problem in boot.img

i have a boot.img with a size of 13mb, when i unpack it , it produce two files the boot.im-kernel and boot.img-ramdisk.cpio.gz,and it became much less in size, together they where 5.3mb and when i repack it using mkbootimg and flash it it wont flash. .
what i do to repack is , on the folder containing the ramdisk and kernel and the mkbootimg ' i typed mkbootimg --kernel "the kernel" --ramdisk "the disk" -o boot.img . .then i got an output boot.img
now when i flash it using fastboot
i type fastboot device.. then it shows my device.. and then i typed fastboot boot 'the boot.img i repack after i unpack'
then its says it been copied and rebooting. .but the device is still in downloading mode. .so i try again typed fastboot boot 'the boot.img' and now it says fastboot waiting for device. .so i think it was disconnected
now again i repack the kernel and ramdisk but with different command
i typed mkbootimg --kernel 'kerne' --ramdisk 'ramdisk' and i include other commands like --base --cmdline then -o boot.img
then i get the results boot.img again the flash it using fastboot
but this time it vibrates and turn off but didnt light up and in computer it mounts different partitions like sd mode
now they say there is a specific procedure of compiling a boot.img base on different boot.img
they also say that when i unpack it the command just discarded the garbage or other files
now my question is if theres any how would i know and where would i find the specific procedure of repacking my boo.imgs
and the missing files i think they were neccessary if there any missing file. how would i get it and how would i know what it is
my devices is running ics , cpu msm825, kernel 3.0..
this is my partition table and i dont understand any of it or which is which
i use abootimg and in boot.cfg this is whats written might be helpful
bootsize = 0xd42000
pagesize = 0x1000
kerneladdr = 0x208000
ramdiskaddr = 0x1508000
secondaddr = 0x1100000
tagsaddr = 0x200100
name =
cmdline = androidboot.hardware=qcom loglevel=1
in adb shell i ran
[email protected]:/ $ su
[email protected]:/ # cat /proc/partitions
major minor #blocks name
179 0 3817472 mmcblk0
179 1 20 mmcblk0p1
179 2 150 mmcblk0p2
179 3 40960 mmcblk0p3
179 4 1 mmcblk0p4
179 5 1000 mmcblk0p5
179 6 2048 mmcblk0p6
179 7 2000 mmcblk0p7
179 8 13576 mmcblk0p8
179 9 3072 mmcblk0p9
179 10 3072 mmcblk0p10
179 11 3072 mmcblk0p11
179 12 466666 mmcblk0p12
179 13 1970176 mmcblk0p13
179 14 10240 mmcblk0p14
179 15 102400 mmcblk0p15
179 16 13576 mmcblk0p16
179 17 20 mmcblk0p17
179 18 1048576 mmcblk0p18
179 19 1000 mmcblk0p19
179 20 111441 mmcblk0p20
179 32 1927168 mmcblk1
179 33 1926144 mmcblk1p1
[email protected]:/ # mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,noatime,nodiratime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,noatime,nodiratime 0 0
sysfs /sys sysfs rw,noatime,nodiratime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
debugfs /mnt/debugfs debugfs rw,relatime 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p12 /system ext4 rw,noatime,nodiratime,user_xattr,barrier=0,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p13 /data ext4 rw,nosuid,nodev,noatime,nodiratime,user_xattr,barrier=0,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p14 /persist ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p15 /cache ext4 ro,nosuid,nodev,noatime,nodiratime,user_xattr,barrier=0,data=ordered,noauto_da_alloc 0 0
/dev/block/vold/179:18 /mnt/emmc vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1023,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=continue 0 0
/dev/block/vold/179:33 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=continue 0 0
/dev/block/vold/179:33 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=continue 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
[email protected]:/ # df
Filesystem Size Used Free Blksize
/dev 170.7M 64.0K 170.7M 4096
/mnt/asec 170.7M 0.0K 170.7M 4096
/mnt/obb 170.7M 0.0K 170.7M 4096
/system 448.5M 375.4M 73.1M 4096
/data 1.8G 181.5M 1.7G 4096
/persist 9.8M 4.0M 5.8M 4096
/cache 98.4M 4.0M 94.4M 4096
/mnt/emmc 1013.6M 658.5M 355.1M 4096
/mnt/sdcard 1.8G 1.8G 9.1M 4096
/mnt/secure/asec 1.8G 1.8G 9.1M 4096
[email protected]:/ # ls -la
drwxr-xr-x root root 2013-12-23 18:04 acct
drwxrwx--x system cache 1970-01-01 08:00 cache
-rwxr-x--- root root 190772 1970-01-01 08:00 charger
dr-x------ root root 2013-12-23 18:04 config
lrwxrwxrwx root root 2013-12-23 18:04 d -> /sys/kernel/debug
drwxrwxr-x system system 2013-12-23 18:04 data
-rw-r--r-- root root 151 1970-01-01 08:00 default.prop
drwxr-xr-x root root 2013-12-23 18:08 dev
lrwxrwxrwx root root 2013-12-23 18:04 emmc -> /mnt/emmc
lrwxrwxrwx root root 2013-12-23 18:04 etc -> /system/etc
-rwxr-x--- root root 182020 1970-01-01 08:00 init
-rwxr-x--- root root 2344 1970-01-01 08:00 init.goldfish.rc
-rwxr-x--- root root 8772 1970-01-01 08:00 init.qcom.class_core.sh
-rwxr-x--- root root 4529 1970-01-01 08:00 init.qcom.class_main.sh
-rwxr-x--- root root 16886 1970-01-01 08:00 init.qcom.rc
-rwxr-x--- root root 4570 1970-01-01 08:00 init.qcom.sh
-rwxr-x--- root root 27316 1970-01-01 08:00 init.qcom.usb.rc
-rwxr-x--- root root 5512 1970-01-01 08:00 init.qcom.usb.sh
-rwxr-x--- root root 24437 1970-01-01 08:00 init.rc
-rwxr-x--- root root 2680 1970-01-01 08:00 init.target.rc
drwxrwxr-x root system 2013-12-23 18:04 mnt
-rwxr-x--- root root 67104 1970-01-01 08:00 nv_set
drwxrwx--x system system 1970-01-01 08:00 persist
dr-xr-xr-x root root 1970-01-01 08:00 proc
drwxr-xr-x root root 1970-01-01 08:00 res
-rwxr-x--- root root 63472 1970-01-01 08:00 rmt_storage_recovery
drwx------ root root 2013-01-22 10:18 root
drwxr-x--- root root 1970-01-01 08:00 sbin
lrwxrwxrwx root root 2013-12-23 18:04 sdcard -> /mnt/sdcard
drwxr-xr-x root root 2013-12-23 18:04 sys
drwxrwxr-x root root 2013-12-22 06:15 system
-rw-r--r-- root root 272 1970-01-01 08:00 ueventd.goldfish.rc
-rw-r--r-- root root 9232 1970-01-01 08:00 ueventd.rc
lrwxrwxrwx root root 2013-12-23 18:04 vendor -> /system/vendor
can anyone help me with this?

Categories

Resources