[q] cifs/smb - cm-12.0 - G3 Q&A, Help & Troubleshooting

Hello
Info:
Code:
Device: D855
OS: cm-12-20150321-NIGHTLY-d855
Kernel: CM
Will this work ?
Code:
# Copyright (C) 2015 Misiaczek
#
# Addon's List:
# * SMB/CIFS Support & Usage
#
# SMB/CIFS
# ~ Support
insmod /system/lib/modules/cifs.ko
# ~ Create Folder
mkdir /mnt/Filmy
# ~ RWX Perm.
chmod 777 /mnt/Filmy
# ~ Mount
mount -t cifs //192.168.1.2/Filmy/ /mnt/Filmy/
# ~ Symlink
symlink /mnt/Filmy/ /storage/Filmy/

Related

[SOLVED] Package Management ash: /system/bin/pm: not found

Dear all,
I thought I'd install an apk onto the 'phone, but I cannot find pm
Does anyone know what I forget?
Regards, F
Code:
/sdcard # /system/bin/pm install fennec-4.0b2.multi.eabi-arm.apk
ash: /system/bin/pm: not found
/sdcard # cat /system/bin/pm
# Script to start "pm" on the device, which has a very rudimentary
# shell.
#
base=/system
export CLASSPATH=$base/framework/pm.jar
exec app_process $base/bin com.android.commands.pm.Pm "[email protected]"
/sdcard # uname -a
Linux localhost 2.6.29 #2 Fri Jul 23 06:25:40 KST 2010 armv7l GNU/Linux
Android 2.1
Solved. Don't use ash shell. Used the standard sh:-
# pm install fennec-4.0b2.multi.eabi-arm.apk
pkg: fennec-4.0b2.multi.eabi-arm.apk
Success

[Q] problem creating bootmenu

Hi guys i have a problem creating the bootmenu
I am following this post but when i'm going to 3rd line:
C:/> adb shell
$ su
# cp -R /sdcard/bootmenu /data/bootmenu
# cd /data/bootmenu
# chmod 755 *
# ./install.sh
# rm -R /data/bootmenu
i get the following message: cd: can't cd to /data/bootmenu
could you tell me please what i'm doing wrong???
Post the output of
# ls -l /data/bootmenu
Maybe it does not exist OR it is a file (it will be a file if /sdcard/bootmenu was one)
But in any case: It's much easier to install 2nd-init directly from the android market: The currently included version 0.45 works good enough to install the CM7 port (afterwards you'll have 0.51 anyway as the port includes it's own version)
pabx said:
Post the output of
# ls -l /data/bootmenu
Maybe it does not exist OR it is a file (it will be a file if /sdcard/bootmenu was one)
But in any case: It's much easier to install 2nd-init directly from the android market: The currently included version 0.45 works good enough to install the CM7 port (afterwards you'll have 0.51 anyway as the port includes it's own version)
Click to expand...
Click to collapse
Ok thanks! I saw today new version of this that include 0.5.1

[INFO][DEV] Wildfire S (marvel) partition information/recovery commands

Hello all,
Upon porting sense 4 I needed to mount a certain partition via a command that needed the exact dev block, so I decided to find out using adb and post my results here for other devs to see:
Filesystem........................Size......Used........Available......Use%........Mounted on
tmpfs...........................209.0M......48.0K.........209.0M...........0%................/dev
/dev/block/mmcblk0p1....861.1M....739.5M.........121.6M.........86%............/sdcard <-- May vary
/dev/block/mtdblock4.......35.0M.......1.3M...........33.7M...........4%............./cache
/dev/block/mmcblk0p2..1003.6M....330.8M..........672.8M.........33%............/sd-ext <-- May vary
/dev/block/mtdblock3.....269.4M....165.0M..........104.4M.........61%.........../system
/dev/block/mtdblock5.....150.0M.......1.5M..........148.5M...........1%............../data
I hope somebody finds this helpful. I was going to post this is general, but since it is not a question and is directed for developers like myself (and this is where I would look for this info TBH) I posted it here.
Okay guys, have fun
Here is a list of commands you can use in recovery/installation scripts.
[ flash_lock mesg setserial
[[ flash_unlock mkdir setsid
adbd flashcp mkdosfs sh
adjtimex flock mke2fs sha1sum
arp fold mkfifo sha256sum
ash free mkfs.ext2 sha512sum
awk freeramdisk mkfs.vfat sleep
base64 fs mknod sort
basename fsync mkswap split
bbconfig ftpget mktemp stat
bbinstall.sh ftpput modinfo strings
blkid fuser modprobe stty
blockdev getopt more sum
brctl grep mount swapoff
bunzip2 groups mountpoint swapon
busybox gunzip mpstat sync
bzcat gzip mv sysctl
bzip2 halt nanddump tac
cal head nandwrite tail
cat hexdump nbd-client tar
catv htcbatt nc taskset
chattr htcdumlock netstat teamwin
chgrp id nice tee
chmod ifconfig nohup telnet
choice_fn insmod nslookup telnetd
chown install ntpd test
chroot iostat od tftp
clear ip offmode_charging tftpd
cmp kill parted time
comm killall patch timeout
cp killall5 pgrep top
cpio less pidof touch
crond libbmlutils.so pigz tr
crontab libc.so ping traceroute
cut libcutils.so pipe_progress true
date libdl.so pkill ttysize
dc libext2_blkid.so pmap tune2fs
dd libext2_com_err.so power_test ueventd
depmod libext2_e2p.so poweroff umount
detect_key libext2_profile.so printenv uname
devmem libext2_uuid.so printf uncompress
df libext2fs.so ps unexpand
diff libflashutils.so pstree uniq
dirname liblog.so pwd unix2dos
dmesg libm.so pwdx unlzma
dnsd libmmcutils.so rdev unlzop
dos2unix libstdc++.so readlink unpigz
du libstlport.so realpath unxz
dump_image libz.so reboot unzip
e2fsck linker recovery uptime
echo ln renice usleep
ed losetup reset uudecode
egrep ls resize uuencode
env lsattr rev vi
erase_image lsmod rm watch
expand lsof rmdir wc
expr lsusb rmmod wget
false lzcat route which
fbsplash lzma run-parts whoami
fdisk lzop rx xargs
fgrep lzopcat sdparted xz
find man sed xzcat
fix_permissions.sh md5check.sh seq yes
flash_image md5sum setconsole zcat

[Q] SMS through AT Commands using G2

Hi Everyone,
I am writing an app which needs to send sms using a cell phone as GSM modem, using AT commands.
I am using windows 7.
I connected my wife's Samsung S3770 Champ, windows automatically installed the drivers etc and it worked like a charm.
I used putty to connect (MS has removed hyperterminal for some reason) and it worked like a charm.
When I tried with my G2, its simply not working.
I tried installing HTC sync, installed the driver and cancelled the HTC sync installation.
I can connect to my phone using adb.
but somehow the G2 is not detected as a modem.
I have set the USB debug as on when I connect.
Looks like an HTC issue.
Has anyone done this with an HTC andriod phone?
I am using CM 7.1
Thanks and Regards,
Amogh
Have you tried stopping the ril-daemon? I know that's one way of getting AT commands to work (like verifying whether gfree worked)
This might help a bit, http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#3._.28OPTIONAL.29_Verify_you_did_it_right
-Nipqer
Nipqer said:
Have you tried stopping the ril-daemon? I know that's one way of getting AT commands to work (like verifying whether gfree worked)
This might help a bit, http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#3._.28OPTIONAL.29_Verify_you_did_it_right
-Nipqer
Click to expand...
Click to collapse
Thanks for the reply, i tried it, but didn't work.
Still the phone is missing from the modems.
I think that it needs some config change in the phone, I am missing something...
C:\Program Files\Android\android-sdk\platform-tools>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
# su
su
# stop ril-daemon
stop ril-daemon
#
# cat /dev/smd0 &
cat /dev/smd0 &
# +CREG: 1,"6E12","00004FB3"
+CGREG: 1
+HTCUCSQ: 12
+HTCUCSQ: 11
+HTCUCSQ: 12
#
#
# echo -e 'ATE1\r' > /dev/smd0
echo -e 'ATE1\r' > /dev/smd0
# 0
# echo -e 'ATV1\r' > /dev/smd0
echo -e 'ATV1\r' > /dev/smd0
# ATV1
OK
#
+HTCUCSQ: 10
+HTCUCSQ: 5
+HTCUCSQ: 4
+HTCUCSQ: 13
#
#
#
# AT
AT
AT: not found
#
try redirecting the output of the commands to /dev/smd0 so you can see what it's replying?
-Nipqer
I did:
echo -e 'ATV1\r' > /dev/smd0
do you want me to give the output for all commands?
Here it is
# su
su
# stop ril-daemon
stop ril-daemon
# cat /dev/smd0 &
cat /dev/smd0 &
# +HTCUCSQ: 7
+HTCUCSQ: 6
# +HTCUCSQ: 7
# +HTCUCSQ: 6
# echo -e 'ATE1\r' > /dev/smd0
echo -e 'ATE1\r' > /dev/smd0
# 0
# echo -e 'ATV1\r' > /dev/smd0
echo -e 'ATV1\r' > /dev/smd0
# ATV1
OK
echo -e '[email protected]?\r' > /dev/smd0
echo -e '[email protected]?\r' > /dev/smd0
# [email protected]?
@CID: 11111111
OK
#
+HTCUCSQ: 99
+CREG: 0
+CGREG: 0
+CREG: 1,"6E12","000066DB"
+CGREG: 1
#
+HTCUCSQ: 7
+HTCUCSQ: 6
# echo -e '[email protected]?40\r' > /dev/smd0
echo -e '[email protected]?40\r' > /dev/smd0
# [email protected]?40
@SIMLOCK= 00
OK
#
+HTCUCSQ: 7
# echo -e '[email protected]?AA\r' > /dev/smd0
echo -e '[email protected]?AA\r' > /dev/smd0
# [email protected]?AA
@secu_flag: 0
OK
#

androidarmv6 20130402 (erickas) backlight

Hi
I updated from I think 20130302 to the latest 20130402 androidarmv6 (erikcas) rom. Running great as always, but backlight does not work anymore. My old simple start script was:
Code:
echo 1 > /sys/class/misc/backlightnotification/enabled
but its obviously not there anymore:
Code:
localhost userinit.d # cat /sys/class/misc/backlightnotification/enabled
cat: can't open '/sys/class/misc/backlightnotification/enabled': No such file or directory
a search shows:
Code:
localhost userinit.d # find /sys | grep -i backligh
/sys/devices/platform/pmic-leds/leds/button-backlight
/sys/devices/platform/pmic-leds/leds/button-backlight/uevent
/sys/devices/platform/pmic-leds/leds/button-backlight/subsystem
/sys/devices/platform/pmic-leds/leds/button-backlight/device
/sys/devices/platform/pmic-leds/leds/button-backlight/brightness
/sys/devices/platform/pmic-leds/leds/button-backlight/max_brightness
/sys/devices/platform/pmic-leds/leds/button-backlight/power
/sys/devices/platform/pmic-leds/leds/button-backlight/power/wakeup
/sys/devices/platform/msm-battery/power_supply/battery/keypad_backlight
/sys/devices/platform/msm-battery/power_supply/battery/lcd_backlight
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/uevent
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/subsystem
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/device
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/brightness
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/max_brightness
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/power
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/power/wakeup
/sys/class/backlight
/sys/class/leds/lcd-backlight
/sys/class/leds/button-backlight
Hmmm. Any ideas?
Best Regards
K

Categories

Resources