[ROM] H901-10C Stock Deodexed V. 1.3.1

KOLIOSIS

Senior Member
Jan 17, 2011
2,927
1,345
193
Something happened to my wi-fi tether, did work before with stock/rooted. Not sure if something got deleted or settings changed. I go to activate the hotspot and it's activated on my phone but cannot see it through another device. Figuring it might be the innate hotspot, downloaded foxfi and results in the same thing. Is there a possible fix? If not, I can always restore a twrp back up.

Sent from my LG-H901 using Tapatalk
I tried this both with my current set-up & a restored copy of the De-Odexed ROM new,with everything intact,nothing disabled,out-of box,so to speak,less signed-in to my local WI-FI & setting-up the WI-FI Tether.
Neither are working.
I'll still take this ROM as my daily driver every time & twice on Sunday.
If I need to use WI-FI Tether,I'll just restore my stock-rooted back-up & re-install my De-Odexed ROM Back-up when I'm done tethering.
 
  • Like
Reactions: amoot329

siraltus

Senior Member
Jan 26, 2010
1,997
1,733
133
Confirmed hotspot is busted. I'll take a logcat and look for clues.

---------- Post added at 11:44 ---------- Previous post was at 11:29 ----------

Found the problem. Hotspot starts fine, but fails to initialize the WiFi device:

Code:
E/hostapd (22247): nl80211: Failed to connect to generic netlink (nl)
E/hostapd (22247): Failed to initialize driver 'nl80211'
E/hostapd (22247): hostapd_free_hapd_data: Interface wlan0 wasn't started
This is likely another permissions/context problem (something can't read or execute a file).

@Rydah805, ping me on Hangouts, I need you to check a few SELinux contexts. :)
 
  • Like
Reactions: KOLIOSIS

Rydah

Inactive Recognized Contributor
Oct 4, 2008
5,512
2,084
0
Southern California
Confirmed hotspot is busted. I'll take a logcat and look for clues.

---------- Post added at 11:44 ---------- Previous post was at 11:29 ----------

Found the problem. Hotspot starts fine, but fails to initialize the WiFi device:

Code:
E/hostapd (22247): nl80211: Failed to connect to generic netlink (nl)
E/hostapd (22247): Failed to initialize driver 'nl80211'
E/hostapd (22247): hostapd_free_hapd_data: Interface wlan0 wasn't started
This is likely another permissions/context problem (something can't read or execute a file).

@Rydah805, ping me on Hangouts, I need you to check a few SELinux contexts. :)
Maybe I'll just stick with Set_Sparce_Dat next time, there will never be permission errors with that one. LOL I'll hit you on on Hangouts in a few min.
 
  • Like
Reactions: KOLIOSIS

siraltus

Senior Member
Jan 26, 2010
1,997
1,733
133
Maybe I'll just stick with Set_Sparce_Dat next time, there will never be permission errors with that one. LOL I'll hit you on on Hangouts in a few min.
Yeah, that can be a good idea in the interim. I'm going to restore an odexed ROM backup and parse all the permissions and contexts that your updater-script is setting and compare them to find all the discrepancies. That way we'll have a 100% correct updater-script. But for now the system.img way is probably the safest.
 

siraltus

Senior Member
Jan 26, 2010
1,997
1,733
133
OK, I fixed the HotSpot. :D I'm now looking over the entire updater-script so that we can eliminate all permissions/contexts problems once and for all instead of trying to find them every time we discover something not working. Stay tuned!
 

siraltus

Senior Member
Jan 26, 2010
1,997
1,733
133
OK, I went through the entire updater-script and made about 30ish corrections (give or take) so all the contexts are now the same as on the stock odexed ROM. I sent the updated file to Rydah805, he should be posting a new version soon.

We should be getting no more unexpected gremlins from this point on. :)
 

siraltus

Senior Member
Jan 26, 2010
1,997
1,733
133
Given that Rydah805 is away, I put together an SELinux Context Fix package that will fix Hotspot and all other potential problems caused by incorrect contexts and permissions set on system files. Just flash the attached ZIP in TWRP.

EDIT: Removed.
 
Last edited:

KOLIOSIS

Senior Member
Jan 17, 2011
2,927
1,345
193
Given that Rydah805 is away, I put together an SELinux Context Fix package that will fix Hotspot and all other potential problems caused by incorrect contexts and permissions set on system files. Just flash the attached ZIP in TWRP.
I'm getting an "error 6" while flashing in TWRP & upon reboot,I tried to WI-FI Tether & my other devices still do not "see" it as an available hotspot.
 

siraltus

Senior Member
Jan 26, 2010
1,997
1,733
133
No go,stuck on the LG splashscreen.
Tried it twice,2nd time with a cache/dalvik cache wipe,both times stuck on splashscreen.
Restoring a backup as we speak.
I'm suspecting it's the Google apps in the /system partition causing trouble. I deleted them from my ROM before flashing and have had zero problems.

Flash this: https://onedrive.live.com/redir?resid=FE4478E2ABDFD5FC!1074&authkey=!AKUe8GmHlQHpwI0&ithint=file,zip

It's a debloated and debranded version of the ROM that works 100% on my phone. It has no Google apps and no T-Mobile apps (except Device Unlock). It also contains the SD card write fix, stock LG boot and shutdown animations, no boot sound, stock Android emoji font, and SuperSU v2.46 stable. If this version boots, then we know it's the Google/T-Mobile apps causing the problem.

WARNING: DO NOT WIPE ANYTHING IN TWRP BEFORE FLASHING OR THE FLASH WILL FAIL! Flash directly over your existing ROM. You can flash it over your stock odexed ROM, too.
 
Last edited:

KOLIOSIS

Senior Member
Jan 17, 2011
2,927
1,345
193
I'm suspecting it's the Google apps in the /system partition causing trouble. I deleted them from my ROM before flashing and have had zero problems.

Flash this: https://www.dropbox.com/s/sefsqbmwgw1fda9/H901-10c-Deodexed-Debloated.zip?dl=0

It's a debloated and debranded version of the ROM that works 100% on my phone. It has no Google apps and no T-Mobile apps (except Device Unlock). It also contains the SD card write fix, stock LG boot and shutdown animations, no boot sound, stock Android emoji font, and SuperSU v2.46 stable. If this version boots, then we know it's the Google/T-Mobile apps causing the problem.
Downloading now,will be back on in an hour or so w/results.
Thank you for your efforts/contributions,very much appreciated. :good:
 
  • Like
Reactions: siraltus

siraltus

Senior Member
Jan 26, 2010
1,997
1,733
133
Okay, based on KOLIOXDA's recovery log, I figured what was happening.

DO NOT WIPE ANYTHING IN TWRP before flashing my ZIP, or it will fail. Just install directly over your existing ROM (even stock odexed).
 
Last edited:

KOLIOSIS

Senior Member
Jan 17, 2011
2,927
1,345
193
I'm suspecting it's the Google apps in the /system partition causing trouble. I deleted them from my ROM before flashing and have had zero problems.

Flash this: https://www.dropbox.com/s/sefsqbmwgw1fda9/H901-10c-Deodexed-Debloated.zip?dl=0

It's a debloated and debranded version of the ROM that works 100% on my phone. It has no Google apps and no T-Mobile apps (except Device Unlock). It also contains the SD card write fix, stock LG boot and shutdown animations, no boot sound, stock Android emoji font, and SuperSU v2.46 stable. If this version boots, then we know it's the Google/T-Mobile apps causing the problem.

EDIT: Removed for now. I'll have to look at it some more. Strange, because it works 100% on my phone. Could be a TWRP version problem.
This works & it fixed my WI-FI Hotspot/tethering issues.
For those having the hotspot/tethering issues,I just dirty flashed over the Rydah Deodexed ROM,which is in the OP.
If you wipe Cache/dalvik/System /Data in TWRP before flashing,it's not gonna work,you get a "failed symlink: error code7 in TWRP.

Just have the OP De-Odexed ROM Installed & running, then flash the link siraltus posted & you'll be OK.

https://www.dropbox.com/s/sefsqbmwgw1fda9/H901-10c-Deodexed-Debloated.zip?dl=0
 
Last edited:

TheJesus

Senior Member
Nov 12, 2010
469
324
0
High Point, NC
This works & it fixed my WI-FI Hotspot/tethering issues.
For those having the hotspot/tethering issues,I just dirty flashed over the Rydah Deodexed ROM,which is in the OP.
If you wipe Cache/dalvik/System /Data in TWRP before flashing,it's not gonna work,you get a "failed symlink: error code7 in TWRP.

Just have the OP De-Odexed ROM Installed & running, then flash the link siraltus posted & you'll be OK.

https://www.dropbox.com/s/sefsqbmwgw1fda9/H901-10c-Deodexed-Debloated.zip?dl=0
This method seems to be working so far :good: Was having weird apps cycling through (Drive mostly) constantly, did what you said, seems good now, thanks!
 
  • Like
Reactions: siraltus

siraltus

Senior Member
Jan 26, 2010
1,997
1,733
133
This method seems to be working so far :good: Was having weird apps cycling through (Drive mostly) constantly, did what you said, seems good now, thanks!
Glad to hear! Google apps go nuts if you deodex them. Best is to not have them as system apps, as they will just be a waste of space once you install any updates from the Play Store. That's why I removed them.
 
  • Like
Reactions: KOLIOSIS