update of xda2nbftool - Upgrading, Modifying and Unlocking

I added more checks to xda2nbftool, so it is harder to create incorrect images without being warned about it.

Itsme said:
I added more checks to xda2nbftool, so it is harder to create incorrect images without being warned about it.
Click to expand...
Click to collapse
Is it the same file here http://forum.xda-developers.com/viewtopic.php?t=4785 ?
:roll:

Related

[FOR DEV's] sqlite3 disable sync

Can anyone compile for us a patched libsqlite.so and post it here please? I would do it, but I don't know how to be honest. Thank you.
After modified, the time of insert 2000 records to sqlite3 db, from 1m11s reduce to 2s.
Click to expand...
Click to collapse
Instructions theme (and file with code attached) http://forum.xda-developers.com/showthread.php?t=903507
It's real to make this patched lib for Stock 2.3.5(KS5), or only CM? (but i think this was permanently enabled in CM)
Sorry for bad eng. im from Russia

[App]Boot Spash Screen Changer

I postet this App originally in the Android main general section, beacause I am searching for testers on other devices,
but I developed it using our phone so you can give it a try.
http://forum.xda-developers.com/showthread.php?p=42077109
Hi guys, I always wanted to change my Boot Splash Screen (that thing that shows before the Boot Animation)
So i tryed to write a simple app.This will work on every device, how ever I need testers to confirm.
This Application needs Root Access and CWM or TWRP in order to work.
So I didn't manage to get a working conversion from png to rle on the Android platform it self, however I wrote a windows Converter.
Get it :
Please not that this is a pre alpha, so don't be mad if you think it sucks.
There is much more to come but I need to test this feature now to resume developing it.
- alpha 1
Added a server to easily download the Converter to your PC
- Pre-alpha1: https://www.dropbox.com/s/z530xpgaw5cmrfq/pre-alpha-1.apk
- Converter for Windows : https://www.dropbox.com/s/x0sfxwx7deuqquh/PNG-2-RLE.exe
Click to expand...
Click to collapse
Instructions :
1. Resize the png file to your screen dimensions
2. place it in the same folder as the executabel Conveter
3. Copy the .rle on your phone
4. Run the App and choose the .rle
Click to expand...
Click to collapse
Help :
There is still a lot of work to do.Any help is appreciated.Please pm me.
You can help by :
-making an Icon [the current sucks but I am not good at graphics]
-port the Windows script to linux
-test it and report it back here
Click to expand...
Click to collapse
Click to expand...
Click to collapse
I also added some .rle file I allready made for this device. (they are in the zip.zip attachment).
12alex21 said:
I postet this App originally in the Android main general section, beacause I am searching for testers on other devices,
but I developed it using our phone so you can give it a try.
http://forum.xda-developers.com/showthread.php?p=42077109
I also added some .rle file I allready made for this device. (they are in the zip.zip attachment).
Click to expand...
Click to collapse
Thanks for making this great app !!
Successfully changed my boot screen !!:good:
Again , thanks !!!!

[WIP][XPOSED]Trying to find a Lollipop FIX

Hi guys, like you know xposed for Android 5 on our device break some system app like LGCover and LGWeather. This because the new Xposed use some binary built from the AOSP source that don't work with the above apks that contain an encrypted classes.dex ( AES128-CBC ).
Since decrypt that classes is quite impossible i started a different approach. So i looked inside the dalvik-cache where all the dex built by the compiler are stored.
Theese classes contains also the original classes.dex code.
example: /data/dalvik-cache/arm/[email protected] @....dex
Structure:
USELESS CODE
CLASSES.DEX ( that start with the magic dex.035 )
USELESS CODE
Header of the classes.dex
Offset.............Size...........Description
0x0................8................'Magic' value: "dex\n009\0"
0x8................4................Checksum
0xC...............20...............SHA-1 Signature
0x20..............4................Length of file in bytes ( in Little endian and hex value )
....
Getting that class is quite simple when you know how the dex header is formatted so i cut off the useless code and got the original classes.dex that can be decompiled with baksmali and used inside the apk.
Unfortunately this method doesn't work for the dex that were encrypted. Or at least, I'm missing the last step because there's something wrong with the code in this extrapolated class since the SHA1 signature appears to be wrong and consecutively also the Checksum are incorrect.
So, from my point of view we have 2 possible scenario:
1- the length of the classes that we can find in the header is wrong; ( most probable for me )
2- the code of the dex has been changed by the system.
Wish you can suggest me some ideas.
@suljo94 @P_Toti pls check this and tell me what you think. Tnx.
Skin1980 said:
methode 1
Click to expand...
Click to collapse
could you check if an system service is activated when the lgcover apk is called(to decrypt), if not the key might be saved in the app source code (might be obfuscated)
suljo94 said:
could you check if an system service is activated when the lgcover apk is called(to decrypt), if not the key might be saved in the app source code (might be obfuscated)
Click to expand...
Click to collapse
Yes probably the code is obfuscated... might try with Ida pro and a dedicated plugin
Sent from my SM-N910F using XDA Free mobile app
Skin1980 said:
Yes probably the code is obfuscated... might try with Ida pro and a dedicated plugin
Sent from my SM-N910F using XDA Free mobile app
Click to expand...
Click to collapse
I am sorry that I can't help(ffor now), this week is an vacation and I as a poor student have to work to pay off those expensive books
ontopic: @jcase said he would look into it in the other thread, maybe he found something intressting in the meanwhile
suljo94 said:
I am sorry that I can't help(ffor now), this week is an vacation and I as a poor student have to work to pay off those expensive books
ontopic: @jcase said he would look into it in the other thread, maybe he found something intressting in the meanwhile
Click to expand...
Click to collapse
Well... with @jcase all is possible !
Sent from my SM-N910F using XDA Free mobile app
Skin1980 said:
Well... with @jcase all is possible !
Sent from my SM-N910F using XDA Free mobile app
Click to expand...
Click to collapse
so I found a system service that gets called when the lgsmartcover app crashes to many times. the system restarts it together with lgcover. it is part of lgcover so I am hopping lg was so stupid to save the key in the same file as the encrypted container
suljo94 said:
I am sorry that I can't help(ffor now), this week is an vacation and I as a poor student have to work to pay off those expensive books
ontopic: @jcase said he would look into it in the other thread, maybe he found something intressting in the meanwhile
Click to expand...
Click to collapse
Skin1980 said:
Well... with @jcase all is possible !
Sent from my SM-N910F using XDA Free mobile app
Click to expand...
Click to collapse
Its just encrypted, easiest route is to snag from the cache and deodex as someone said above, if yall really need something to decrypt it ill look at again when i have time
jcase said:
Its just encrypted, easiest route is to snag from the cache and deodex as someone said above, if yall really need something to decrypt it ill look at again when i have time
Click to expand...
Click to collapse
Would be great... tnx a lot!
Sent from my SM-N910F using XDA Free mobile app
jcase said:
Its just encrypted, easiest route is to snag from the cache and deodex as someone said above, if yall really need something to decrypt it ill look at again when i have time
Click to expand...
Click to collapse
Could you tell us why the SHA1 signature is incorrect?
suljo94 said:
Could you tell us why the SHA1 signature is incorrect?
Click to expand...
Click to collapse
incorrect? Which sha1? in the siguatre, or in the dex header?
jcase said:
incorrect? Which sha1? in the siguatre, or in the dex header?
Click to expand...
Click to collapse
Dex header(see op)
suljo94 said:
Dex header(see op)
Click to expand...
Click to collapse
meh who cares, the sha1 doesnt matter, just fix the alder32 checksum, or correct them both.
suljo94 said:
Dex header(see op)
Click to expand...
Click to collapse
Probably the sha1 is added before the obfuscation method.
Sent from my SM-N910F using XDA Free mobile app
Skin1980 said:
Probably the sha1 is added before the obfuscation method.
Sent from my SM-N910F using XDA Free mobile app
Click to expand...
Click to collapse
did you salvage th whole classes.dex or just partially?
and is recalculating the sha1 and alder32 an option (if you salavaged it completely)
can we use dexguard for deobfuscation?
how did you open the file? I can't dex2jar it because it keeps saying that it isn't a dex file.
so many questions......
suljo94 said:
did you salvage th whole classes.dex or just partially?
and is recalculating the sha1 and alder32 an option (if you salavaged it completely)
can we use dexguard for deobfuscation?
how did you open the file? I can't dex2jar it because it keeps saying that it isn't a dex file.
so many questions......
Click to expand...
Click to collapse
try to look into the classes dex with an hex editor, it's encrypted and that's why you can't use tool like that on the original dex.
If you want play, this is the dex i extracted from the dalvik-cache of the LGweather apk:
https://mega.co.nz/#!DsRHQaBL!YInp8fsaRpzZ3dbHogbNytWZfzedF9Le_PndvnmhSQs
The software i tryed fail to decompile it but maybe you are more lucky
Skin1980 said:
try to look into the classes dex with an hex editor, it's encrypted and that's why you can't use tool like that on the original dex.
If you want play, this is the dex i extracted from the dalvik-cache of the LGweather apk:
https://mega.co.nz/#!DsRHQaBL!YInp8fsaRpzZ3dbHogbNytWZfzedF9Le_PndvnmhSQs
The software i tryed fail to decompile it but maybe you are more lucky
Click to expand...
Click to collapse
some surfing aroud caused me to find which file decrypts lgcover it is the libgalmond.so file
the colprit it contains some interesting code "adler inflation"
@jcase it has been 2 months and I tried a few things but since you know more about this could you please tell me how to get the correct adler32 checksum? maybe for lets say 1 of those cheap wines you like
suljo94 said:
some surfing aroud caused me to find which file decrypts lgcover it is the libgalmond.so file
the colprit it contains some interesting code "adler inflation"
@jcase it has been 2 months and I tried a few things but since you know more about this could you please tell me how to get the correct adler32 checksum? maybe for lets say 1 of those cheap wines you like
Click to expand...
Click to collapse
Tim Strazzere and I may be talking about it at qualcom next week, wait and see if our slides cover it.
jcase said:
Tim Strazzere and I may be talking about it at qualcom next week, wait and see if our slides cover it.
Click to expand...
Click to collapse
so I got the slides and I am starting to think that the problem could be that xposed links app_process32 to app_process32_xposed and that the shared library gets injected into the wrong file (app_process32)

[TOOL]SplashInjector[OP5]

SplashInjector​splash injector is a tool created by me based on the work done by @makers_mark . it is a basic command line interface but it gets the job done. it supports all oneplus devices so far except the oneplus x :crying: i can add support once someone gets me the logo.bin file from that device. The tool is pretty simple its based on the work here https://forum.xda-developers.com/oneplus-3/themes/mod-splash-screen-image-injector-t3441999 this is where i got this all from. i know it can be kinda hacky and only supports unix systems i think you can get it working by using git bash on windows. In its current state it can decode and encode all oneplus logo.bins (Including the OnePlus 5!) it can also pack flashable zips for you automatically. all you need to do is run the decode option edit the file you want in the output folder. Then you can run the encode command and it will pack it all back up. Then package it with the package command. Once again major credit to @makers_mark he did all the leg work. i just made it a little more friendly. lmk if there is any issues you find
Telegram: @ethanbanker if you need anything contact me here.
Now lets get to it
follow the instructions here located here
https://github.com/ethanbanker2428/SplashInjector
Updates:
1.52: Ok guys im not a windows expert...i barely use it so the tool does support windows now but it cant package files. it does give you all the tools and files you need to package one tho. you can use a tool such as this https://forum.xda-developers.com/android/software-hacking/tool-6-feb-android-flashable-zip-t3551772 this update also includes a completely revamped system. lmk about any bugs you find. for windows you need to install and use GIT bash. i also added a update function to easily update the tool. its simple but it works. heres my git again for you guys https://github.com/ethanbanker2428/SplashInjector
WARNING I AM NOT RESPONSIBLE FOR ANYTHING YOU DO. DO THIS AT YOUR OWN RISK
Excellent...... working great for OP5
Thanks
biohaz55 said:
Excellent...... working great for OP5
Thanks
Click to expand...
Click to collapse
Hi, I can't get it working on Windows. If I send you a PNG will you make me a zip?
Thanks! Here is the Windows binary and src for logoinjectorv1.52.
makers_mark said:
Thanks! Here is the Windows binary and src for logoinjectorv1.52.
Click to expand...
Click to collapse
thanks im gonna rebuild with the newest version and probably work on a windows version tonight :good:
Can you make a captain America one?
can u please make flashable zip i cannot get the method to flash . can u guide me please @bobglaus
freakzapster said:
can u please make flashable zip i cannot get the method to flash . can u guide me please @bobglaus
Click to expand...
Click to collapse
did u use option 3? package? that should make one after you edit the files
bobglaus said:
did u use option 3? package? that should make one after you edit the files
Click to expand...
Click to collapse
actually i dont know to edit files i am new to this thats why i am not understanding
freakzapster said:
actually i dont know to edit files i am new to this thats why i am not understanding
Click to expand...
Click to collapse
click the help option. i feel it explains it pretty well. to edit the png in the output folder use gimp or photoshop
Ok just an update windows support is finished and in the tool now. I'll push probably tomorrow it works and packs and unpacks fine just getting issues with packaging the zips. It corrupts them. Im gonna switch to 7zip and see if that works then I'll push
bobglaus said:
Ok just an update windows support is finished and in the tool now. I'll push probably tomorrow it works and packs and unpacks fine just getting issues with packaging the zips. It corrupts them. Im gonna switch to 7zip and see if that works then I'll push
Click to expand...
Click to collapse
Other option is to move the files to the output folder and ask the user to manually zip them, it's available on windows right click menu.
---------
I have a question, what's the BGR option for? I thought it was for op5 display but it only change the color of the pngs, so I switched it for RGB and now my logo looks good.
I share my mod, original was taken from CUSTOM BOOT LOGO PACK FOR OnePlus3.
badtzo said:
Other option is to move the files to the output folder and ask the user to manually zip them, it's available on windows right click menu.
---------
I have a question, what's the BGR option for? I thought it was for op5 display but it only change the color of the pngs, so I switched it for RGB and now my logo looks good.
I share my mod, original was taken from CUSTOM BOOT LOGO PACK FOR OnePlus3.
Click to expand...
Click to collapse
bgr does **** up the colors a bit or fixes it. its one of those things where you use it if you need it and you will know if you need it.
also update to anyone else that update will have to wait. im a perfectionist and im revamping the whole thing to alot cleaner code. windows should work tho and the oneplus x will be supported hopefully too
Update: Ok guys im not a windows expert...i barely use it so the tool does support windows now but it cant package files. it does give you all the tools and files you need to package one tho. you can use a tool such as this https://forum.xda-developers.com/android/software-hacking/tool-6-feb-android-flashable-zip-t3551772 this update also includes a completely revamped system. lmk about any bugs you find. for windows you need to install and use GIT bash. i also added a update function to easily update the tool. its simple but it works. heres my git again for you guys https://github.com/ethanbanker2428/SplashInjector
bobglaus said:
Update: Ok guys im not a windows expert...i barely use it so the tool does support windows now but it cant package files. it does give you all the tools and files you need to package one tho. you can use a tool such as this https://forum.xda-developers.com/android/software-hacking/tool-6-feb-android-flashable-zip-t3551772 this update also includes a completely revamped system. lmk about any bugs you find. for windows you need to install and use GIT bash. i also added a update function to easily update the tool. its simple but it works. heres my git again for you guys https://github.com/ethanbanker2428/SplashInjector
Click to expand...
Click to collapse
Hi, I created the zip but it won't flash in twrp. Is there a compression method to use? Using 7zip.
Bigs1985 said:
Hi, I created the zip but it won't flash in twrp. Is there a compression method to use? Using 7zip.
Click to expand...
Click to collapse
use the tool i linked in the post you qouted
bobglaus said:
use the tool i linked in the post you qouted
Click to expand...
Click to collapse
I thought it didn't package the zips correctly? Is that fixed?
Bigs1985 said:
I thought it didn't package the zips correctly? Is that fixed?
Click to expand...
Click to collapse
No this one https://forum.xda-developers.com/android/software-hacking/tool-6-feb-android-flashable-zip-t3551772
how can i pull LOGO.bin from my oneplus 5?
when i run:
adb shell dd if=/dev/block/sde17 of=/sdcard/partition/LOGO.bin
Click to expand...
Click to collapse
i get this error message:
dd: /dev/block/sde17: Permission denied
Click to expand...
Click to collapse
Please help
Thanks
spicemaster said:
how can i pull LOGO.bin from my oneplus 5?
when i run:
i get this error message:
Please help
Thanks
Click to expand...
Click to collapse
Of course you need root,The right command is
adb shell su -c dd if xxxx

[TOOL] [WINDOWS] Tissot Splash Maker (mod all 5 PNG's in splash.img)

Heya,
Here is a simple to use script to build splash.img from 5 PNG's. The 5 PNG's are:
Mi logo screen on locked bootloader
Fastboot image
Mi logo screen on unlocked bootloader
'System destroyed' image
'Please lock the bootloader' early splash.
Like the old script, there is still a size limit per splash. However there is an alternative mode or "hack" that lets you use a larger PNG for image #3, at the expense of rendering image #4 broken (and who cares about that one, right?).
Usage is simple - just download, replace the PNG's in "input" folder, and run the tool. If there are any errors it will say so, otherwise you will get a splash.img that you can flash in fastboot:
Code:
fastboot flash splash splash.img
The original input folder has all the stock images included.
Enjoy!
Download from GitHub (Press the green 'Clone or Download' button -> 'Download ZIP'.
AV Warning: Some security software might flag the EXE as suspicious. It's written in a language called AutoIt which is a common language for keyloggers and bots and stuff because it's super easy and awesome to do all kinds of stuff with it. Ignore it/exclude it, or you can compile the included .au3 source yourself if you don't trust it.
Bonus: pre-made splash IMG's included in repo. Flashable ZIP's attached, credits to @GokulNC for the ZIP template.
splash_rr.img - RR logo splash for seamless transition into RR boot animation
Thank you, you the man, could i ask you a linux version? if not no problem...
A Linux version would be great because I don't have any Windows device
Is it possible to completely skip the warning?
TioCareca said:
Thank you, you the man, could i ask you a linux version? if not no problem...
Click to expand...
Click to collapse
jigs4wkiller said:
A Linux version would be great because I don't have any Windows device
Click to expand...
Click to collapse
Impossible. Tool is written in AutoIt which is Windows-only. I hate Python lol. Of course anybody is free to rewrite a cross-plarform implementation, I just won't.
ProchyGaming said:
Is it possible to completely skip the warning?
Click to expand...
Click to collapse
No. Just replace it with the same image so you see no transition.
Even if you wipe splash partition, it doesn't make the boot any faster.
CosmicDan said:
No. Just replace it with the same image so you see no transition.
Even if you wipe splash partition, it doesn't make the boot any faster.
Click to expand...
Click to collapse
Ok, thanks for the info
@CosmicDan I don't have a window system. Could you make a splash image of OnePlus? You can take pngs of OnePlus 3. I hope its not much to ask.
CosmicDan said:
Impossible. Tool is written in AutoIt which is Windows-only. I hate Python lol. Of course anybody is free to rewrite a cross-plarform implementation, I just won't.
Click to expand...
Click to collapse
Ok thanks anyway and thank you for the tool...
brajesh.sharma87 said:
@CosmicDan I don't have a window system. Could you make a splash image of OnePlus? You can take pngs of OnePlus 3. I hope its not much to ask.
Click to expand...
Click to collapse
No lol. Other people with more time can make pre-made packs.
Someone volunteer please, I've got development to do.
I made this tool so people would NOT request special treatment from me. Try it in Wine or just get Windows in a VM like all serious people do or something, locking yourself to one OS is silly.
32 bit OS is non support?
CosmicDan said:
Impossible. Tool is written in AutoIt which is Windows-only. I hate Python lol. Of course anybody is free to rewrite a cross-plarform implementation, I just won't.
Click to expand...
Click to collapse
Maybe someone find a way to get it working with wine
jigs4wkiller said:
Maybe someone find a way to get it working with wine
Click to expand...
Click to collapse
well it works in wine, just freeze converting 2 image...
Edit: it do not freeze, just take time, it took me 30 minuts in wine, but all good, splash is changed and perfect...
TioCareca said:
well it works in wine, just freeze converting 2 image...
Edit: it do not freeze, just take time, it took me 30 minuts in wine, but all good, splash is changed and perfect...
Click to expand...
Click to collapse
Wow that's weird. I wonder why.
Maybe because I've included Windows version of Python 2.7. Did the "converting" part take longest? That calls the python binary + a script.
belyo said:
32 bit OS is non support?
Click to expand...
Click to collapse
Oh whoops. I'll compile it to an x86 binary. Re-download in about 10 minutes from now.
CosmicDan said:
Oh whoops. I'll compile it to an x86 binary. Re-download in about 10 minutes from now.
Click to expand...
Click to collapse
It worked fine. Thanks.:good:
Hi good day sir! Can yoou share the RR boot logo picture? So we can see it before flashing it
Edited:Ty for this already flashed it.!
CosmicDan said:
Wow that's weird. I wonder why.
Maybe because I've included Windows version of Python 2.7. Did the "converting" part take longest? That calls the python binary + a script.
Click to expand...
Click to collapse
Yes, i think it was because python is windows version, wine as to call two exe (the tool and python) the longer time is when processing RLE...
In the end all worked and that is what matter...
Just one question, whats the size limit of images?
TioCareca said:
Yes, i think it was because python is windows version, wine as to call two exe (the tool and python) the longer time is when processing RLE...
In the end all worked and that is what matter...
Just one question, whats the size limit of images?
Click to expand...
Click to collapse
If you check the .au3 file (source code), you can see a couple of arrays at the beginning that show the size limits in bytes. The first one is standard limit, the second array is with the larger 03 hack.
But this is the size limit of the RLE files. It's impossible to calculate the RLE size without actually converting it first. It's a very different (more basic) compression method than PNG and can't be predicted.
Hey dev please make for lineage os
Thanks before
panjivegency said:
Hey dev please make for lineage os
Thanks before
Click to expand...
Click to collapse
Make it yourself.
Is tool for windows?

Categories

Resources