[EMUI5.0] Enabling OTG without 3rd party apps or mods - Huawei P9 Lite ROMs, Kernels, Recoveries, & Other

I have been playing around with my p9 lite trying to enable OTG support without
installing a custume made kernel or app-s like Elitekernel and EliteOTG.
I have achieved that my phone is OTG compatible, but I cannot test it ( I don't have a
working OTG cable yet).
I will post how I did it as soon as I can confirm that it works.

I have hit a problem - usb port does not provide the 5V to power the usb drive, but I am working on it.

vidra said:
I have hit a problem - usb port does not provide the 5V to power the usb drive, but I am working on it.
Click to expand...
Click to collapse
U have to edit the kernel too.. u will never solved this i mean... usb never provide the 5v

petya230 said:
U have to edit the kernel too.. u will never solved this i mean... usb never provide the 5v
Click to expand...
Click to collapse
I know and I am reading documentation and reversing Eliteakernel to se how thay did it

you tried:
echo hoston > /sys/devices/platform/ff100000.hisi_usb/plugusb ?

OldDroid said:
you tried:
echo hoston > /sys/devices/platform/ff100000.hisi_usb/plugusb ?
Click to expand...
Click to collapse
Yes I have, but it does not seem to make a diffrence.
usb otg status shows OTG_DEV_DEVICE, but iit does not work.
otherwise the pins of my OTG cable have 0.07V not 0V
any toughts?

OldDroid said:
you tried:
echo hoston > /sys/devices/platform/ff100000.hisi_usb/plugusb ?
Click to expand...
Click to collapse
We said, its will not work.
See the kernel source.

petya230 said:
U have to edit the kernel too.. u will never solved this i mean... usb never provide the 5v
Click to expand...
Click to collapse
will u please shut up ?? he is doing something different,, let him do it :/
OldDroid said:
you tried:
echo hoston > /sys/devices/platform/ff100000.hisi_usb/plugusb ?
Click to expand...
Click to collapse
all the best and dont forget my credits
---------- Post added at 10:41 AM ---------- Previous post was at 10:36 AM ----------
vidra said:
I know and I am reading documentation and reversing Eliteakernel to se how thay did it
Click to expand...
Click to collapse
all the best

HassanMirza01 said:
will u please shut up ?? he is doing something different,, let him do it :/
all the best and dont forget my credits
---------- Post added at 10:41 AM ---------- Previous post was at 10:36 AM ----------
all the best
Click to expand...
Click to collapse
I am trying to build the kernel, but I have lots of truble doing it.
And I won't forget to mention you in the credits

vidra said:
I am trying to build the kernel, but I have lots of truble doing it.
And I won't forget to mention you in the credits
Click to expand...
Click to collapse
When u are doing same as i did, why dont u use otg my way ?? U r building kernel, u will need apk to turn on nd off... Thats all what i did

HassanMirza01 said:
When u are doing same as i did, why dont u use otg my way ?? U r building kernel, u will need apk to turn on nd off... Thats all what i did
Click to expand...
Click to collapse
Well yes, but i don't like the idea that I need na extra app to do it, ecpecially if the system is capable of doing it by itself.
Have you tryed building a kernel only enabeling :
Code:
OTG support (USB_OTG)
CONFIG_USB_OTG:
The most notable feature of USB OTG is support for a
"Dual-Role" device, which can act as either a device
or a host. The initial role is decided by the type of
plug inserted and can be changed later when two dual
role devices talk to each other.
Select this only if your board has Mini-AB/Micro-AB
connector.

@vidra Thank you, for sharing as you do, I expected this, go ahead with the project: good:: good:

Anyone confirm this to work on Honor 9?

fastfoxy said:
Anyone confirm this to work on Honor 9?
Click to expand...
Click to collapse
Probably not, since the kernel is device specific, but you can probably use another kernel with this enabled and then just
use HassanMirza01's EliteOTG app to turn it on and off.

Ty for the explanation

Related

[Mod][How-To] Custom Boot Logo on I9100G

YOU MIGHT SUPER BRICK YOUR SIIG BE CAREFUL!!!!
Screenshots/video:
Image 1
Image 2
All thanks to connexxion2005.
If you bricked your device, its all your fault....
Prerequisites:
1- ICS - 5.5.0.4 (recovery + Kernel)
2- Divine is recommended or any stock firmware but must be rooted!!!!.
Instructions:
1- Flash SGS2G_custom_param_lfs.tar using odin (PDA)
2- Make sure your debug is enabled in your settings
3- Reconnect your device to your pc
4- Right click on SGS2G_BootScreen.bat run as Admin
5- Follow instructions
6- Reboot
Note: Images must be 480 x 800 and UNDER 100 kB.
Tested and works fine, after that you can flash whatever kernel/rom you were using. Enjoy.
tarekkkkk said:
Dears,
All thanks to connexxion2005.
If you bricked your device, its all your fault....
Prerequisites:
1- ICS - 5.5.0.4 (recovery + Kernel)
2- Divine is recommended or any stock firmware but must be rooted!!!!.
Instructions:
1- Flash SGS2G_custom_param_lfs.tar using odin (PDA)
2- Make sure your debug is enabled in your settings
3- Reconnect your device to your pc
4- Right click on SGS2G_BootScreen.bat run as Admin
5- Follow instructions
6- Reboot
Note: Images must be 480 x 800 and UNDER 100 kB.
Tested and works fine, after that you can flash whatever kernel/rom you were using. Enjoy.
Click to expand...
Click to collapse
lemme Chk
how about cm10 with boot sound?
vincent47me said:
how about cm10 with boot sound?
Click to expand...
Click to collapse
totally diff thing
ICS_XD said:
lemme Chk
Click to expand...
Click to collapse
Waiting for feedback from exp user, but none the less it should work
vincent47me said:
how about cm10 with boot sound?
Click to expand...
Click to collapse
Its a boot logo screen not a bootanimation, the one that starts with i 9100G yea that one, this mod will allow you to change it.
tarekkkkk said:
Waiting for feedback from exp user, but none the less it should work
Its a boot logo screen not a bootanimation, the one that starts with i 9100G yea that one, this mod will allow you to change it.
Click to expand...
Click to collapse
its a hard thing like using triangle away on our phone so think hard before doing this brick means supr brick sorry but this is true
ICS_XD said:
its a hard thing like using triangle away on our phone so think hard before doing this brick means supr brick sorry but this is true
Click to expand...
Click to collapse
i know but i'm only sharing this because it worked with me, if it didn't i wouldn't post it
tarekkkkk said:
i know but i'm only sharing this because it worked with me, if it didn't i wouldn't post it
Click to expand...
Click to collapse
mention a super brick in OP please
ICS_XD said:
mention a super brick in OP please
Click to expand...
Click to collapse
Done , i see your afraid to try it
tarekkkkk said:
Done , i see your afraid to try it
Click to expand...
Click to collapse
i dont want to kill my s2 bcz i want to give you more roms
ohhh i read it before like boot animation lol
so its actually the logo
for now im satisfied with my boot logo
i will do this if im ready to brick or dumb my s2g haha
Added screenshots and a demo video at OP.
tarekkkkk said:
Added screenshots and a demo video at OP.
Click to expand...
Click to collapse
Make the youtube video public buddy, not able to see it
rcade2005 said:
Make the youtube video public buddy, not able to see it
Click to expand...
Click to collapse
Sorry about that, the old video revealed my imei, so in case of security ive made it private, a new video is being uploaded at the moment heres the url http://www.youtube.com/watch?v=jQqbhMQ5xT8
tarekkkkk said:
Sorry about that, the old video revealed my imei, so in case of security ive made it private, a new video is being uploaded at the moment heres the url http://www.youtube.com/watch?v=jQqbhMQ5xT8
Click to expand...
Click to collapse
Thanks, will check it once its uploaded
rcade2005 said:
Thanks, will check it once its uploaded
Click to expand...
Click to collapse
Done
I actually have the file and I used it for gingerbread, but I didn't know that it works for ICS as well.
Anyway, for those who are really afraid of bricking their device, there's an app on Play Store named "SGS2 BootScreen Changer" and you can crop your image from picture of various sizes.
---------- Post added at 11:18 PM ---------- Previous post was at 11:16 PM ----------
Oh ya, does anyone know how to change that if the user is on AOSP based ROMs (in my case, CM10)?
brightivan said:
Oh ya, does anyone know how to change that if the user is on AOSP based ROMs (in my case, CM10)?
Click to expand...
Click to collapse
I don't think it will work on cm roms because the infrastructure of the rom has been changed, well it might work but for safety issues just revert back to divine and do the steps then restore your old rom.

[ROM][PORT][4.0.4]MIUI v4[2.8.10 & 2.9.14][STABLE]

Hi Fellow Buzzers!
I'm back again with another port,this time its MIUI v4.I know the same version 2.8.10 already exist for wildfire but it has bugs,I've tried to port it from a different(not sure ) device, as a result this particular port has much less bugs and is much more stable.
This ROM has been ported from LG Optimus Me,and was made by luisakira2301.The link for original rom can be found here.
Lets come to the point now.
What Works.
Everything to be a daily driver.
Bugs.
Launcher and music app needs resizing.
You tell me.
WARNING
Flash this on your own risk.I'm not responsible to any bricked devices or anything at all for what you do!
How to flash?
-Reboot in Recovery.
-Wipe data/factory reset.
-Wipe cache and dalvik cache.
-Flash MIUI v4.(No need to flash gapps)
-Reboot your phone.
First boot might take some time,so be patient.
Credits.
-ErwinP
-luisakira2301
Changelog,Download links can be found in second post.​
Changelog.
22-4-2013
-Initial Release(MIUI 2.8.10).
26-4-2013
A newer MIUI version(2.9.14).
USB mount now works by default(no need of 3rd party apps).
Fast,smooth and great for battery life.
Added Zeam launcher.
DOWNLOAD.
MIUI 2.8.10
MIUI 2.9.14
Screenshots.
​
Hey warsim thank you for the Rom is german include?
Sent from my Wildfire using xda app-developers app
emrehagi1997 said:
Hey warsim thank you for the Rom is german include?
Sent from my Wildfire using xda app-developers app
Click to expand...
Click to collapse
Sorry mate,only English and Chinese
I've already ported this.... but fair enough
jordfaz said:
I've already ported this.... but fair enough
Click to expand...
Click to collapse
I've ported from a different device I guess, you didn't mention where you ported from.I'll remove it if you want, will share it under your thread in case.
Wasimk32 said:
I've ported from a different device I guess, you didn't mention where you ported from.I'll remove it if you want, will share it under your thread in case.
Click to expand...
Click to collapse
no its fine don't remove it, I was just saying because yyou said you didn't know whether it has been done before, its fine
jordfaz said:
no its fine don't remove it, I was just saying because yyou said you didn't know whether it has been done before, its fine
Click to expand...
Click to collapse
Thanks mate
Anyways, I'm gonna update this to a newer miui.
Some screenshots please!
Is this smooth like CM9?
Thanks, gj.
gobz said:
Some screenshots please!
Is this smooth like CM9?
Thanks, gj.
Click to expand...
Click to collapse
Yup will do soon.And yes it is smooth as CM9.
Where is the download link pls
---------- Post added at 07:04 PM ---------- Previous post was at 07:03 PM ----------
Its OK found it
r.king35 said:
Where is the download link pls
Click to expand...
Click to collapse
See post #2.
Hey Wasim, you rom is awesome but I have trouble with super user. I can't use it. said permission denied when i must use it. I can't update su binary
Native Usb mount.(Added UMS which works like a charm!)
Click to expand...
Click to collapse
What does that mean?
Gargoyles said:
Hey Wasim, you rom is awesome but I have trouble with super user. I can't use it. said permission denied when i must use it. I can't update su binary
Click to expand...
Click to collapse
Do you have data connection on phone ?
gerope said:
What does that mean?
Click to expand...
Click to collapse
It means that when u connect ur phone to computer through a usb cable then theres no option to select mass storage,I've added an app called UMS which serves the purpose.
yes, i have internet connection. that is first rom with this problem
Gargoyles said:
yes, i have internet connection. that is first rom with this problem
Click to expand...
Click to collapse
Flash this attachment in cwm recovery and it should be fine.
Wasimk32 said:
Flash this attachment in cwm recovery and it should be fine.
Click to expand...
Click to collapse
Thanks man, it works!!!
Wow good port bro! Luck!!!
:thumbup:
Sent from my HTC Explorer using xda app-developers app

[ROM] Vanir/Commotio N71 Testing.

I have been trying to fix up these good old omap4 devices for N71.
I have no clue if it will boot, but if your brave enough to test I'd love to get some feedback
http://www.emccann.net/dho/3-Vanir-mirror/4-nighties/maserati/
I don't think anyone is going to test or may not consider it due to lack of information.
why would I try this instead of the Lineage 7.1 release that is working?
screenshots? features? bugs?
I've tried it on my second D4 (what I keep for backup and testing).
Installation fails with "E3004: This package is for device: maserati; this device is cdma_maserati"
Careless_ said:
I don't think anyone is going to test or may not consider it due to lack of information.
why would I try this instead of the Lineage 7.1 release that is working?
screenshots? features? bugs?
Click to expand...
Click to collapse
As the sig says, been we have been supporting around 100 devices for 5 years.... if you don't know us, your obviously very new to the ROM community.
And LNG's 7.1 omap4 repo is a red hot disaster. That's what I am trying to fix.
wsemi said:
I've tried it on my second D4 (what I keep for backup and testing).
Installation fails with "E3004: This package is for device: maserati; this device is cdma_maserati"
Click to expand...
Click to collapse
Thanks! Will investigate.
DHO said:
if you don't know us, your obviously very new to the ROM community.
Click to expand...
Click to collapse
then it shouldn't be hard for you to include a link to a main page for info about your ROM if it's so popular... or at least provide screenshots. I've been on this site since 2010... definitely not new to the ROM community- still haven't heard of your ROM. perhaps you're not as popular as you think.
post a link and i might be interested in giving it a shot...
wsemi said:
I've tried it on my second D4 (what I keep for backup and testing).
Installation fails with "E3004: This package is for device: maserati; this device is cdma_maserati"
Click to expand...
Click to collapse
New test build up. Should solve that issue.
DHO said:
New test build up. Should solve that issue.
Click to expand...
Click to collapse
After wiping and installing in stock slot then rebooting, I just get a black screen. I left it for about 10 mins, and eventually it rebooted itself and did the same again, sorry.
DHO said:
As the sig says, been we have been supporting around 100 devices for 5 years.... if you don't know us, your obviously very new to the ROM community.
Click to expand...
Click to collapse
but doesn't look like much development for Motorola Devices...
---------- Post added at 05:43 PM ---------- Previous post was at 05:42 PM ----------
and moto devices are quite different then most other Androids
hello . after full wipe (except internal/external memory ) and install => black screen . wait 10-15 min , not result
moodroid said:
After wiping and installing in stock slot then rebooting, I just get a black screen. I left it for about 10 mins, and eventually it rebooted itself and did the same again, sorry.
Click to expand...
Click to collapse
acbka said:
hello . after full wipe (except internal/external memory ) and install => black screen . wait 10-15 min , not result
Click to expand...
Click to collapse
Thanks, would be great if pulling a log is possible. If not thank you for giving the build a try.
How could I obtain the log during boot? I think adbd is not started yet.
DHO said:
Thanks, would be great if pulling a log is possible. If not thank you for giving the build a try.
Click to expand...
Click to collapse
wsemi said:
How could I obtain the log during boot? I think adbd is not started yet.
Click to expand...
Click to collapse
might be an install log on Sd card
should be able to mount storage in safestrap recovery (twrp)
Sent from my sailfish using XDA Labs
wsemi said:
How could I obtain the log during boot? I think adbd is not started yet.
Click to expand...
Click to collapse
You need to plug into your computer and adb logcat
DHO said:
You need to plug into your computer and adb logcat
Click to expand...
Click to collapse
i try install to stock slot . use safestrap 3.75 and full wipe:
stock slot
if connect to usb == Error: “USB Device not recognized''
I'll try later install to "safe slot"
The result will be written later
safe slot:
if connect to usb == Error: “USB Device not recognized''
u have any ideas ?

OTG ethernet and camera

Hello,
I hve p8lite - ale-l21 - with stock rom. Is there any chance to get working OTG here?
I would like to use USB ethernet adapter if thats possible
Also i have bought small camera on ebay - I really need it for preview purposes. Is that possible to use?
I have heard about problems with power on other devices. I also have bought cable with another usb plug for power feed.
But I see in app that there is no support OTG. How can I enable it?
regards
I tried to connect mobile HDD, mouse, even pendrive, all with external charger but it never worked. P8 Lite doesn't support OTG.
No one has managed to enable it during last 2,5 year, so I guess it's impossible.
ah, thank you for your reply
Do you know any other device where OTG would be work OK ? I would like to have portable network-diagnosis set (ping, tracert, etc basic tools) in pocket...
I also have BT keyboard.
There is no otg on p8 lite ale. No hardware suport, means no power supply through usb and is disabled in kernel.
.
xysen0 said:
ah, thank you for your reply
Do you know any other device where OTG would be work OK ? I would like to have portable network-diagnosis set (ping, tracert, etc basic tools) in pocket...
I also have BT keyboard.
Click to expand...
Click to collapse
There are a lot of phones that support OTG. Just check any phone spec sites, they usually tell you if a phone supports OTG.
persona78 said:
There is no otg on p8 lite ale. No hardware suport, means no power supply through usb and is disabled in kernel.
.
Click to expand...
Click to collapse
Its enabled in kernel
kosmitchak said:
Its enabled in kernel
Click to expand...
Click to collapse
No, it is not. The files exist in system but is off in kernel by default, i check it.
.
persona78 said:
No, it is not. The files exist in system but is off in kernel by default, i check it.
.
Click to expand...
Click to collapse
He is a kernel developer... I guess he knows better
persona78 said:
No, it is not. The files exist in system but is off in kernel by default, i check it.
.
Click to expand...
Click to collapse
Honor 4C
You know the rest
persona78 said:
No, it is not. The files exist in system but is off in kernel by default, i check it.
.
Click to expand...
Click to collapse
It's actually enabled it Kernel. It's disabled in System software. You can flash the P8 Lite ROM with P8 Lite Kernel on Honor 4C and enable it in systemsoftware and it will work fine. My sister has one and I did that.
Vinnipinni said:
It's actually enabled it Kernel. It's disabled in System software. You can flash the P8 Lite ROM with P8 Lite Kernel on Honor 4C and enable it in systemsoftware and it will work fine. My sister has one and I did that.
Click to expand...
Click to collapse
But honor 4c have a compatible hardware, it give power to usb to activate usb.
I check the p8 lite kernel and in the config file otg was disabled... Weird...
.
persona78 said:
But honor 4c have a compatible hardware, it give power to usb to activate usb.
I check the p8 lite kernel and in the config file otg was disabled... Weird...
.
Click to expand...
Click to collapse
# CONFIG_USB_OTG is not set
^U mean this?
OTG is already enabled:
CONFIG_HUAWEI_USB_OTGSWITCH=y
kosmitchak said:
# CONFIG_USB_OTG is not set
^U mean this?
OTG is already enabled:
CONFIG_HUAWEI_USB_OTGSWITCH=y
Click to expand...
Click to collapse
Yes!
I think is possible to use it but with a Y usb cale.
P8 lite doesn't power up on plug
.
Ah, it looks very optimistic.
You have stated that it needs Y cable - which I have had ordered in last weeks.
So, is there any chance to have OTG working when connecting with another power source with the OTG cable?
I have stock ROM - latest one - with root.
Should I change this, or maybe trying on this one?
reggards
xysen0 said:
Ah, it looks very optimistic.
You have stated that it needs Y cable - which I have had ordered in last weeks.
So, is there any chance to have OTG working when connecting with another power source with the OTG cable?
I have stock ROM - latest one - with root.
Should I change this, or maybe trying on this one?
reggards
Click to expand...
Click to collapse
Phone have All needed files to Power up the OTG, on my other phone (Just 5 Freedom C100) don't have USB host permission (usb.permission. bla bla bla) and it works! All I think this phone is crap!
RootingPro-18 said:
Phone have All needed files to Power up the OTG
Click to expand...
Click to collapse
Those are for honor 4C/X
kosmitchak said:
Those are for honor 4C/X
Click to expand...
Click to collapse
I meant this! (This is from other phone, but there is point)

MIUI8 6.0.1 For Z00ED

Hello everyone
-MIUI8 rom for Z00ED fully working with almost no bug's
-based on lineage 13
-im not the developer so flash it on your own risk
-Download Link:
https://yadi.sk/d/LvX37z4h3M4zQi
Screenshots
https://mega.nz/#F!rdVWmIiL!jMhWkoiO4FRqQkcXcbmYmw
I will test it later
Holyyy. Is this cross compatible to other variants? E.g. Z00T/Z00L
i think it will suit for ZOOL device except screen resolution which ZOOED has 5 inch whereas ZOOL has 5.5 inch
---------- Post added at 01:33 PM ---------- Previous post was at 01:31 PM ----------
Everything is okay except sound quality is poor .. i heard it from users in MIUI forum
eiPeiDweP said:
Holyyy. Is this cross compatible to other variants? E.g. Z00T/Z00L
Click to expand...
Click to collapse
No
eiPeiDweP said:
Holyyy. Is this cross compatible to other variants? E.g. Z00T/Z00L
Click to expand...
Click to collapse
Don't know but no one has tried yet.. http://en.miui.com/thread-504305-1-1.html
Performance and battery are ok and everything seems to work well
AndroidGamer02 said:
Performance and battery are ok and everything seems to work well
Click to expand...
Click to collapse
Did you test it?
abd.haidar.4 said:
Did you test it?
Click to expand...
Click to collapse
Yes, the only bug that I found was Tethering/router, it doesn't send data and WPA protection doesn't work
AndroidGamer02 said:
Yes, the only bug that I found was Tethering/router, it doesn't send data and WPA protection doesn't work
Click to expand...
Click to collapse
Tethering doesn't work at all??
AndroidGamer02 said:
Performance and battery are ok and everything seems to work well
Click to expand...
Click to collapse
may i know which device have u flashed Z00ED or ZOOL ?
heerarana said:
may i know which device have u flashed Z00ED or ZOOL ?
Click to expand...
Click to collapse
Z00ED
AndroidGamer02 said:
Z00ED
Click to expand...
Click to collapse
Okay... can anyone confirm will this support for ZOOL device ?
AndroidGamer02 said:
Z00ED
Click to expand...
Click to collapse
can you post some screenshots ?
heerarana said:
can you post some screenshots ?
Click to expand...
Click to collapse
I removed sim card cause Tethering problem
AndroidGamer02 said:
I removed sim card cause Tethering problem
Click to expand...
Click to collapse
man i flashed the rom and its work Successfully on my phone i didn't face any Tethering problem or any other bug even sound its works good with Dolby
abd.haidar.4 said:
man i flashed the rom and its work Successfully on my phone i didn't face any Tethering problem or any other bug even sound its works good with Dolby
Click to expand...
Click to collapse
Idk, i put WPA protection but on my first phone It say it's open
EDIT: for data send i fixed, didn't notice It was in 2g but for WPA protection still error
i had test this rom in my device ze550kl
Chipset Qualcomm MSM8916 Snapdragon 410
it same with z00ed
and it boot but screen touch not work
we need devs
prowm said:
i had test this rom in my device ze550kl
Chipset Qualcomm MSM8916 Snapdragon 410
it same with z00ed
and it boot but screen touch not work
we need devs
Click to expand...
Click to collapse
Yep, i already said this, screen resolution is difference so any dev will work on this that will be really great. :good:
Gapps !
do i need to flash gapps or just have to flash the downloaded zip file ??? i don't know that much about miui so plz help me out !

Categories

Resources