yashsingh1/xdaforums huggingface dataset:
[Moto G Android Development] jututt:
i.e. copied a big /data/dalvik-cache .dex file to a newly created dir /cache/dalvik

cd /data/dalvik-cache

cp bigfile.dex /cache/dalvik

delete bigfile.dex in /data/dalvik-cache to reclaim space (or just rename for now to stay safe)

rm bigfile.dex

create symlink in /data/dalvik-cache to newly created position in /cache/dalvik

ln -s /cache/dalvik/bigfile.dex bigfile.dex

profit!

This is only an example with dalvik files, you could do with any [big] file you want, maybe see if everything works with the symlink before deleting original file.

Note that .dex files gets re-created in original position (/data/dalvik-cache) when relevant app(s) get updated. Make sure to redo the above procedure after such update happens.
[Moto G Android Development] bictu:
Would it be possible to get a script / flashable zip for all the commands for it to do it as I swap between many ROMs and it would be nice just to flash a script / run a script and it just does it every time.
[Moto G Android Development] Jbpss:
Ils it possible to flash this ROM on Peregrine (XT1039)?

If not, ils possible to port it on this device ?

Both smartphones are vert similar.
[Moto G Android Development] Pierre2324:
This is due to Android 10 SAR (system as root)
[Moto G Android Development] AaronVey22:
*spits out drink*

Excuse me?!?!

Android 10 on the Moto G?!

I must be dreaming... someone pinch me.
[Moto G Android Development] Mchasard:
Very happy to see this android 10 but Without gapps ...pity
[Moto G Android Development] lipe_riba:
The problem is SetupWizard.apk. The message is: Invalid file. Maybe not enought free space in system folder.
[Moto G Android Development] lipe_riba:
I got it! I installed gapps!

I will post in this thread step by step here.

What I can say is that I used the gapps aroma. I chose what would be installed by increasing the total free space usage of the system partition.

But, I found another problem. The Google Phone app (the newest that supports the dark theme) says it is not compatible with android 10. Sad! :crying:

ROM is booting at least in one minute. :cool:
[Moto G Android Development] lipe_riba:
OpenGApps Installation

AROMA GAPPS

Step by Step

Screen 1 : Welcome > Click Next

Screen 2 : Select Customized installation option

Screen 3 : Load Previous Choices > Nothing to select and click Next

Screen 4 : Apps > Select Include > Nothing to select and click Next

Screen 5 : Default removal bypass > Nothing to select and click Next

Screen 6 : Remove > Select all options that contains 'CyanogenMod' text to remove any conflicts with SetupWizard.apk in Custom ROM

Screen 7 : Advanced Options > Nothing to select and click Next

Screen 8 : gapps-config > Click Next

Screen 9 : Save Choices > Click Next

Screen 10 : Save config and perform GApss install > Click Install GApps

Worked to me!

Cheers!

P.S.: I found a solution for Google Phone in this link at https://xdaforums.com/android/apps-games/app-google-phone-v14-0-175904292-bubble-t3708218 :cool:
[Moto G Android Development] lipe_riba:
After OpenGApps Installation

Developer Options enabled like a charm!

- Advanced restart working

- Android debugging not working.
[Moto G Android Development] GeeekyBoy:
When I try to set a pattern for the lockscreen, nothing gets set.

Do you face this problem ?
[Moto G Android Development] lipe_riba:
I tried here and has a problem. Set pattern again.

Infinite restart loop. Broken.

Not working.
[Moto G Android Development] lipe_riba:
I am facing this problem highlighted in yellow when restoring Google account.

Invalid app. Does not download.

How to remove them? Is there a way?
[Moto G Android Development] GeeekyBoy:
So, can anyone fix that...?!

Once this problem is fixed, I'll post my own systemless OpenGapps stock package !
[Moto G Android Development] ps_minky16:
Hello Guys.

I am going to post some unofficial LOS17 builds for falcon same as i did for los16.

Hope you guys still want to use android 10 on this 6 year old device.

Please find builds under

https://drive.google.com/drive/folders/16V8-p1-AIGkPEgIABQbLdEi_2XHUQKUU?usp=sharing

Regards.

ps_minky16

---------- Post added at 10:35 AM ---------- Previous post was at 10:34 AM ----------

Quickstep launcher bug.

---------- Post added at 10:36 AM ---------- Previous post was at 10:35 AM ----------

Fixed by los source.
[Moto G Android Development] GeeekyBoy:
Waiting for your builds patiently and I hope that the new builds have working lockscreen with the ability to set patterns and passwords on it + working live display !
[Moto G Android Development] ps_minky16:
Lockscreen pattern works.

Live display have been excluded for now due to build errors. Did live display worked for you on my pie builds?
[Moto G Android Development] GeeekyBoy:
Yes, It was working properly.
[Moto G Android Development] GeeekyBoy:
[MENTION=6927767]ps_minky16[/MENTION] [MENTION=9506906]RohanHasabe8[/MENTION] Do you know if it's possible to port Project Treble to this device so that it'll get system updates regularly through GSI system images.

I have found a tool whose creator says that it reparations device partitions, but the problem here is that I have no idea how to get the vendor image that have to be flashed in the vendor partition.

The tool link: https://github.com/Lanchon/REPIT
[Moto G Android Development] ps_minky16:
Guys.

An unofficial build of LineageOS 17.1 for falcon have been uploaded.

You can find the build from here.

https://drive.google.com/drive/folders/16V8-p1-AIGkPEgIABQbLdEi_2XHUQKUU?usp=sharing
[Moto G Android Development] MLX:
found lineage-17.1-20210423-UNOFFICIAL-falcon.zip on androidfilehost to serve as mirror of the mega folder

lineage-17.1-20210423-UNOFFICIAL-falcon.zip | by Young Rock Tech for Moto G

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com
[Moto G Android Development] nefescalanadam:
Good work, also mega link still is working

1009.02 MB folder on MEGA

5 files

mega.nz

decryption key

whC3mIQ5l9JwpZxgmGqy5w
[Moto G Android Development] JaviPistolas:
I've been using 4.4.4 Kitkat for almost a decade and I've seen my poor little phone get fewer and fewer compatible apps as time went by. Thanks to this 20-page thread that I've read from top to bottom, some desperate Google searches, and a lot of bumps in the road, I've finally managed to insufflate a new life into my -now Android 10- Moto G. Google apps and all!

So I just wanted to thank you all :D
[Moto G Android Development] Der Namenlose Held:
How did you get gapps to work? Tried weebgapps 3.3.1 and the newest version and with both Google Play Services keep stopping and I cannot sign in :/
[Moto G Android Development] JaviPistolas:
I found 2 ways that worked on my phone.

- The first one was installing the Magisk mod "WeebGApps-arm-arm64-10.0-5.0.5", but I felt it made my phone run slower (this may be subjective tho).

- The second one, which I'm currently using and I think runs fine enough, was installing the "MicroG/GMSCore com.google.android.gms-223616054" app.
[Moto G Android Development] L e e:
Trying out this rom myself and neither OpenGapps or WeebGapps worked due to partition sizes.

Was anything related to signature spoofing necessary or did it work right away?
[Moto G Android Development] valhallasw:
Ran into the same issue with a lack of space for GApps. Resizing partitions did not work (I tried to shrink cache in favor of system); in the end I moved /system/product over to /data/product and symlinked it in place. This saves about 300MB which is enough to get OpenGApps Pico installed.

In other words:

In TWRP, first sideload the ROM

Mount the system partition

In the console:

[EDIT] commands below were updated based on the comment of PatoKuaKua271q below

mv /system/system/product /data/product

ln -s /data/product /system/system/product

Unmount the system partition

Sideload opengapps pico

This seems to not have actively broken anything, but chances are that I missed something and I'll realize something is broken in a few weeks time. For now, I'm enjoying Android 10 on a phone that I thought I'd never use again :)
[Moto G Android Development] PatoKuaKua271q:
Hello friend, could you upload the complete command please, I get an error
[Moto G Android Development] PatoKuaKua271q:
Ignore my previous comment, it would be:

install the system, mount it, in the twrp terminal write

mv /system/system/product /data/product

ln -s /data/product /system/system/product

disassemble the system and install the gapps

Or at least just let me install it that way
[Moto G Android Development] valhallasw:
Thanks for trying the options! I've updated my post so the correct commands are in there :-)
[Moto G Android Development] lipe_riba:
Could you post your systemless OpenGapps package?

Thanks in advance!

---------- Post added at 02:14 AM ---------- Previous post was at 02:01 AM ----------

Dirty flash or clean flash?

Need gapps?

ROM was increased 30MB zip file and no more space when installed. Aroma OpenGApps does not works.
[Moto G Android Development] FabioSan:
Not working unfortunately :/
[Moto G Android Development] ps_minky16:
Delete stock packages.

Eleven

Email

Jelly etc etc

Increased zip size is from source. I didnt add or remove anything with respect to initial build.
[Moto G Android Development] GeeekyBoy:
Systemless OpenGapps stock package has been released, GET it here
[Moto G Android Development] lipe_riba:
How do i add Google account? Not working.

My device is heating.
[Moto G Android Development] GeeekyBoy:
Which LineageOS build are you using ?
[Moto G Android Development] lipe_riba:
This build.
[Moto G Android Development] GeeekyBoy:
I'm using this build too and facing no issues regarding GApps...Can you show me the list of the permissions granted to Google Play Services using a screenshot ?!

You access them through entering Settings >> Apps & notifications >> See all apps >> Google Play Services >> Permissions.
[Moto G Android Development] lipe_riba:
Only Physical Activity is allowed.

Very slow.

5 seconds for each answer.
[Moto G Android Development] GeeekyBoy:
Yes, that's normal because Play Services can access nothing so it crashes...Please allow every permission available.

Can you find SMS permission among the permissions in the list ?
[Moto G Android Development] ps_minky16:
A new build have been uploaded.

Source upsteam.
[Moto G Android Development] lipe_riba:
No.
[Moto G Android Development] GeeekyBoy:
I have the final solution, but try to wipe cache and dalvik cache through TWRP recovery then tell me if SMS permission can be found or not
[Moto G Android Development] lipe_riba:
No, this option does not exists.

I will try reinstall.
[Moto G Android Development] GeeekyBoy:
No no, Now after enabling the available permission, open Google Play Store...It will ask you to sign in, do this...After that, leave your phone charging to let Google Play Store update Google Play Services...After that, go to the permissions list and you will find SMS permission, enable it
[Moto G Android Development] lipe_riba:
Worked! Slow yet. Some app is consuming processing...
[Moto G Android Development] bictu:
Is it possible to use MicroG with Play Store to get this working?
[Moto G Android Development] lipe_riba:
Is It possible create another script without NexusLauncherPrebuilt, without change original launcher from custom ROM, keeping original launcher?

Thanks in advance!
[Moto G Android Development] GeeekyBoy:
You can execute this script on boot: https://drive.google.com/file/d/11Sjiu_CT1WLaKP3FqFRuxFdEROuwGWHC/view?usp=drivesdk

I have created it myself for our old device and it optimizes it a lot...Before executing it, I would like to let you know that this script will take about 1GiB as a swap memory.

As the current rom build doesn't support init.d, you have to use this app instead (Make sure that it will execute the script as superuser): https://play.google.com/store/apps/details?id=com.ryosoftware.initd

Trebuchet was crashing, so I decided to remove it.

Anyway, if you wanna restore it, you can customize my module at /data/adb/magisk/modules/OpenGapps/system
[Moto G Android Development] lipe_riba:
Thanks a lot!
[Moto G Android Development] Thatboijake:
Moto g2 XT1064 install problems

No matter how I install it shows boot animation goes to boot logo then to twrp
[Moto G Android Development] ps_minky16:
Try this after updating recovery (3.3)
[Moto G Android Development] prakashpu:
This is really superb. Works very well on my old xt1033. Unlike pie builds, this one boots fast. Only thing missing is gapps, could not get gapps working in any way.
[Moto G Android Development] ps_minky16:
A new LOS17 build for falcon have been uploaded. Find the build from the above link.
[Moto G Android Development] rushiranpise:
Installing Gapps on Los 17

Get the latest beta version (pico/nano) :-

Download

First you need to delete few apps that you don't require, as the system space is low even pico gapps won't install without doing so ..

Boot into twrp,

Mount all partition,

Navigate through File Manager

Delete the apps you don't want from these locations ↓

/system/app

/system/priv-app

/system/product/app

/system/product/priv-app

After deleting some apps, if it says still says low space then delete more apps ??

Done
[Moto G Android Development] lipe_riba:
I discovered the app that is causing this problem. It has this com.google.android.trichromelibrary and com.google.android.webview namespace.
[Moto G Android Development] prakashpu:
I tried this multiple times, but still could not install smallest gapps (pico) . Deleting some of the apps from these directory had caused boot loop issue. Is there any other way to make some room to install gapps?
[Moto G Android Development] ps_minky16:
What apps did you removed?
[Moto G Android Development] :
Is there already a workaround for LOS 17 with recommendations? I think about try this ROM but without GAPS it doesn´t make lot sense.

Can someone check safetynet. With previous custom ROMs I had have trouble using some apps, for example banking or pokemon go, because my phone didn´t pass the safetynet, more precious ctsprofile and basicintegrity.
[Moto G Android Development] prakashpu:
I had removed

Jelly

Ester-egg

Exchange2

Gallery2

Eleven

Contacts

Email

Messages

Calculator

Audio-fx

Clock

Themes etc.

But still could not make enough room. I was still getting error 70.

Thanks
[Moto G Android Development] ps_minky16:
Just use magisk module for gapps. Its there in this thread just two three pages back.
[Moto G Android Development] ps_minky16:
Source issue.

---------- Post added at 12:26 PM ---------- Previous post was at 12:25 PM ----------

Method to install Gapps added. Follow the procedure stated in the .txt file and flash .zip package using magisk.
[Moto G Android Development] ps_minky16:
First build of 2020 for falcon users have been uploaded along with a method to install gapps.

Happy new year.
[Moto G Android Development] ps_minky16:
Gapps works on new build.
[Moto G Android Development] wilsonguerrero:
I installed the ROM and GAPPS following the instructions to the letter, however I get an error that does not allow me to login to Whatsapp because in impossible to receive the code by sms due to an error in Google services, miraculously could synchronize the contacts and calendar. I am very grateful to you for making the Moto G XT1032 immortal and I hope you can find some solution to this.
[Moto G Android Development] gaston38kpo:
Ve a la aplicación de servicios de google y concede todos los permisos disponibles, a mi me funcionó.
[Moto G Android Development] ps_minky16:
Let me see.
[Moto G Android Development] wilsonguerrero:
I found the solution by installing the GAPPS from this link: http://www.mediafire.com/file/ni9d5hc7p8dh536/OpenGapps-10-%5BARM%5D.zip/file

After flashing the ROM I went to the TWRP file manager and removed most of the default applications, then I flashed the GAPPS and it works perfectly so far.
[Moto G Android Development] ps_minky16:
A new gapps package with sms permission fix has been uploaded. Clean flash required.
[Moto G Android Development] bictu:
I actually found that after flashing Magisk alongside this ROM and alongside SuperiorOS, that when booting up, in the ROM you could install the Gapps from the folder on Google Drive through Magisk. Then when you rebooted, Play Store was working perfectly fine as Magisk mods don't actually take up space on /system so it just worked perfectly fine. Didn't even have to uninstall / delete system app to fit.
[Moto G Android Development] ps_minky16:
Well thanks alot for letting us know that.
[Moto G Android Development] :
Thanks a lot, thats sounds great. Could you give me/us a step by step procedure?
[Moto G Android Development] bictu:
Okay So I'm going to assume you are familiar with TWRP and general basics.

1. Flashing files - You're gonna want to install your ROM (LineageOS 17 latest from Google Drive), optionally you can install a Kernel as well. Then flash Magisk as you would to enable root features (I'm using Magisk 20.2).

2. Turn on the phone. So you should use this as a way to test the ROM is working fine and Magisk Manager apk should be installed as a system app and appear when you first open your app drawer.

3. Open Magisk Manager, go to modules and click the plus button at the bottom. Then go ahead and download the Gapps from Google Drive in previous post by admin. Install it through the Magisk Manager app.

4. Reboot your phone, sign in with Google through play store and install other Google apps you want as user apps.

Sidenote: I tried installing Gapps through TWRP directly after installing LineageOS and Magisk and it failed with an error message. Hence why I booted up into Android and flashed from with Magisk Manager.

Hope this helps - Josh
[Moto G Android Development] :
Awesome! Did you try to remove Magisk after installing GAPS? Some Applications check for Magisk folders on SD, so it would be fine to stay without this app and with installed GAPS.
[Moto G Android Development] bictu:
I haven't tested it as I use Magisk a lot.

But no, based on the way Magisk works, you can't completely uninstall Magisk and keep the Gapps.

You could try uninstalling Magisk Manager (theoretically this wouldn't get rid of Magisk that powers Gapps, just Magisk Manager). Because it's a system app, you'll have to uninstall it differently or disable it (unsure).

Again, I haven't tested this. But it's up to you, I'm not sure how it works when you don't have Magisk Manager. - Josh
[Moto G Android Development] :
Hi, i was curious about this ROM. Very smooth feeling, but some issues. Playstore is working, but there are some system faults and no safetynet pass (see attached screenshots). Also Pokemon Go won´t work because the playstore is not visible for the system. I have turned the Magisk hide option on for all apps! Any suggestions?
[Moto G Android Development] bictu:
Did you remove Magisk Manager after hiding everything?
[Moto G Android Development] :
No, Magisk is still installed. There is no need to uninstall. First, safetynet check must be passed. Google Play Service is installed, i checked this already. Otherwise playstore would not have all functions, or?

PS: used magisk and gaps Version attached.
[Moto G Android Development] DAVIZINHO:
Hello,

I use this room because i love lineageOS and i need to use a older motoG :)

I installed and root with magisk but when i start the phone a received this message: "There is a internal problem with your device. contact your manufacturer for details"

I dont install Gaps because i dont want any google service in this phone

How can i solve this problem?
[Moto G Android Development] irongiant91:
I too, get an error message saying internal problems with device. I flashed multiple times and it still comes. I was able to install the gapps

I also was not able to get my GPS location working. I give permission to apps, and high accuracy setting provided. gps icon shows in top bar when opening Google maps but it doesn't pinpoint my location.
[Moto G Android Development] ps_minky16:
There is a non magisk version of gapps also uploaded in the same folder. Flash rom + remove apps + flash gapps

---------- Post added at 11:18 AM ---------- Previous post was at 11:17 AM ----------

Its a build environment issue. That error wont harm your working it is totally safe to use the device.

I might be able to fix this issue in the future los version builds.
[Moto G Android Development] :
N

The non magisk version doesn't work for me, via flashing in twrp either, nor by adding the zip in magisk. I removed the files as written in the text file before flashing the gaps. The gaps with magisk in brackets are flashable without issues. Play store icon appears after restart.

See screenshots, with [Magisk]WeebGApps... there is no pass through safetynet possible. Can someone else check this?
[Moto G Android Development] ps_minky16:
Thats why i have both the zips there. If you can troubleshoot the issue then you wont have any problems with non magisk version too.

Safetynet is gapps fault. Wait for new magisk version gapps.
[Moto G Android Development] ps_minky16:
Moving to a new version introduced by lineage.

A new LOS 17.1 build for falcon users have been uploaded.

Please clean flash.

Now that i have moved to 17.1 the old los17 builds are no more supported.
[Moto G Android Development] :
Does the alternative zip gaps package pass through safetynet check? Could you please try?
[Moto G Android Development] GeeekyBoy:
After installing your new build:

- Pixel Launcher keeps stopping.

- notification display which appears while the screen is off doesn't appear again after flipping the phone.
[Moto G Android Development] ps_minky16:
-- Pixel launcher is not supported on los.

-- turn it off in settings-gestures.

---------- Post added at 01:37 PM ---------- Previous post was at 01:36 PM ----------

In the next build i can check.
[Moto G Android Development] :
Also in this build i can only install the [Magisk]Gaps. I cannot provide any root cause, because the screen in Magisk turns into black and there is no information. I have to force close the app. Same procedure with [Magisk]Gaps without issues!

Is there any chance to have no pass basic integrity and CTS profile match test?
[Moto G Android Development] ps_minky16:
When that black screen occurs just wait for 10-15 secs and reboot your system. Gapps will be there once rebooted.

For safety net there can be various reasons that why it isn't working
[Moto G Android Development] shivji:
Trouble Rendering Indian fonts

[MENTION=6927767]ps_minky16[/MENTION], thnx for the build, I managed to install your build and installed the Gapps (Magisk version). It's more stable than the Pie build I had been running. But I am facing issues rendering Indian languages (in my case Malayalam). I tried replacing the DroidSans-Fallback.tff file with one I had used in Android Pie and before, but didn't work. I also tried flashing a zip which does the same and updates fallback_fonts.xml at /system/etc. That didn't work either. Infact there is no such file in the directory. Is the font system different in Android 10?
[Moto G Android Development] ps_minky16:
Idk about that i'll have to check. Plus 17.1 is new lets wait for few more updates for lineage to add more stuff to it. If it doesn't ghen i'll add those myself.

---------- Post added at 01:31 PM ---------- Previous post was at 01:18 PM ----------

New build uploaded.
[Moto G Android Development] gaston38kpo:
"[SystemMode]WeebGApps.." tutorial? :(

Magisk 20.3 \ M. Manager 7.5.1: No inatala como módulo.

TWRP: No instala nada.

Perdón no se inglés
[Moto G Android Development] lipe_riba:
Flashlight not working.

Screencast not working.
[Moto G Android Development] rushiranpise:
Tips And Tricks

https://xdaforums.com/showpost.php?p=81448595&postcount=89
[Moto G Android Development] ps_minky16:
Guys follow this detailed guide on how to flash gapps ++ pass safetynet ++ other gapps related issues.
[Moto G Android Development] ps_minky16:
New build uploaded.

Changelog:

January Security Patch

Source upsteams
[Moto G Android Development] :
Always clean flash needed?
[Moto G Android Development] ps_minky16:
No.