Wifi tethering fix for CM7 - Bravo Android Development

I extracted the wifi drivers from system/etc/wifi from a system dump of the SBF and placed them into the system.img from the cyanogenmod backup... they work great... I even was able to get wifi tethering to work via Barnacle...
I am currently trying to experiment with enabling it via the settings but I really have no idea to be honest, I added wifi.tethering.ti=1 to the build.prop but it didn't work, i might have failed too though
Posting link soon for the driver files.... I don't know if ALL of them are necessary
I wasn't able to see barnacle in the market for our devices; this is the APK i used.
Btw use root explorer or ADB the files into your system/etc/wifi/ directory; overwrite old ones... ignore the softap directory (maybe that's why i have not had any luck yet? haha.)
http://www.megaupload.com/?d=8M2WSPQ0
adding this flag
wifi.tethering.ti=1 - failed
testing this flag now
ro.mot.wifi.hotspot=1 - failed
So currently I can get adhoc via barnacle but no infrastructure via settings

Great...
Can you make a updater zip and I will add it in my download section.
If you can't.. let me know and I can help ...
PS
Enabling tethering is kernel related unless you use third party apps
Sent from my MB525 using XDA App

Hope you don't mind... added a zip for recovery in my cm7 thread so you can just flash it.
Again. Great work
Sent from my MB525 using XDA App

thanks I figured it'd be kernel related but I was hoping it was in the kernel already and perhaps just flagged off somewhere...
I can't make the update.zip because to be honest I don't remember how... Hahaha... permissions and scripts? :/ thanks for making the update

You can use wifi update zip as a base. Just add correct system folder with files like app lib etc and delete the old files
For this it would be etc folder
In recovery... if you want to mount sdcard... just start adb in advanced recovery menu then you can mount sdcard.. much easier then having to have phone on to swap and install files
rubbachicken said:
thanks I figured it'd be kernel related but I was hoping it was in the kernel already and perhaps just flagged off somewhere...
I can't make the update.zip because to be honest I don't remember how... Hahaha... permissions and scripts? :/ thanks for making the update
Click to expand...
Click to collapse
Sent from my MB525 using XDA App

Related

[MISC] tun.ko for VPN

here is a tun.ko for VPN. Build by scotty2
worksforme
where does this need to be pushed
and exactly does it do lol
Ah, sorry, it can be stored anywhere where it persists reboot.
You need root to insmod it though and right now this needs to be done manually.
Yep, I'm no expert on the inner workings of linux/android, but. I installed VPN Connections v0.99 from here. Then I used the tun.ko from above. I don't know that it'll be persistent, but I'll set up a script in ghost script to move it from my sdcard to /system/lib/modules/ if I need to reboot.
It absolutely works for me.
Thanks for posting it.
smasraum said:
Yep, I'm no expert on the inner workings of linux/android, but. I installed VPN Connections v0.99 from here. Then I used the tun.ko from above. I don't know that it'll be persistent, but I'll set up a script in ghost script to move it from my sdcard to /system/lib/modules/ if I need to reboot.
It absolutely works for me.
Thanks for posting it.
Click to expand...
Click to collapse
Putting it int that dir will not survive a reboot. I put it in /data/local/modules (I created that dir). I am also using the one click root on boot (so it's automatic) and have a script that insmods it. The script must be saved to /data/local/visionary.sh and chmod 755 (at least 744).
#!/bin/sh
insmod /data/local/modules/tun.ko​
mthode said:
Putting it int that dir will not survive a reboot. I put it in /data/local/modules (I created that dir). I am also using the one click root on boot (so it's automatic) and have a script that insmods it. The script must be saved to /data/local/visionary.sh and chmod 755 (at least 744).
#!/bin/sh
insmod /data/local/modules/tun.ko​
Click to expand...
Click to collapse
Yes, you are correct, it doesn't survive a boot. I know just enough to be dangerous, so I created a script in gscript to replace it after a reboot. I looked up the insmod command, it looks like that is a MUCH better option.
Thanks tons
Hi Android Gurus,
I am not a pro in android nor in scripting, I installed VPN Connections v0.99 and followed the mentioned instruction, so now I have Astro file manager installed and I downloaded the tun.ko for VPN. Build by scotty2 and it is on my SD card, don't laugh at me what next?
thanks in advance
John
Beheit said:
Hi Android Gurus,
I am not a pro in android nor in scripting, I installed VPN Connections v0.99 and followed the mentioned instruction, so now I have Astro file manager installed and I downloaded the tun.ko for VPN. Build by scotty2 and it is on my SD card, don't laugh at me what next?
thanks in advance
John
Click to expand...
Click to collapse
Do you have root? You have to have root to be able to get this up and running.
It sounds like this is all that's left.
mthode said:
I put it in /data/local/modules (I created that dir). I am also using the one click root on boot (so it's automatic) and have a script that insmods it. The script must be saved to /data/local/visionary.sh and chmod 755 (at least 744).
#!/bin/sh
insmod /data/local/modules/tun.ko​
Click to expand...
Click to collapse
To me, the easiest way to put the file in that location is with adb.
Then you'll need to go to the vpn gui and setup a connection. For that you'll need the vpn group name and password and your username and password.
where shall I put the file tun.ko ? in the root or should I create a directory like /data/local/modules and put it there?
Beheit said:
where shall I put the file tun.ko ? in the root or should I create a directory like /data/local/modules and put it there?
Click to expand...
Click to collapse
I created that directory and put the module in there
Any one been able to get the openvpn app to work on their G2?
Sent from my T-Mobile G2 using XDA App
thanks for the file. how did you compile it? seems like it doesn't work for the new ota-ed phone, so i'm assuming it needs to be re-compiled correct?
thanks,
Alan
What does this vpn app do? Not experienced with vpn what so ever. Just wondering if I would find it of use. Thx. Sorry for the noob question.
Sent from my T-Mobile G2 using XDA App
wayde187 said:
What does this vpn app do? Not experienced with vpn what so ever. Just wondering if I would find it of use. Thx. Sorry for the noob question.
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
it's mainly used to connect back into your corporate network or school.
Anyone able to find or compile one for the new outage kernel?
Sent from my T-Mobile G2 using XDA App
Here is a tun.ko module build off the vision-2.6.32-g814e0a1 source for the 2.6.32.17-g9ab3677 kernel.
Thank you. Insmod's great, now I just wish I could get the vpn to work. :-(
Sent from my T-Mobile G2 using XDA App
The trick is you might need to append your domain to it. Try menu -- flag. Type in "--domain (domain you're on)" without the "s
Sent from my T-Mobile G2 using XDA App
Thanks svends I'll give that a shot when I get near a computer
Sent from my T-Mobile G2 using XDA App
So using this I can connect to my Penn State WiFi, and then connect to the Cisco VPN they use? Normally I can't use my phone on WiFi.. on laptop I connect using Cisco's client.

[Q] File System Permissions

Hi All,
Complete Noob here, so please be gentle!
I have been trying to flash the aGPS patch, and it doesnt want to know (on any version) and I suspect it is due to the file system permissions being read only.
My question is, how do I change the permissions to allow files to be copied & renamed?
I have been using Astro with no joy.
I am on CM 7.2 RC1.
Thanks Bob
bobmccann said:
Hi All,
Complete Noob here, so please be gentle!
I have been trying to flash the aGPS patch, and it doesnt want to know (on any version) and I suspect it is due to the file system permissions being read only.
My question is, how do I change the permissions to allow files to be copied & renamed?
I have been using Astro with no joy.
I am on CM 7.2 RC1.
Thanks Bob
Click to expand...
Click to collapse
If you're flashing the zip from recovery, you may need to mount system first in the mounts & storage option of clockwork mod recovery.
If you are doing it via a file manager, there should be an option somewhere to enable root access and or enable system r/w, I use root explorer myself and its as simple as touching a button in the top right corner of the screen to enable r/w.
Sent from my HTC Wildfire using xda premium
Thats great, thanks for your help. Got root explorer and sorted the gps.conf file in two minutes.
Regards
Bob

APN-Problems? - Maybe a solution to it.

Hey all,
I read some have problems setting up an apn in the settings menu, caused by a so-called funny sim. I did not encounter such a problem with the roms I used from the devs here.
But I want to give a you something that might work for you besides other funny solutions I read. ^^
Here we go:
Firstly do a backup of your device or just the file were are going to change, do it like you prefer. Saver is an full nand-backup.
Secondly grab the Rom you want to flash and replace the apns-conf.xml in /system/etc inside the zip with the one I provide.
Thirdly wipe everything like always and flash the zip, reboot and be happy if apns get loaded for you. ;-)
If it is not, maybe your carrier is not in the file, so check this first.
This may not work:
Second grab the apns-conf.xml attached with this post. Extract the xml file.
Copy the file onto your device and than move it with an root browser to /system/etc. You could also adb push the file to /system/etc, if you know how to.
I think a reboot is necessary.
You could also push the file via adb when you are in the recovery after doing a backup, so you haven't to start up the system move the file and reboot again.
Let me know if it works, other ways to solve this are welcome.
Hope it helps some of you.
Credits to the Cyanogenmod-Team and the others how worked on this file.
lightwars said:
Hey all,
I read some have problems setting up an apn in the settings menu, caused by a so-called funny sim. I did not encounter such a problem with the roms I used from the devs here.
But I want to give a you something that might work for you besides other funny solutions I read. ^^
Here we go:
First do a backup of your device or just the file were are going to change, do it like you prefer. Saver is an full nand-backup.
Second grab the apns-conf.xml attached with this post. Extract the xml file.
Copy the file onto your device and than move it with an root browser to /system/etc. You could also adb push the file to /system/etc, if you know how to.
I think a reboot is necessary.
You could also push the file via adb when you are in the recovery after doing a backup, so you haven't to start up the system move the file and reboot again.
Let me know if it works, other ways to solve this are welcome.
Hope it helps some of you.
Click to expand...
Click to collapse
The zip file is damaged. From what I found, the version of the apns could be the cause of this problem.
Reupload
yewsiong said:
The zip file is damaged. From what I found, the version of the apns could be the cause of this problem.
Click to expand...
Click to collapse
Yes, right you are. I reuploaded a working one. Tried it myself ;-)
lightwars said:
Yes, right you are. I reuploaded a working one. Tried it myself ;-)
Click to expand...
Click to collapse
Did u try it on Cow v7 ROM?
yewsiong said:
Did u try it on Cow v7 ROM?
Click to expand...
Click to collapse
First like wrote, I never encounter some issues relating apn.
But I tested Cow v7 Rom.
I take the zip file and replace the apn-conf.xml in the archive with the one I provided. Then I wipe everything and flashed the Zip.
After the boot I look up the apn settings in the menu and a set of entries were loaded for my carrier. So, I would say for me I worked.
Just doing a little other way, than I described in OP. I will write it down there.
lightwars said:
First like wrote, I never encounter some issues relating apn.
But I tested Cow v7 Rom.
I take the zip file and replace the apn-conf.xml in the archive with the one I provided. Then I wipe everything and flashed the Zip.
After the boot I look up the apn settings in the menu and a set of entries were loaded for my carrier. So, I would say for me I worked.
Just doing a little other way, than I described in OP. I will write it down there.
Click to expand...
Click to collapse
Yup~ I have tried it too. It works~
I try on cm9 but unlucky for me, it still didn't work.. I still can not add apn in my device..
But thanks anyways..
^.^
Sent from my GT-I8150 using XDA
yewsiong said:
Yup~ I have tried it too. It works~
Click to expand...
Click to collapse
Great, it did for you. ^^
yufenn said:
I try on cm9 but unlucky for me, it still didn't work.. I still can not add apn in my device..
But thanks anyways..
^.^
Sent from my GT-I8150 using XDA
Click to expand...
Click to collapse
Sorry to hear, have you look into the file, if your carrier is listed. Just search inside the file for the name, cause there are so many. If not try to copy a existing apn config in the file and change it to your carriers settings.
By the way if it works, you don't have to set up a apn, cause it will be loaded after the start, maybe just wait a minute or soo. But it could be that CM9 and ICS in general handles apns a different way.
Have you got an good idea for helping the others??
Hey,
I want to encourrage everyone to post, if he or she has an idea to try out.
Am I thought falsely that more than just a handfull had problems with apn settings?!?
And if you had tried out your idea, post it please.
Maybe another solution could be in the frame-res.apk there you found the file apns.xml. But I was not successful in building the apk with apktool after modifying it.
Can some try it, or know a way to build the apk from a folder?
Gesendet von meinem GT-I8150
lightwars said:
Maybe another solution could be in the frame-res.apk there you found the file apns.xml. But I was not successful in building the apk with apktool after modifying it.
Can some try it, or know a way to build the apk from a folder?
Gesendet von meinem GT-I8150
Click to expand...
Click to collapse
After u recompile it by using apktool, there will be an apk in dist folder. U need to sign the apk before using it.
Alternatively, after recompiling the apk, there will be a folder called "build" and it has a file called resources.arsc, use 7-zip to open the original framework-res.apk and replace the resources.arsc
Then u are done.
yewsiong said:
After u recompile it by using apktool, there will be an apk in dist folder. U need to sign the apk before using it.
Alternatively, after recompiling the apk, there will be a folder called "build" and it has a file called resources.arsc, use 7-zip to open the original framework-res.apk and replace the resources.arsc
Then u are done.
Click to expand...
Click to collapse
Thanks,I read about that how to do it and not take the own, which was built. But the apktool fail to built anything.I will upload a pic soon, to show you.
Gesendet von meinem GT-I8150
lightwars said:
Thanks,I read about that how to do it and not take the own, which was built. But the apktool fail to built anything.I will upload a pic soon, to show you.
Gesendet von meinem GT-I8150
Click to expand...
Click to collapse
That will be great. Did u use the correct command?
for decompile:
Code:
apktool d -f framework-res.apk
for recompile
Code:
apktool b -f framework-res
Yeah I used them, but never mind. Somehow it worked this time, but with some errors, maybe I changed the file in a way it could not be resolved from the compiler or something like this.
I also use now a other program to modify it.
Alternative Method
My solution is slightly different
(note your phone must be rooted)
Install stock rom 2.3.6 for your region and set up phone.
Using root explorer copy csc folder, found in the system folder, to your computer.
Using WinRAR or similar open (do not extract) the rom zip you wish to flash ( note only roms based on 2.3.6 will work), drill down to the system and open it if you find a csc folder there open it and compare with yours, most custom roms don't have this folder.
Add your csc folder using WinRAR and check it has worked Close WinRAR it should have rebuilt the zip.

Please need help regarding meta-inf

i installed "4.0.3 Leak On Screen Buttons" which was in zip having two folders
1 - meta- inf [which has a com folder (with files in it update-binary and updater-script) and with three files CERT.RSA, MANIFEST.MF and CERT.SF]
2 - system (in it framework-res.apk)
so i installed this zip via cwm, but i didn't liked the concept as it wasn't looking good,etc
so as i had already backed up my original framework-res.apk , so using root explorer i moved it back in sys/framework folder
restarted my phone and all got fine....
Though my question is as those files : update-binary and updater-script ---- CERT.RSA, MANIFEST.MF and CERT.SF are not searchable and i guess should not be deleted as they were just updated .. so still would they be impacting my phone or its all kool as i havn't been able to search them or delete them ?!
is it important to find and delete them or its no need for that and its ok ?!
Hope someone understands what i am trying to ask and reply appropriately please i would highly appreciate the same!
Think them like busybox (so you can mount delete etc)
And script file, that includes commands to do.
Every cwm zip files includes them. when you install zip file, these commands executed.
Sent from my LT18i using xda premium
eryen said:
Think them like busybox (so you can mount delete etc)
And script file, that includes commands to do.
Every cwm zip files includes them. when you install zip file, these commands executed.
Sent from my LT18i using xda premium
Click to expand...
Click to collapse
Awesome!
Just ease me by telling that so its nothing but just used for commands, so i need not to be worried for them could be hampering my phone's performance ?!
a yes answer will do
eryen said:
Think them like busybox (so you can mount delete etc)
And script file, that includes commands to do.
Every cwm zip files includes them. when you install zip file, these commands executed.
Sent from my LT18i using xda premium
Click to expand...
Click to collapse
shantusingh said:
Awesome!
Just ease me by telling that so its nothing but just used for commands, so i need not to be worried for them could be hampering my phone's performance ?!
a yes answer will do
Click to expand...
Click to collapse
Just to clarify,
That folder contains the Zip signatures and file manifests. as well as the CWM controll scripts. ect. these should never be coppied to the phone on a flash. likewise if you edit them the zip will prob not work without resigning the zip.
Pvy.
pvyParts said:
Just to clarify,
these should never be coppied to the phone on a flash. likewise if you edit them the zip will prob not work without resigning the zip.
Pvy.
Click to expand...
Click to collapse
thank you for your reply but now this got way over my head, m not that deep into this stuff so would appreciate if i get a simple answer to my question only please?
like asked in first post that i installed this zip via cwm, but i didn't liked the concept as it wasn't looking good,etc
so as i had already backed up my original framework-res.apk , so using root explorer i moved it back in sys/framework folder
restarted my phone and all got fine....
Though my question is as those files : update-binary and updater-script ---- CERT.RSA, MANIFEST.MF and CERT.SF are not searchable and i guess should not be deleted as they were just updated .. So still would they be impacting my phone or its all kool evn if as i havn't been able to search them and delete them ?!
is it important to find and delete them or its no need for that and its all ok now as i just moved the original framework back ?!
shantusingh said:
thank you for your reply but now this got way over my head, m not that deep into this stuff so would appreciate if i get a simple answer to my question only please?
like asked in first post that i installed this zip via cwm, but i didn't liked the concept as it wasn't looking good,etc
so as i had already backed up my original framework-res.apk , so using root explorer i moved it back in sys/framework folder
restarted my phone and all got fine....
Though my question is as those files : update-binary and updater-script ---- CERT.RSA, MANIFEST.MF and CERT.SF are not searchable and i guess should not be deleted as they were just updated .. So still would they be impacting my phone or its all kool evn if as i havn't been able to search them and delete them ?!
is it important to find and delete them or its no need for that and its all ok now as i just moved the original framework back ?!
Click to expand...
Click to collapse
Sorry if I didn't make it clear.
They are not flashed. Hence you can't find them. So no need to worry.
Pvy.
Sent from my TEAM Powered Arc S
pvyParts said:
Sorry if I didn't make it clear.
They are not flashed. Hence you can't find them. So no need to worry.
Pvy.
Sent from my TEAM Powered Arc S
Click to expand...
Click to collapse
Awesome thank you! I understood they just help in probably installing that particular app giving its own correct signatures and file manifests w.e so it gets installed via cwm and nothing more . And as i just backed up my original framework-res.apk to framework folder so its ofcourse all back to normal, though my phone is fine always as it was, I just had this doubt in my mind and m glad it got cleared thanks again!!
Cheers!!
Where did you place the Meta-INF files? I know system files goto system/framework but I cant find where Meta-INF files go. I'm using a root file manager.
chipdawg said:
Where did you place the Meta-INF files? I know system files goto system/framework but I cant find where Meta-INF files go. I'm using a root file manager.
Click to expand...
Click to collapse
You are not correct about the system files. And I recommend you do some more reading on how these zips work.
Metainf is FOR THE ZIP. And has been prety well explained above.
Pvy
Sent from my GT-P5110 using Tapatalk 2

[Q]Build a Flashable .zip (CWM)

Hi, I've downloaded a good mms.apk and I would like to test it on my phone, but I can't make a flashable package with it to flash in CWM. I've seen many tutorials on how to do it, however none of them worked for me. It keeps saying "Error in .... Status 0" bla bla bla.
I'm a it of a noob on this, so it must be my error.. :silly:
The .APK is in attachment. If anyone can pack it into a flashable CWM I would be very thankful.
Thanks in advance.
S0ul
Maybe you can add mms.apk to system/app and set permissions to
RW
R
R
And reboot.
Verstuurd van mijn GT-S5660
FlemishDroid said:
Maybe you can add mms.apk to system/app and set permissions to
RW
R
R
And reboot.
Verstuurd van mijn GT-S5660
Click to expand...
Click to collapse
I also tried that. Didn't work. The messaging app didn't even appear
S0ul_ said:
I also tried that. Didn't work. The messaging app didn't even appear
Click to expand...
Click to collapse
it depends on what it's intended for...if you use the cm& mms.apk on stock it wount work it will force close, I tryed to take the mms.apc from experiatized based on stock rom and put it on another stoch but it didnt work. What I'm trying to say is that eaven if you did the thing corectly it might not be for your rom
dark'em said:
it depends on what it's intended for...if you use the cm& mms.apk on stock it wount work it will force close, I tryed to take the mms.apc from experiatized based on stock rom and put it on another stoch but it didnt work. What I'm trying to say is that eaven if you did the thing corectly it might not be for your rom
Click to expand...
Click to collapse
That's not the case. I assure you. Besides, I have already tried to do that with another Mms.apk and it didn't work as well and I had to flash it with CWM (luckly, a member of XDA packed the whole thing into a flashable .zip)
I just can't create a flashable package. I've tried everything and it failed always :/
S0ul_ said:
That's not the case. I assure you. Besides, I have already tried to do that with another Mms.apk and it didn't work as well and I had to flash it with CWM (luckly, a member of XDA packed the whole thing into a flashable .zip)
I just can't create a flashable package. I've tried everything and it failed always :/
Click to expand...
Click to collapse
same here I first used winzip then when it did not work someome in xda told me that I need to use 7zip...but stil nothing :crying:
dark'em said:
same here I first used winzip then when it did not work someome in xda told me that I need to use 7zip...but stil nothing :crying:
Click to expand...
Click to collapse
Yeah. Same problem. Tried Auto-Sign and everything
the most important is the Meta-Inf folder.
this contains the scripts that the recovery runs, and reads how to install the files, set permissions, symlinking etc..
you can take the whole Meta-inf folder from an existing ROM for gio, and move it to a new map.
folders should look like the following
META-INF > google > android > updaterscript and updatebinary
you need to edit the updater script. remove ALL lines except
mount /system ext4 ....mount
Package_extract(system) /system/
System folder > App folder > your apk you want to have in your rom
now .zip these files, winrar or 7zip doesn't care, as long as it is .zip and not .7zip or .rar you're fine.
flash it, and just to be sure you might want to mount system manually before flashing.
S0ul_ said:
Hi, I've downloaded a good mms.apk and I would like to test it on my phone, but I can't make a flashable package with it to flash in CWM. I've seen many tutorials on how to do it, however none of them worked for me. It keeps saying "Error in .... Status 0" bla bla bla.
I'm a it of a noob on this, so it must be my error.. :silly:
The .APK is in attachment. If anyone can pack it into a flashable CWM I would be very thankful.
Thanks in advance.
S0ul
Click to expand...
Click to collapse
Try with that in attachments
Hope it'll work!
voetbalremco said:
the most important is the Meta-Inf folder.
this contains the scripts that the recovery runs, and reads how to install the files, set permissions, symlinking etc..
you can take the whole Meta-inf folder from an existing ROM for gio, and move it to a new map.
folders should look like the following
META-INF > google > android > updaterscript and updatebinary
you need to edit the updater script. remove ALL lines except
mount /system ext4 ....mount
Package_extract(system) /system/
System folder > App folder > your apk you want to have in your rom
now .zip these files, winrar or 7zip doesn't care, as long as it is .zip and not .7zip or .rar you're fine.
flash it, and just to be sure you might want to mount system manually before flashing.
Click to expand...
Click to collapse
mackief said:
Try with that in attachments
Hope it'll work!
Click to expand...
Click to collapse
Thanks for all your work, however, I couldn't install it. When I try to open the messaging app it says "Application not installed"
Does this by any mean has something to do with incompatibilities?
I'm running CM9 AOKP.
S0ul_ said:
Thanks for all your work, however, I couldn't install it. When I try to open the messaging app it says "Application not installed"
Does this by any mean has something to do with incompatibilities?
I'm running CM9 AOKP.
Click to expand...
Click to collapse
Yeah. It could be for different Android versions, or because it's compiled from another kind of dpi screen... make sure that the app could work on CM9 AOKP for your device.
Sent from my GT-S5660 using xda app-developers app

Categories

Resources