[Q] Fix for HotSpot in CM - HTC Desire X

I found this at the HTC One forum, maybe it help?
Wireless Tether:
Thanks to justinmcottrell
Do this from ADB shell:
Code:
settings put global tether_dun_required 0
Reboot
Profit!
:good:
Click to expand...
Click to collapse
i can't test, i'm on sense

Related

[MODULE | TEST] Native Wifi Tethering / Netfilter | by AnDyX

NEEDED MEDIUM / HIGH ANDROID KNOWLEDGE
Hello, guys, as some of you know, AnDyX (X8 forums, please give him a thumbs up for this) managed to build a module for hijack kernel to enable NetFilter, that includes Iptables, and of course and not less important Native wifi tethering.
So this is the current installation method (need to be runned again on reboot):
1. Download .zip (MD5: 7006E968E6C9B30E643ECB49756A2C25)
2. ADB Shell / Console emulator
Code:
busybox mount -o remount,rw -t yaffs2 `mount | busybox grep /system | awk '{print $1}'` /system
chmod +x /system/xbin/iptables
sh /system/xbin/full_iptables.sh
busybox mount -o remount,ro -t yaffs2 `mount | busybox grep /system | awk '{print $1}'` /system
3. Now module should be loaded.
Will upload full working and permanent module soon...
Already replied in the X8 thread - seems to install fine, but initial cursory testing with proxy scripts failed.
Have not tried tethering yet, but will do tomorrow assuming I have time at work!
Is this just "for the moment" and will be gone when I reboot ?
Otherwise thanks
wow! i really need this for ssh tunneling and proxy..heh2
EDIT:i just found an app called droidproxy for proxying my ip..so just need this module for tunneling..
Hmm, if you guys manage to get this module to a stable state..... *lost in dream*
Is there anything this little phone can't do? (exception : flash)
Guys, uploaded last version, thanks to AnDyX, needed testers (preferible with 3G data plan).
Cheers.
D4.
@dark
all i need to flash it in cwm is that correct. i am going to try.
edit: got first reboot as i enabled the 2g connection. lolz
i think its only supports usb tethering, is that correct, are you also working on wifi tethering.
thanks another grt job.
shravanchoudhary9 said:
@dark
all i need to flash it in cwm is that correct. i am going to try.
edit: got first reboot as i enabled the 2g connection. lolz
i think its only supports usb tethering, is that correct, are you also working on wifi tethering.
thanks another grt job.
Click to expand...
Click to collapse
First, this is not my work. Second, Instructions and details are on first post, did you even read it?. Third, Title it's NATIVE WIFI TETHERING, how you dare to ask if this is USB tethering?
No offends of course, but please read before asking
D4rKn3sSyS said:
First, this is not my work. Second, Instructions and details are on first post, did you even read it?. Third, Title it's NATIVE WIFI TETHERING, how you dare to ask if this is USB tethering?
No offends of course, but please read before asking
Click to expand...
Click to collapse
omg sorry dude, i was that much excited that i skipped the "wifi" and only read native tethering so please sorry and i already hitted my thanks andyx and you also.
.
also i have flashed that.
D4rKn3sSyS said:
Guys, uploaded last version, thanks to AnDyX, needed testers (preferible with 3G data plan).
Cheers.
D4.
Click to expand...
Click to collapse
Hi, I can test. I'm using your cyanocomb and I have unlimited data. But I don't have Android knowledge. All I can do is flash things with CWM...
Sent from my U20i using XDA App
SamuelDebruyn said:
Hi, I can test. I'm using your cyanocomb and I have unlimited data. But I don't have Android knowledge. All I can do is flash things with CWM...
Sent from my U20i using XDA App
Click to expand...
Click to collapse
I assume you can use adb?
on your pc open cmd and do the following (after you flashed it with cwm)
1)adb shell -after this, it will go into your phones' terminal
2) /system/xbin/full_iptables.sh
3) exit
4) adb shell dmesg > dmesg.txt
5) adb shell lsmod > lsmod.txt
6) adb shell iptables -L > iptables.txt
7) adb shell iptables -t nat -L >> iptables.txt
and post dmesg.txt,lsmod.txt and iptables.txt on the module's thread (in the x8 forums).
make sure to include what device you are using. Also test using Wireless Tether for Root Users (from market) and post results there too.
EDIT: If you do not know how to use adb, use the batch script provided. Just plug your phone into your computer and make sure USB debugging is enabled (and you flashed v2 of the module).
Awesome work.
Question. this module will allow "Droid Wall" to work correctly?
I think it should...
It should, once they get it working.
WiFi tethering working now
WiFi tethering working now with V-3
some one please make easy installation of V-3 Module
mukptl said:
WiFi tethering working now with V-3
some one please make easy installation of V-3 Module
Click to expand...
Click to collapse
Thanks for the info, ill build some easy script as son as I get home
here is flashable Netfilter v003
Eyama said:
here is flashable Netfilter v003
Click to expand...
Click to collapse
Thanks, but just for be clear, with that zip you still need to do commands from console emulator on first post
yes i konow but mukptl just want to have flashable modules
Q: what is about .apk that AnDyX made and is posted in his thread named signedwireless_tether_2_0_7.apk?
Eyama said:
yes i konow but mukptl just want to have flashable modules
Q: what is about .apk that AnDyX made and is posted in his thread named signedwireless_tether_2_0_7.apk?
Click to expand...
Click to collapse
It's a software modded that can run the right scripts to enable wifi tethering (so you install zip, then run sh commands, and then install apk for tethering)
Thanks for info. i will wait for you to make proper script beacuse i know that you are genius

[Q] [Request] Charging/Accessory Overide

pokey9000 found in the kernel, drivers/accessory/30pin_con.c:
if (acc_adc != false) {
if ((2600 < acc_adc) && (2800 > acc_adc)) {
env_ptr = "ACCESSORY=OTG";
acc->current_accessory = ACCESSORY_OTG;
Which he used to figure out what was needed to put the unit into Host mode and through his help and testing I figured out that you needed a 3:1 split on the power to get the unit to think it was charging from an OEM charger.
Is it possible to change the above code and whatever the other code is that senses power on the data lines so that we can force the tablet into whatever mode we want?
I don't have the proper setup to code myself so I hope there might be a Dev out there up for the challenge.
This works, it not only allows usb charging from a computer/laptop, but it enables it to be charged from any (In my case my Kindle's wall plug.) wall plug.
Hope that helps!
FillTheVoid said:
I am having trouble with command
adb shell
echo 1 > /sys/class/power_supply/battery/force_usb_charging
Works fine from my Laptop, but when in a terminal on the tab I get
adb shell
error: device not found
I did give the terminal su permission. Anything special I have to do when running this script from the tab itself. I would like to be able to do this "on the go" since it is not persistent after reboot. Thanks.
Click to expand...
Click to collapse
Mullicious said:
You can make it persistent, slap it in a bog standard text editor, then by using script manager, create it as a script to run as root and at boot. Confirmed it to work myself, very handy.
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
Edit:
I see this doesn't answer your question, I'm sorry; misread.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums and Read THIS
Moving to Q&A
Could someone put this into a package or give detailed instructions for a noob like me to get this running? I really hate that the Tab doesnt just recognize car usb power like my galaxy phone does...Thanks!
Mullicious said:
This works, it not only allows usb charging from a computer/laptop, but it enables it to be charged from any (In my case my Kindle's wall plug.) wall plug.
Hope that helps!
Edit:
I see this doesn't answer your question, I'm sorry; misread.
Click to expand...
Click to collapse
D you mean this command works:
adb shell
echo 1 > /sys/class/power_supply/battery/force_usb_charging
Did you get it to work from terminal eventually?
Can you share the script you created please?
Szadzik said:
D you mean this command works:
adb shell
echo 1 > /sys/class/power_supply/battery/force_usb_charging
Did you get it to work from terminal eventually?
Can you share the script you created please?
Click to expand...
Click to collapse
This shell command works if you are running pershoot's kernel, it is not persistent after reboot though. This doesnt bother me cause if I really need to charge it in the car I just open a terminal emulator and type in in. Takes 30 sec.
FillTheVoid said:
This shell command works if you are running pershoot's kernel, it is not persistent after reboot though. This doesnt bother me cause if I really need to charge it in the car I just open a terminal emulator and type in in. Takes 30 sec.
Click to expand...
Click to collapse
SO it does not work on stock kernel?
Szadzik said:
SO it does not work on stock kernel?
Click to expand...
Click to collapse
That is correct. Pershoot built it into his kernel.
FillTheVoid said:
That is correct. Pershoot built it into his kernel.
Click to expand...
Click to collapse
Any idea if Pershoot's kernel is available for P7500?
Szadzik said:
Any idea if Pershoot's kernel is available for P7500?
Click to expand...
Click to collapse
It is available. That's the 3G model right?
FillTheVoid said:
It is available. That's the 3G model right?
Click to expand...
Click to collapse
Yes, it is 3G. I have to look for the right thread. LEt me know if you have any pointers.
Szadzik said:
Yes, it is 3G. I have to look for the right thread. LEt me know if you have any pointers.
Click to expand...
Click to collapse
See forum.xda-developers.com/showthread.php?t=1138167

Changing options trough shell

so, i am trying to change the gps (location) settings trough shell (root) but all methods i find are for android 5 and before.
Is there a commnd to do this or am i screwed?
lpgfinmark said:
so, i am trying to change the gps (location) settings trough shell (root) but all methods i find are for android 5 and before.
Is there a commnd to do this or am i screwed?
Click to expand...
Click to collapse
have you tried this ?
casual_kikoo said:
have you tried this ?
Click to expand...
Click to collapse
Yeah, that command has been either disabled or changed in android 6

[GUIDE][ROOT] Enable Native Mobile Hotspot on any Galaxy Device!

This will allow you to enable native mobile hotspot (wifi tether) on Grandfathered plans or any and bypass Tether Provisioning on ATT/VERIZON/SPRINT/TMOBILE.
1. Use ADB or Mobile Terminal and follow the commands line by line.
Code:
adb shell
su
mount -o rw,remount /system
echo "net.tethering.noprovisioning=true" >> /system/build.prop
reboot
Or you can manually edit /system/build.prop using any root explorer and add this line anywhere:
Code:
net.tethering.noprovisioning=true
Please test this so I can add more devices.
Tested:
Galaxy Note 8: AT&T, TMOBILE, SPRINT, VERIZON
Galaxy S8: ??? (test)
alukarulz said:
This will show you how to enable native mobile hotspot and bypass Tether Provisioning on ATT/VERIZON/SPRINT/TMOBILE *Only tested on ATT
1. Use ADB or Mobile Terminal and follow the commands line by line.
Code:
adb shell
su
mount -o rw,remount system
echo "net.tethering.noprovisioning=true" >> /system/build.prop
reboot
You know have Native Mobile Hotspot without those carriers blocking you.
Click to expand...
Click to collapse
I don't need to do this on my Unlocked Note 8 gUDP for Verizon Wireless
Sent from my Pixel XL using Tapatalk
WinDroidGuy said:
I don't need to do this on my Unlocked Note 8 gUDP for Verizon Wireless
Sent from my Pixel XL using Tapatalk
Click to expand...
Click to collapse
My device was Verizon and when i inserted the ATT sim the mobile hotspot worked right away. But I wanted to change carrier of the device to att using @BlueFox721 method and i did for volte and wificalling, etc.. But in doing so mobile hotspot was disabled. This fixed it.
Not working on Tmobile. Says can't create system/build.prop Read only file system.
kirschdog1 said:
Not working on Tmobile. Says can't create system/build.prop Read only file system.
Click to expand...
Click to collapse
You need to root. And you need to mount /system as read/write.
mount -o rw,remount,rw /system
alukarulz said:
You need to root. And you need to mount /system as read/write.
mount -o rw,remount,rw /system
Click to expand...
Click to collapse
I am rooted already.
kirschdog1 said:
I am rooted already.
Click to expand...
Click to collapse
You have to make mount /system as read and write in terminal or adb. Try installing busybox or use adb/terminal
alukarulz said:
You have to make mount /system as read and write in terminal or adb. Try installing busybox or use adb/terminal
Click to expand...
Click to collapse
Have busybox installed already and followed your directions to a t. No go on T-Mobile.
See pick below.
kirschdog1 said:
See pick below.
Click to expand...
Click to collapse
Oh I see the problem, there is a typo in the code. It should be /system not system. I fixed it.
alukarulz said:
Oh I see the problem, there is a typo in the code. It should be /system not system. I fixed it.
Click to expand...
Click to collapse
How do we know if it's working?
kirschdog1 said:
How do we know if it's working?
Click to expand...
Click to collapse
Toggle mobile hotspot on. If it works then your good.
alukarulz said:
Toggle mobile hotspot on. If it works then your good.
Click to expand...
Click to collapse
Looks to be working here on T-Mobile.
Confirmed working for Sprint.
Sent from my Galaxy Note 8 (2017 Phone) using XDA Labs
kirschdog1 said:
Looks to be working here on T-Mobile.
Click to expand...
Click to collapse
wtharden said:
Confirmed working for Sprint.
Sent from my Galaxy Note 8 (2017 Phone) using XDA Labs
Click to expand...
Click to collapse
Thanks for testing! Glad it worked.
Not working for me on a rooted Sprint Note 8
joelstitch said:
Not working for me on a rooted Sprint Note 8
Click to expand...
Click to collapse
Where are you stuck on?
is this for unlimited tethering? or just to get it working on which ever device carrier?
mister_propa said:
is this for unlimited tethering? or just to get it working on which ever device carrier?
Click to expand...
Click to collapse
To get it working. Idk about unlimited tethering but I've been using it and no disconnection.
I'm not stuck. It just doesn't work for me. I followed the steps and I am rooted. But when I try to turn on Hotspot it says I don't have the subscription.

[OP8P] PhotoChrom enabled - Without PC - Non Root

Hello everyone.
This is a guide to enable the Photochrom camera without using a PC.
Steps:
1. Install Termux - https://play.google.com/store/apps/details?id=com.termux&hl=en&gl=US
2. Run this command on Termux:
apt update > /dev/null 2>&1 && apt --assume-yes install wget > /dev/null 2>&1 && wget https://github.com/MasterDevX/Termux-ADB/raw/master/InstallTools.sh -q && bash InstallTools.sh
Wait for a while and let this command complete. (Needs internet connected)
3. Run this command in Termux:
adb devices
4. Go to developers settings. We need to change 3 settings:
First turn all of them off:
a) Wireless debugging
b) Wireless ADB debugging
c) USB debugging
Now you have to turn them on in this order (Yes the order is important)
a) Wireless debugging (Also click allow on prompt)
b) Wireless ADB debugging
c) USB debugging (Also click allow on prompt)
5. Go back to Termux and type:
Adb devices
You phone should show up with the IP
6. In termux run:
Adb shell
and then run:
am start -n com.oneplus.factorymode/.camera.manualtest.CameraManualTest
CONGRATS!! The camera runs now.
Change camera to camera 4. This is the photochrom camera.
Now go to recent apps and lock this camera app.
Now you never have to worry again.
This app will always be available in recent apps.
EXTRA STEP. If "adb shell" command does not run.
You need to do one extra step after step 5
5.5. If your ip is 192.168.2.3:5555
run this command
adb connect 192.168.2.3:5555
then do step 6
DOESN'T WORK?
Uninstall Termux and repeat procedure again. Follow the video attached.
VIDEO TUTORIAL
For Video Tutorial please follow the link
2020_12_06_19_06_32.mp4
drive.google.com
Hi mate, great job. But I have a doubt, if I follow all the steps my stock camera version will still be the newest? or do I go back to an older version?
Zokinet said:
Hi mate, great job. But I have a doubt, if I follow all the steps my stock camera version will still be the newest? or do I go back to an older version?
Click to expand...
Click to collapse
You stock camera will not be changed
This works fabulous on OnePlus 8 pro IN2021 running Android 11.0.2.2 thanks again.
Hi thanks for taking you time bro but i am on oos 10 and tried following this but i am getting.
plus.factorymode/.camera.manualtest.CameraManualTest <
Starting: Intent { cmp=com.oneplus.factorymode/.camera.manualtest.CameraManualTest }
Warning: Activity not started because the current activity is being kept for the user.
iamtalha said:
You stock camera will not be changed
Click to expand...
Click to collapse
Thanks, All works good.
Good job.
I'm not getting an ip address in Step 5, so termux doesn't see my device. I turned on those settings in order...
Rajul said:
Hi thanks for taking you time bro but i am on oos 10 and tried following this but i am getting.
plus.factorymode/.camera.manualtest.CameraManualTest <
Starting: Intent { cmp=com.oneplus.factorymode/.camera.manualtest.CameraManualTest }
Warning: Activity not started because the current activity is being kept for the user.
Click to expand...
Click to collapse
That means your "adb shell" command didn't work, or you did not use that command. Please watch the video I just attached to the original post
GatorsUF said:
I'm not getting an ip address in Step 5, so termux doesn't see my device. I turned on those settings in order...
Click to expand...
Click to collapse
Please check the video I just attached.
Good video : cheers
Awesome, this works fine on OOS 11 stable. Thanks a lot.
Rajul said:
Hi thanks for taking you time bro but i am on oos 10 and tried following this but i am getting.
plus.factorymode/.camera.manualtest.CameraManualTest <
Starting: Intent { cmp=com.oneplus.factorymode/.camera.manualtest.CameraManualTest }
Warning: Activity not started because the current activity is being kept for the user.
Click to expand...
Click to collapse
You need to disable all your magisk modules to use it.
Tried, no x ray effect
I am not even rooted
Svid said:
You need to disable all your magisk modules to use it.
Tried, no x ray effect
Click to expand...
Click to collapse
iamtalha said:
That means your "adb shell" command didn't work, or you did not use that command. Please watch the video I just attached to the original post
Click to expand...
Click to collapse
Will it work on oos 10?
Rajul said:
Will it work on oos 10?
Click to expand...
Click to collapse
Not sure. But it should
Svid said:
You need to disable all your magisk modules to use it.
Tried, no x ray effect
Click to expand...
Click to collapse
Xray effect is very slight. It is just hyped
OP8Pro, A11, running shell as su was required or else I would get the message:
"Warning: Activity not started because the current activity is being kept for the user."
App launched, but error message popped up, image attached
After disabling xXx NoLimits Magisk Module, the photochrome camera worked!
oSumAtrIX said:
OP8Pro, A11, running shell as su was required or else I would get the message:
"Warning: Activity not started because the current activity is being kept for the user."
App launched, but error message popped up, image attached
After disabling xXx NoLimits Magisk Module, the photochrome camera worked!
Click to expand...
Click to collapse
Yes this method was for non rooted phones. Rooted phones have other better methods
For anyone trying this on OOS 10, it will not work for non rooted oos 10 as the factory mode feature was disabled by OnePlus in latest Stable update but it works for OOS 11 stable.(as of now)
iamtalha said:
Xray effect is very slight. It is just hyped
Click to expand...
Click to collapse
Well this guide does work for me 11.0.2.2 BA but the hype i had was big lol

Categories

Resources