yashsingh1/xdaforums huggingface dataset:
[Razer Phone 2 Guides, News, & Discussion] jcole20:
Note: Make sure your phone is decrypted and do not turn on the secure boot feature where you need to put in your pattern to boot system!

So as I'm currently without a PC and can't restore the stock images I wanted to share the best method for using Android 10 I've found.

Get the latest phh gsi image v210 is what I used.

Get the latest Lineage OS GSI 17.1 image.

Get the Trinity v2 kernel (beta is what I used).

Get the latest Android 10 pico or nano gapps from opengapps. (I used nano)

Boot to recovery and factory reset.

Install phh gsi IMG to system. When finished don't reboot. (I do this to keep security patches as up to date as possible)

Install LineageOS IMG (DIRTY FLASH).

Install Trinity Kernel to Boot

Reboot system

(Optional once you fully boot you can reboot recovery and flash the f2fs zip from Arter Kernel then reboot recovery and wipe data. When you reboot system you may freeze during setup just reboot by holding the power in until the phone restarts. It will finish setup this time.)

Reboot recovery and flash gapps. If you get error 70 resize the system partition. It will work after resizing once or twice.

When it boots you can do your traditional setup.

Reboot recovery and Install Magisk v20.3.zip

Reboot system and Install Magisk Modules Busybox for Android NDK and Magisk Hide Props Config.

Install terminal app of choice following Reboot

Type su in terminal and hit enter

Type props in terminal and hit enter

Change the fingerprint to Razer Android v9 and Reboot following the prompts.

Congratulations you now have LineageOS Android 10 and are passing safetynet.

Notes:

You can Install v4a if you want.

I highly suggest installing the l'speed module from Magisk as it stabilizes the freezing/kernel.

You can also Install EdXposed and the beta for GravityBox Q ... Still passing safetynet.

Logo++ will fix your Razer logo on the rear of device.

Bluetooth works fine as does everything I've tested.

Downloads needed:

Latest phh GSI for AOSP Android 10

Latest LineageOS 17.x GSI Image

Trinity Kernel (v2)

Magisk v20.3

Pico or Nano GAPPS from OpenGapps

Optional:

V4A (requires the Magisk Module Audio Modification Library)

EdXposed Riru - Core (Magisk Module)

EdXposed - Sandhook Beta / Canary (Installed from manager)

EdXposed - Latest Manager (do not use Taichi)

GravityBoxQ Beta (gives you a lot of customization like the battery icon in statusbar)

Logo+

LSpeed Module for Magisk (lspeed-master.zip)

F2FS_FSTAB.zip from ArterKernel Thread

***Note*** this isn't flawless but when using the LSpeed Magisk Module it's very close**"

**"" LineageOS Freezes every now and then where the AOSP GSI doesn't but I can't get the AOSP to pass safetynet***
[Razer Phone 2 Guides, News, & Discussion] jcole20:
Screenshots

Note I changed the font to Comfortaa via Magisk Font Changer Module
[Razer Phone 2 Guides, News, & Discussion] jcole20:
SafetyNet
[Razer Phone 2 Guides, News, & Discussion] jcole20:
Magisk modules I personally use. Ignore older versions of the same module.
[Razer Phone 2 Guides, News, & Discussion] schwrzmr:
Will game booster work in cortex app?
[Razer Phone 2 Guides, News, & Discussion] Reznor7:
I'm on T-mobile, and with every 10 Gsi I've tried, I've installed the required ims.apk. Unfortunately, I can only send sms, not recieve. Do you not have this problem?
[Razer Phone 2 Guides, News, & Discussion] Generic123.:
Can you receive text messages through LTE? I can't seem to get it to work on T-mobile.
[Razer Phone 2 Guides, News, & Discussion] Generic123.:
Try moving the ims.apk to /vendor/overlay and see if that works.
[Razer Phone 2 Guides, News, & Discussion] Reznor7:
I've re-imaged my phone too many times already, losing countless hours going back to stock when the GSI doesn't work. I'll let someone else give it a shot.
[Razer Phone 2 Guides, News, & Discussion] JDBarlow:
No doubt I'm through with flashing back to stock countless times.....so over it

Wish I had more time and knew more about Android to bake us up a solid AOSP ROM for this phone. Great hardware to work with here and like I've said before I can't believe there is not one Dev in this community to pick this phone up as cheap as it is and get something going :confused::(
[Razer Phone 2 Guides, News, & Discussion] Generic123.:
I feel like it's the nature of ROM developers sticking to the devices they have. They are currently developing for other phones, and don't want to have to move/develop for a new phone, nor do they have the time to develop for another phone. To be fair, we are not completely in the dark; f(x)THaxxorX seems to be working on patched versions of popular GSIs that are more suited for the hardware of the RP2:
[Razer Phone 2 Guides, News, & Discussion] JDBarlow:
Oh nice!

I'll try to contain myself and be a little more patient :D

So true, I can just imagine the time spent to be a developer for so many devices that are out there!

Happy Valentine's Day :o;)
[Razer Phone 2 Guides, News, & Discussion] Reznor7:
Ugh. I don't know why I keep trying. SMS doesn't work over LTE on TMobile using this method either. OP, your profile says you're on TMobile. Have you solved this problem somehow?
[Razer Phone 2 Guides, News, & Discussion] Generic123.:
Are you still trying to use a Q GSI? If you are willing to go back to a Pie-based GSI, installing ims.apk and moving the apk to "/vendor/overlay/" works every time for me.
[Razer Phone 2 Guides, News, & Discussion] Reznor7:
From my experience, Pie ROMs have issues with the fingerprint scanner reliability, and media in a lot of games seems to have buffering issues as it frequently cuts out.
[Razer Phone 2 Guides, News, & Discussion] Generic123.:
I have the same problems on ArrowOS(the fingerprint sensor problem is pretty rare. The speaker issue is really annoying, but it only happens at low volumes), but I guess it depends on how much you're willing to take. If you want to keep to use Q GSIs, our best option is just to wait for patched GSIs by f(x)THaxxorX that might be coming out at some point(Soon™).
[Razer Phone 2 Guides, News, & Discussion] LSS4181:
I think the speaker itself might have issues as I even had this issue with Android 9 GSIs, from what I remember. At first I suspected buffer-related issues but after some testing it doesn't seem to be the only issue. Setting the media volume to at least 50% would allow most of the audio to get out of the speaker, but at max volume the speaker can be really loud (to the point that I feel the speaker could be potentially damaged) so I usually set it to at most 80% when I need to place the phone a bit far from where I am.

Also, I haven't gotten aptX working on Android 10 GSIs due to a strange null pointer dereference bug which would crash the entire Bluetooth stack. Only SBC works as intended. As I noticed that the author of gjf_bt Magisk module (which adds aptX libraries as well as SBC tweaks) recently blacklisted Android 10 and onwards, I think the issue might have more to do with the Android 10 system itself.
[Razer Phone 2 Guides, News, & Discussion] shahriyarali:
Hey! Can anyone confirm if LDAC is working on this? I have never rooted a phone before just doing it to enable LDAC. Also, does this OS support setting for Refresh rate?
[Razer Phone 2 Guides, News, & Discussion] Lorelily:
I love Lineage OS 17, but I noticed that I don't receive text messages anymore. I could receive text messages when I first flashed it, and after a couple of hours, I could not. Then, I could send messages and I could send and receive calls. I could use data. I could not receive text messages. Is there a fix for this problem? I tried using Lineage 16, but I still could not receive text messages. I am back to stock, for the moment. Does anyone know how to fix this? I'm using AT&T service.
[Razer Phone 2 Guides, News, & Discussion] Reznor7:
It's a known issue, and unfortunately there is no reliable fix yet.
[Razer Phone 2 Guides, News, & Discussion] seraph1024:
Hello!

This is what I did:

1. Flash it back to stock fully (use flash_all).

2. Flash phh gsi image v210

3. Flash Trinity kernel (20200226.img)

What works:

Everything but Inbound SMS on ATT / TMobile etc. Outbound SMS/MMS works fine.

Now, I tried this:

1. Flash it back to stock fully (use flash_all).

2. Flash phh gsi image v212 <<<<< SEE THIS DIFFERENCE

3. Flash Trinity kernel (20200226.img)

4. Install f2fs zip via TWRP

What works:

Everything INCLUDING inbound/outbound SMS/MMS on T-Mobile and ATT ---- BUT No more bluetooth. Devices pairs but will not transmit music or calls.

What I have not tried yet:

Dirty flashing of LinageOS 17.x Perhaps some settings on bluetooth might overwrite the settings on phh image.

A little about me: My most interactivity on this forum was from 10 years ago. Yes. I am a developer (https://xdaforums.com/showthread.php?t=864034). I know people like Amon_Ra and Cyanogen by first name basis and speed dial on Skype -- That's how old I am -- Which is not good :|. I once prove Andy Rubin wrong on twitter and he did not like it (It involves me buying 7-9 phones and video taping the results). I have not build custom android images for a while. I call that building not developing (I know... I know...). That said, we are so close and yet not perfect so been thinking lately about jumping back in the game of building images. With so many handsets coming out at rapid pace, is there a need for images or do I go get new phones ;) I can just restore this thing back to stock and just play games on it rather than use it as a perfect phone that it could have been.
[Razer Phone 2 Guides, News, & Discussion] Generic123.:
To fix Bluetooth, delete the BluetoothCommonRes.apk in /vendor/overlay. Then, make a copy of RazerAuraBluetoothRes.apk(located in the same folder) and rename the copy to BluetoothCommonRes.apk. If this does not work initially, try removing the new BluetoothCommonRes.apk, and see if that works.
[Razer Phone 2 Guides, News, & Discussion] hendibudi:
It work for me on gsi 10 without bugs both call and audio togather only deleted BluetoothCommonRes.apk without any other change on vendor overlay

---------- Post added at 03:26 AM ---------- Previous post was at 03:24 AM ----------

I have almost no issue using especially gsi treble android 10. and enjoy using on razer phone 2 even lack of developer custom rom on this device. like issues in bluetooth audio and call, battere off charging animation, deep sleep mode, with some tweak and modification some file inside gsi rom we can dismissed all this issue, with respected to developer gsi rom.
[Razer Phone 2 Guides, News, & Discussion] Reznor7:
SMS on LTE? I receive SMS on 3g, but not 4g/LTE.
[Razer Phone 2 Guides, News, & Discussion] hendibudi:
No sms issue with my provider
[Razer Phone 2 Guides, News, & Discussion] w2830:
Dump questions from a completely newbie, do I need root or custom recovery(TWRP) before attempting this? What tools are used here? Adb Terminal or flashtool? I have been jumping through different threads and hope I got these terms right:confused: Appreciate your patience with my ignorance.:eek:

And what backup tools do you guys recommend for backing up user data? Thanks a ton!
[Razer Phone 2 Guides, News, & Discussion] chris5s:
Probably the first step is to unlock the bootloader and bootloader critical partitions. See the Razer website for how to do this.

Have adb installed on your PC or laptop to unlock these partitions.

Once unlocked, install Arters kernel which will give you custom recovery in the form of TWRP. Use TWRP to create a backup of your system before attempting any further mods ie flashing GSI image etc.

That's basically all you need. Good luck.

Peace.
[Razer Phone 2 Guides, News, & Discussion] w2830:
I found a bootloader unlocking guide that seems easy enough for me to follow. https://************/how-to-unlock-and-root-the-razer-2-with-magisk/

And got the Adb tool and tested running. Now I'm a bit hesitant to pull the trigger without knowing all the bugs I might encounter in daily use.

By the way, I just came back to phone from Pixel 4 XL. Not missing it at all. This phone is much better media consuming machine than the pixel. The only thing I miss is the gesture in Android 10 which is a big motivation for this . Thanks a lot for the input!
[Razer Phone 2 Guides, News, & Discussion] chris5s:
The official Razer website will tell you the instructions for unlocking the bootloader. No need to root or install Magisk

It's a good website to bookmark, they have the factory images if you need to restore the phone back to working order.

So, you rate Razer Phone 2 over the Pixel 4XL?

Peace
[Razer Phone 2 Guides, News, & Discussion] w2830:
For what I mainly use the phone for, like watching YouTube or things of that kind, Yes! The front firing speakers and symmetrical screen on Razer is hands down for that. For pixel 4 XL, the off center screen is not ideal and the rounded corners doesn't help either in that situation. Battery life sucks big time! Soli is pretty gimmick at this point, and so is the cool AI features like real time transcription which I haven't used once other than checking it out.
[Razer Phone 2 Guides, News, & Discussion] robert ballard:
Does this work on the Unlocked Razor Phone 2?
[Razer Phone 2 Guides, News, & Discussion] rrusek:
Can someone that is on T-Mobile clarify that the following is working on this ROM:

1. VoLTE

2. WiFi-Calling

3. IMS

Soecifically, can someone confirm that the WiFi-Calling is working on TMO?

Thanks,

RJR
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] pwazoski:
I saw someone post that androi 10 is working on exynos 7870 device and until today im still not seen anyrom about it
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] sakshya619:
Try proget spaghet with gsi android 10?? not stable but still its android 10
[Samsung Galaxy J7 Prime / J7 On NXT (Exynos7870)] siamese007:
I installed Spaget X and GSI ROM. Everything works good including Camera and etc. But Spaget X cannot mount /preload that causes all patches cannot be installed. So LED patch to enable the LED cannot be installed.

Spaget X has been discontinued. And I have no clue to fix this issue. Do you have some more suggestions for any new Treble project?
[Tilt, TyTN II, MDA Vario III General] ewingr:
Is there a way to keep ringtones out of the library in WMP? They are in there on my main memory library. I have tried deleting them, but the won't go away.

the main problem is that if I use MS voice command and say "Play anything", the darned ringtones start playing.

I have tried setting library to Storge Card, but apparently that setting doesn't prevent MS voice command from grabbing stuff off the internal memory library.

What a pain.

Any solutions/suggestions?
[Tilt, TyTN II, MDA Vario III General] elypsar:
Delete your ringtones ;)
[Tilt, TyTN II, MDA Vario III General] NguyenHuu:
you should try moving your ringtones to the appropriate location where ringtones "should" be kept on the device. try moving them to your windows/rings folder. then update your library. the ringtones should disappear!

that's what happened to me when i scanned my device for music, it picked up all audio files since i had my ringtones on my storage card. i tried moving my ringtones to my device, and it still picked it up in scan. then i moved it to the rings folder in windows directory, scans didnt pick nothing up anymore.
[Tilt, TyTN II, MDA Vario III General] cushcalc:
Remove ringtones from WMP library without moving or deleting from storage

People are making this too complicated and/or painful.

I agree that it is stupid that WMP imports ringtones in the first place, but it's a stupid computer program and all it knows is to search for file types.

So, here's what I did that eliminated them from library without moving or deleting them on my Storage Card:

1) Menu>Update Library... adds frickin' everything 'ya got

2) Library>Storage Card>My Music>Artist . . . you will see first listing (at least in my case) is "Unknown". Check this out - this is all the ringtones, alert sounds, etc.

Delete all from Library, but not from Device.

3) Repeat step 2 on "My Device", deleting all Unknown from

Library

, but not from

Device

.

I hope this solves the problem for you as it did for me.
[Tilt, TyTN II, MDA Vario III General] Kraize:
Well here's a suggestion. Since the library for "My Device" and "Storage Card" are different, place all music on storage card and all ringtones on my device. Then you won't have to see the ringtones and it will only play songs from your default library (which you should set to Storage Card via AdvancedConfig)

Kraize
[Tilt, TyTN II, MDA Vario III General] ewingr:
This sounds reasonable, but updating the library, they still come in from the 'new' location, which is My Ringtones.

Well, as I noted about deleting them they wouldn't go away, I do find that deleting them the way you say, they appear to go away form Unknown. But they are still in the library somehow, because they do play.

There is no way in the library to search for a song to locate it. Bringing up all songes, they don't come up sorted. And not knowing how/where else they are in there, I can't delete them.

This is so frustrating. Something must be wrong with the WMP library. Moving down through the list of songs, I see some listed 3-4 times.

I was actually thinking this was the solution, and thought I was setting my default library by select from the pulldown in the LIbary of Storage Card.

But...Advanced Config? Where is that? I have searched though the menus, and options of WMP, and find no Advanced Config.
[Tilt, TyTN II, MDA Vario III General] kilrah:
http://xdaforums.com/showthread.php?t=317070
[Tilt, TyTN II, MDA Vario III General] ewingr:
I've installed Advanced Config. I do not see any option on that to set the Default Library. I do see an entry for Default Location for Audio files. I don't interpret this to be the same as a 'default library'. The only entry there for anything to do with WMP is an entry to establish teh default music player.

Do I need to customize it or something to set teh default Library location?
[Tilt, TyTN II, MDA Vario III General] NguyenHuu:
just take the easy route like i stated earlier, just move all your ringtones and custom sounds to the windows/rings folder or straight to the windows folder and it solves this problem. no need to config anything.
[Tilt, TyTN II, MDA Vario III General] ewingr:
You must have missed my reply that I tried that and it didn't work, post # 6. Thanks for the advice though.
[Android Q&A, Help & Troubleshooting] dorlow:
Ok, so I'm a very newbe programmer. I do know a little C++. But I wanted to see if I could create a basic Hello World android app. I found a video on YouTube that I'm trying to follow along. I'm pretty sure my code is identical to his code. But mine won't compile.

Here's the code...

package com.example.simplehelloworldapplication;

import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import android.view.View;

public class MainActivity extends AppCompatActivity {

private TextView textView;

private Button button;

[MENTION=439709]override[/MENTION]

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

textView=findViewById(R.id.text_view);

button=findViewById(R.id.Button_click);

button.setOnClickListener(new View.OnClickListener() {

boolean visible;

[MENTION=439709]override[/MENTION]

public void onClick(View v) {

visible = !visible;

button.setVisibility(visible? View.VISIBLE:View.VISIBLE);

}

});

}

}

When I attempt to compile the code, I get 3 errors...

error: incompatible types: no unique maximal instance exists for type variable T with upper bounds Button,View

(It's refering to this error: button=findViewById(R.id.Button_click);)

error: cannot find symbol method setVisibility(int)

error: cannot find symbol method setOnClickListener(<anonymous OnClickListener>)

Any suggestions to fix these errors would be greatly appreciated.
[Android Q&A, Help & Troubleshooting] dorlow:
Ok, so I figured it out. Not from the code above, but I found training on androids website that showed me how to do it and it worked. I now have an app on my phone I created that asks for input and then sends it (to nowhere)
[Android Apps and Games] MomasVII:
I don't see many games posted here but here goes....

Drift Worlds

​

After years of solo development I am excited to finally say I have released my pride and joy, Drift Worlds. Drift Worlds is an arcade racer that meets real world graphics. It has aspects of both outrageous scenarios and real world physics. You will find yourself driving across desert plateau's, above the clouds across snowy tundras or deep in the depths of a volcano. There are plenty of levels that I will constantly be expanding on and with dozens of cars to choose from there will be plenty to work towards.

The Idea is simple. Enter a level and race against yourself or against the current record holder. You will work towards getting 5 stars for the level to unlock more and to earn more money. It also has real crash physics that will dint and damage your car the more you crash and fall.

This has been over 2 years in the making and I would really appreciate some feedback that I will do my best to take into account. Here is the game trailer with all in game footage and the Play Store link.

Play Store Link

https://youtu.be/RNLhzH0dXr4

[IMG="Screen"]https://undivided.games/DriftWorlds/images/Car1.jpg[/IMG][IMG="Screen"]https://undivided.games/DriftWorlds/images/Grass1.jpg[/IMG][IMG="Screen"]https://undivided.games/DriftWorlds/images/Lava1.jpg[/IMG][IMG="Screen"]https://undivided.games/DriftWorlds/images/Levels.jpg[/IMG][IMG="Screen"]https://undivided.games/DriftWorlds/images/Snow1.jpg[/IMG][IMG="Screen"]https://undivided.games/DriftWorlds/images/Desert1.jpg[/IMG]
[Android Apps and Games] MomasVII:
Here is a new gameplay trailer for everyone to enjoy!

[YOUTUBE]https://youtu.be/WgUyh9hs3pA[/YOUTUBE]
[Android Apps and Games] MomasVII:
Hi everyone,

I have just pushed a new release that makes the game go from 30FPS to 60FPS. It's a huge difference and runs very smoothly. Also the store prices have been slashed by 50%!.

Feedback is appreciated on how smoothly it runs on your device. <3