Coder Social home page Coder Social logo

Comments (3)

Eltion avatar Eltion commented on June 11, 2024

Fixed with 74e9bd2. Removed compressing from resources.arsc

from instagram-ssl-pinning-bypass.

michelerenzullo avatar michelerenzullo commented on June 11, 2024

Failure [-124: Failed parse during installPackageLI: Targeting R+ (version 30 and above) requires the resources.arsc of installed APKs to be stored uncompressed and aligned on a 4-byte boundary]

I think you are still compressing resources.arsc.
In the new Android sdk I changed zipalign -p -f 4 , please not the -p argument is required now. But for some reason it doesn't work still with your python script

It might be useful take a look at my script that I use everyday with IG etc... it copies the raw res files and compile/replace just the edited classes.dex, zipalign, sign and install.
Edit "my_path" of your tools and "nome"(name) of your apk.
Note: I have those sub paths: apks(original apk), apks_d(decompiled by apktool) and apks_s(signed)

Run:
aut.bat classes classes2

set my_path=C:\Users\miki\Michele\APK

set nome=Instagram_237.0.0.14.102-363704332
rem set classes=classes4 classes3 classes2 etc... lista delle classi
set classes=%*

for %%a in (%classes%) do (if %%a==classes (java -Xmx3000m -jar %my_path%\smali-2.5.2.jar ass %my_path%\apks_d\%nome%\smali -o %my_path%\apks_d\%nome%\%%a.dex) else (java -Xmx3000m -jar %my_path%\smali-2.5.2.jar ass %my_path%\apks_d\%nome%\smali_%%a -o %my_path%\apks_d\%nome%\%%a.dex))

if not exist %my_path%\apks_s\NUL mkdir %my_path%\apks_s\

COPY "%my_path%\apks\%nome%.apk" "%my_path%\apks_s\toalign%nome%.apk" /Y

for %%a in (%classes%) do 7za.exe a -tzip %my_path%\apks_s\toalign%nome%.apk %my_path%\apks_d\%nome%\%%a.dex 

%my_path%\zipalign.exe -p -f 4 %my_path%\apks_s\toalign%nome%.apk %my_path%\apks_s\zipaligned%nome%.apk

del %my_path%\apks_s\toalign%nome%.apk

java -Xmx1024m -jar %my_path%\apksigner.jar sign --ks %my_path%\XXXX.jks --ks-pass pass:XXXXX --in %my_path%\apks_s\zipaligned%nome%.apk --out %my_path%\apks_s\signed%nome%.apk

del %my_path%\apks_s\zipaligned%nome%.apk
del %my_path%\apks_s\signed%nome%.apk.idsig

adb.exe install -r %my_path%\apks_s\signed%nome%.apk

from instagram-ssl-pinning-bypass.

michelerenzullo avatar michelerenzullo commented on June 11, 2024

UPDATE:

  • I just solved the issue with resources.arsc, adding it uncompressed as ZIP_STORE".
  • Improved zipalign for new android versions, adding -p to ensure that they're aligned to a 4KiB page boundary suitable for mmap(2)
    see my pull request and let me know.

Anyway, as the itsMoji and my version, your version has our same issue. when close the app and reopen it doesn't load anymore the pictures. There is some internal check to bypass, we should investigate on it

from instagram-ssl-pinning-bypass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.