yashsingh1/xdaforums huggingface dataset:
[Magisk] tom.android:
[Windows] [MIUI-China ROM] My impression of nanodroid-patcher.testing. ( NanoDroid-patcher-18.0~beta1+vdex_7.zip )

http://downloads.nanolx.org/NanoDroid/NanoDroid-patcher-18.0~beta1+vdex_7.zip

***Update

News

2018-08-28 smali/baksmali v2.2.5 is out

. Support for 8.1 oat files

etc.

Testing ROM-Official MIUI-10 China ROM Beta v.8.8.27 ( odex ROM)

-Mi Max2

Step

1.

Manual deodexed Naugat by using baksmali & smali

or

Manual deodexed Oreo by using vdexExtractor

2. Replace odexed services.jar with new deodexed services.jar

3. Flash by TWRP or Magisk manager with NanoDroid-patcher-18.0~beta1+vdex_7.zip

4. Test Signature Spoofing.

Download: https://mega.nz/#F!lXg1hS7Y!ILlYmijamAxxp47lLu6lTg

=======================================================================================

Howto manual Deodexing by using vdexExtractor ( For Windows ) [ Android 8.1 ][China ROM.]

1. Download vdexExtractor for wins here ---->https://mega.nz/#!VWAymKzZ!vholqgCmE26bqMzCtBDu30YT9ARWlfQQHWSGuRdBqJE extract zip to your PC

Note For Lunix read---->https://gitlab.com/Nanolx/NanoDroid/issues/9#note_96779340

2. Copy 3 files from your /System/framework place into vdexExtractor folder from 1

-services.jar from ( /system/framework/ )

-services.vdex from ( /system/framework/oat/arm64 )

-boot.oat from ( /system/framework/arm64 )

3. Run vdexExtractor Command

CMD_now>vdexExtractor -i services.vdex --ignore-crc-error

this will create the following file: services.apk_classes.dex

4. Rename it to classes.dex

if use command

CMD_now>ren services.apk_classes.dex classes.dex

5. Add classes.dex to services.jar (by win-zip or winrar) ---delete META-INF inside archirve

=============================================

Howto manual Deodexing by using baksmali & smali ( For Windows ) [ Android 7.1 ][China ROM.]

1. Install Java and set class path.

2.Download lastest smali-2.2.5.jar + baksmali-2.2.5.jar ---- https://bitbucket.org/JesusFreke/smali/downloads/

rename it to smali.jar and baksmali.jar ----Set class path

3. create working directory.

4. copy (1 directory 4 files) into this folder.

+ "framework" Folder

+ smali.jar, baksmali.jar --copy from your download.

+ services.jar,services.odex --copy from your framework.

5. run cmd here

cmd >java -jar baksmali.jar x services.odex -d framework\arm64 -o tmp

Note---assuming your device is arm64 *** otherwise try "framework\arm

output----new directory name "tmp" created.

6. run cmd here

cmd> java -jar smali.jar a tmp -o classes.dex

output-file "classes.dex" created.

7. Add classes.dex to services.jar (by win-zip or winrar)---delete META-INF inside archirve

--------------------------------------------------------------------------

Full Automatic---waitting for [MENTION=4187311]Setialpha[/MENTION]
[Magisk] DoR3M3:
In Linux this is all we need to do on VDEX?

1. Copy 3 files from your /System/framework place into vdexExtractor folder from 1

-services.jar from ( /system/framework/ )

-services.vdex from ( /system/framework/oat/arm64 )

-boot.oat from ( /system/framework/arm64 )

2. Run vdexExtractor Command

vdexExtractor -i services.vdex --ignore-crc-error

3. Rename it to classes.dex

mv services.apk_classes.dex classes.dex

4. Add classes.dex to services.jar (by win-zip or winrar)

zip framework/services.jar classes.dex

Now we should be able to use NanoDroid-patcher-17.9.20180818 to patch for Signature Spoof?

Thanks
[Magisk] Setialpha:
This. minus boot.oat, not needed.
[Magisk] DoR3M3:
Ok becasuse NanoDroid-patcher-17.9.20180818 came back after I did this saying the ROM is odexed...

Not sure if you saw it, but this is a post with the cmds I did and I attached a recovery.log for that too;

https://xdaforums.com/showpost.php?p=77448302&postcount=3745

hmm
[Magisk] Setialpha:
The old patcher can't help you with that, just use the new one. It will skip deodexing, if services.jar contains a classes.dex.
[Magisk] HemanthJabalpuri:
[MENTION=4187311]Setialpha[/MENTION]

Sir one doubt....

In 4.4.2 stock touchwiz roms...

Signature spoof is a modification of which file?

framework.jar or services.jar?
[Magisk] Namnodorel:
microG just got an update that now officially uses the version bump PRs.
[Magisk] kurtn:
I only see NLP related activity in official gms core.
[Magisk] ydd0ras:
Guys, if someone is interested: last night I had successfully deodexed the services.jar on my OnePlus One and POSP (on Pie). Finally flashed the patcher without issues. So the manual method works on LOS 16 and POSP, on mido and bacon.
[Magisk] FriendlyNeighborhoodShane:
Some devices have /system as kind of a root partition. I saw that mentioned sometimes in the osmosis zips. I just set a $sysroot as /system if it exists and then do everything like $sysroot/system or $sysroot/data
[Magisk] Setialpha:
services.jar

Jup, I'll merge with my fork, soon™

There's more work done by mar-v-in, after the nlp commit.

My zips already have A/B partition scheme support, in that case /vendor is not properly handled by TWRP, that's something different.
[Magisk] HemanthJabalpuri:
Can someone manually patch this for me...

I am on stock touchwiz 4.4.2 rom....

I am unable to patch it with patcher....
[Magisk] HemanthJabalpuri:
sir my friend gave me a patched framework.jar and I tested spoofing with the app signature spoof checker... it says enabled......

I think this is the issue in kitkat roms....

Actual modification is framework.jar i think....
[Magisk] starbright_:
After spoofing enabled (thanks to Setialpha, I would lost without you) - if I continue manually:

Is it just enough to flash

"adb install GsmCore.apk"

"adb install GsfProxy.apk"

"adb install FakeStore.apk" ?

I remember that I have to cp (or move ?) the 1.2MB file

/data/app/com.google.android.gms..../base.apk to the folder /system/app-priv ?

Anything I have missed?
[Magisk] Setialpha:
Why don't you just use my installer?
[Magisk] starbright_:
Sorry, this shouldn't be an offense!

As soon as I have a chance to do it manually I do it for a better understanding.

Also there are a few files that I have not in my mind, something with GoogleCalendar/contact ... some backends that I don't use (I take LocalGSMLocation), Phonesky.
[Magisk] Setialpha:
I didn't see it as an offense, I just wondered. Well, you also need to unpack the libs from the apks into lib/$arch subdir eg /system/priv-app/GmsCore/lib/arm64...
[Magisk] starbright_:
I hope that is not too OT:

According to what I read about MicroG: it is just the base.apk to either move or copy?!? Marvin doesn't mention that.

You mentioned libs: in that gsmcore.apk is just one lib (libvtm-jni.so). I don't find in other /system/priv-app/xxx anything else than *apk files ???
[Magisk] xJovs:
Hi. Just tested out microG and everything seems to be good other than one annoying issue. Basically, when I try to make an app like Calendar access my Google account (which I had already added through the microG Google login page), it just takes me back to the microG login instead of using the already added account. I try to go through the login setup again to see if I have to login for each individual app requiring Google but it tells me that my account has already been added. I really want to make this my main setup but this issue may hold me back. Any help is appreciated. Thanks.

---------- Post added at 03:48 PM ---------- Previous post was at 03:45 PM ----------

Oh, forgot to specify but I tried this with both the official microG 0.2.5, and NanoDroid 17.9/18.0~beta.
[Magisk] bertino:
When flashing the latest patcher+vdex_v7 i get the error of versions beyond oreo aren't supported.

EDIT: Nvm, changed the max version but it still doesnt work.

Now trying to manually deodex, but vdexExtractor fails:

((quicken_index)) < ((quicken_info_number_of_indices))
[Magisk] sxml2015:
mar-v-in Update GmsCore v0.2.5.12879
[Magisk] tom.android:
my tutorial to deodex miui-10 cn is here https://xdaforums.com/showpost.php?p=77460913&postcount=3798
[Magisk] tom.android:
New baksmali & smali 2.2.5 is out

https://bitbucket.org/JesusFreke/smali/downloads/

changr log

News

2018-08-28 smali/baksmali v2.2.5 is out

. Support for 8.1 oat files, thanks to Albert Gorski

. Multiple API improvements and bugfixes, thanks to Lanchon

. Restructing of most util classes from util module to dexlib2 module

..The util module is now mostly for utilities needed by both smali/baksmali, but aren't necessarily relevant to

someone who is linking against just the dexlib2 library. E.g. command line parsing utilities, etc.

.A fix for how 45cc instructions (invoke-polymorphic) are parsed, thanks to Albert Gorski

.Added support for missing method handle types, thanks to Albert Gorski

.Some code cleanup, thanks to A4Vision
[Magisk] sxml2015:
[MENTION=7586138]tom.android[/MENTION]

Thank you! ! ! I have collected it.

I tried https://xdaforums.com/showpost.php?p=75179218&postcount=2195 before.

Framework

Smali.jar

Baksmali.jar

>java -jar baksmali.jar x services.odex -d framework\arm64 -o tmp

>java -jar smali.jar a tmp -o classes.dex

Services.jar delete META-INF

Add "classes.dex"

Finally create a magisk module with smali-patcher

Microg hasn't changed. I don't know what I did wrong?
[Magisk] tom.android:
We don't use smali-patcher. read my tutorial again.
[Magisk] starbright_:
Maybe you can see this a a wish to offer an absolutely minimum package. ;)

I like the idea of FDroid - the repo for microG can be added there. This has two issues:

- GsmCore is outdated

- GsmCore will not be installed as system app.

That's why and because of this great and unique spoofing tools for odexed Roms I am here :)
[Magisk] Setialpha:
You can choose what to install (see Alter Installation in the docs), so that minimal package already exists actually.
[Magisk] kurtn:
With yesterday's update gmscore is no longer outdated. You have to enable unstable updates in f-droid.

Biggest advantage of zip installers: addon.d scripts for ROM update survival.
[Magisk] DoR3M3:
[MENTION=4187311]Setialpha[/MENTION] hi...

NanoDroid-patcher-18.0~beta1+vdex_7 not working...

1. Essential PH-1

2. Deodexed Stock Oreo 8.1.0 - In SuperR's Kitchen for Linux v1.1.9.5

3. NanoDroid-patcher-18.0~beta1+vdex_7 - flashed in twrp, after a few minutes screen goes blank, and doesn't come back to TWRP.

I've attached a recovery.log

THANKS! :)
[Magisk] starbright_:
Very good documentation, indeed. Sorry, I was to blind to find that. Usually in the git-hosts the documentation is rather limited. So again: well done!

About that issue with odexed ROM and the missing link /system/vendor -> /vendor. Is this something your script can handle (in future)?
[Magisk] Setialpha:
Just comitted a fix.
[Magisk] Setialpha:
Uploaded microG GmsCore 0.2.5.12879-141-custom.

On device, as root, issue the following command to update:

'nupd mg'
[Magisk] Setialpha:
Still can't load Pie boot.oat, due to utf-8 issues. See issue #621 in the smali github repo.
[Magisk] tom.android:
NanoDroid-uninstaller-18.0~beta1.zip ----Error log

when installed only NanoDroid-patcher-18.0~beta1+vdex_7

*****************************
NanoDroid 18.0.99999999
created by Nanolx
Uninstaller
*****************************

<< Removing configuration files (if any)
<<> removing /data/.nanodroid-setup
<<> removing /data/.nanodroid-apps
<<> removing /data/.nanodroid-overlay
<< Removing installation logs (if any)
<< uninstalling: NanoDroid (System)
<< using: /data/adb/NanoDroid_FileList
<< restoring: unpatched services.jar
<< restoring: / AMAPNetworkLocation
mv: can't rename '/sdcard/nanodroid_backups//AMAPNetworkLocation': No such file or directory
!! failed to restore AMAPNetworkLocation

** post your /tmp/recovery.log
** in the XDA support thread
[Magisk] guest4711:
Did you reboot after installation?
[Magisk] tom.android:
yes, reboot and set up microg-setting till access App store.

( my rom is MIUI-China ROM)
[Magisk] guest4711:
So there is another location provider registered in system probably (Qualcomm 's one will be (systemless) uninstalled, but others than that ....). Perhaps you can find it when looking at settings- location- location provider,
[Magisk] honeyoil:
hi there:cyclops: thanks for ths great module! it's kinda Holy Trinity for me: rom+root+nanodroid)

but need little help, ples.. recently i noticed instant play market attempt to update it's libs, so it tries to do that after every reboot: download, then update itself w/o result. or this is normal proc for microg..?

runs at xiaomi kenzo@0.2.4-128 nanodroid with 11.4.15 market

---

08-30 10:02:27.900 E/Finsky (5615): [2] com.google.android.finsky.dg.k.onReceive(14): Error -505 while installing com.google.android.gms: INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.google.android.gms signatures do not match the previously installed version; ignoring!
[Magisk] Oswald Boelcke:
For Google Play Store, just disable the service "DailyHygiene$DailyHygieneService" by a tool like e.g. MyAndroidTools Pro.
[Magisk] honeyoil:
hmm seems i'm the one who didn't get this service:(

so i check same ones as u disabled and it didn't stop upd (surprisingly))
[Magisk] aaz03:
[MENTION=4187311]Setialpha[/MENTION] , vdexExtractor just got updated, gave it a shot , now it can extract android pie services.vdex without problems (however the output is not a .dex but a .cdex , i don't know if this changes anything but i will try it)
[Magisk] Setialpha:
Just follow the instructions from the documentation and update on-device, as root, using: 'nupd ps'.
[Magisk] Setialpha:
I saw it, will test later today, when I'm home.
[Magisk] Setialpha:
Theese are not linked to each other. What's inside /sytem/app and /system/priv-app?
[Magisk] stratosmacker:
I'm testing NanoDroid-patcher-18.0~beta1+vdex_7.zip as I needed to deodex Android 8.1 for the Unihertz Jelly Pro

When I deodexed on my pc it went pretty quickly (or I did it wrong)

Running the zip (sideloaded in twrp), it seems to be hanging at "patching services.jar" rather than throwing an error. I will let it continue for a while longer.

I'm using NanoDroid-patcher-18.0~beta1+vdex_7.zip
[Magisk] bertino:
Any idea how to work with the new cdex file made by vdexextractor?
[Magisk] Setialpha:
Yes: wait for the next vdexExtractor update, which will be able to re-convert cdex to odex, (cdex is an internal format only supported by ART, but no other tools). See issue 23.
[Magisk] Setialpha:
It may take up to 15 Minutes.
[Magisk] Setialpha:
Patcher 18.0~beta1+vdex_9

A new beta build for the Patcher is now available, which should increase compatibility with Nougat / Oreo ROMs.

No, it's not yet working on Pie.

NanoDroid-patcher_18.0~beta1+vdex_9.zip

Feel free to test.
[Magisk] raptorddd:
might work on miui 8.1?
[Magisk] Setialpha:
Dunno, possibly, you test and tell me?

Manual deodexing instructions are bere, btw: https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/DeodexServices.md
[Magisk] ydd0ras:
Guys, at least. I have successfully deodexed the LOS 16 on Xiaomi Redmi Note 4x, POSP V2 (also Pie) on my OPO and finally LOS 16 on my Mi A1 (was before on LOS 15.1 microG). Did it manually as described here:

https://gitlab.com/Nanolx/NanoDroid/issues/9#note_96859941

It was a bit tricky because the stuff is located in /system/system/framework and with I couldn't pull all stuff properly from TWRP. So i did the almost stuff with device with loaded system, except the installation of the new services.jar (with device in recovery).

Finally flashed the latest beta patcher et voila; LOS 16 with spoofed signature.

Thanks [MENTION=4187311]Setialpha[/MENTION] for great work and a great tutorial
[Magisk] DoR3M3:
Well I believe I have successfully Deodexed Stock Oreo 8.1.0, but that is in SuperR's Kitchen, but then when I tried the lastest NanoDroid-patcher-18.0~beta1+vdex_7 it's not working, in microG it doesn't show I have Signature Spoofing support.

So I am here with all the time in the world on my hands, I've been at this like as long as these betas came out, and can't get anywhere.

I've submitted some logs to [MENTION=4187311]Setialpha[/MENTION], so hopefully when he has time he'll get around to these, because I'd love to be able to get Sig Spoofing on Stock Oreo.

Many custom roms out there have sig spoofing out the box, or I find a lot easier then Stock...

Oh Help Setialpha.... ;)

THANKS
[Magisk] ydd0ras:
Have you tried the manual method, as described in the reply before this post? I could successfully patch 3 devices including the A1 with this method. I assume it will work with stock as well.
[Magisk] sxml2015:
Miui10 Android 7.0 / SDK 24 (Nougat)

ROM odex.

NanoDroid-patcher_18.0~beta1 + vdex_9.zip

Is odex manual decoding or automatic decoding?

TWRP is not installed. Can it be executed on Magisk?
[Magisk] DoR3M3:
I've been trying this method under VDEX

https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/DeodexServices.md

Doing the Deodex manually I think it's working ok, and in SuperR's Kitchen too. The problem seems to be when using the NanoDroid-patcher_18.0~beta1 + vdex. On the Essential, after about 1 minute the screen goes blank and flashes on and off several times for several minutes. And one time I just let it sit for like 15 mins. then pressed the power button and the TWRP screen came back, but on the Main section, so I wasn't sure if it did anything or not. So I booted into the phone, then booted into TWRP and flashed NanoDroid-microG, and when I checked it, it showed there was no Sig Spoof support.

So bottom line;

1. SuperR's Kitchen I'm sure it's deodexing the rom

2. Doing this manually to deodex as I said, it "appears" to work, that's still the question, is it, but the patcher isn't working, manually or SuperR's Kitchen way...

Doing a manual deodex, or with SuperR's Kitchen, how do you know it's successful, how can you tell?
[Magisk] honeyoil:
Done. Gstore upd 11.4.16 and still t same attempts to dwnload libs..

Btw it seems this issue happens after previous upd via #nupd ps/mg. So after sys/data/cache wipe i flashed Firehound os with Magisk and Nanodroid(with 11.2.14 play store) then upd with #nupd and got those annoying libs downloads at 11.4.15 market.

and thank u very much for your invaluable work!! hope that unsinkable ship will give a roll, if u know what i mean))
[Magisk] gadgetguy08:
When I tried this I got this error

What did I do incorrectly?
[Magisk] DoR3M3:
[MENTION=4187311]Setialpha[/MENTION]

Ok I see another beta version, NanoDroid-patcher-18.0~beta1+vdex_9, so I ran through the VDEX steps again;

https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/DeodexServices.md

But I don't get why TWRP, or the need to mount rw as the first step, because next step is an adb pull, so I didn't do that, but I did all the other steps below;

Device: Essential PH-1

Android 8.1.0 (Stock)

1. adb pull /system/framework framework

2. cp framework/services.jar services.jar-backup

3. vdexExtractor -i framework/oat/arm64/services.vdex --ignore-crc-error

4. mv framework/oat/arm64/services.apk_classes.dex classes.dex

5. zip framework/services.jar classes.dex - services.jar is META info, so I didn't run -d I just added classes.dex

6. zip -j framework/services.jar classes.dex

7. I copied the service.jar to my phone with an mtp app gmtp.

8. adb shell

9. su

10. mount -o rw,remount /system

11. chmod 0644 /system/framework/services.jar

12. chown root:root /system/framework/services.jar

I then booted into TWRP and flashed NanoDroid-patcher-18.0~beta1+vdex_9, it said the ROM was ODEXED and began, then after a minute the screen went blank, and a minute later, came back on the main TWRP section. I booted into the phone and ran microG and System spoofs signature not checked... :(

Also in the Settings > App permissions there's nothing listed for Signature Spoof...

I'm attaching the revovery.log and a screen shot of microG.

I don't remember if you mentiond before, but should this work for Stock Oreo 8.1.0?

Thanks Setialpha
[Magisk] Setialpha:
Did you install your deodexed services.jar into /system/framework?
[Magisk] DoR3M3:
[MENTION=4187311]Setialpha[/MENTION] yes that was step 7 that I mentioned in my steps > 7. I copied the service.jar to my phone with an mtp app gmtp.
[Magisk] ydd0ras:
Very simple. After deodexing the stuff I have flashed the NanoDroid microG and the NanoDroid patcher without problems. Here on LOS 16. Please check the pics.
[Magisk] DoR3M3:
LOS is not Stock, there's a difference...

I'd love for someone else to test this on Stock Oreo 8.1.0.

Please make a TWRP BACKUP of LOS, then wipe and Flash Stock Oreo for your device.

Then Deodex Stock Oreo and run NanoDroid, and tell me what you get?

Because this does not work for me in Stock Oreo 8.1.0. :(

Hey it's a little work, but how long does it take the Geek to do? LOL ;)

Thanks
[Magisk] ydd0ras:
Oh, that's lot of work. But that's not the problem. On vacation with family from Sunday, so not much time left for flashing. Will try, if possible. But I am scared of using the MiFlasher again xD.
[Magisk] DoR3M3:
Oh you better not be Flashing on the beach! HA

Oh that's right I forgot you have an Mi A1, wasn't paying attention.

You don't have to use MiFlash, and to be safe, I always wipe both Slots in TWRP first.

Flash using the flash_all.bat from the command prompt... ;)
[Magisk] lambroslnk:
I have the exact same error message, any help on how to resolve this guys?

Edit: I installed it by placing it inside the microg flashable zip in the appropriate folder and rezipping it.
[Magisk] sxml2015:
My ROM

System partition lock

Do not use smali-patcher

RootExplorer manual replacement? Services.jar
[Magisk] tom.android:
yes
[Magisk] raptorddd:
why bother use xposed for nougat then use fakegapps module.
[Magisk] lee.wp14:
Hi. I'm getting this error, any idea?

https://del.dog/odegodayez
[Magisk] Hb20032003:
"If you can see /system/framework/oat/[arch]/services.vdex, where [arch] is the device architecture (arm, arm64, x86 or x86_64), you should follow these instructions..."

My device does not have oat folder in framework. Any help?
[Magisk] Setialpha:
Then it is already deodexed.
[Magisk] Setialpha:
I've done several fixes for the next beta, but also your TWRP is outdated, you should update in any case.
[Magisk] Dezqo:
Sucessfully deodexed my custom rom using this latest beta build! :)

I am using a Xiaomi Mi A1 running official Resurrection Remix on android 8.1 for anyone wondering.

I checked my files before and there was a 'services.vdex' and a 'services.odex' file. The 'services.jar' file has also been backed up correctly!

My steps for anyone wondering:

I started by wiping my device and flashing my custom rom.

Flashed magisk.

After that I did NOT install gapps but if I understand correctly NanoDroid removes them if you have them installed!

Then I flashed 'NanoDroid-patcher-18.0~beta1+vdex_9.zip' through TWRP.

After that I checked if everything worked with Signature Spoofing Checker.

Then I installed 'NanoDroid-microG-17.9.20180818.zip' (from the stable releases) through magisk.

Updated microG with "nupd mg".

Done!

I still have one question though, is there a command that checks if a component needs to be upgraded with "nupd"? I knew about the microG update because it showed up in f-droid but of course that's not optimal seeing as you slightly modified these apps, right?
[Magisk] Souvikhazra80:
Waiting For Pie :)
[Magisk] :
[MENTION=4187311]Setialpha[/MENTION] should we pass safetynet on microg? im using new magisk v17 but when i check sn app will crash? here is log

Edit: oh i just read your older post

"FYI: SafetyNet attestation crashes or fails with invalid response since last week with the API update. DroidGuard Helper would need to be updated.

So whether any app works depends on how it interprets an invalid response, some crash, some will deny working, some will work."
[Magisk] Setialpha:
Great it worked for you. :)

No, it does not check, whether it actually needs an update, it just does.
[Magisk] HemanthJabalpuri:
SIR my issue from https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928/post77442795 is still there....
[Magisk] Setialpha:
Which? microG or Uninstaller?

For the former post a logcat, for the latter post new logs please, as I already made several changes.
[Magisk] HemanthJabalpuri:
Sir it is microG...

Is there any way to do logcat without pc? Help