Disable auto-root on Apolo JB kernel - Galaxy S II Q&A, Help & Troubleshooting

For those of you who are using the Apolo JB kernel, any idea how do you disable the auto-root?
It keeps installing SuperSU after restart although I wish to use CWM SuperUser.
For anyone who knows, please do share. Thanks.

desean said:
For those of you who are using the Apolo JB kernel, any idea how do you disable the auto-root?
It keeps installing SuperSU after restart although I wish to use CWM SuperUser.
For anyone who knows, please do share. Thanks.
Click to expand...
Click to collapse
Install once, start the device and uninstall supersu and then install superuser.
It shouldn't change it after rebooting.
If it doesn't work please let me know and send me "/data/user.log"

pedestre said:
Install once, start the device and uninstall supersu and then install superuser.
It shouldn't change it after rebooting.
If it doesn't work please let me know and send me "/data/user.log"
Click to expand...
Click to collapse
Hi @pedestre,
My CWM SU will be removed and SuperSU reinstalled each time I reboot my phone. Currently on 4.6 Light TWRP. Here are my logs:
user.log.bak
Code:
Wed May 22 21:45:07 SGT 2013 START of post-init.sh
grep: /system/etc/tweaks.conf: No such file or directory
/sbin/post-init.sh: line 30: //Cargar: not found
mount: mounting none on /acct failed: Device or resource busy
mount: mounting none on /dev/cpuctl failed: Device or resource busy
/sbin/post-init.sh: line 73: can't create /sys/kernel/debug/sched_features: Permission denied
Extraer payload
1540+0 records in
1540+0 records out
788480 bytes (770.0KB) copied, 0.106428 seconds, 7.1MB/s
rm: can't remove '/data/app/Superuser.apk': No such file or directory
rm: can't remove '/system/app/Supersu.apk': No such file or directory
rm: can't remove '/data/app/Supersu.apk': No such file or directory
rm: can't remove '/system/app/*supersu*': No such file or directory
rm: can't remove '/data/app/*supersu*': No such file or directory
Copiando las liblights
mkdir: can't create directory '/system/Apolo': File exists
Wed May 22 21:45:09 SGT 2013 PRE-INIT DONE of post-init.sh
Wed May 22 21:45:21 SGT 2013 Default Value 50
Wed May 22 21:45:21 SGT 2013 No .enable_crt so 50 is default value for fb_pause
Wed May 22 21:45:21 SGT 2013 USER EARLY INIT START from /system/etc/init.d
Wed May 22 21:45:21 SGT 2013 USER EARLY INIT DONE from /system/etc/init.d
Wed May 22 21:45:21 SGT 2013 USER EARLY INIT START from /data/init.d
Wed May 22 21:45:21 SGT 2013 USER EARLY INIT DONE from /data/init.d
Wed May 22 21:45:21 SGT 2013 USER INIT START from /system/etc/init.d
START 'S999pegasusqsio'
EXIT 'S999pegasusqsio' (0)
Wed May 22 21:45:52 SGT 2013 USER INIT DONE from /system/etc/init.d
Wed May 22 21:45:52 SGT 2013 USER INIT START from /data/init.d
Wed May 22 21:45:52 SGT 2013 USER INIT DONE from /data/init.d
Wed May 22 21:45:52 SGT 2013 END of post-init.sh
user.log
Code:
Wed May 22 21:51:34 SGT 2013 START of post-init.sh
grep: /system/etc/tweaks.conf: No such file or directory
/sbin/post-init.sh: line 30: //Cargar: not found
mount: mounting none on /acct failed: Device or resource busy
mount: mounting none on /dev/cpuctl failed: Device or resource busy
/sbin/post-init.sh: line 73: can't create /sys/kernel/debug/sched_features: Permission denied
Extraer payload
1540+0 records in
1540+0 records out
788480 bytes (770.0KB) copied, 0.090707 seconds, 8.3MB/s
rm: can't remove '/system/app/Superuser.apk': No such file or directory
rm: can't remove '/data/app/Superuser.apk': No such file or directory
rm: can't remove '/system/app/Supersu.apk': No such file or directory
rm: can't remove '/data/app/Supersu.apk': No such file or directory
rm: can't remove '/system/app/*supersu*': No such file or directory
rm: can't remove '/data/app/*supersu*': No such file or directory
Copiando las liblights
mkdir: can't create directory '/system/Apolo': File exists
Wed May 22 21:51:37 SGT 2013 PRE-INIT DONE of post-init.sh
Wed May 22 21:51:49 SGT 2013 Default Value 50
Wed May 22 21:51:49 SGT 2013 No .enable_crt so 50 is default value for fb_pause
Wed May 22 21:51:49 SGT 2013 USER EARLY INIT START from /system/etc/init.d
Wed May 22 21:51:49 SGT 2013 USER EARLY INIT DONE from /system/etc/init.d
Wed May 22 21:51:49 SGT 2013 USER EARLY INIT START from /data/init.d
Wed May 22 21:51:49 SGT 2013 USER EARLY INIT DONE from /data/init.d
Wed May 22 21:51:49 SGT 2013 USER INIT START from /system/etc/init.d
START 'S999pegasusqsio'
EXIT 'S999pegasusqsio' (0)
Wed May 22 21:52:19 SGT 2013 USER INIT DONE from /system/etc/init.d
Wed May 22 21:52:19 SGT 2013 USER INIT START from /data/init.d
Wed May 22 21:52:19 SGT 2013 USER INIT DONE from /data/init.d
Wed May 22 21:52:19 SGT 2013 END of post-init.sh
S999pegasusqsio in the log is my own init script which contains this:
Code:
#!/sbin/busybox sh
sleep 30
# governor and io scheduler
echo "pegasusq" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "sio" > /sys/block/mmcblk0/queue/scheduler
# pegasusq tweaks
# Pegasusq settings from http://forum.xda-developers.com/showpost.php?p=26488751&postcount=425
echo "90" > /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold
echo "95" > /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold_at_min_freq
echo "40000" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate
echo "2" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_down_factor
echo "5" > /sys/devices/system/cpu/cpufreq/pegasusq/down_differential
echo "30" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_step
echo "100000" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_for_responsiveness
echo "10" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_up_rate
echo "20" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_down_rate
echo "400000" > /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_1_1
echo "200000" > /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_0
echo "350" > /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_1_1
echo "200" > /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_2_0
echo "0" > /sys/devices/system/cpu/cpufreq/pegasusq/ignore_nice_load
echo "1" > /sys/devices/system/cpu/cpufreq/pegasusq/io_is_busy
echo "0" > /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
echo "0" > /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock
# Apolo extra setting
echo 1 > /sys/class/misc/notification/notification_enabled
echo 1 > /sys/class/misc/notification/blnww
echo 0 > /sys/class/misc/notification/breathing
echo 0 > /sys/class/misc/notification/notification_timeout
echo 0 > /sys/devices/virtual/sec/sec_touchkey/force_disable
echo 0 > /sys/class/misc/notification/led_timeout_ms
echo 2800 > /sys/devices/virtual/sec/sec_touchkey/touchkey_brightness
echo 0 > /sys/devices/virtual/sec/sec_touchscreen/tsp_slide2wake
#AWAKE_MIN="200000"
#AWAKE_MAX="1000000"
#scaling cpu freqs
#echo $AWAKE_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
#echo $AWAKE_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# UV
#echo "1275 1175 1075 975 950 " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
Thanks for checking.

desean said:
For those of you who are using the Apolo JB kernel, any idea how do you disable the auto-root?
It keeps installing SuperSU after restart although I wish to use CWM SuperUser.
For anyone who knows, please do share. Thanks.
Click to expand...
Click to collapse
there is some issue with CWM version of Appolo v4.6 for now and u might expect a modified version of the same soon, while the TWRP one is wrk'ng fine

Sun90 said:
there is some issue with CWM version of Appolo v4.6 for now and u might expect a modified version of the same soon, while the TWRP one is wrk'ng fine
Click to expand...
Click to collapse
Hi, I am actually currently on 4.6 light TWRP

desean said:
Hi, I am actually currently on 4.6 light TWRP
Click to expand...
Click to collapse
ok, try this :
create a file in /system/Apolo named Desde_4-6 so you'll have /system/Apolo/Desde_4-6
for some reason the initial scripts are not working fine in TWRP version.
I'm going to review the scripts
Edit: you can redownload Apolo 4.6. I have corrected the mistake. Please tell me if it works now

pedestre said:
ok, try this :
create a file in /system/Apolo named Desde_4-6 so you'll have /system/Apolo/Desde_4-6
for some reason the initial scripts are not working fine in TWRP version.
I'm going to review the scripts
Edit: you can redownload Apolo 4.6. I have corrected the mistake. Please tell me if it works now
Click to expand...
Click to collapse
I have a /system/Apolo/Desde_4-, so I renamed it to Desde_4-6. On reboot, CWM SU still remains so this appears to be the issue.
To test your new build #108, I removed /system/Apolo/Desde_4-6 and reflash the new kernel build. The Desde_4-6 is created correctly now and CWM SU remains.
Below is the user.log after rebooting after install the new build 108
Code:
Thu May 23 08:56:00 SGT 2013 START of post-init.sh
grep: /system/etc/tweaks.conf: No such file or directory
/sbin/post-init.sh: line 30: //Cargar: not found
mount: mounting none on /acct failed: Device or resource busy
mount: mounting none on /dev/cpuctl failed: Device or resource busy
/sbin/post-init.sh: line 73: can't create /sys/kernel/debug/sched_features: Permission denied
Nada que hacer, tenemos todo listo
Thu May 23 08:56:01 SGT 2013 PRE-INIT DONE of post-init.sh
Thu May 23 08:56:13 SGT 2013 Default Value 50
Thu May 23 08:56:13 SGT 2013 No .enable_crt so 50 is default value for fb_pause
Thu May 23 08:56:13 SGT 2013 USER EARLY INIT START from /system/etc/init.d
Thu May 23 08:56:13 SGT 2013 USER EARLY INIT DONE from /system/etc/init.d
Thu May 23 08:56:13 SGT 2013 USER EARLY INIT START from /data/init.d
Thu May 23 08:56:13 SGT 2013 USER EARLY INIT DONE from /data/init.d
Thu May 23 08:56:13 SGT 2013 USER INIT START from /system/etc/init.d
START 'S999pegasusqsio'
EXIT 'S999pegasusqsio' (0)
Thu May 23 08:56:44 SGT 2013 USER INIT DONE from /system/etc/init.d
Thu May 23 08:56:44 SGT 2013 USER INIT START from /data/init.d
Thu May 23 08:56:44 SGT 2013 USER INIT DONE from /data/init.d
Thu May 23 08:56:44 SGT 2013 END of post-init.sh
Thanks for your fix. :good::laugh:

Related

App data has dates in the future?

I have an Samsung Epic 4G Touch, stock rooted ICS 4.0.4, with Clockwork mod. I have developed a strange problem with my data having dates in the future. Where I first noticed this was in Titanium Backup, where sorting the apps by 'data freshness' results in numerous apps having a data changed' date up to a month in the future of the current date. I contacted Titanium Backup tech support regarding this, and did some checking based on what they told me. What I discovered is that all the apps that have a future data date have a lib file in the data/data/'app'/lib folder that seems to have a modified date with a YEAR (2012) in place of a TIME.
I have only been able to see this YEAR by going into ADB SHELL and doing a BUSYBOX LS -AL listing of the directory. Here is an example of what I see for two apps:
[email protected]:/ # busybox ls -al /data/data/com.opera.browser/lib
busybox ls -al /data/data/com.opera.browser/lib
/data/data/com.opera.browser/lib:
drwxr-xr-x 2 system system 4096 Aug 14 19:29 .
drwxr-xr-x 9 app_126 app_126 4096 Aug 14 19:29 ..
-rwxr-xr-x 1 system system 9824 Aug 20 2012 libOS14.so
-rwxr-xr-x 1 system system 9740 Aug 20 2012 libOS14fallback.so
-rwxr-xr-x 1 system system 9824 Aug 20 2012 libOS15.so
-rwxr-xr-x 1 system system 9740 Aug 20 2012 libOS15fallback.so
-rwxr-xr-x 1 system system 4948 Aug 20 2012 libOS4.so
-rwxr-xr-x 1 system system 9284 Aug 20 2012 libOS7.so
-rwxr-xr-x 1 system system 13492 Aug 20 2012 libOS8.so
-rwxr-xr-x 1 system system 9664 Aug 20 2012 libOS9.so
-rwxr-xr-x 1 system system 9568 Aug 20 2012 libOS9fallback.so
-rwxr-xr-x 1 system system 1257444 Aug 20 2012 libbream.so
-rwxr-xr-x 1 system system 9478860 Aug 20 2012 libopera.so
[email protected]:/ # busybox ls -al /data/data/com.adobe.reader/lib
busybox ls -al /data/data/com.adobe.reader/lib
/data/data/com.adobe.reader/lib:
drwxr-xr-x 2 system system 4096 Aug 14 19:30 .
drwxr-xr-x 6 app_351 app_351 4096 Aug 14 19:30 ..
-rwxr-xr-x 1 system system 3931800 Aug 25 2012 libAdobeReader.so
If I check the properties of the files that have a year instead of a time in ES Explorer, it shows the same incorrect date and time that Titanium Backup shows for the app data, it does not show the 2012 year as above.
The app with the 'earliest' incorrect data date is Opera Mobile, which is about 5-10 seconds ahead of the actual time (date is correct), I don't know if that indicates this problem somehow originates with that app. When I update an app, it generally now gets its data listed a one month in the future, so this problem is ongoing, and I first noticed it about a month ago. I made no major changes that I know of that would have caused something like this (though I actually have no idea what would cause something like this!).
Titanium support has asked if the date set in my phone could have been incorrect when these apps were installed and has since been corrected. I know of no reason this would have been the case, but I do know that the date and time are correct on my phone now but apps continue to update with the wrong date, so I don't think that could have been what caused this?
Anyone have any idea what is going on and how I can fix it? I am no Android expert, just trying to learn, and a lot of the stuff I have already said is over my head, so please don't assume that I know something... Thanks!
So what does "busybox date" claims the year is?
"ls" only outputs the year when it's significant, e.g. not the current.
kuisma said:
So what does "busybox date" claims the year is?
"ls" only outputs the year when it's significant, e.g. not the current.
Click to expand...
Click to collapse
[email protected]:/ # busybox date
busybox date
Wed Aug 22 02:38:38 PDT 2012
[email protected]:/ # busybox ls -al /data/data/com.adobe.reader/lib
busybox ls -al /data/data/com.adobe.reader/lib
drwxr-xr-x 2 system system 4096 Aug 20 21:50 .
drwxr-xr-x 5 app_31 app_31 4096 Aug 20 21:51 ..
-rwxr-xr-x 1 system system 3931800 Aug 25 2012 libAdobeReader.so
"Busybox date" reports the date and time correctly. Ran the ls command right after the date command and it still shows the file with a year and a wrong date?
I've tried uninstalling Adobe Reader, clearing cache and Dalvik cache, reinstalling Adobe Reader, still has same incorrect date.
Anybody have any ideas on this? Please. :banghead:

[Q] How to fix shell username funkiness?

I've struggled to use my Prime for development. I was seeing complaints from the development environment when trying to deploy my debug application about the folder missing. Looking at the Android sources I saw that the deployment was targeting /data/local/tmp which for some reason had been symlinked to a read-only partition. Removing the symlink fixes my debug deployment, but now I've got another strange issue that I don't know how to resolve. When executing "adb shell", my prompt looks like the following:
Code:
uid=2000 gid=2000 groups=1003,1004,1007,1009,1011,1015,1028,3001,3002,3003,[email protected]:/system/etc $
It doesn't seem like uid -> name mappings are working for some reason. "ls -l" shows the same lack of uid -> name mappings:
Code:
-rw-r--r-- 1 0 0 1231 Sep 28 01:59 cpu1.sh
-rw-r--r-- 1 0 0 1218 Sep 28 01:59 cpu2.sh
-rw-r--r-- 1 0 0 1217 Sep 28 01:59 cpu3.sh
-rw-r--r-- 1 0 0 1227 Sep 28 01:59 cpu4.sh
-rw-r--r-- 1 0 0 1222 Sep 28 01:59 cpu5.sh
-r--r----- 1 1002 1002 935 Feb 21 2012 dbus.conf
Can anyone offer any hints on what might be going on and how I might fix this?
Thanks,
Craig

[Q] how to use logcat question, Please explain some simple questions

Hello guys,
I have done my level best research but stuck at some simple steps. My goal is to see a logcat from a application for troubleshoot. This is what I have done so far. I have a laptop running on Ubuntu 12.04 32 bit. I followed this link https://help.ubuntu.com/community/AndroidSDK and have SDK manager running successfully.
I have usb debugging enabled on my G-tablet. after connecting tablet and running the command "adb devices" the laptop recognize my device.
then I run the command " adb logcat > logcat.txt " just like explained on this link http://forum.xda-developers.com/showthread.php?t=1616059
after running the above command I noticed a file in my home folder (laptop) named logcat.txt but the file contains only this "Unable to open log device '/dev/log/main': No such file or directory"
So here comes my silly questions:
1.) am I missing something obvious?
2.) If i want to see a log of what is happening when I run a particular application , How do i do it?
3.) Do I have to run SDK manager at the same time I am trying to run adb command? (i mean on background)
OH I have many more questions ,, but for now, please answer above.
theteju said:
after running the above command I noticed a file in my home folder (laptop) named logcat.txt but the file contains only this "Unable to open log device '/dev/log/main': No such file or directory"
Click to expand...
Click to collapse
That looks like a problem on the ROM. Either a misconfigured kernel or the ROM not setting up the log devices correctly. What's the output of this command on the device?
Code:
$ [B]ls -l /dev/log[/B]
crw-rw-rw- root log 10, 47 2013-01-29 11:10 events
crw-rw-rw- root log 10, 46 2013-01-29 11:10 radio
crw-rw-rw- root log 10, 45 2013-01-29 11:10 system
thats the output on my tablet running the command you mentioned.
theteju said:
crw-rw-rw- root log 10, 47 2013-01-29 11:10 events
crw-rw-rw- root log 10, 46 2013-01-29 11:10 radio
crw-rw-rw- root log 10, 45 2013-01-29 11:10 system
Click to expand...
Click to collapse
And there you have it. The main device is non-existent--as the error message stated. Plus, the major and minor device numbers seem wrong.
What's the output of this command?
Code:
$ [B]su[/B]
# [B]strings /init | fgrep log/[/B]
/dev/log/
/dev/log/main
/dev/log/radio
same as yours.
/dev/log/
/dev/log/main
/dev/log/radio
so what is going on with my system? Am I looking at clean flash?
theteju said:
same as yours.
/dev/log/
/dev/log/main
/dev/log/radio
Click to expand...
Click to collapse
Next:
Reboot the device and post the output of this command:
Code:
$ [B]dmesg | fgrep logger[/B]
[ 13.343038] logger: created 64K log 'log_main'
[ 13.343216] logger: created 256K log 'log_events'
[ 13.343395] logger: created 64K log 'log_radio'
[ 13.343574] logger: created 64K log 'log_system'
[email protected]:/ $ su
[email protected]:/ # dmesg | fgrep logger
<6>[ 1.969399] logger: created 256K log 'log_main'
<6>[ 1.969608] logger: created 256K log 'log_events'
<6>[ 1.969750] logger: created 256K log 'log_radio'
<6>[ 1.969899] logger: created 256K log 'log_system'
[email protected]:/ #
sorry I am being impatient. and Thanks for your prompt replies..I understand its too late @ your end now.
theteju said:
I understand its too late @ your end now.
Click to expand...
Click to collapse
Well, I *was* a bit sleepy, but, now that you've tossed this bizarre problem onto my lap, I'm feeling decidedly perky. Next:
Code:
$ su
# [B]ls -l /sys/class/misc/ /sys/devices/virtual/misc/ | fgrep log_[/B]
lrwxrwxrwx 1 root root 0 Jan 29 23:45 log_events -> ../../devices/virtual/misc/log_events
lrwxrwxrwx 1 root root 0 Jan 29 23:45 log_main -> ../../devices/virtual/misc/log_main
lrwxrwxrwx 1 root root 0 Jan 29 23:45 log_radio -> ../../devices/virtual/misc/log_radio
lrwxrwxrwx 1 root root 0 Jan 29 23:45 log_system -> ../../devices/virtual/misc/log_system
drwxr-xr-x 3 root root 0 Jan 29 23:45 log_events
drwxr-xr-x 3 root root 0 Jan 29 23:45 log_main
drwxr-xr-x 3 root root 0 Jan 29 23:45 log_radio
drwxr-xr-x 3 root root 0 Jan 29 23:45 log_system
Also repeat the "ls -l /dev/log" command in post #2.
/devices/virtual/misc/ | fgrep log_ <
lrwxrwxrwx root root 2013-01-29 13:52 log_events -> ../../devices/virtual/misc/log_events
lrwxrwxrwx root root 2013-01-29 13:52 log_main -> ../../devices/virtual/misc/log_main
lrwxrwxrwx root root 2013-01-29 13:52 log_radio -> ../../devices/virtual/misc/log_radio
lrwxrwxrwx root root 2013-01-29 13:52 log_system -> ../../devices/virtual/misc/log_system
drwxr-xr-x root root 2013-01-29 13:52 log_events
drwxr-xr-x root root 2013-01-29 13:52 log_main
drwxr-xr-x root root 2013-01-29 13:52 log_radio
drwxr-xr-x root root 2013-01-29 13:52 log_system
[email protected]:/ #
Sent from my Malata SMBA1002 using xda app-developers app
[email protected]:/ # ls -l /dev/log
crw-rw-rw- root log 10, 47 2013-01-29 13:12 events
crw-rw-rw- root log 10, 46 2013-01-29 13:12 radio
crw-rw-rw- root log 10, 45 2013-01-29 13:12 system
[email protected]:/ #
Sent from my Malata SMBA1002 using xda app-developers app
theteju said:
[email protected]:/ # ls -l /dev/log
crw-rw-rw- root log 10, 47 2013-01-29 13:12 events
crw-rw-rw- root log 10, 46 2013-01-29 13:12 radio
crw-rw-rw- root log 10, 45 2013-01-29 13:12 system
[email protected]:/ #
Click to expand...
Click to collapse
You did reboot the device like I asked you to, right?
Next:
Code:
$ [B]su[/B]
# [B]for f in /sys/class/misc/log_*/dev[/B]
> [B]do[/B] [B]echo $f: $(cat $f)[/B]
> [B]done[/B]
/sys/class/misc/log_events/dev: 10:46
/sys/class/misc/log_main/dev: 10:47
/sys/class/misc/log_radio/dev: 10:45
/sys/class/misc/log_system/dev: 10:44
Yes I did reboot.
[email protected]:/ # for f /sys/class/misc//log_*/dev
sh: syntax error: '/sys/class/misc//log_*/dev' unexpected
[email protected]:/ # echo $f: $(cat $f)
done
The terminal is stuck with last command.
Sent from my Malata SMBA1002 using xda app-developers app
I think I am doing something really stupid. Please make the commands in bold only.
The commands are in bold. You've missed out the `in' and 'do' keywords. Close the Term window and retype.
You should also be able to use adb: "adb logcat" doesn't work, however, "adb shell" should.
[email protected]:/ $ su
[email protected]:/ # for f in /sys/class/misc/log_*/dev
> do echo $f: $(cat $f)
> done
/sys/class/misc/log_events/dev: 10:47
/sys/class/misc/log_main/dev: 10:48
/sys/class/misc/log_radio/dev: 10:46
/sys/class/misc/log_system/dev: 10:45
[email protected]:/ #
rajeevvp said:
The commands are in bold. You've missed out the `in' and 'do' keywords. Close the Term window and retype.
You should also be able to use adb: "adb logcat" doesn't work, however, "adb shell" should.
Click to expand...
Click to collapse
Does android SDK has to run on background on laptop to use adb?
cool I am in adb shell, makes life more easy..
Next:
Code:
$ [B]su[/B]
# [B]cat /sys/class/misc/log_*/uevent
[/B]MAJOR=10
MINOR=46
DEVNAME=log_events
MAJOR=10
MINOR=47
DEVNAME=log_main
MAJOR=10
MINOR=45
DEVNAME=log_radio
MAJOR=10
MINOR=44
DEVNAME=log_system
---------- Post added at 01:18 AM ---------- Previous post was at 01:16 AM ----------
theteju said:
Does android SDK has to run on background on laptop to use adb?
Click to expand...
Click to collapse
On Linux, you only need the adb binary to run adb commands. You don't need the entire Android SDK.

[Q] rm / chmod / chown -> "Operation not permitted" in recovery

Hello,
I can't delete some files on my device (Samsung Galaxy Note 2 LTE [t0lte]]) running CyanogenMod 10.1 using RootExplorer (or similar file manager).
So I tried with adb (in CM10.1, ClockworkMod & TeamWin recovery), but received error messages:
Code:
/data/media/0/DCIM/.thumbnails # rm 1375815201990.jpg
rm: can't remove '1375815201990.jpg': Operation not permitted
/data/media/0/DCIM/.thumbnails # chmod 777 1375815201990.jpg
chmod: 1375815201990.jpg: Operation not permitted
/data/media/0/DCIM/.thumbnails # chown root:root 1375815201990.jpg
chown: 1375815201990.jpg: Operation not permitted
I think there is something wrong with the permissions, here are the directory listings:
Code:
/data/data/com.amazon.venezia.wech/app_resources/configurationTwo/assets/css/amazon-phoenix/compositions # ls -lisah
202883 4 drwx------ 2 u0_a145 u0_a145 4.0K Aug 14 20:03 .
202882 4 drwx------ 3 u0_a145 u0_a145 4.0K Aug 8 03:43 ..
203719 24 ---S-wxr-t 1 u0_a1355 u0_a2315 1.8G Oct 11 2024 amazon-phoenix-xlarge-landscape-xhdpi.css
Code:
/data/lost+found # ls -lisah
10333 4 --wsrwSr-x 1 u22097_a u4253_a5 12.0K Jan 27 1988 #10333
10436 4 -r-------T 1 u22097_a u12935_a 254.5M May 14 1984 #10436
104567 8 ----r-Srwx 1 u37071_a u21823_a 36.0K Mar 5 1951 #104567
104571 36 d-w-rws--T 2 u18849_a u29364_a 36.0K Jan 10 1956 #104571
104687 8 ---S--x-w- 1 u38084_a u38537_a 28.0K Feb 16 1986 #104687
104696 8 --w--wsrwT 1 u8912_a4 u20250_a 36.0K Jun 12 1929 #104696
104832 36 d---r-sr-T 2 u8902_a5 u4062_a1 36.0K Sep 23 1929 #104832
...and_many_more...
Code:
/data/media/0/DCIM/.thumbnails # ls -lisah
243488 156 drwxrwxrwx 2 media_rw media_rw 152.0K Aug 15 11:29 .
97358 4 drwxrwxrwx 3 media_rw media_rw 4.0K Aug 16 08:32 ..
248825 32 -r---ws-wx 1 all_a153 u0_a2320 712.5M Aug 19 1994 1375815201990.jpg
BTW: /data/media/0 is the internal sd-card of my device.
How can I delete theses files?
all files gone, have to rebuild my phone
Stiegi said:
How can I delete theses files?
Click to expand...
Click to collapse
I didn't find a smart way (no "xattr", or "chflags", ... on android available) to clean the files off from my disk, so I rebuild my phone:
copied all files from /data/media/0/ to my linux,
wiped all local partitions (ecxept my external sdcard) in TWRP (but the bad files are still there)
found another menu in TWRP and formated the /data/... (now the unusable files & folders are gone. I think the /data-wipe in TWRP uses "rm -fR *" on /data.)
installed the latest CM10.1 + gapps,
booted the phone,
google restored my apps,
TitaniumBackup restored the appdata,
and finally I copied the files from my linux back to /data/media/0/
So after a day of extreme backup-/restore-/delete-/copy-ing I'm back on the track

[Q] Strange behavior with ext4 mount (root can see but apps cannot)

Hi all,
I'm just hacking at my rk3188 box, and trying to get XBMC to read my ext4 external hard drive.
However when the hard drive is mounted, XBMC only sees an empty directory!
Also, in the terminal, "su'ing" as an app user, the directory appears empty also.
This worked perfectly with android 4.2, 4.4 seems be more troublesome.
Code:
[email protected]_872xu:/ # ls -ailrt /mnt/usb_storage/usb/
3222 dr-xr-xr-x 3 media 1023 60 Sep 9 11:32 ..
10959 -rw-rw-rw- 1 root root 0 Sep 9 11:35 testing
8841 drwxrwxrwx 2 media root 60 Sep 9 14:18 .
[email protected]_872xu:/ # mount -t ext4 /dev/block/sda1 /mnt/usb_storage/usb
[email protected]_872xu:/ # ls -l /mnt/usb_storage/usb/backup/
-rwxrwxr-x 1 root root 2147483648 Sep 9 11:20 arch.img
drwxrwxrwx 2 root root 4096 Sep 7 17:30 init.d
[email protected]_872xu:/ # su - app_65
[email protected]_872xu:/ $ ls -l /mnt/usb_storage/usb/backup/
/mnt/usb_storage/usb/backup/: No such file or directory
1|[email protected]_872xu:/ $ ls -l /mnt/usb_storage/usb
-rw-rw-rw- root root 0 2014-09-09 11:35 testing
dmarkey said:
Hi all,
I'm just hacking at my rk3188 box, and trying to get XBMC to read my ext4 external hard drive.
However when the hard drive is mounted, XBMC only sees an empty directory!
Also, in the terminal, "su'ing" as an app user, the directory appears empty also.
This worked perfectly with android 4.2, 4.4 seems be more troublesome.
Code:
[email protected]_872xu:/ # ls -ailrt /mnt/usb_storage/usb/
3222 dr-xr-xr-x 3 media 1023 60 Sep 9 11:32 ..
10959 -rw-rw-rw- 1 root root 0 Sep 9 11:35 testing
8841 drwxrwxrwx 2 media root 60 Sep 9 14:18 .
[email protected]_872xu:/ # mount -t ext4 /dev/block/sda1 /mnt/usb_storage/usb
[email protected]_872xu:/ # ls -l /mnt/usb_storage/usb/backup/
-rwxrwxr-x 1 root root 2147483648 Sep 9 11:20 arch.img
drwxrwxrwx 2 root root 4096 Sep 7 17:30 init.d
[email protected]_872xu:/ # su - app_65
[email protected]_872xu:/ $ ls -l /mnt/usb_storage/usb/backup/
/mnt/usb_storage/usb/backup/: No such file or directory
1|[email protected]_872xu:/ $ ls -l /mnt/usb_storage/usb
-rw-rw-rw- root root 0 2014-09-09 11:35 testing
Click to expand...
Click to collapse
No ideas?

Categories

Resources