tun.ko for Alcatel One Touch 918D Android 2.3.5 2.6.35.7([email protected]) - Miscellaneous Android Development

Hi folks,
Im trying to configure the openvpn connection on this phone.
Specification:
- Alcatel One Touch 918D -2CALDE1-S40, Capacitive Screen, CPU: MT6573, ARMv6 Processor 668.46MHz.
- Android 2.3.5, Build Number V23AAE0 (ALPS.GB.JRD2.SP.V1.22), Linux Version 2.6.35.7([email protected])(gcc version 4.4.3(GCC)#1 PREMPT tue Dec 20 12:06:52 CTS 2011
I have rooted successfully this device.
Then I installed this app Tun.ko and tryied to install tun.ko
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-Installer.png
and it semms to be successfull
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-Installer2.png
I checked in terminal and tun.ko is loaded.
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-loaded-terminal.png
After starting the connection via 'openvpn settings' the phone makes rebooting.
After that i copied this tun.ko to /system/lib/modules/tun.ko and cofigured this in advanced settings in 'openvpn settings'.
But the same issue... :-(
the device boots after the start of vpn connection...
can enybody help?
Thank you!

can please share your tun.ko? will try it on my device.

Install the Tun.ko App from Market and install the tun.ko modul for your device. I have shared them.

what happened flipee?any luck with this app?

Same tun.ko issue among MT6573 phones
I have a similar MT6573 phone, and loaded its corresponding module from Tun.ko Installer.
Same reboot issue upon connecting to OpenVPN. I guess we're all in the same boat here. Let me know if you guys have found a solution for your phone. Thanks!

dm.homelinux.com said:
Hi folks,
Im trying to configure the openvpn connection on this phone.
Specification:
- Alcatel One Touch 918D -2CALDE1-S40, Capacitive Screen, CPU: MT6573, ARMv6 Processor 668.46MHz.
- Android 2.3.5, Build Number V23AAE0 (ALPS.GB.JRD2.SP.V1.22), Linux Version 2.6.35.7([email protected])(gcc version 4.4.3(GCC)#1 PREMPT tue Dec 20 12:06:52 CTS 2011
I have rooted successfully this device.
Then I installed this app Tun.ko and tryied to install tun.ko
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-Installer.png
and it semms to be successfull
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-Installer2.png
I checked in terminal and tun.ko is loaded.
http: //dariuszmarek.da.funpic.de/Alcatel-918D/Tun.ko-loaded-terminal.png
After starting the connection via 'openvpn settings' the phone makes rebooting.
After that i copied this tun.ko to /system/lib/modules/tun.ko and cofigured this in advanced settings in 'openvpn settings'.
But the same issue... :-(
the device boots after the start of vpn connection...
can enybody help?
Thank you!
Click to expand...
Click to collapse
Can you tell me how you have rooted this phone?
I've buyed yesterday and i don't know how rooting

I have an OT 918D.
When I load the tun.ko and I use it with Anyconnect, I have the same issue.
My phone reboot.
Have you find a solution ?

we are on the same boat.. i need the droidvpn badly, but it would reboot everytime i would try to connect it on my phone.. maybe if we have a custom kernel for our device..

guys, you can use my ported mod to load tun.ko for your Alcatel...no need custom kernel... in fact, all mt6573 can use it too... :good:
Copy the following file with any root explorer to its respective folder, reboot & start your OpenVPN, DroidVPN, AnyConnect & etc...
scriptz folder -> sdcard
tun.ko -> /system/lib/modules/
xlog.sh -> /system/etc/
if you want, you can head over here to thank banjo0917 as this tun.ko is compile by him... Kudos to banjo...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
* For DroidVPN, just copy tun.ko to SdCard & it'll work...no need for above mod...

yuweng said:
guys, you can use my ported mod to load tun.ko for your Alcatel...no need custom kernel... in fact, all mt6573 can use it too... :good:
Copy the following file with any root explorer to its respective folder, reboot & start your OpenVPN, DroidVPN, AnyConnect & etc...
scriptz folder -> sdcard
tun.ko -> /system/lib/modules/
xlog.sh -> /system/etc/
if you want, you can head over here to thank banjo0917 as this tun.ko is compile by him... Kudos to banjo...
* For DroidVPN, just copy tun.ko to SdCard & it'll work...no need for above mod...
Click to expand...
Click to collapse
I can not believe it. Works like a charm with Alcatel ROM. THANK YOU!

Related

[Bounty] Compiled Adreno drivers

I am offering a 25$ bounty to whoever can compile the adreno drivers for the huawei U8150. The device has a msm7225 which includes the Adreno 200 but no drivers have been written for it. I am including the kernel source and the Adreno driver source as well as the specs.
Phone Huawei U8150 Ideos
cpu msm7225 overclocked to 600 mhz in factory
256 mb of ram
froyo 2.2.1
.32 kernel
Kernel source (Please compile with the overclock frequency unlocked using the documentation that is included in the text file with this source) http://www.mediafire.com/?s2djub4571hjs
Adreno Source from GIT https://www.codeaurora.org/gitweb/qu...oid-msm-2.6.32
Thanks and I will be sharing this work with the rest of the U8150 users when it is completed! Starting with my build. Good luck and thank you!
Nice
Sent from my Desire HD using XDA Premium App
Found this in the android kernel source for my mobile. It's the Galaxy ace which also has an Adreno200.
Maybe it is of use to you.
The kernel module source for the gpu is attached.
That does help but I have no idea how to compile that driver, let alone how to tell the kernel to initialize it. That is why I am asking for someone to compile the kernel with the driver.
I will try to compile them for you, no guarantees It creates a xxxx.ko module so you can insmod xxxx.ko into your kernel.
Sounds great, I appreciate the effort. So in the kernel I just type Insmod in the init file? I have an extracted boot.img of my kernel but thats about the best I can do atm.
I downloaded the source and discovered that the MSM Ardeno drivers are already included in your kernel source. You just have to turn them on in the kernel makemenuconfig.
I compiled the 3d driver for your kernel source(2.6.32, critical only works for this kernel version). Now copy extracted file to your sdcard and try:
* insmod msm_kgsl.ko
in adb or terminal.
Don't know if it works, can't test it. I guess you just have to try and see. And hope you don't get a kernel panic.
I got a no such directory error when I tried to install it.
I copied the ko file to the root of my SD, went to my terminal on my phone and typed SU > cd sdcard and then insmod msm_kgsl.ko
Hmm that's weird, should work. Try and copy to a different path.
Are you sure your kernel version is 2.6.32?
It is indeed a .32 kernel. I am going to try baking the .ko file into my rom, as well as the kernel if I can figure out how.
I just opened the rom in my kitchen and saw that bash support wasn't enabled. I guess that would explain why I couldn't even get my odex script to work. Enabling bash and going to try again.
did you get the adreno to work? i have a similar problem with a XT300 from Motorola, the hardware is there but it's not functional...
If you eventually gonna compile your own kernel, you can build the drivers in the kernel yourself. This are the settings I copied from my own phone's kernel settings.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You find these settings under Device Drivers --> Graphics Support.
PS. Set the buildoptions for the driver to a * instead of M to include them natively in you kernel
PPS. You can instantly set all the correct settings for your device by issuing this command: make hw_msm7x25_defconfig (Huwai devices with MSM 7225 processor)
cant do insmod msm_kgsl.ko from anywhere ..
insmod: init_module 'msm_kgls.ko' failed (no such file or dir...)
tried sdcard, /system/lib/modules, various random plases. same thing.
Can anyone try: busybox insmod msm_kgls.ko
Busybox insmod gives more debugging data. Also try adding -v to be verbose and -p to test if the module can be inserted
I added busybox support to my build and when I typed busybox insmod -f -v msm_kgsl.ko I got can't insert msm_kgsl.ko : unknown symbol in module or invalid parameter. I am really hoping you might be able to compile a kernel for us with it already enabled so I can just throw it in the build. I can test a compiled kernel but I am not having any luck adding it through insmod.
It almost seems as if there is something wrong with that module.
I'm interested in that module for the XT300/Spice.
My kernel is the 2.6.29, 2.1-update1...
How do I compile the module ? What do I need?
Thanks for any help.
Is there possibility that these devices are made from chips with faulty gpu part?
Doubtful that there was any bad parts. Anyways, I am getting conflicting information as to whether it is an adreno 130 or adreno 200 inside of it. I read in the kernel mentions of msm7225 and other parts say 7201a.
Wouldn't it just be enough to get the libGLES and maybe gralloc files from another hardware, like htc buzz, which has the msm7225/adreno200 integration?
I tried it, but quadrant is not showing qcom as the renderer. I had to create the egl.cfg, which was not present. Perhaps it's not loading the egl.cfg:
0 0 android
0 1 qcom
with the files:
egl/libGLES_android.so
egl/libGLES_qcom.so(from htc buzz)
hw/gralloc.msm7k.so(from htc buzz)
hw/gralloc.default.so(from htc buzz)
On neocore the score is 3FPS...
EDIT:
CRAP, flashed the libEGL.so from htc buzz, stuck in bootloop... great, will try to recover =/

PC-Android Root File Manager - Android Commander by PanPiotr [WIN][ROOT][ADB]

Hey xda,
I have found a very cool application for windows users: Android Commander.
Its a File Manager for Windows that lets you browse the root directories of your phone within a nice gui. No more typing lines of adb shell commands!
Download: Visit Website http://androidcommander.com/
Functions:
File Actions
Copy Files
Delete Files
Push Files from PC
Pull Files to PC
Create Directories
Edit File Properties (Permissions, etc)
Select Multiple Files
Sign Files
Read Device Info
Open a ADB Shell console
Read logcat
Virtual Input (havent tried it)
Screenshots (Tested and found buggy on CM9)
Screenshots from the Website:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It's been around for quite a while. Very useful.
Ah, ok. I didn't kne it and found it useful to have it written down somewhere.
Sent from my GT-I9003 using XDA
I do know Why its always keeps on loading
NO Root Acces
Does anyone can help me, I have no root access over my phone?
When I run Android Commander, the bottom status bar says "Root Access : NO"
I don't understand what went wrong.
I tried to click the status bar, it just keep on loading.
Doesn't even find my HTC Sensation (adb drivers installed+rooted), while both QTADB and Droid Manager are able to access the phone.
So it's a no go for me, too bad, looks promising.
Thank you
@Taraen;
br im a new bie can you send some tutorials on how to use this?
thanks bro, this is realy good app. :highfive: i searched for app like this very long time :good:
link broken? giving up..
downloaded doesent seem to work for me or find my device.
does not show my phone as root ?
viditshah36 said:
does not show my phone as root ?
Click to expand...
Click to collapse
Maybe because you are runing jb mr1 4.2.2
For all those that get "Root Access : NO" on rooted phone, it's because adbd is running in "secure" mode.
Try adbd Insecure v1.30. It worked for me:
http://forum.xda-developers.com/showthread.php?t=1687590
It won't show my device
it says my Galaxy nexus(4.3 +rooted) is offline and that I should reboot it.
done the reboot, nothing changed, tried insecure adb, the same message.
can someone help me.
I need to to modify swap file as im using androidcommander with rooted note 2 4.3
thank u people
works just fine with Chainfires Insecure Mode app and KitKat on my Nexus 5.
You need to overwrite the files that are in $ROOT/Android Commander DIR/bin/ with the ones that are from an up-to-date sdk.
There are 4 files.
Here; I'll make it easier for you all.
Android Commander Update Files for 4.3+ Support
doesn't work with my gt p3110 with 4.2.2 works fine with droid 4.1 and below
Awesome
krylon360 said:
works just fine with Chainfires Insecure Mode app and KitKat on my Nexus 5.
You need to overwrite the files that are in $ROOT/Android Commander DIR/bin/ with the ones that are from an up-to-date sdk.
There are 4 files.
Here; I'll make it easier for you all.
Android Commander Update Files for 4.3+ Support
Click to expand...
Click to collapse
Brother. Yes it does the magic. Its working when the files are replaced by the fresh files.:good::fingers-crossed:
---------- Post added at 10:47 AM ---------- Previous post was at 10:42 AM ----------
lohtse said:
doesn't work with my gt p3110 with 4.2.2 works fine with droid 4.1 and below
Click to expand...
Click to collapse
Above files as mentioned are for 4.3+ but you are on 4.2.2.
First search, first result..just what I needed when I needed it..worked perfectly for me! Big Thanks. :good:
Cannot access data/data
imakulate said:
First search, first result..just what I needed when I needed it..worked perfectly for me! Big Thanks. :good:
Click to expand...
Click to collapse
I am successful in connecting the device , but I can't access the path data/data . When I click on data/ it doesn't displays anything.I require it for development purpose, so has to access the database file of the apps
And one more, can I backup apps along with data like Titanium backup

is this works our devices USB OTG HOST ADAPTER PEN DRIVE CABLE

i see
http://www.ebay.in/itm/NEW-USB-OTG-...GALAXY-S-II-i9100-S2-NOTE-i9220-/270917327444
item in ebay,
i searched xda i9003 forums about this can't find a solution thats why i started a
thread
it will not work the kernel itself does not support the usb otg..
its not working fully yet.
vivekkalady said:
USB On-The-Go​Work In Progress​
The USB OTG modules for Our Samsung Galaxy SL.But It is not Completely Working.I don't Know The Reasons.
Updated : 07-09-2011
PDA file with inbuilt modules have been developed by Amit (Not Released for Public)
. + Booting
. + Modules Loaded Successfully
. + No Power Supply
. + Not Working With External Power Also
Still Not Working
zImage files for CWM flashing was Created by Developer DoomLord
(Link)
Not Booting
Completed Goals
1.) Created Modules For Galaxy Sl i9003
2.) Successfully Loaded Modules to Work With our Phone
Procedure
Easy Way
1.) Download and Extract the Files and Copy them to /system/Modules
2.) Download Module Loader
3.) Open Module Loader and Click on "Another Path"
4.) Type /system/modules/
5.) select all Files
6.) Restart your phone and all modules are loaded Successfully.(Automatic Loading of modules at startup)
Note: To Check whether the files are loaded
Code:
adb shell
lsmod
you can see the new modules in the list
Output of the lsmod Command
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hard Way
1.) Download and Extract the Files and Copy them to /system/Modules
2.) Go to adb shell
Code:
cd /system/modules/
insmod usbcore.ko
insmod usb-storage.ko
install all modules in this way
3.) type lsmod to list all modules loaded in memory
Note : each module must be loaded manually (insmod) after every Reboot
Source
[MODULES][ARC][NEO][FW:4.0.A.2.368] USB-OTG {Storage, Keyboard & Mouse}
Cable MOD
Manual Cable Modding
Thanks
DoomLord
Amit
Skin
Vishal
NOTE :
The USB OTG cable of Nokia N8 will not Work
special cable for Samsung Galaxy SII can be used (Not Confirmed)
If Anyone Have Samsung Galaxy S2 USB OTG cable Please Try This
Click to expand...
Click to collapse
Waiting for the kernel.

[MOD][Init.d] for Samsung Galaxy Core 2 [SM-G355H]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What is Init.d?
Init.d is a feature which allows you to run brunch of scripts at boot . Thats really useful while you want to set values which reset at boot or run/do any thing at every boot or install tweaks , engines and....
Click to expand...
Click to collapse
Here is the stock kernel Init.d support for Samsung Galaxy Core 2 SM-G355H
What is needed :
1. custom recovery - Preferred My Ported custom recovery with full SELinux support.
2. Busybox pre installed or install BusyBox 1.23 update script just because it use busybox run-parts command to execute the scripts from /system/etc/init.d directory.
Click to expand...
Click to collapse
The ramdisk init.rc have new service usrinit :
Code:
service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
First it set the scripts permissions in /system/etc/init.d as executable, and then the run-parts launch them all.
How to :
1. Download init.d_by_Dhruvit_G355H.zip and place it in Sdcard.
2. Go to Recovery and choose install zip from sdcard.
3. Select init.d_by_Dhruvit_G355H.zip
4. Enjoy!!
Click to expand...
Click to collapse
Update - [Updated]init.d_by_Dhruvit_G355H.zip
After the boot check the file /data/Test.log and check if the installation succeeded.
Warning :
Backup your kernel ( Boot ) first and then test it !
Feel free to post some. Hit thanks if it works !
Regards !
Tell me if it works or not
I tried it . But how can i know its installed successfully i dont found file data/local/tmp/test.log
Sent from my SM-G355H using XDA Free mobile app
Sorry by mistake written /data/local/tmp it is /data/
Thanks bro .it works:thumbup:
Sent from my SM-G355H using XDA Free mobile app
help me
can any tell me why we need this and what work its will do..?
it runs scripts which can be edited,deleted,created at any time . if you do not have init.d then you have to edit boot.img everytime . and it can zipalign apps at every boot
hi there, nice job u're doing. I have a question, how can I disable a certain script to avoid it to load once I already installed it via recovery?
Thanks in advance!
go to init.d folder and remove the script which you do not want or change its permission
Hello, Can we have the kernel updated with the latest stock kernel?
or atleast give us the instructions and the initrd command lines and info
This post should be moved to the new Core II forum: http://forum.xda-developers.com/t/galaxy-core-2
How?
1) I didnot backup my kernal (BOOT) before testing it. My phone now switches on but it shows NO SIM CARD. Not able to install New Apps. How to get back my phone as per its factory make. Pls help.
2) U already replied to white enregy that "go to init.d folder and remove the script which you do not want or change its permission". How can I do it now since I dont have an app to go to init.d folder. pLs Help help. Thanks in advance.
you can use ES File Manager or Root Explorer and to fix this problem i will update the boot.img to latest version.

Tried modifying contents of a dev file in root condition, yet failed!

Hello guys, iam trying to control the brightness of camera LED in my Letv Le X509 phone (Android 6 Marshmellow version), and it is rooted. I used adb shell to interact with my device in "su"(root) mode. within the sys/class/leds folder there is no led_torch folder, only the folders blue,green,red which are notifcation leds folders . I tried searching for the led_torch folder and i only got a flashlightdrv folder, so thought this must be it, but within it these are the contents,
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
no brightness file found where i can modify the brightness level, i tried modifying the dev file and this is the result i got! permission denied, when iam accessing as root
What am i missing? My ultimate aim is to write a pwm script to control the torch_led, plzz help me if you can and help me figure out what is that stuff that is blocking me out
you forgot the android framework. whatever you are trying to do on linux runtime kernel parameters - android can do, too. android is on top of linux, so it will override you sooner or later.
regarding permissions, you're learning it the hard way like me... uid 0 (root) doesn't mean you have actually root access. android kitkat introduced (NSA) SELinux which was enforced with lollipop. besides this android uses fancy stuff like separated mount namespaces and launches every app with its own uid in a sandboxed virtual machine forked from zygote.
so if you're going to mess with permissions you have to do it from own init.rc service and exec with proper seclabel (u:r:magisk:s0, u:r:supersu:s0 or whatever)
https://forum.xda-developers.com/t/dev-guide-2016-12-22-how-to-su.1962550
Oh , weird! iam just a novice in this android field , iam just using it for a project to blink my smartphone LED at a particular frequency(using android studio), problem is above 40 Hz is not achievable, so my requirement is to access the torchLED driver through Kernel and control it so that i can achieve a higher frequency and i need to root to access that.
The Weird thing is root checker indicated me that the root is properly installed on this device and i was able to control the notification LEDs like green , blue and red(under sys/class/leds) properly through my so called "root" access. Iam just taken aback why iam not able to modify that kernel file..
I will go through your posted link and find some way to get through it! Thanks !
Oh i think i get it, the SE Linux is acting as the security layer that is preventing my root to modify the contents of the driver file of torchLED, but iam suprised on why it did allow me to modify the contents of notification leds? (under sys/class/leds)
look for avc denied in dmesg/logcat
https://gist.github.com/msfjarvis/sepolicy.md
Will do ! Thanks!
you can shortcut if kernel allows permissive
Code:
setenforce 0
getenforce
there is also an app for (v11 on github.com)
[APP][Root][4.2+]SELinuxModeChanger v10.0 :: [24.07.2017]
Now opensourced under gplv3! GITHUB Get it in f-droid F-DROID page (v10 probably won't be there until release of stable gradle 4.0 and buildtools 26) Now available on the XDA Labs! XDA Labs page (UPD: somebody released a fork without changing...
forum.xda-developers.com

Categories

Resources