[TUT] Fix WIFI without wiping /data - Sony Ericsson XPERIA X10 Mini

I hope, this is developent-related enough...
Some people don't switch from paul's MiniCM7Pro v21 to nobodyAtall's MiniCM7, because they don't want to Backup/Restore Apps, SMS a.s.o. only to make Wifi work.
After some testing arround, I found out that it's because of the file /data/misc/wifi/wpa_supplicant.conf
The wifi module in paul's ROM is handled different to that in nAa's, so you need a new version of this file.
After posting my results in nAa's thread Carpe-Dimi told me, that this file will be regenerated on boot, if it's missing.
So you only need to delete/move/rename the file, like I described here.
Summarized:
a)
- start an adb shell (there are enough tutorials in this forum, expaining this)
- type "mv /data/misc/wifi/wpa_supplicant.conf /sdcard/wpa_supplicant.conf" (without the ")
- reboot
Click to expand...
Click to collapse
You will notice, that there is the file "wpa_supplicant.conf" on your sdcard. If you saved some hotspots in the "old" ROM, there will be saved your SSIDs and passwords.
b)
If you don't really like adb shell, you can also use any Root Explorer:
- navigate to /data/misc/wifi/
- delete/move/rename wpa_supplicant.conf (you are a free human being, do what you want to)
- reboot
Click to expand...
Click to collapse
Enjoy your wifi!^^
Some people already confirmed that it worked for them.
Just trying to help.
Greez E4est
I recommend on doing this only if wifi doesn't work for you. If it connects and a.s.o. there's no need for this.

MiniPro Of Nobado is bug No full touch (don't touch edge of the screen)

h_pro9x said:
MiniPro Of Nobado is bug No full touch (don't touch edge of the screen)
Click to expand...
Click to collapse
it is not if you install these files (set permissions before copying!) --> http://forum.xda-developers.com/showpost.php?p=21288425&postcount=363

E4est said:
Summarized:
- start an adb shell (there are enough tutorials in this forum, expaining this)
- type "mv /data/misc/wifi/wpa_supplicant.conf /sdcard/wpa_supplicant.conf" (without the ")
- reboot
Enjoy your wifi!^^
Just trying to help.
Greez E4est
Click to expand...
Click to collapse
I assume Root Explorer would accomplish the same thing?

scook94 said:
I assume Root Explorer would accomplish the same thing?
Click to expand...
Click to collapse
I didn't even think of this option, because I don't like Root Explorer, but it should work the same. Will add this information in first post.

What will it do if i delete that conf file? Will there be an improvement or connection will be better? please add that in your first post.
It will be better to know that
Thank you!
Tim

Tommylee567 said:
What will it do if i delete that conf file? Will there be an improvement or connection will be better? please add that in your first post.
It will be better to know that
Thank you!
Tim
Click to expand...
Click to collapse
This conf file just contain all data information about wifi (access point, WEP key etc.).

Heh? Can you approve that method?
I don't believe this helps because I thought I did this and it did not work.
@tommylee: It will erase your configured hotspots you have to reconfigure them. alternatively you can read the configfile and reconfigure some spots...

Snoopo said:
Heh? Can you approve that method?
I don't believe this helps because I thought I did this and it did not work.
@tommylee: It will erase your configured hotspots you have to reconfigure them. alternatively you can read the configfile and reconfigure some spots...
Click to expand...
Click to collapse
I already tried this method and it worked for me. ^^

Tommylee567 said:
What will it do if i delete that conf file? Will there be an improvement or connection will be better? please add that in your first post.
It will be better to know that
Thank you!
Tim
Click to expand...
Click to collapse
I added, that I recommend on doing this only if wifi doesn't work.
Before deleting it's possible that the file is incompatible with your ROM. The file will be regenerated after reboot so you will have a new wpa_supplicant.conf that's compatible with your ROM.
Wifi device in paul's ROM is called wlan0 and in nAa's ROM it's tiwlan0, that's one reason why it's incompatible.

Related

Adding ROM to Flashed Cricket Eris 2.1

HI all I have my Eris flashed to Cricket or Metro PCS, and I want to put a new rom on it. The guy who flashed it put a 2.1 update on it for me and told me he couldn't add the rom I gave him on my phone because it was flashed. So my question is am I stuck with the version I'm running or can I load different custom roms along with it being flashed??
Thanks
i have mine flashed to cricket. and I have changed to several roms, i of course was able to root the phone. so if yours is rooted then you should be able to switch roms.. i am not expert so if i am wrong please somebody correct me
Okay thanks for the reply, So can you help me out because I don't know where to start as far as adding a new rom. Do I need to re-flash to cricket after adding a new a new rom or will the flash still work and its just replacing certain things?
jcaf77 said:
i have mine flashed to cricket. and I have changed to several roms, i of course was able to root the phone. so if yours is rooted then you should be able to switch roms.. i am not expert so if i am wrong please somebody correct me
Click to expand...
Click to collapse
Okay thanks for the reply, So can you help me out because I don't know where to start as far as adding a new rom. Do I need to re-flash to cricket after adding a new a new rom or will the flash still work and its just replacing certain things? SORRY FOR DOUBLE POST!!!!
Puxxie said:
Okay thanks for the reply, So can you help me out because I don't know where to start as far as adding a new rom. Do I need to re-flash to cricket after adding a new a new rom or will the flash still work and its just replacing certain things?
Click to expand...
Click to collapse
power off your phone, once off, hold the volume down key while you press the power button if you see a recovery menu telling you, reboot, install from sd card, wipe etc.. then all you do is wipe the data and then install the rom...
but the main thing is to know that you have root access and recovery image
It will not erase what was written with QPST but the proxy will have to be setup again. I use many roms and just run the same setup for getting the proxy on there working.
jcaf77 said:
power off your phone, once off, hold the volume down key while you press the power button if you see a recovery menu telling you, reboot, install from sd card, wipe etc.. then all you do is wipe the data and then install the rom...
but the main thing is to know that you have root access and recovery image
Click to expand...
Click to collapse
Okay I know that much, how do I now if I have root access and recovery image?
jcaff77's advice is missing a whole lot.
YES, Before you flash ANY ROM, boot into Recovery (power off your phone, then power it on with Volume Up + Power) then go to Backup/Restore, then do a nand backup.
THIS way, you can ALWAYS go back to the flash that you're on. The guy that gave you that flash has NO idea what he's doing, and shouldn't be charging people money to flash things. Tell him he's basically a hack and a con artist because the information to do this is FREE and ALL around the internet. Tell him you're never going to ask for his help again, because he didn't really help you, he just took your money.
Anyway,
I posted a full tutorial that token419 from HowardForums put together to do this to ANY ROM. Your phone will stay on Cricket in general through flashing ROMs, but to make ANY ROM work FULLY on Cricket, follow this:
(from http://androidforums.com/all-things...ully-cricket-root-reqd.html?highlight=cricket )
Requirements:
Rooted Rom
Autostart (Root) from android market (free)
u2nl.zip from white rabbits site whiterabbit.org (hit Android stuff at the bottom, then get the pre-compiled Droid binary - Eris is included in that file)
Following Brandon's Guide and replace the internet portion with the steps listed below
Step 2. Setting up
What you need: u2nl.zip from white rabbits site whiterabbit.org
install Autostart (Root) from android market
Unzip the u2nl.zip to your androidsdk/tools folder so that u2nl and autostart.sh are in your androidsdk/tools folder. (use the autostart.sh that's in the Eris folder, not the one in the Droid folder!)
adb shell su
(look on phone to push 'Allow' or 'Always Allow' if it pops up - if not, then move to the next line)
mount -o rw,remount /dev/block/mtdblock3 /system
cd /data/
mkdir opt
chmod 0777 /data/opt/
chmod 0777 /system/bin/
exit
adb remount
adb push autostart.sh /data/opt/autostart.sh
adb push u2nl /system/bin/u2nl
adb shell
chmod 0777 /data/opt/autostart.sh
chmod 0777 /system/bin/u2nl
reboot
click always allow on the prompt to allow the Autostart app to run at system startup
Reply or PM me if you need help with it especially. Go ahead and flash a ROM with it. If you can't get all of this done, your phone will STILL WORK, just not all the apps, Browser Only. For a temporary Browser Only fix, just download AnyCut from the Market on your current phone flash, use AndroZip or ES File Explorer or IO File Manager or ANY program that can 'back up' apps, to back it up, then flash the NEW ROM you want, and Market won't work (until you do the instructions above). Again, to get Web to work, make a shortcut with AnyCut > Activity > Proxy, and click the Proxy shortcut you made. Set Proxy to wap.mycricket.com port 8080.
Like I said, I'll follow this thread, so just reply if you get stuck on any of those steps.
@pkopalek thanks..yeah I had a feeling he didn't know what he was doing and he was just trying to get paid. Well I'm going to try what you posted for me now and will be back to post mt status or PM and THANK YOU for you help I appreciate it.
Puxxie said:
@pkopalek thanks..yeah I had a feeling he didn't know what he was doing and he was just trying to get paid. Well I'm going to try what you posted for me now and will be back to post mt status or PM and THANK YOU for you help I appreciate it.
Click to expand...
Click to collapse
Yeah, just write back, I'll see it for sure. I did this to my girlfriend's phone, and many others, for free.
Enjoy.
this is funny
You'll also want to make sure you extract your telephony.db from /data/data/com.android.providers.telephony/databases/ to maintain MMS functionality with a new ROM, since the ROMs you'll use will probably be built for Sprint or Verizon.
You'll need RootExplorer on your phone to go to the above directory -> copy -> paste to your sdcard. Restore it to the same directory once you're new ROM is installed OR download and setup AndroidSDK (google it) and use adb to pull the file;
Code:
adb remount
adb pull /data/data/com.android.providers.telephony/databases/telephony.db
The file will end up in your /tools/ directory of the AndroidSDK.
Once you're new ROM is installed, you can use the SDK to push it back as well;
Code:
adb remount
adb push telephony.db /data/data/com.android.providers.telephony/databases/
adb reboot
That should restore MMS to your phone once you have the new ROM installed
-mak
.mak said:
You'll also want to make sure you extract your telephony.db from /data/data/com.android.providers.telephony/databases/ to maintain MMS functionality with a new ROM, since the ROMs you'll use will probably be built for Sprint or Verizon.
You'll need RootExplorer on your phone to go to the above directory -> copy -> paste to your sdcard. Restore it to the same directory once you're new ROM is installed OR download and setup AndroidSDK (google it) and use adb to pull the file;
Code:
adb remount
adb pull /data/data/com.android.providers.telephony/databases/telephony.db
The file will end up in your /tools/ directory of the AndroidSDK.
Once you're new ROM is installed, you can use the SDK to push it back as well;
Code:
adb remount
adb push telephony.db /data/data/com.android.providers.telephony/databases/
adb reboot
That should restore MMS to your phone once you have the new ROM installed
-mak
Click to expand...
Click to collapse
Actually, APN Backup & Restore already does this job.
If you use mak's way, you won't be needing APN Backup & Restore.
Both methods will work perfectly well.
pkopalek said:
Actually, APN Backup & Restore already does this job.
If you use mak's way, you won't be needing APN Backup & Restore.
Both methods will work perfectly well.
Click to expand...
Click to collapse
Was APN Backup suggested previously? I didn't notice if it had been, sorry.
I also can't speak to the validity of a program I've never used, but I suppose it would be much easier for the OP to use that than adb.
-mak
you can follow the guide here
http://forum.xda-developers.com/showthread.php?t=675652
Use the zip to flash from recovery that i created, there are 2 zips, one for just internet, and one for internet + MMS, some say the internet + MMS doesnt work, which is why i provided just an internet one as well.
As always make a nandroid backup first and have fun.
Since your phone is already flashed, disregard all the QPST stuff and simply look at the setting up web/mms portion of the guide.
The zip for MMS + Web works great for me, but your mileage may vary
Good luck and have fun
token419 said:
you can follow the guide here
http://forum.xda-developers.com/showthread.php?t=675652
Use the zip to flash from recovery that i created, there are 2 zips, one for just internet, and one for internet + MMS, some say the internet + MMS doesnt work, which is why i provided just an internet one as well.
As always make a nandroid backup first and have fun.
Since your phone is already flashed, disregard all the QPST stuff and simply look at the setting up web/mms portion of the guide.
The zip for MMS + Web works great for me, but your mileage may vary
Good luck and have fun
Click to expand...
Click to collapse
The MMS flashes the APNs, but the APN has to be specific for your phone number on your device (in my experience), so I wouldn't expect MMS to work for anyone but you, Token!
I'd stick with editing the APNs to get MMS working, but thanks for the internet patch!
THanks for all the info guys but I'm stuck on how to add a new recovery image using either the EMA it keeps saying it can't find my device state?

(TOOL) Perma-Temp Root with *R/W* & Stable!

Thanks goes to #TeamWin for Temp Root
This is For Windows only, if you wish to make it work for linux or mac help your self...
Remember, This is still a Temp Root & any Changes made will be Rest back to stock on a Reboot
It's stable & works 100%
I Personally have not lost Root with this new Method
Q. I thought RW was Fixed?
A. Caused by Deleting an apk / file that was already deleted. Journaling shows it still there!
Keep Track of what you delete, as trying to delete something off system that you alread di hangs the /system into RO state.
Before Using!!​HTC Sync Must be Turned OFF
Put the Phone into Charge Mode only ( Not Disk Drive )
USB Debugging Must be Turned on
What's Fixed:
Revamped due to new Method:
~ Superuser Apps now Function
~ If you Lose Root, all you have to do is Open terminal & type SU then type fixit! > No More Rebooting & running the exploit again for R/W on system to get Root back in place
~ Fixed R/O Bug!!
~ R/W is now Forced
~ /system is fully editable now! until reboot that is.
~ Busybox is installed to /vendor/bin
~ hex Edited libext4
~ hex edited libfuse.so
~~ This is the Last Update due to it working & Stable ~~
Download for RW HTC Sensation 4G:
````````````````````````````````````````````````````````````````````````````````````````````
Download for RW HTC Evo 3D:
````````````````````````````````````````````````````````````````````````````````````````````
Download for RW HTC Flyer 16GB/32GB:
````````````````````````````````````````````````````````````````````````````````````````````
Download for RW HTC Evo View:
Q. Is this permanent?
A. no, it's a temp root method..
Q. Will I lose SU Access at some point while running the OS?
A. You might, but open terminal & type fixit to get root back!.
Q. What about apps that need a reboot to use superuser?
A. Use Fast Reboot form the market for app that need a reboot..
Q. Can I push & remove items to system & will it work?
A. Yes, but all changes are reset on a reboot.​
Once Downloaded, Unzip & double click on the Run_ME_fre3vo_Root.bat File & Enjoy long lasting Root!
OLD NEWS:
Everyone knows that currently with any temp root, you still lose links to the SU Binary & Busybox links, it's just a matter of time before it happens!!
So after digging around somewhat I found an over sight that HTC might use later for system updates via /vendor/bin, who knows at this point though... Anyways, after amount of time the SU Binary along with busybox links if be in system/bin or /system/xbin gets deleted / removed..
Now, what I did was enable the $Path to /vendor/bin which is in the Sensation export PATH..
Any Calls made from this point either be SU or Busybox don't get deleted nor touched from any App requesting the SU Binary!! I've tested this with alot of apps & the Root sticks in place..
Other than Reboot, it might as well be a Perma-Temp-Root!!
Downloading now!!! Can't wait to test it!
***EDIT***
Rooted perfectly, opened and closed Titanium Backup several times with no force closes or loss of su, Barnacle is perfect, Wireless tether is granted su but the kernel doesn't support it, screenshot gained su also but the screenshots were smeared colors. Drocap2 takes perfect screenies though. Gonna try a few more root apps before bed and play some more when I wake up to verify it lasts.
going to try this now!
Ran the script and no root
script stays on
daemon started successfully :/
eugene373 said:
Thanks goes to #TeamWin for Temp Root!!!
Everyone knows that currently with any temp root, you still lose links to the SU Binary & Busybox links, it's just a matter of time before it happens!!
So after digging around somewhat I found an over sight that HTC might use later for system updates via /vendor/bin, who knows at this point though... Anyways, after amount of time the SU Binary along with busybox links if be in system/bin or /system/xbin gets deleted / removed..
Now, what I did was enable the $Path to /vendor/bin which is in the Sensation & Evo 3D export PATH..
Any Calls made from this point either be SU or Busybox don't get deleted nor touched from any App requesting the SU Binary!! I've tested this with alot of apps & the Root sticks in place..
Other than Reboot, it might as well be a Perma-Temp-Root!!
This is For Windows only, if you wish to make it work for linux or mac help your self...
If you have trouble with the Superuser.apk, uninstall first & reboot then run the .bat file again..
What is installed?
Busybox w/ symlinks
Superuser.apk
SU Binary
Fre3vo
sqlite3
What's Removed?
slackerradio.apk
TMOUS_Navigator.apk
Transfer-pyramid-8.30.0.26-S30.apk
Protips.apk
IdleScreen_Stock.apk
HtcTipWidget.apk
com.htc.TrendsWidget.apk
com.mobitv.client.tmobiletvhd.apk
FusionStockWidget.apk
Stock.apk
So without further ado, the link!
http://www.multiupload.com/LBEYIFVD58
Once Downloaded, Unzip & double click on the Run_ME_fre3vo_Root.bat File & Enjoy long lasting Root!
Last edited by Eugene373; Today at 05:51 AM.
Click to expand...
Click to collapse
Is there any chance u can edit the script or tell me how to edit it so it doesn't remove anything. Thanks.
perfect works great!!! Managed to restore TB! Will try out wifi tethering right now and other su required apps! Thank you! <3
I guess I don't understand.
How is removing anything from /system/app gonna stick?
This worked perfect for me. No problems with it. Wifi tether won't work for me, but barnacle tether works perfectly. Drocap2 is taking perfect screen shots for me as well, where as before the images would be all distorted and what not.
Made some changes to the .bat since I don't necessarily want to disable all of that yet, but it works, this is the longest superuser has worked for me so far on the EVO 3D.
k2buckley said:
This worked perfect for me. No problems with it. Wifi tether won't work for me, but barnacle tether works perfectly. Drocap2 is taking perfect screen shots for me as well, where as before the images would be all distorted and what not.
Click to expand...
Click to collapse
How'd you get Barnacle to work?
EDIT:
Sorry my tablet doesn't read Ad-Hoc >_>
Is anybody able to root the E3D with this method? I tried twice and it failed both times. I will do again by restart my pc and E3D.
urcboss07 said:
Is anybody able to root the E3D with this method? I tried twice and it failed both times. I will do again by restart my pc and E3D.
Click to expand...
Click to collapse
Yeah....First try.
nabbed said:
I guess I don't understand.
How is removing anything from /system/app gonna stick?
Click to expand...
Click to collapse
It won't stick, but after you reboot you run the batch program again and the apps are removed again until your next reboot.
hockeyfamily737 said:
It won't stick, but after you reboot you run the batch program again and the apps are removed again until your next reboot.
Click to expand...
Click to collapse
So, it will not stick as said, right?
Tiffany84 said:
Is there any chance u can edit the script or tell me how to edit it so it doesn't remove anything. Thanks.
Click to expand...
Click to collapse
a .bat file is just a text document that is executed in command prompt. If you are familiar with cmd just open the file in notepad, delete any commands you don't want executed, save.
urcboss07 said:
So, it will not stick as said, right?
Click to expand...
Click to collapse
Not through a full reboot....no you will have to run the batch file again (even says so in the OP). However, the other root methods would crash periodically even without a reboot or would last but not give you access to the majority of your root apps. This is the closest yet to a feasible root solution.
mine doesnt get past daemon started successfully i have usb debugging on
so if i downloaded and installed some apps that require root,
and i reboot, what happens to them ?
they will work after running the bat file again ?
or they will have to be installed again to work properly ?
thanks !
EDIT: i haven't done my due diligence (searching and reading)
but it's 5 am so i'll ask ...
what works for screen capture and for wireless tethering ?
lowetax said:
so if i downloaded and installed some apps that require root,
and i reboot, what happens to them ?
they will work after running the bat file again ?
or they will have to be installed again to work properly ?
thanks !
Click to expand...
Click to collapse
They will work after running the .bat file again. You shouldn't need to uninstall and reinstall them. Super User may need to be uninstalled before running the .bat file again, if it gives you any force closes.
Sent from my PG86100 using XDA App

[Q] How to install a terminal (Debug Tool) in FRX06

Hi!
I have installed the [BUILD] **Complete Froyo Bundle!!** FRX06 - "Stable" - Minor Fixes, but I have no WiFi.
In a previous version was included by default Debugging tool which would allow a terminal to be launched in order to copy the wifi-nvram file from the SD card towards the /data folder.
How to get the Debugging Tool / Terminal in this version ?
Any help welcome !
Thanks,
JM
jsalsa said:
Hi!
I have installed the [BUILD] **Complete Froyo Bundle!!** FRX06 - "Stable" - Minor Fixes, but I have no WiFi.
In a previous version was included by default Debugging tool which would allow a terminal to be launched in order to copy the wifi-nvram file from the SD card towards the /data folder.
How to get the Debugging Tool / Terminal in this version ?
Any help welcome !
Thanks,
JM
Click to expand...
Click to collapse
Unfortunately you can't. Use ConnectBot from the Market.
For the wifi-nvram.txt trick why don't you just use the user.conf file to bind mount it? That way you wouldn't ever have to do it again... Do it once, then never worry about it again...
Thanks !
For ConnectBot, this is a SSH client. how to connect locally: localhost I presume, But which login/password?
For user.conf file, I did not know its existence . have added the "cp /sdcard/wifi-nvram.txt /data/wifi-nvram.txt" at the end, let's see if this works at next reboot.
Thanks again !
jsalsa said:
Thanks !
For ConnectBot, this is a SSH client. how to connect locally: localhost I presume, But which login/password?
For user.conf file, I did not know its existence . have added the "cp /sdcard/wifi-nvram.txt /data/wifi-nvram.txt" at the end, let's see if this works at next reboot.
Thanks again !
Click to expand...
Click to collapse
ConnectBot works locally. Instead of SSH, choose "Local"...
Let me know if you need help with the user.conf command. Should work, haven't tried it myself...
Thanks once more.
the user.conf trick did the trick already.
Many thanks !
JMS
jsalsa said:
Thanks once more.
the user.conf trick did the trick already.
Many thanks !
JMS
Click to expand...
Click to collapse
np. Figured that is the easiest method for fixing this... now you can just leave the file on your SD card and user.conf will always mount it for you .
arrrghhh said:
ConnectBot works locally. Instead of SSH, choose "Local"...
Let me know if you need help with the user.conf command. Should work, haven't tried it myself...
Click to expand...
Click to collapse
can u tell me how does user.conf work ? what do i have to do ?
the show stopper said:
can u tell me how does user.conf work ? what do i have to do ?
Click to expand...
Click to collapse
Boot back to WinMo, edit the froyo.user.conf file (in the 'conf' folder on your SD card, where Android is...)
I like editing these files with Notepad++ but I think Wordpad will handle the enter keys correctly (regular Windows Notepad won't!)
At the bottom, you'll see a "CustomCommands" section. Within the braces ({}) add a line -
Code:
ln -s /sdcard/wifi-nvram.txt /data/wifi-nvram.txt
Make sure it's on its own line, look at some of the other commands for an example (look at the rm command...)
That's the skinny... hopefully it works! This assumes the wifi-nvram.txt file you created (with your MAC address in it) is at the root of the SD card (look at the command, /sdcard/wifi-nvram.txt... if it's in a 'mods' folder which is at the root of the SD, then the path would be /sdcard/mods/wifi-nvram.txt...)
? Purpose
arrrghhh said:
Boot back to WinMo, edit the froyo.user.conf file (in the 'conf' folder on your SD card, where Android is...)
I like editing these files with Notepad++ but I think Wordpad will handle the enter keys correctly (regular Windows Notepad won't!)
At the bottom, you'll see a "CustomCommands" section. Within the braces ({}) add a line -
Code:
ln -s /sdcard/wifi-nvram.txt /data/wifi-nvram.txt
Make sure it's on its own line, look at some of the other commands for an example (look at the rm command...)
That's the skinny... hopefully it works! This assumes the wifi-nvram.txt file you created (with your MAC address in it) is at the root of the SD card (look at the command, /sdcard/wifi-nvram.txt... if it's in a 'mods' folder which is at the root of the SD, then the path would be /sdcard/mods/wifi-nvram.txt...)
Click to expand...
Click to collapse
What is the result of moving this file what does this do,fix,solve? P.s. sincere?Not being sarcastic just curious.
Phatboyj420 said:
What is the result of moving this file what does this do,fix,solve? P.s. sincere?Not being sarcastic just curious.
Click to expand...
Click to collapse
What is this, I don't even...
If you're asking what this fixes, it's for wifi problems. I think someone tried this trick, and it didn't work. You actually have to place the .txt file instead of symlinking.

[HOW_TO] get 'init.d' Support on Tablet S

Why?
init.d allows to run scripts at system startup (reboot) of Linux and Android devices. On the Sony Tablet S it is not supported on "stock" ROM. Therefore it is not possible to execute shell scripts at the boot process.
For what?
As mentioned above, primarily for startup scripts. It can be used for 'mounting ext.sdcard to int. sdcard' for example or it is also possible to integrate kernel modules or system tweaks boot time.
How?
This requires copying the files in the enclosed zip archive to the corresponding points and to change the permissions right. Firstyou must create the folder 'init.d' at '/system/etc'.
But now "Step-by-Step":
Requirements:
You need to use Root Explorer, adb or something else. I do not want to explain each step in detail. If you have not the necessary basic knowledge you should not do this because it is deeper system change, which could end with a brick or boot loop. That would not 'the end of the world', if you have previously prepared you system for this before and know what to do this case. I am not responsibility for damage or other any problems.
Everything is done at your own risk.
Step-by-Step Instructions:
1. Create in '/system/etc' a 'init.d' folder
2. Change the access rights to '777'
3. Copy the file 'sysinit' into folder '/system/bin'
4. Change the access rights to '755'
5. Copy file 'install-recovery.sh' into folder / system / etc '
6. Change the access rights to '777'
7. Copy file 'run-parts' into folder '/system/xbin'
(If 'run-parts' already existing, you can skip Step 7 and 8. In my case it was already on the Tablet S)
8. Change the access rights to '777'
9. Copy file '99test file' into folder '/system/etc/init.d'
10. Change the access rights to '777'
Now finished .... it should work !
After next reboot take a look into the folder 'data/local/tmp'. You should find a file 'init.d_log_test.txt', created by the test script. If so, everything works fine and now you can put there your own scripts under 'init.d'. Now you can delete the test script or if you like adjust it for your own tests.
Have fun with the new 'init.d' support and apologize for my weak English !!
Special thanks to DooMLord for the idea and first implementation.
Source: http://forum.xda-developers.com/show....php?t=1431134
am I missing something here, or where is the zip-file?
the link doesn't work at the bottom.
Thanx for a nice "how-to"
Seems simple and straightforward enough
Sorry for that and thank you for the hint. I was 100% sure that I enclosed the zip ... but it looks like I am getting old. ;-)
Now you should find the zip on the end of first post.
Sorry - how do you gve the 777 file permissions?
SWFlyerUK said:
Sorry - how do you gve the 777 file permissions?
Click to expand...
Click to collapse
Via the chmod unix command, or if you are using root explorer just enable read/write/execute permissions for owner, group, and others. For 755 give owner all permissions and only read/execute to group and others.
Whoops, my device is in a bootloop lol
I hope you are joking ...
@Rumball
Sorry, but you are wrong ...
755 give owner all permissions and only read/execute to group and others.
4=read
2=write
1=execute
I'm not joking, the permissions error is obviously the reason its in a bootloop then, fantastic.
What does it mean? Did you set wrong file permissions and reboots system? On all files or only on one specific? Did you changed build.prob and downloaded system update for boot loop prevention before?
obicom said:
I hope you are joking ...
@Rumball
Sorry, but you are wrong ...
755 give owner all permissions and only read/execute to group and others.
4=read
2=write
1=execute
Click to expand...
Click to collapse
Doh! Thanks
SWFlyerUK said:
I'm not joking, the permissions error is obviously the reason its in a bootloop then, fantastic.
Click to expand...
Click to collapse
Not permissions fault. Mine didn't bootloop
obicom said:
Special thanks to DooMLord for the idea and first implementation.
Click to expand...
Click to collapse
yep, DooMLord's great work.
got finished autoinstall tool for init.d as I said to you on thursday.
That sounds great ...
let us share your file ...
it makes it much easier for the other members ..
if you allow I could add it to the first post ...
with a special thx for Condi ;-)
obicom said:
That sounds great ...
let us share your file ...
it makes it much easier for the other members ..
if you allow I could add it to the first post ...
with a special thx for Condi ;-)
Click to expand...
Click to collapse
hah not important, just good to see that there are some people who are working on making our devices better and better the more of us = more of cool tab stuff
auto-install up, try it, tested so far only on one device.
I changed nothing in the build.prop.
All I did was follow the instructions to your post and change the permissions as said by the chap above.
I'm now in a boot loop. My own fault for doing it but you don't expect posted information on permissions to be incorrect...
Can't follow your comment ...
Nothing is wrong with the information regarding permissions.
I did exactly the same on my Tab and one hour ago via Teamviewer on a second one.
I am not responsible if you did something wrong. Specially if you did not follow my hint to do first all regarding "boot loop prevention"
If you have not the necessary basic knowledge you should not do this because it is deeper system change, which could end with a brick or boot loop. That would not 'the end of the world', if you have previously prepared you system for this before and know what to do this case. I am not responsibility for damage or other any problems. Everything is done at your own risk.
Click to expand...
Click to collapse
SWFlyerUK said:
I changed nothing in the build.prop.
All I did was follow the instructions to your post and change the permissions as said by the chap above.
I'm now in a boot loop. My own fault for doing it but you don't expect posted information on permissions to be incorrect...
Click to expand...
Click to collapse
I wrote in many threads about 'rescue-backdoor', why havent you made it?
I did condi ie got my ota firmware. Rolled the build.prop increment value back. But I get a verification cation error so everything was prepared.
That was the background regarding 'did you changed build.prob' and not as a reproach. I can not understand why someone try something out, without a backup or rescue strategy. Oh damn !!
-- Edit --
Rolled the build.prop increment value back
Click to expand...
Click to collapse
Does it mean now you have the original value or the lower value?
If first case , that was a fault.
SWFlyerUK said:
I did condi ie got my ota firmware. Rolled the build.prop increment value back. But I get a verification cation error so everything was prepared.
Click to expand...
Click to collapse
The key to 'rescue' is to leave modified build.prop. It fakes that you've got older firmware than zip (zip=device the same versions). Then you get in recovery, and got opportunity to reflash the same version!

[Q] Droidwall/Firewall is not working on rooted Galaxy Pocket S5300

I've rooted my galaxy Pocket GT S5300.
SU app - Appears.
Install Titanium Backup - It's working.
Install Root Explorer - It's working.
Install Data Usage Defender - Data usage count working, App blocking (White list/Black list) is not working.
Install Droidwall -App blocking (White list/Black list) is not working.
Message appears from Droidwall when I tried to activate the rules:
"Exit Code: 11 - iptables: No
chain/target/match by that name"
Is that something wrong with blocking internet connection from apps?
What to do?
Many thanks
hi, you need iptables to run it. the attachment is all the network module and iptables. sorry this can not flash in recovery mode,but you have to manually copy the file inside following the file structure in the zip. galaxy pocket still dont have cwm recovery,so i can not create flashable zip for you. remember to set the permission to 777 for all the module and file.:fingers-crossed::fingers-crossed:
jamestts said:
hi, you need iptables to run it. the attachment is all the network module and iptables. sorry this can not flash in recovery mode,but you have to manually copy the file inside following the file structure in the zip. galaxy pocket still dont have cwm recovery,so i can not create flashable zip for you. remember to set the permission to 777 for all the module and file.:fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
Hi there.. I haven't try it yet but will soon, I will let you know how it goes then.
Thanks for the help
jamestts said:
hi, you need iptables to run it. the attachment is all the network module and iptables. sorry this can not flash in recovery mode,but you have to manually copy the file inside following the file structure in the zip. galaxy pocket still dont have cwm recovery,so i can not create flashable zip for you. remember to set the permission to 777 for all the module and file.:fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
Nothing work.. still the same error message. But thanks anyway.
By the way I found something here: http://code.google.com/p/droidwall/wiki/FAQ I think it has something to do with the kernel.
doodlerdroid said:
Nothing work.. still the same error message. But thanks anyway.
By the way I found something here: http://code.google.com/p/droidwall/wiki/FAQ I think it has something to do with the kernel.
Click to expand...
Click to collapse
u can try internet firewall from play store.
Sent from my GT-I8150 using xda app-developers app
Try avast anti virus
Double as a call blocker too
As well as anti theft
Swyped on my blade
More details please.
jamestts said:
hi, you need iptables to run it. the attachment is all the network module and iptables. sorry this can not flash in recovery mode,but you have to manually copy the file inside following the file structure in the zip. galaxy pocket still dont have cwm recovery,so i can not create flashable zip for you. remember to set the permission to 777 for all the module and file.:fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
Hi jamestts. I have the same issue as the original poster (and many others from what I have seen around the net). Being new to android and quite 'paranoid' about doing things on my phone that I dont understand, can you maybe explain this in more detail? What does the files you linked actually do and how do you set the permission to 777 and what does it mean? Any help will be greatly appreciated.
Thanks
*I already rooted my phone (galaxy pocket).
hi,the iptables is from ubuntu. i just copied from the source and paste in phone using ROOT EXPLORER. and from the ROOT EXPLORER, u will see 'rw-r--r--' , thats the permission i'm talking about. set all the iptables file that u have paste to rwxrwxrwx(this is 777 permission,press the file that u wanna set permission until a menu came out and select permission. after that new column will appear again,do tick all the 9 box in middle,the bottom box just ignored it). this is how we set for permission.
and the most important is our device is only support until 1.18.4 busybox,thats why some of the user having problem with the iptables. our device still cant support higher busybox version 1.19 . i'm not a developer,but i like paying around with the droid.my iptables work,but some of the user claim that not working. remember try on ur own risk. but no big deal, u can flash back to default by using odin. fyi,this device cant flash using single file,if u download from samfrmware, u need to split it to parts and flash it. otherwise u get softbrick.
sorry about my english,hope u understand what i'm talking about. have a nice day.:laugh:
thirdchance said:
Hi jamestts. I have the same issue as the original poster (and many others from what I have seen around the net). Being new to android and quite 'paranoid' about doing things on my phone that I dont understand, can you maybe explain this in more detail? What does the files you linked actually do and how do you set the permission to 777 and what does it mean? Any help will be greatly appreciated.
Thanks
*I already rooted my phone (galaxy pocket).
Click to expand...
Click to collapse
jamestts said:
hi,the iptables is from ubuntu. i just copied from the source and paste in phone using ROOT EXPLORER. and from the ROOT EXPLORER, u will see 'rw-r--r--' , thats the permission i'm talking about. set all the iptables file that u have paste to rwxrwxrwx(this is 777 permission,press the file that u wanna set permission until a menu came out and select permission. after that new column will appear again,do tick all the 9 box in middle,the bottom box just ignored it). this is how we set for permission.
and the most important is our device is only support until 1.18.4 busybox,thats why some of the user having problem with the iptables. our device still cant support higher busybox version 1.19 . i'm not a developer,but i like paying around with the droid.my iptables work,but some of the user claim that not working. remember try on ur own risk. but no big deal, u can flash back to default by using odin. fyi,this device cant flash using single file,if u download from samfrmware, u need to split it to parts and flash it. otherwise u get softbrick.
sorry about my english,hope u understand what i'm talking about. have a nice day.:laugh:
Click to expand...
Click to collapse
Thank you for the info, I think I understand all that you said. I have not had time to try this yet, but will try to in the next day or two.
3G Network Connection After Rooting
thirdchance said:
Thank you for the info, I think I understand all that you said. I have not had time to try this yet, but will try to in the next day or two.
Click to expand...
Click to collapse
I rooted my Galaxy Pocket and Installed the new Mak-Droid ROM, it is definitely faster now but I have a big problem with setting the type of mobile network to connect to... Before rooting, Settings had an option to choose: Automatic WCDMA/GPRS, WCDMA Only and GPRS Only in Network Connections. Now, These choices were replaced with "Use Only 2G Networks".... I need to set the phone to connect to WCDMA Only. How can this be done?
---------- Post added at 05:36 PM ---------- Previous post was at 05:24 PM ----------
jamestts said:
hi, you need iptables to run it. the attachment is all the network module and iptables. sorry this can not flash in recovery mode,but you have to manually copy the file inside following the file structure in the zip. galaxy pocket still dont have cwm recovery,so i can not create flashable zip for you. remember to set the permission to 777 for all the module and file.:fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
What are the iptables for? Is it necessary?
jamestts said:
hi, you need iptables to run it. the attachment is all the network module and iptables. sorry this can not flash in recovery mode,but you have to manually copy the file inside following the file structure in the zip. galaxy pocket still dont have cwm recovery,so i can not create flashable zip for you. remember to set the permission to 777 for all the module and file.:fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
doesn't work
---------- Post added at 10:11 AM ---------- Previous post was at 09:16 AM ----------
flashing that kernel work for me
http://forum.xda-developers.com/showthread.php?t=1971119

Categories

Resources