• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [ROM][UNOFFICIAL] Lineage 15.1 for J7 Prime SM-G610F

Lineage 15.1 for J7 Prime SM-G610F

This isn't technically my original creation, I just made a newer build of something someone else already started but has since given up on. Either way though I figured I'd mirror it here so it can reach a wider audience. This is Lineage 15.1 for the J7 Prime, SM-G610F variant. If you try to flash this on something else that's not the SM-G610F variant you'll probably have a bad time

As always I am not responsible for what you choose to do to your own phone. Flashing mods like this may void your warranty. Don't come breaking down my door at 2AM if flashing this causes some problem on your device

Please note too that I don't actually own this phone, this was a blind build by me for a friend that has this. I was just going to give him the updated ROM zip but then I figured I'd post it up here for anyone else that wants to use it as well. So be warned that I can't actually test & confirm this works myself (and my friend hasn't flashed it yet either as of me writing this message) so I can't say for certain that it'll work. I'm 99.99% sure it'll work though and I have no reason to BELIEVE it won't, I just can't say for certain yet until him or someone else lets me know

WHAT WORKS:
  • Should be pretty much everything (going off the old ROM build by the original creator)
WHAT DOESN'T WORK:
  • My friend that used the old build told me before that his phone would sometimes best up and apps that shouldn't be slow were really slow (Reddit and Clash Royale namely). But again those were from the old original builds, hopefully this upstreamed one I made is better and fixes some stuff
  • You tell me, since I don't actually have the phone myself
SOURCE CODE:
ROM DOWNLOAD:
SPECIAL THANKS TO:
  • Lineage OS for being there for you, even when the rain starts to pour
  • Everyone in that Exynos7870 github group, because making functioning trees for an exynos chipset is no easy task... yet they actually pulled it off!
  • XDA user DarkLord1731. Again, these builds were originally his, but his last build was from December of last year. By this point I can reasonably assume he has moved onto newer projects (it looks like he's working on Lineage 16 for this phone now, check it out here) and won't be making builds of this anymore--therefore I took the source and made my own version of his original idea, albeit with newer security patches and upstream fixes. Give him the credit for the original idea. He very clearly did this first, he deserves all the real credit!!!!

How to show heads-up notification on Android 7 and older in Kotlin?

I am creating a messaging app and I need to show heads-up notifications on Android 7 and older up to Android 5.

I have created FirebaseMessagingService together with NotificationChannel to show notifications for Android 8 and higher and it works well with heads-up notifications. On Android 7 FirebaseMessagingService onMessageReceived method doesn't work when the app is in the background. So I've decided to use the BroadcastReceiver to show heads-up notifications and now the heads-up notification is shown on Android 7 for several seconds and then it stays in the drawer together with a normal notification. I even commented out FirebaseMessagingService but still get the ordinary notification together with the heads-up notification. I have a feeling that there is another way of implementing this.

3IBc9.png


Here is my code:

MyFirebaseMessagingService file:

Java:
class MyFirebaseMessagingService : FirebaseMessagingService() {

override fun onMessageReceived(remoteMessage: RemoteMessage) {
//      if (remoteMessage.notification !=null) {
//      showNotification(remoteMessage.notification?.title, remoteMessage.notification?.body)
//      }

}
fun showNotification(title: String?, body: String?, context: Context) {

        val intent = Intent(context, SearchActivity::class.java).apply {
            flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
        }
        val pendingIntent = PendingIntent.getActivity(context, 0, intent,
            PendingIntent.FLAG_UPDATE_CURRENT)
        val soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)
        val notificationBuilder = NotificationCompat.Builder(context, "my_channel_id_01").apply {
            setSmallIcon(R.drawable.my_friends_room_logo)
            setContentTitle(title)
            setContentText(body)
            setSound(soundUri)
            setDefaults(DEFAULT_ALL)
            setTimeoutAfter(2000)
            setPriority(PRIORITY_HIGH)
            setVibrate(LongArray(0))
        }
        val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
        notificationManager.notify(0, notificationBuilder.build())
    }

Calling the showNotification() from FirebaseBackgroundService file:

Java:
class FirebaseBackgroundService : BroadcastReceiver() {

    var myFirebaseMessagingService = MyFirebaseMessagingService()
    var notificationtitle: Any? = ""
    var notificationbody: Any? = ""

    override fun onReceive(context: Context, intent: Intent) {

       if (intent.extras != null) {
            for (key in intent.extras!!.keySet()) {
                val value = intent.extras!!.get(key)
                Log.e("FirebaseDataReceiver", "Key: $key Value: $value")
                if (key.equals("gcm.notification.title", ignoreCase = true) && value != null) {

                    notificationtitle = value
                }

                if (key.equals("gcm.notification.body", ignoreCase = true) && value != null) {

                    notificationbody = value
                }

            }
            myFirebaseMessagingService.showNotification(notificationtitle as String, notificationbody as String, context)
       }
    }
}

My JSON looks like this:

Code:
{
"to" : "some-id",
  "priority":"high",

"notification" : {
     "body" : "Body of Your Notification",
     "title": "Title of Your Notification",
     "content_available" : true,
     "sound": "sound1.mp3",

     "click_action" : "chat"
},
"data": {
     "uid"  : "yOMX4OagvgXEl4w4l78F7SlqzKr2",
     "method" : "chat",
     "android_channel_id": "1"
   }
}

String definition error

Java:
public String SolicitudServidor(final Activity activity, final String Type, final String Name, final String Surname, final String Username, final String Password){
    String URL, Response;
    if(Type.equals("Register")){
        URL="http://web-androidapp.000webhostapp.com/androidapp/registerUser.php?name="+Name.replaceAll(" ", "%20")+"&surname="+Surname.replaceAll(" ", "%20")+"&username="+Username+"&password="+Password;
    }else if(Type.equals("Check")){
        URL="http://web-androidapp.000webhostapp.com/androidapp/CheckUser.php?username="+Username;
    }
    StringRequest stringRequest=new StringRequest(Request.Method.POST, URL, new Response.Listener<String>() {
        @Override
        public void onResponse(String response) {
            try{
                JSONObject jsonObject=new JSONObject(response);
                Response=jsonObject.getString("Ok");
            }catch (JSONException e){
                e.printStackTrace();
                MostrarPopUp("Error", activity);
            }
        }
    },
            new Response.ErrorListener(){
                @Override
                public void onErrorResponse(VolleyError error){
                    MostrarPopUp("Error", activity);
                }
            });
    RequestQueue requestQueue= Volley.newRequestQueue(activity);
    requestQueue.add(stringRequest);
    return Response;
}

I'm getting an error when using the URL and Response variables. Cannot resolve symbol 'URL' or 'Response'. If I define the variable as final String it appears: Variable 'URL' or 'Response' might not have been initialized.

[ROM]-v9.0 GamerROM Eclipse v1.00 for the Xiaomi Redmi Note 5 (whyred) BETA Released: 05/20/2019!

redmi-note-5-black-2_orig.png

Welcome to

GamerROM ECLIPSE
for the Xiaomi Redmi Note 5 (whyred).


Before we get started i do want to thank MyCats for requesting this port to the Xiaomi Redmi Note 5 and for his source code, without his source code this build would be impossible to make be sure to thank him as well! and all his source code links are at the bottom of this thread!

Let's talk about features most people love having an OS that is fast, lite and makes gaming alot easier without loss of battery life and throttling!

Features:

* Dedicated FM Radio Service (Listen to any radio station world wide on the go).

* Block those pesky ads away with AdAway

* LineageOS 16.0 su binary auto installs when you flash the OS so you can start using your root apps immediately.

* View your PDF files on the go with google's new PDF viewer.

* Get access to instant rewards with Google Rewards Opinions app and earn free play store credit by answering google surveys.

* Built for gaming and daily tasks without slowing down.

* Old Style browser with develop[er settings for devs who want to debug their websites!

and much more.

Known Bugs:

Not sure i personally don't own the device so it's reliant on the community to report them!

Notices:

* Ensure you have an unlocked bootloader

* Ensure your device(s) custom recovery supports flashing ROM(s) LineageOS 16.0+ otherwise you will receive an install error (we recommend using TWRP to flash this OS but is optional).

* If your device supports encryption or is encrypted such as what you see in the nexus 6 where you have to decrypt the nexus 6 in order to boot Android Pie then you should do that 1st before continuing, but if your device isn't encrypted or supports device encryption witch is on by default by the manufacture then you don't have to worry about this part of the notice board this is just to explain if this device has the encryption feature!

* Ensure your system radio, bootloader etc is fully up-to-date before installing to get the best connectivity with ctOS(R)Network Severs and cellular connectivity!

DAMAGES NOTICE: as a developer sometimes in development things go not as planned so ensure you backup your data, as "Cyberdev" is not responsible of any kind of damages occur during the installation or use of this OS, DO NOT REPORT BUGS if you altered the OS in a way where we haven't implemented ourselves. We will ignore and not fix your problem.

GAPPS Notice: Gapps do not affect the the system applications built in GamerROM Eclipse, however we HIGHLY RECOMMEND you not to install gapps beyond the "Full" packages as it will either create duplicate apps or remove important apps this also counts as modifying the OS beyond what we implemented and the full package will not remove any current apps built-in!

OS Released on date: 05/20/2019

Version: v1.00

Download: https://play.google.com/store/apps/details?id=com.gamerrom.downloader

Thanks to MyCats for the source code view below his source code below:

MyCats Device Tree: https://github.com/MyCats/android_device_xiaomi_whyred

MyCats Kernel SRC: https://github.com/GuaiYiHu/android_kernel_xiaomi_whyred

MyCats Vendor SRC: https://github.com/GuaiYiHu/android_vendor_xiaomi_whyred

My Mediacom PhonePad Duo can't factory reset

So I was given this tablet by my parents and I can't seem to access it, someone wiped the eMMC before and now it requires a google account that was previously used. How do I factory reset it? I tried holding down the power volume down button and power button but it only gave me the options listed below:
Auto Test
Manual Test
Item Test
Test Report
Debug test
Clear eMMC
Version
Reboot

No factory reset/wipe option.

Move to sd

The playstore is full of apps that move things to sd card. How many of them actually work (without root)? I would love to root this S5 but for now it's unlikely. I just want to move everything I possibly can from phone storage to sd. After all, the S5's got only 16 gb, but it's still better than 8.

Action Launcher change color notification bar

1.
The top row (aka "Notification Bar") background is much too dark to see the icons. I new to Android and Action Launcher, and I can't figure out how to resolve this by:

A. Making the icons white instead of black, or
B. Lightening the background (I think I figured out that the Action Launcher setting for "Status Bar" controls the "Notification Bar" shading, but the only options it offers me are black and a dark gray that doesn't contrast enough with black icons.)

I'm also confused by that while the "Notification Bar" background is too dark with nothing open, if I open, say, Settings for Action Launcher or Android then the "Notification Bar" background lightens up significantly and acceptably.

2.
Oh, and speaking of the Settings screen backgrounds for Action Launcher and Android, is there some way to make them darker (or am I stuck with white)?

I've got Android 9 on Moto G7 with Action Launcher 40.1

Huawei and Honor phones. Buy? / Don't buy!?

Is this a bad time to buy (or own or just have purchased) a Huawei or Honor phone.

Will prices drop dramatically?

Is Google getting ready to completely say bye bye to Huawei, or stopping updates is the most they can do?

Should someone be warning people about investing in a Huawei phone?

Is it just the same here in the UK now as in the States?

Is it not so bad at all?

If you fail to answer every question my butt might hurt :p

I need a phone as the one I have is heading for life support.

I like their phones, their low mid range phones are where I would head.

I also like Motorola and Nokia, but the G7 Plus I'm getting meh about, the Nokia 7 Plus would have been for me, but they sold out at a great £200, and I'm looking at the Nokia 8.1 down to 269 ish.

Lots of Huawei and Honor to chose from, but this Google news is bad, huh?

Power on when charging but only when battery level is greater than 20%

I have recently tried to fit a tablet into my car and I came across a problem with waking up the device without using the power button.
My solution is to boot the device whenever it is charging, but I have noticed that when the battery level is at 0%, the device boots and then immediately shuts down.
I have used this adb option to trigger this behavior:

fastboot oem off-mode-charge 0

However this boots the phone without checking the battery level and as I said -
if the battery is dead, the phone (or rather a tablet- Nexus 7 2012) turns off immediately -
it drains the battery faster that I'm able to charge it. Is there any way to make the tablet boot only if the battery level is greater than, say, 20%?

App for automatically switching on/off a SIM card

Hi there,

I am new to the forum and wanted some advice on Android apps. I hope someone will respond.

Is there any Android 8.0 application to automatically switch off the SIM at night and switch it on in the morning. I will be delighted to use such an app (I keep receiving phone calls in the night and at times forget to switch of the SIM). If not, is there any way to do so otherwise?

Looking forward to your response.

Thanks and Regards,
Arvind Gupta

How to open Class R in new Android Studio?

Hello. In new Android Studio structure of files is different than in lessons and books. I can't find and open class R.In books tells only one file R but I have many R files and can open them only use file explover nautilus (ubuntu). What file is right and how to open it inside dialog window in Android Studio?
Sorry for mistakes in text. I'm not a native speaker.

Attachments

  • 1.png
    1.png
    33.5 KB · Views: 94

send HDMI CEC Command

How to send the HDMI CEC Commands from rooted Android TV Box to connected TV to switch the input sources and also to adjust the volume?

Searched lot of android source code related to TVInputFrameWork Service and Hdmicec Service packages but it not able to integrate inside the App. If we used the sample google TVInputFrame still it throws Permission Error


Someone mentioned feasibility of JNI for HDMI CEC but we can't integrate the JNI with given libcec.h file as specified in it. Can anyone please help with any sample integration for the Android LibCEC integration in the Rooted Android Device.


Tried the Shell command but it was not working


Is there any shell commands to send the HDMI-CEC Command?

Can anyone please share the steps/ clear documentation to send the HDMI-CEC Command .

How To Fix Note9 Opening Things On Its Own?

Hi! So, I've had my Note9 for I'd say almost a year and just a few months ago I've started having this problem.

My Note9 will randomly open and do things. As I'm typing this, Google Assistant keeps popping up at the bottom of my screen and my media volume keeps randomly going up and down even though I'm not touching anything. Also, whenever I go onto YouTube, the video will randomly pause or the phone will go to the next video. It used to randomly open Spotify and play music in the background and randomly skip songs until I uninstalled and reinstalled it. Bixby will also occasionally open on its own every once in a while.

I have antivirus (Lookout and Avast) but neither has detected any virus of some kind. Restarting my phone helps, but only for about a minute or so before it starts having problems again. Any solutions?

Note 5 Low Battery Capacity Reported in Accubattery

Hello everyone,,
I have a second hand note 5 and I tried replacing the battery twice now with OEM replacements from a somewhat reputable business. Both times the initial reported capacity was around 2800mAh and drops quickly from there with additional charge cycles. Both times the battery capacity dropped to sub 2000mAh levels. The second replacement is currently at 1600mAh. Is anyone else having this problem? I read that some phones require you to multiply the reported capacity by 2?

The seller claims that no one else has reported a bad battery so he doesn't think he has a bad batch. The phone battery drains really quickly so I'm inclined to believe the low reported capacity. But I don't have anything to compare it to. Is anyone else having this problem?

The seller is offering a third replacement battery and I'm not sure if I should try this batch of battery a third time. Any suggestions?

Thanks!

Accidentally denied a thrid party app now I can't install it

Hi All,

Ive been trying to install an app that my friend built, just because i was in a rush I accidentally clicked ok instead of proceed to install anyway and now anytime I try to reinstall it it just says install failed. I've tried everything it seems and I can't figure it out does anyone have some ideas, thanks.

Device is a Google Pixel 3
Operating system: Android Version 9

Filter

Back
Top Bottom