FORUMS

Which OEM Would You Like to Help?

Most manufacturers have moments of greatness and moments of decadence, and in the past few years … more

Root T-Mobile S6/Edge on 5.1.1 Without Tripping Knox

If you purchase phones from a carrier, you may be no stranger to the difficulties … more

IonVR Coming Soon, HTC M9 Dev Edition Gets Android 5.1 – XDA TV

The HTC M9 Developer Edition has received Android 5.1. That and … more

Android 5.1.1 Omni ROM For Motorola Xoom

Back in Feb 2011, the Motorola Xoom became the first device to be sold with Android 3.0 … more

[ROM][AOSP] S4 Google Edition [SafeStrap]

57 posts
Thanks Meter: 132
 
Post Reply Subscribe to Thread Email Thread
Hi all,

After discovering the terrible mistake I made buying an AT&T S4 with a non-unlockable bootloader, I looked for any way to run an AOSP/GPE rom on this phone with Safestrap. It looks like I've finally gotten it into a decent state for my personal use so I thought I'd share.

The ROM is based on [AOSP] Official 4.4.3 - S4 Google Edition - Final-R2.0 and nearly all of the credit goes to them for making a GPE rom that actually boots with our kernel. The only changes I've made are ripping out the kernel for safestrap, installing a wrapper script for the sdcard binary, and some post_boot init script additions to properly load the WiFi module. For wifi to work, you need your stock kernel's modules installed after the ROM, specifically dhd.ko, to /system/lib/modules.

If you'd like to enable Nexus-style software buttons and disable the hardware capacitive buttons, see this thread for instructions: http://forum.xda-developers.com/show....php?t=2032117. You can disable the capacitive button lights with GravityBox.

Warning:
Do NOT take OTA updates with this rom. Doing so could break the rom, or in the worst case trip Knox, which would void your warranty. I'll do my best to update the rom to the latest version as soon as possible.

What works:
Internal/external storage
WiFi (may not come up every boot, a soft reboot usually fixes)
USB debugging
USB internet tethering
Paid apps from Play Store (see workaround below)
Chrome (see workaround below)
Google Earth (remove from /system/app and reinstall from Play store)
IPv6 APN (for compatible carriers such as T-Mobile)
Almost everything else

In progress:
WiFi Tethering (see: http://forum.xda-developers.com/show...&postcount=662)

What doesn't work:
USB MTP (due to kernel differences)

AT&T Install Instructions:
http://forum.xda-developers.com/show...php?p=53758259

Verizon Install Instructions:
http://forum.xda-developers.com/gala...ition-t2817708

Download:
4.4.3: https://drive.google.com/file/d/0ByC...XFTdnpYSmxyZHM
4.4.3: https://www.dropbox.com/s/v59aak1j3f...strap.zip?dl=0 (Mirror)

Update:
4.4.4: https://drive.google.com/file/d/0ByC...E02ZlJRQkgxTWM (requires 4.4.3)
4.4.4: https://www.dropbox.com/s/z57whcu44y...pdate.zip?dl=0 (Mirror)

Lollipop/5.0:
The 5.0.0 OTA for the real S4 GPE came out today, so I tried adapting it like the 4.4.4 update. Unfortunately and not surprisingly, it failed to boot. This probably means we need to wait for AT&T's 5.0 TW update to get a compatible kernel to make 5.0 GPE work

FAQ:
WiFi isn't working: Do a soft reset with the GravityBox Power Menu or the Xposed Installer.

USB Transfer not working: Use Airdroid, FTPServer, or adb push/pull.

Paid apps won't install: See workaround below.

Chrome force closes on new tab: See workaround below.

Paid Apps & Chrome Workaround:
Install SELinux Mode Changer and set SELinux to permissive.
Last edited by jmsq; 28th February 2015 at 05:16 AM. Reason: lollipop info
The Following 61 Users Say Thank You to jmsq For This Useful Post: [ View ]
 
 
30th May 2014, 05:02 AM |#2  
Senior Member
Flag cville
Thanks Meter: 47
 
More
Thanks
30th May 2014, 01:28 PM |#3  
netomel's Avatar
Senior Member
Thanks Meter: 115
 
Donate to Me
More
Quote:
Originally Posted by jmsq

Hi all,

After discovering the terrible mistake I made buying an AT&T S4 with a non-unlockable bootloader, I looked for any way to run an AOSP/GPE rom on this phone with Safestrap. It looks like I've finally gotten it into a decent state for my personal use so I thought I'd share.

The ROM is based on [AOSP] Official 4.4.2 - S4 Google Edition - Final-R1.2 and nearly all of the credit goes to them for making a GPE rom that actually boots with our kernel. The only changes I've made are ripping out the kernel for safestrap, installing a wrapper script for the sdcard binary, and some post_boot init script additions to properly load the WiFi module.

What works:
Internal/external storage
WiFi
Almost everything else

What doesn't work:
Chrome
USB MTP (debugging does work though)
Some apps fail to install from the Play store

I apologize that this is in the wrong category but I don't post often so I can't post to the dev section.

Download:
https://drive.google.com/file/d/0ByC...XA2dW1naGtsR2s

You know more than I do. Is it really AOSP because devs here say it's imposible to flash any rom besides TW based roms on our phones due to the boot loader issue.

Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
30th May 2014, 02:51 PM |#4  
DeadlySin9's Avatar
Senior Member
Thanks Meter: 681
 
Donate to Me
More
Quote:
Originally Posted by netomel

You know more than I do. Is it really AOSP because devs here say it's imposible to flash any rom besides TW based roms on our phones due to the boot loader issue.

Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app

It's been known that GPE ROMs will boot on our stock kernel. It just never entirely worked right, with no Wi-Fi and USB and other issues. While on MF3 you could boot one, on MK2 you couldn't run 4.3 GPE however, and certain 4.4.2 GPE has "worked" with those issues. This is because they are built with a kernel close to stock. So basically, GPE's are an exception but require extra development that nobody really wanted to take on until now apparently.

Sent from my SGH-I337 running Light ROM
The Following User Says Thank You to DeadlySin9 For This Useful Post: [ View ]
30th May 2014, 04:17 PM |#5  
Junior Member
Thanks Meter: 5
 
More
Talking
Really cool! it boots great on my safestrap Verizon s4!! @jmsq can you rebuild latest verizon GE to make it works with safestrap? from this thread http://forum.xda-developers.com/show....php?t=2643031 or another AOSP rom? Thanks for your work

Edit: after first reboot wifi doesn't works
Last edited by Penz89; 30th May 2014 at 05:52 PM.
30th May 2014, 06:04 PM |#6  
Senior Member
Flag Baton Rouge
Thanks Meter: 36
 
More
Boots us fine. Working well so far.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-05-30-11-46-02.jpg
Views:	3713
Size:	71.1 KB
ID:	2771487   Click image for larger version

Name:	Screenshot_2014-05-30-11-45-32.jpg
Views:	3575
Size:	107.5 KB
ID:	2771488   Click image for larger version

Name:	Screenshot_2014-05-30-11-42-18.jpg
Views:	3663
Size:	154.0 KB
ID:	2771489   Click image for larger version

Name:	Screenshot_2014-05-30-11-41-42.jpg
Views:	3610
Size:	100.7 KB
ID:	2771490  
30th May 2014, 07:18 PM |#7  
Junior Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by Thr33-F0ur

Boots us fine. Working well so far.

so does your wifi works after a reboot?
30th May 2014, 09:18 PM |#8  
Senior Member
Flag Baton Rouge
Thanks Meter: 36
 
More
Quote:
Originally Posted by Penz89

so does your wifi works after a reboot?

I just tried to flash SuperSU to get root, and wifi was broken, so I guess the reboot did it.
30th May 2014, 10:52 PM |#9  
Rhymey's Avatar
Member
Thanks Meter: 12
 
More
Does this already have root, or should I flash SuperSU while I'm flashing this? Any issues with dirty flashing or should I do a nandroid backup and wipe?

Also, for anyone having WiFi issues, probably try flashing this: NC1 wifi modules. No idea on any fixes for MTP, which is unfortunate as I use MTP a lot
30th May 2014, 11:19 PM |#10  
Senior Member
Flag Baton Rouge
Thanks Meter: 36
 
More
Quote:
Originally Posted by Rhymey

Does this already have root, or should I flash SuperSU while I'm flashing this? Any issues with dirty flashing or should I do a nandroid backup and wipe?

Also, for anyone having WiFi issues, probably try flashing this: NC1 wifi modules. No idea on any fixes for MTP, which is unfortunate as I use MTP a lot

You have to flash SuperSU. I haven't tried a dirty flash since I was coming from 4.3.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes