Lanchon / haystack

Signature Spoofing Patcher for Android
GNU General Public License v3.0
234 stars 45 forks source link

just wanted to say: This is awesome! #2

Open ghost opened 7 years ago

ghost commented 7 years ago

Nice work man. Smali is an unreadable b!tch.

Lanchon commented 7 years ago

lol thanks!

Lanchon commented 7 years ago

btw this is about the best issue i ever got, you should've left it open lol

ghost commented 7 years ago

I'm looking to apply this to my stock ROM (Nexus 6P 7.0) which is sadly deodexed, is there a way to deodex only the files that this modifies?

Lanchon commented 7 years ago

hey,

i'm a bit against hacking stock. dealing with rooting, mods, otas, and the cat-and-mouse game with the OEM is a pain. what happens in the end is that ppl end up using old unpatched and exploitable OSes.

i'd recommend that you go for fully custom, such as CM, or remain fully stock (no root, nothing).

that said, you have options. you can use latest smali beta (or tool/gui based on it) to deodex the complete rom or just the modded files (service.jar and Settings.apk). only two files, you can even do it manually.

but i'd say don't. you have a very popular and supported device. if you don't want to wipe and go fully custom, why don't you switch to a stock-based recovery flashable distro? you can find them with disabled OTA, pre-rooted, maybe debloated, and even deodexed. and because they are really massaged stock, you can clean-flash /system without wiping /data. picture that the dev you choose will do the whole dance after every OTA, with you just needing to flash.

otherwise you can find the same exact version of modded deodexed flashable stock that you are running and extract the two deodexed files you need (but then you don't learn how to deodex).

finally, you can forgo Haystack altogether and use xposed and the spoof-sign xposed module, if you want seamless updates.

ghost commented 7 years ago

I've done custom alot man, just trying stock for a bit. Xposed is also not out for Android N yet

Lanchon commented 7 years ago

oh yeah, N! i was using KK for the longest time... until it went unsupported by everybody. that OpenPDroid-patched build was the best android i ever used. i switched to de-googleized MM recently, i guess i'll stick with this one for a long time. i go for MM just in time to see CM dropping it lol :)

ghost commented 7 years ago

do you know the commands to deodex with smali.jar?

Lanchon commented 7 years ago

no such thing AFAIK. you have to baksmali and then samli the complete jar/apk. baksmali can read odex/oat files.

ghost commented 7 years ago

I meant the use of both baksmali & smali, looking to pull the necessary files and if odexed deodex the files.

Lanchon commented 7 years ago

i suppose it's quite straightforward. but ive never done it, you'll have to look for the details yourself.

please post your experience here :)

Lanchon commented 7 years ago

hey, i gave you wrong info! check this out: https://github.com/JesusFreke/smali/issues/375

It's worth pointing out that when you change any of the framework jars (e.g. by deodexing them), it invalidates all odexes on the devices, so you have to deodex everything on the system image.

if you use windoze: http://forum.xda-developers.com/showthread.php?t=2213235

ghost commented 7 years ago

@BenBaltz when I reported issues of patching CopperheadOS with the MicroG signature spoofing script, you recommended Haystack instead. Before I go flashing COS on my device, I was curious if root adb is even an option? Or do you have to root your device to toggle root adb? Noob question! Thank you and great project you've created @Lanchon

Lanchon commented 7 years ago

this is completely off-topic, please do not post again regarding adb root on this issue. adb root requires a custom kernel or else some kind of huge brittle hack. take care.

TheArkive commented 7 years ago

Loving this mod! Thanks for developing it!

IAMtheIAM commented 7 years ago

@Lanchon Thanks from me also! Your DexPatcher/Haystack along with NanoMod helps to allow people like me to regain control of our phones, away from the grips of corporate/govt privacy invading interests. Excellent work.

IAMtheIAM commented 7 years ago

Also, one tip that will help others... can you update your readme to tell them that they must be in TWRP Recovery in order for the final ./push-fileset command to work. I couldn't figure out why I kept getting : couldn't create file: Read-only file system... until someone on a thread somewhere mentioned being inside TWRP recovery to make /System writeable. Rebooted into recovery and then ./push-fileset worked perfectly. :-D

ghost commented 7 years ago

@IAMtheIAM if your rooted you can mount /system rw using terminal emulator

Lanchon commented 7 years ago

hi @IAMtheIAM,

thanks for your comments!

golden rule: never overload an issue with stuff about an unrelated issue, no excuse, NEVER. you see that now @BenBaltz responded to you and now whatever this issue was about before (it happened to not be important, this one) is all gone to hell. also, how are people to find info on this new issue if conversation is buried inside a non-related issue? yes, i have a response for you but i refuse to post it here. but i will reply if you create a proper issue, maybe titled as "push-fileset error: couldn't create file: Read-only file system".

thanks again!

ElPumpo commented 7 years ago

More awesome stuff from @Lanchon! In the future couldn't you make this a executable script for TWRP?

Lanchon commented 7 years ago

lol pumpo, this is old as hell !!!! :)

IAMtheIAM commented 7 years ago

@Lanchon Good point about the "golden rule". I'll remember that for future posts :-D

Tobiaqs commented 4 years ago

Old thread I know, but @Lanchon thanks a lot for developing this!

Lanchon commented 4 years ago

thank you so much for the message and your kind attention, few people actually do that. thanks!