yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S II SGH-T989] futures:
Donating devices for education - customizing rom

My family and I have been using the Samsung Galaxy S II X (SGH-T989D) for years. Thanks to folks on XDA and elsewhere for keeping quality devices alive and current. As we upgrade, I've collected all our T989 phones and more - 20 and counting! The phones will be donated to a reputable organization in my community for use in their children's education programs and services. Training recording / playback, educational and fun apps!

Thanks bryan2894 for helping and allowing the use of his ROM as a base. As there is usually more than one way to do things, I would greatly appreciate advice how to customize a rom for this scenario. :highfive:

1. Add / remove apps. Apps would be free educational software from the Play Store so likely in APK format

2. Customize home screen(s), wallpaper, maybe animation

3. Lock home screen(s) shortcuts and layout

4. Goal is for the apps and customizations to be present after a factory reset

5. No setup wizard after factory reset - skip all or as many prompts as possible

The approach I currently intend to try is

- third party launcher to customize and lock layout

- es explorer to move apps to system partition

- twrp nandroid backup and restore to other same model phones

P.S. Moderators feel free to move this post. Posted in a ROM thread to acknowledge and demonstrate how everyone's efforts to support old devices is appreciated and allow continued use of perfectly good devices.
[T-Mobile Samsung Galaxy S II SGH-T989] gregrwm:
great to have a marshmallow rom, thank you, i'm pleased with the responsiveness i usually get. and otoh a bit surprised at the extraordinary lag i sometimes get.

i use autosync, set such that sync only happens when plugged in and on wifi. i use launcher pro, much leaner, and no widgets. no task killers, i presume android will axe background apps as necessary. apps i typically run are adore softphone, vx connectbot, hangouts, calengoo, gmail, waze, and the builtin browser. occasionally i may run terminal emulator, bvnc, freedompop messaging, google maps, or chrome.

what do others experience? would a different rom leave lengthy lags less likely?
[T-Mobile Samsung Galaxy S II SGH-T989] gregrwm:
is sshd tucked in this rom like in cm? if not where would i find an sshd just like the one in cm?
[T-Mobile Samsung Galaxy S II SGH-T989] Milan Patel T989:
hi every one,

i have recently moved to Denmark. Due to internet connection problem with old rom i have installed this rom.i have bought new sim card from Copenhagen airport with internet bundle now my phones show me in roaming mode and my internet connection is not working i have double check with Lyca mobile customer service for the setting they told me that my custom rom might have problem and one more issue when ever i take picture it take first one correctly then camera seem unresponsive dose any one have any solution for that. please help as its my daily driver.
[T-Mobile Samsung Galaxy S II SGH-T989] futures:
Are you using internal memory or Micro SD? I've often had random camera delays ith this model, even with stock ROM. Try another camera software?
[T-Mobile Samsung Galaxy S II SGH-T989] annaaya quratulain:
]Copy the newest version of my TWRP recovery to your device and flash it.

umm how should i do it if there is no data in my internal sd card as i formatted it?should i odin it.or what im dumber than a dumb so plz help im currently on candy 5.:rolleyes:
[T-Mobile Samsung Galaxy S II SGH-T989] gregrwm:
after formatting data you'll need adb or odin or jamiejackson/Heimdall.
[T-Mobile Samsung Galaxy S II SGH-T989] tun.tin:
I just installed this rom and run Stagefright dectector. Here is the results:

CVE-2016-3878

CVE-2016-3879

CVE-2016-3880

CVE-2016-3881

CVE-2016-3899

CVE-2016-3870

CVE-2016-3871

CVE-2016-3872

CVE-2016-3895

CVE-2016-3862

CVE-2016-3920

CVE-2016-3909

CVE-2016-3910

CVE-2016-3913

CVE-2016-3924

CVE-2016-6764

CVE-2016-6765

CVE-2016-6766

CVE-2016-6767

CVE-2016-6773

CVE-2016-3932

CVE-2016-3933

....

Vulnerable

...

Should I worry?

Thanks
[T-Mobile Samsung Galaxy S II SGH-T989] 20nooBRoll16:
Just flashed this ROM on my old SGH T989 a few days ago. Working but a little sluggish sometimes. Thank you XDA developers for giving my old tech new life! :)
[T-Mobile Samsung Galaxy S II SGH-T989] jyaccess:
HI folks,

I really need some help on upgrading to this [ROM][6.0.1][AOSPA] ParanoidAndroid 6.0.3 | Hercules [09-13-16].

I have gone back and forth at least a dozen times between 4.1.2 UVMC6 and this version in the last 4 whole days, but with no luck.

I have installed TWRP 3.0.2 as specified in post#2 of this thread. The phone can downgrade to 4.1.2 UVMC6, by restoring, and works great.

But whenever I upgrade the phone to [ROM][6.0.1][AOSPA] ParanoidAndroid 6.0.3, it stuck in boot loop with the green/white circle looping.

Can someone provide some hints on how to resolve this problem?

Thanks,

---------- Post added at 01:40 AM ---------- Previous post was at 01:34 AM ----------

A bit of clarification -

it stuck in boot loop, green/white circle, if "reboot system" from TWRP. It doesn't boot at all if "cold boot/power" from power-off, though it vibrates when holding the power button.

---------- Post added at 01:54 AM ---------- Previous post was at 01:40 AM ----------

Don't know if this info matters or not,

the "TWRP, go to Wipe -> Advanced Wipe -> check Internal Storage -> press on "Repair or Change File System"" always gives "invalid partition selected", so I do wipe of data/system/cache instead of internal Storage.

I just restored the phone to 4.1.2 again, and it works. 4 days or trials and errors so far and still no luck.

Happy Holidays to you all.
[T-Mobile Samsung Galaxy S II SGH-T989] gregrwm:
You've quoted the part about restoring the original partitioning, good, do that. Then, those instructions mention formatting the internal SDcard to ext4, but they don't clarify using which TWRP. it didn't work for me until i went back to twrp-2.8.4 (or 2.8.5 would probably work too) and, using that, reformatted the internal SDcard to ext4. Then upgrade your recovery. And again it likely matters which. I'm having more luck with cm-14.1 than i had with pa6, and for that you need to use this recovery. And your radio should be SGH-T989_UVMC6_radio.zip.
[T-Mobile Samsung Galaxy S II SGH-T989] jyaccess:
gregrwm,

Thanks,

You were right about TWRP 2.8.4, though I still had to install back and forth a couple of times among TWRP 2.8.4, 2.8.7 and 3.0.2 and ROM 4.1.2 & 6.0.1 to get it installed and reliably boot up.

I'd say it took unreasonable amount of persistence to get here. Hope I won't get disappointed by its features and performance.
[T-Mobile Samsung Galaxy S II SGH-T989] ar_156:
I want to migrate from Candy Six 6.01 r61 to Paranoid ROM, do I have to do something before the official steps? CandySix is a virtually partitioned ROM so it uses TWRP recovery for virtually partitioned ROMs.

Please help
[T-Mobile Samsung Galaxy S II SGH-T989] gregrwm:
Candy6, AOSPA (Paranoid) 6, cm-13, and cm-14.1(.1) are all partitioned the same way. i recommend cm-14.1.1. the most recent recovery formats a new f2fs format for cm-14.1.1, and if you don't use f2fs, should work for any of them.
[T-Mobile Samsung Galaxy S II SGH-T989] ar_156:
So I donÂ´t have to do anything, just wipe to factory and flash the new ROM?
[T-Mobile Samsung Galaxy S II SGH-T989] gregrwm:
there are exceptions, like if your partitions were modified you need to return to original partitioning, or if you use f2fs you need the recovery that matches your rom's kernel, but usually, if you're going from one virtually partitioned rom to another, just factory reset and flash.
[T-Mobile Samsung Galaxy S II SGH-T989] donjuanelguapo:
"Invalid Partition Selection"

I have the latest version of TWRP on my galaxy S2 SGH-T989. I click on Wipe -> Advanced Wipe -> check Internal Storage -> press on "Repair or Change File System. I get "Invalid Partition Selection." What am I doing wrong? Am I supposed to click on "Micro SDcard?"

I did flash the ROM and it seemed to work. However, I let it optimize for over 30 minutes (actually, I'm not sure it actually started to optimize--the alien head just flashed off and on) and it never went to the home page. So, I assume that the ROM didn't flash correctly.

HELP!
[T-Mobile Samsung Galaxy S II SGH-T989] 20nooBRoll16:
Hi donjuanelguapo,

I had a similar experience. This was how I successfully flashed the ROM.

From stock ROM (Jellybean 4.2.)

First I flashed TWRP 2.7.1.0., then boot to recovery. With this I was able to wipe the Internal Storage without the Invalid Partition Selection error. Then I flashed the latest TWRP which was 3.0.2.0., boot to recovery, and then flashed the new ROM and Gapps I saved in the external SD card. Reboot and let it optimize (this part did take a while, maybe 20 minutes for me). Hope this helps.
[T-Mobile Samsung Galaxy S II SGH-T989] donjuanelguapo:
I tried the other day to flash to a lower TWRP but when I rebooted TWRP 3.0.2.0 loaded up and ran. I've looked around on how to go back to a lower version but I can't seem to find any way to do that. So, just flashing the older TWRP ROM did nothing. Any advice on what do to? Thanks!
[T-Mobile Samsung Galaxy S II SGH-T989] 20nooBRoll16:
Looks like you were unsuccessful in flashing to a lower TWRP. I used Odin to flash to a lower TWRP. Unfortunately, being a new member here prevents me from posting outside links. Just google Samsung Odin. There's guidance on how to use it. Hope this helps!
[T-Mobile Samsung Galaxy S II SGH-T989] donjuanelguapo:
Odin doesn't work on a Mac. I've tried using JOdin3 and Heimdall. However, I can't get the $%@!^!^!% pit file. It won't recognize it for some reason. So, I can't use JOdin the way it's supposed to run due to no pit file.
[T-Mobile Samsung Galaxy S II SGH-T989] gregrwm:
can't speak for a mac, but this is how i did it on ubuntu.
[T-Mobile Samsung Galaxy S II SGH-T989] 20nooBRoll16:
Ok. Is your phone stuck on boot loop or not booting up? You're pit file could be corrupted due to an unsuccessful flash to the new ROM. I've noticed that most upgrade guides assume we're starting from a working version of android (4.2 or 4.4 stock or mod). I hope you have it backed up somewhere you can restore from. I had to do that to my phone before I had success upgrading to this ROM.
[T-Mobile Samsung Galaxy S II SGH-T989] ar_156:
Hi, I installed Nougat but it's very unstable, how can I install Paranoid 6.03 from Nougat?
[T-Mobile Samsung Galaxy S II SGH-T989] ar_156:
this is weird, just flashed 6.01, works fine but everytime I plug the charger the softkeys stop working, if I touch the screen the softkeys light on but doesn't respond the touch
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
Aospa 7.1.3 - 06-16-17

AOSPA 7.x is finally available. This is based on Android 7.1.2 Nougat. Unfortunately, major AOSPA features like Pie and the Color Engine aren't open-sourced yet, so those features aren't yet available. Some other major features of the ROM are listed below. Root is also not included, so you'll need to flash an addon like Magisk in order to get root.

Features:

Major features

Immersive mode

Buttons customization (including navigation bar)

On the spot controls (OTS)

Other features

SafetyNet Compatibility

Recent tasks locking

Battery icon customization

Google now page in default launcher

Substratum support

Quick pulldown

Display Burn-in protection (for OLED screens)

ROM: https://www.androidfilehost.com/?w=files&flid=191295

Root (Magisk v13.0 (96f8efc)): https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589

GApps: http://opengapps.org/
[T-Mobile Samsung Galaxy S II SGH-T989] aasoror:
Thanks for this build bryan, initial clean flashing with nano gapps went on ok.

Unfortunately camera app is always crashing with a "can't connect to camera" message, is that a known issue ?

Thanks again.

edit: tried few 3rd party apps, they all fail to connect to the camera and all give errors trying to access default storage location (/storage/emulated/0/DCIM ?) odd as the screenshot folder next to it seems to be working fine (though is accessed by system app) !!

edit 2: trying to download files from the web browsers results in "insert SD card" message. ES File Explorer can't create/access anything under local storage either.

edit 3: connecting the phone to my PC via USB and switching to file transfer mode (see picture) returns a message about "failure to lock camera" (on the PC) (see picture) though both internal and external storage are mounted with RW permissions on the PC (while internal storage can be written into correctly, any attempts to write to external storage over USB fails with "unexpected error").

I have followed the virtual partitioning instructions and my storage shows a 14GB of shared storage, also have an mSD card installed and set for media (attached picture). I think this might be a permission issue, tried to fix internal storage from TWRP (wipe) but got "invalid partition selection" when internal storage is selected, also can't mount partition over USB from TWRP (just get the select partition menu and thats it) !

edit 4: after several retries to rule out problematic setup/media with the same results I switched to latest LineageOS 14.1 with the same opengapps and it worked without an issue (first boot took way longer though). Too bad I did like how slick and snappy the AOSPA 7+ build was :(, regardless at least I now know there is nothing physically wrong with the set.

Thanks [MENTION=2107489]bryan2894[/MENTION] for both builds :)
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
Camera is still broken. I'm trying to figure that out. For storage, until the next build is released you can edit /system/build.prop and set "ro.sys.sdcardfs" to false. That should fix storage.
[T-Mobile Samsung Galaxy S II SGH-T989] Z0N3D:
Got the Camera Working Yet?
[T-Mobile Samsung Galaxy S II SGH-T989] AsgardLord:
Gapps applications fail to start rom, forced closure T989 hercules.
[T-Mobile Samsung Galaxy S II SGH-T989] Elmostreet:
is there a possibility that the camera can be fixed? I'm rooting on it. Please do. Thank you.
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
Not likely. I've tried to fix it multiple times without any success.
[T-Mobile Samsung Galaxy S II SGH-T989] Hellblazer Constantine:
a little problem

Hello, I have this little phone and decided to put the rom of aospa everything works great the only problem that I find is that I can not download anything, neither from the browser neither from whatsapp nor from zedge, it is as if the applications did not have the permission to access the storage, I already did the distribution with ext4 and extended the space of installation of applications but I do not fix the downloads, what can I do?

in summary I can not download anything from any application (except google play) all apps tell me "download error"

Regards!! :D:D
[T-Mobile Samsung Galaxy S II SGH-T989] droiduzr2:
[MENTION=2107489]bryan2894[/MENTION] Is the camera still broken?

Is it possible to use the camera info from LOS or from the Skyrocket roms?

Is there another phone that is similar to this (using the same camera).

What about the Samsung Infuse?

Just some ideas, as I would like to download this rom.

thanks
[T-Mobile Samsung Galaxy S II SGH-T989] speeddevil4u.rm@gmail.com:
This Can Not Be Done

The reason i say it can't be done is: I tried it .. But I have found a way to re-partion internal storage and its easy.

1. Download TWRP 3.0.2.0

2. Flash TWRP Recovery 3.0.2.0

3. After flash succeeds , boot back into recovery. (TWRP 3.0.2.0) then go to WIPE/advanced wipe..click DATA , click "repair/change" file system // then change file system to external 4. Flash your new rom and now USB storage will become all Internal Storage . It gave me 11.3 gb of internal storage. Dont know what happen to the other 2 gb but who cares , I got 11 . If you install marshmallow rom , you will still get to format your external storage as internal or adoptable .. Its just like any other file system .
[T-Mobile Samsung Galaxy S II SGH-T989] hamyemoxy2:
hey bryan this rom rocks but im facing some issues after i flash your custom rom i lost root and no matter what i cant root again. i tried to flash su zip in twrp after that my device doesnt boot and stuck at aosp animation and kingoroot pc stuck root at 70% then device reboots also tried iroot it says sgh t989 cant be root permenantly . flash rom again but it has no root access i also tried your paranoid 6.0.1 but same result. sorry for my bad english .
[T-Mobile Samsung Galaxy S II SGH-T989] futures:
I'm sure you no longer need help with this a whole year and a half later. Besides there's much more pressing concerns. That said... as I couldn't help notice you also used your very first post.. for help on an old phone. I guess you probably joined XDA for this reason... yet you seem to be savvy enough.

My suggestion, for what its worth is.. if ever encountering issues with a custom ROM.. reset back to the factory OEM Samsung ROM.. make sure the device works as expected.. before trying another custom ROM.. ParanoidAndroid was one of the last good roms.. I also suggest trying Bryan's other T989 based on Lineage... pair with a matching NANO GAPP... and only install apps from the play store you absolutely need.
[T-Mobile Samsung Galaxy S II SGH-T989] :
Just wondering if this halo is the same as the PA you tube video? It doesn't seem to do a lot, other than shortcut to the app it pops a notification for. Also its not doing anything when I get a text. So far its only showing repeats of system messages, like when titanium backup finishes a task.

And when I click it and drag it down, its always opening a cropped screen of GSAM. Lol

:)

Sent from my cell phone telephone....
[T-Mobile Samsung Galaxy S II SGH-T989] KorGuy123:
It's identical to the video.

You can black list the unwanted notifications (not the system stuff though) make sure you clear any unwanted notifications tap once and swipe up.
[T-Mobile Samsung Galaxy S II SGH-T989] :
I figured out gsam running with an icon in top left screws up halo. I imagine that may be true for any app that runs and shows up in notification panel. Like gsam does. I'll try to figure out the blacklist and hopefully it'll ignore gsam. Wonder if alarm clock extreme will do the same to halo.

Thanks!!

Sent from my cell phone telephone....
[T-Mobile Samsung Galaxy S II SGH-T989] :
I actually blacklisted gsam, and still if I tap and pull down halo ring, gsam opens.

Sent from my cell phone telephone....
[T-Mobile Samsung Galaxy S II SGH-T989] Chosen_on184:
So no one is having issues with Bluetooth,

Specifically i went into settings to turn it on and flipping the switch to on and it just flips back off ,, IT won't stay on ..Anyone else have this issue ?
[T-Mobile Samsung Galaxy S II SGH-T989] sd1esel:
I don't use BT, but I did turn it on and it stayed on. I would suggest running fix permission.
[T-Mobile Samsung Galaxy S II SGH-T989] suaverc118:
I agree with this method also.
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
New update posted. Kernel now includes BLN thanks to Cl3Kener and OTA updates available via OTAPlatform or GooManager
[T-Mobile Samsung Galaxy S II SGH-T989] KorGuy123:
Downloading right now for my wife.

Any idea is the kernel changes will help the freezing that some of us have been seeing?
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
I haven't really had any freezing issues. When does it happen?
[T-Mobile Samsung Galaxy S II SGH-T989] :
Me neither, running smooth after 30 hours....all kinds of app dpi playing too. ;)

Sent from my cell phone telephone....
[T-Mobile Samsung Galaxy S II SGH-T989] KorGuy123:
Manually installing programs through playstore and restoring them with Titanium Backup

I'll flash the latest and try to get a logcat for you

I know there is no fixing or diagnosing without the proper information.
[T-Mobile Samsung Galaxy S II SGH-T989] danishdish:
Downloading now whilst on department store WiFi. \m/
[T-Mobile Samsung Galaxy S II SGH-T989] JesusWazBlack:
This is a known bug with halo. Turn halo off before installing any apps.
[T-Mobile Samsung Galaxy S II SGH-T989] KorGuy123:
A) Halo was off.

B) Halo prevents programs from being installed not locking up the entire phone.
[T-Mobile Samsung Galaxy S II SGH-T989] JesusWazBlack:
I'm not having that issue..... Try fixing permissions and wiping dalvik+ cache
[T-Mobile Samsung Galaxy S II SGH-T989] KorGuy123:
Unfortunately I've done that already.

I'm just about to flash the latest release on my wife's phone so I can test the new kernel changes and/or pull a logcat for the dev.
[T-Mobile Samsung Galaxy S II SGH-T989] sd1esel:
I did the same thing, but twice. So far it's smooth. I did wipe cache, dalvik, permissions; in that order.
[T-Mobile Samsung Galaxy S II SGH-T989] jmelvin:
I have been having this exact same issue with CM10.1, AOSPA and PAC roms. I chocked it up to a bug with 4.2.2. I just reboot and things go back to normal.
[T-Mobile Samsung Galaxy S II SGH-T989] danishdish:
Nice ROM. Took me a while to figure out the resizing the DPI . just not used to that, but I like it.
[T-Mobile Samsung Galaxy S II SGH-T989] crazylegs90:
Status bar disappeared tried restarting and changing apex settings just gone any fixes??
[T-Mobile Samsung Galaxy S II SGH-T989] sd1esel:
This happened to me too and I was so frustrated until I found the solution. What I did was long press power button and select (Pie) to disable.
[T-Mobile Samsung Galaxy S II SGH-T989] -DarkKnight-:
I'm using this ROM, I love it, but one thing:

When I'm in homescreen, I click messaging, I see this white bar on top of messeging(during the animation)

anyone see this? My previous ROM(CM10.1, did not have this)
[T-Mobile Samsung Galaxy S II SGH-T989] Koragg618:
That happens because of the status bar changing colour. On the home screen the status bar is transparent, so the app just goes through it, that's why you see it

Hope this helps :)
[T-Mobile Samsung Galaxy S II SGH-T989] danishdish:
I don't know what I did, but my status bar is gone, which is fine, and now I am getting addicted to pie. Ooh, yummy.
[T-Mobile Samsung Galaxy S II SGH-T989] gary93:
It'd be nice if there's kill all button in recent app and hold back to kill task. Btw does having halo on consume more juice?

message from the main
[T-Mobile Samsung Galaxy S II SGH-T989] soccerfan6789:
Halo doesn't really take the much battery. I couldn't notice any difference with or without halo.
[T-Mobile Samsung Galaxy S II SGH-T989] -DarkKnight-:
How do I prevent/avoid this?
[T-Mobile Samsung Galaxy S II SGH-T989] KorGuy123:
There is a kill all button on pie (basic pie and full pie)
[T-Mobile Samsung Galaxy S II SGH-T989] suaverc118:
Maybe I'm dumb and most likely I am, but where is the option to kill running apps? Like when you press the home button you have all the apps that were open and you could kill them all. Now I slide them one by one. Thanks
[T-Mobile Samsung Galaxy S II SGH-T989] krazierokz:
can you see the three little over lapped rectangles when you hold home ??
[T-Mobile Samsung Galaxy S II SGH-T989] Koragg618:
Turn you status bar colour for your home screen to black and it should be gone
[T-Mobile Samsung Galaxy S II SGH-T989] suaverc118:
Nope...
[T-Mobile Samsung Galaxy S II SGH-T989] -DarkKnight-:
I did that and its still happening ;(
[T-Mobile Samsung Galaxy S II SGH-T989] new ion?:
Its your default thats set to clear. Change status bar in messaging to black.

This ROM is all about playing with it and experimenting. Have fun!
[T-Mobile Samsung Galaxy S II SGH-T989] krazierokz:
[MENTION=223789]Suave[/MENTION] do you have the recent ram in the custom rom settings I'm pretty sure it should have it :confused:
[T-Mobile Samsung Galaxy S II SGH-T989] bryan2894:
Paranoid Android doesn't have that button up there, I believe because the ROM was meant for Nexus devices which have that button on the navigation bar.

I'll look into adding it and the long press back to kill option.
[T-Mobile Samsung Galaxy S II SGH-T989] Koragg618:
Yeah what he said basically. I used the PA Colors option. After that I tried the black status nar for my launcher and that problem wasn't there