WiFi - Ad Hoc somthings i did not understand - Networking

Hi every body !
I made my G1 connecting with Ad Hoc mode:
Code:
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
adb push tiwlan.ini /data/misc/wifi/tiwlan.ini
adb push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
adb shell mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
And i have made a correct tiwlan.ini and wpa_supplicant.conf, this is why it works like a charm.
Now, i have two problems:
1- After every reboot, i can't start my Wifi(no Wifi at all, it is OFF), i have to redo all that script
2- Even i made a Shell Script, noway, it works only by using the ADB. Here is a very basic script that i tried:
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp -f ./tiwlan.ini /data/misc/wifi/tiwlan.ini
cp -f ./wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Any idea ?
Thank you.
G1 - Cyanogen 5.0.8-N1
(Sorry for my english writing)

Hi !
UP
I didn't resolve the problem yet
A+

I don't know how much of the script you understand, but your /system partition doesn't seem to be mounted until you run that script. That doesn't seem normal, /system sounds rather important :-/ If you don't know how to undo whatever modifications you have made, I would recommend resetting your phone to factory settings. It should fix it.

Related

Updating/Replacing system files

Going through the steps in this thread to update the lockscreen images, I have a question about messing around with the system files.
Which is the better method?
1) While the phone is up and running, start adb shell and mount the system using this command:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
or
2) Boot into the modified recovery screen, start adb shell and then use these steps:
Code:
mount /system
{copy, move, edit files files... whatever...}
umount /system'
reboot
Would the second method be the more correct (or cleaner) method, or does it not really matter?
You might want to replace the second part with just
Code:
{copy,move,edit,etc}
mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
The first step already mounts the partition so the mount in step 2 is kinda redundant. Also, a reboot can be helpful, I've not found it necessary in most cases...the phone adjusts pretty well to change usually (at least it adjusts to removal of programs or even taking rosie out and adding it back in).

mount /system with adb shell in recovery

hello, i need to restore my framework-res.apk from backup on my phone. i googled around and found some ways but they arent working. i can adb shell in while in recovery but i cant boot to android and /system isnt mounted.
i tried mount -o rw,remount /dev/block/mtdblock3 /system and mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system in adb shell and get "mount: mounting /dev/block/mtdblock3 on /system failed: Invalid argument"
also tried doing adb remount but get "remount failed: Unknown error: 0"
anyone know whats going on? i have 318 rom and streakmod recovery. sorry if this is considered android development. i dont think it is so its in streak general.
I believe /system shound be /dev/block/mtdblock6, so you should be able to use: mount -t yaffs2 /dev/block/mtdblock6 /system
yeah i just got the answer in freenode irc #dellstreak too and this did work. thank you.
[11:18pm] meralias: mount /dev/block/mtdblock6 /system
[11:21pm] meralias: actually: mount -t yaffs2 /dev/block/mtdblock6 /system
edit: [11:24pm] • meralias also goes as 'kantras'
sly.

[Q] Trying to push Deodexed Apps Framework

Hi
Been trying to push Deodexed Apps & Framework to Stock JPM framework.
This is the tutorial i was following
http://forum.xda-developers.com/showthread.php?t=990238
It all goes well till i start typing this:
adb shell
su
stop
mount -o rw,remount -t ext4 /dev/block/mmcblk1p21 /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
chmod 644 /system/app/*
chown root.root /system/app/*
chmod 644 /system/framework/*
chown root.root /system/framework/*
mount -o ro,remount -t ext4 /dev/block/mmcblk1p21 /system
reboot
I keep getting things like "mount is not recognized" and "permission denied"
Anyone know if this is the right path for our phone? or maybe have a better solution than this?
Thank you
After which command u r gettin this.. I was successful to do dat..but I dnt need d commands after "rm /system/framework/*.odex" ... :-S
Sent from my GT-I5800 using Tapatalk
ranadip.bswas said:
After which command u r gettin this.. I was successful to do dat..but I dnt need d commands after "rm /system/framework/*.odex" ... :-S
Sent from my GT-I5800 using Tapatalk
Click to expand...
Click to collapse
I get "mount -o Permission denied" on this line
mount -o rw,remount -t ext4 /dev/block/mmcblk1p21 /system
starof said:
I get "mount -o Permission denied" on this line
mount -o rw,remount -t ext4 /dev/block/mmcblk1p21 /system
Click to expand...
Click to collapse
i think adb is locked in the stock JPM, and don't use this command. Use this:
mount -o rw,remount /dev/block/stl6 /system
kyrillos13 said:
i think adb is locked in the stock JPM, and don't use this command. Use this:
mount -o rw,remount /dev/block/stl6 /system
Click to expand...
Click to collapse
Maybe thats why i'm having problems then lol.
Thank you
kyrillos13 said:
i think adb is locked in the stock JPM, and don't use this command. Use this:
mount -o rw,remount /dev/block/stl6 /system
Click to expand...
Click to collapse
i faced the same question ,thank you !!!!
oh sorry i dint see ur mountin command .. ya i used d kyrillos' command.. that y i was succesful..!!

[WTF][4.2.2] "mount -o remount ro /" doesn't work but "mount -o remount,ro /" does??

[WTF][4.2.2] "mount -o remount ro /" doesn't work but "mount -o remount,ro /" does??
Mod: You can delete this thread... Sorry, I was so nervous about that....
Hey Guys,
I was developing on my kernel in init.rc and I recognized that / doesn't get remounted read-only in my script.
I couldn't understand that. The command runs, but / don't get mounted ro. WTF???!
So I tested a bit and here is what I found out:
Code:
mount -o remount rw /
remounts / rw.
Code:
mount -o remount ro /
Doesn't remount / read-only.
Instead,
Code:
mount -o remount,ro /
works.
What the hell is going on here??!? I am using Android 4.2.2. Also happens with stock-kernel. Can someone confirm this?
I am pretty sure I used the old command on Android < 4.2.2 and it worked. Or?!
It doesn't matter if you use toolbox or busybox.
Thanks,
vorcers
Edit:
ahh,
Code:
mount -o remount /
remount's / rw. That solves the mystery. :silly:
This also happens on real systems. I think there is some bug in mount / the remount option. Because any word behind remount and prior / is ignored / no error. Instead, if you swap ro and remount, mount prints errors.

CIFS Script on GT-I9500 GAlaxy S4

Hi,
So I made a script to try and mount CIFS storage to my Galaxy S4 in the system file directory at boot. I have a WIFI and a 3G version both are giving me trouble. All apps I have tried fail cause none have an option to mount a system folder.
Any ways here are my scripts:
for 3G
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mkdir /system/cifs
mkdir /system/cifs/localMountDir
busybox mount -t cifs //IPADDRESS:445/ /system/cifs/localMountDir -o unc=\\\\IPADDRESS:445\\,username=X,password=X
was not sure if I need to specify a port (445) or not..either way I cannot connect it says no such device
WIFI script:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mkdir /system/cifs
mkdir /system/cifs/localMountDir
busybox mount -t cifs //192.168.0.150/b /system/cifs/localMountDir -o unc=\\\\192.168.0.150\\b,username=X,password=X
Again i tried this with & without port no luck
I have been able to connect via ANDSMB app while over wifi (not over 3 G yet) so I know the above information should connect at least when on WIFI.
Using this guys blog post for inspiration
http://www.wyattspace.com/2013/08/1...ount-cifs-network-samba-shares/#comment-28381

Categories

Resources