Off-Topic Discussion for kitchen users

Search This thread

The Exploiter

Senior Member
Jul 27, 2017
56
14
It unpacks in AIK without issues running 64-bit Ubuntu 16.04. You are probably right and just missing a dependency that comes pre-installed in Debian based systems. Let me know if you figure out a way to deal with it :)

edit: do you have cpio installed? If not that may solve the issue


I had flashed AIK in custom recovery, but I can't seem to get it to work properly..
 

The Exploiter

Senior Member
Jul 27, 2017
56
14
Bro 2 more things i want to learn
1st how add multi languages in extracted rom?
And how fix gapps also in extracted rom?


What do you mean by that sir? I will be happy to help you :)

---------- Post added at 06:04 AM ---------- Previous post was at 06:02 AM ----------

Bro 2 more things i want to learn
1st how add multi languages in extracted rom?
And how fix gapps also in extracted rom?


For multi languages its usually built into the ROM. Fixing gapps depends on what's wrong with it.


When you extract your rom what gapps are you trying to fix?
 

The Exploiter

Senior Member
Jul 27, 2017
56
14
can you give me little details about add multi languages in extracted rom

and also add gapps


If you have a custom ROM build without gapps then grab a version perspective to your device too flash in recovery


To add multi languages (depending on the ROM) I would look around on XDA.. I haven't ever heard of multi language..
 

The Exploiter

Senior Member
Jul 27, 2017
56
14
Java 6?

sudo apt-get install openjdk-6-jdk openjdk-6-jre

You need Java 8 for the SuperR Kitchen tho..

Its for CM11 source code since I'm building CWM for nthe SM-T113

---------- Post added at 02:15 AM ---------- Previous post was at 01:34 AM ----------

Java 6?

sudo apt-get install openjdk-6-jdk openjdk-6-jre

You need Java 8 for the SuperR Kitchen tho..


Its telling me there's no install canadate.. I'm gonna go break my PC now..
 

vitjinka

Member
Aug 8, 2017
30
2
hi guys...
can someone help me please?

I'm really new to superr kitchen...

I'm trying to make an deodexed rom for an S8+.
I can't get it it start. it boots but stucks at samsung logo.

so, what are the right way to make an deodexed rom?

thanks in advance
 

SuperR.

Recognized Developer
Mar 23, 2014
2,581
8,541
Invisible
Hey @SuperR. I have a general apktool question.

I want to make some SystemUI mods for my ROM.

When recompiling SystemUI does it need to be signed, zipaligned, or both?

Your tool is awesome btw.
I am not the best to answer this honestly. I have not modified an apk since KitKat. The plugin is there for people such as yourself who want to use it. It has all the signing options I am aware of. If you don't get any other answers, I suggest trying them all to see what works for you :)
 
  • Like
Reactions: bkores

kevintm78

Senior Member
Hey @SuperR. I have a general apktool question.

I want to make some SystemUI mods for my ROM.

When recompiling SystemUI does it need to be signed, zipaligned, or both?

Your tool is awesome btw.

For system apps, I use winrar, or if using linux the default archive manager, to move the modified files into the original. I try to keep the meta-inf, sec-inf, and androidmanifest.xml intact on the original app and just drag the res, classes.dex (if modifying smali), and resources.arsc into the original. Then just zipalign.

Thats worked for me on 6.0.1, I think some things may have changed with 7.0.1 and I'm by no means an expert but thats how I do it.
 
  • Like
Reactions: SuperR. and bkores

bkores

Senior Member
Aug 12, 2016
813
615
Staten Island, NY
For system apps, I use winrar, or if using linux the default archive manager, to move the modified files into the original. I try to keep the meta-inf, sec-inf, and androidmanifest.xml intact on the original app and just drag the res, classes.dex (if modifying smali), and resources.arsc into the original. Then just zipalign.

Thats worked for me on 6.0.1, I think some things may have changed with 7.0.1 and I'm by no means an expert but thats how I do it.

So would it be like this:

1) Install frameworks
2) Decompile apk
3) Make modifications
4) Rename APK file to .zip to allow for pasting res and resources.arsc
5) Paste modified res and resources.arsc into the zip archive.
6) Rename the zip archive back to an apk file.
7) Push apk to /system/priv-app/SystemUI/SystemUI.apk.
8) Perform chmod 0644 on the apk.

I'm a complete noob at this so I want to make sure I'm doing everything right.
 

kevintm78

Senior Member
So would it be like this:

1) Install frameworks
2) Decompile apk
3) Make modifications
4) Rename APK file to .zip to allow for pasting res and resources.arsc
5) Paste modified res and resources.arsc into the zip archive.
6) Rename the zip archive back to an apk file.
7) Push apk to /system/priv-app/SystemUI/SystemUI.apk.
8) Perform chmod 0644 on the apk.

I'm a complete noob at this so I want to make sure I'm doing everything right.

Yep, that's how I do it. Except you dont have to rename your apk files, they'll open up in archive just like a zip. With jar files I just push without having to drag anything to the original and they'll work.

If you ever decide to modify the framework-res or certain system apps like secsettings, camera, contacts, and probably some others, I have to do those with Windows and winrar because they dont seem to work with the normal compression mode. Winrar lets you change the compression mode from normal to store. Thats the only I can get those working.
 
  • Like
Reactions: bkores

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Not a silly question. I believe I have the answer, but I am not completely sure.

    In the case of setting a file as immutable, I believe this is a file capability called CAP_LINUX_IMMUTABLE. According to capabilities.h, it has a value of 9.

    Thanks to this post by @Captain_Throwback, we can turn that "9" into a value recognized by fs_config-system.

    Code:
    2^9=512

    Now that we have the correct value (512), we can add it to the file in fs_config-system

    Code:
    system/file/to/change 0 0 0644 capabilities=512

    Save the file and build system.img.

    Reminder, I am not absolutely sure this will do what you want, but I think it will. Good luck :)

    EDIT: Now I think I am completely wrong lol. The above should give a file permissions to modify immutable files. I have no idea how to set immutable files in e2fsdroid. I did some testing, set a file immutable, looked at the file permissions, and they did not change.
  • 6
    This thread should serve as a much needed place for kitchen users to discuss anything not exactly kitchen related :)
    3
    @Kaiyum @cmdmoto @jazzespresso

    Moved this conversation over here. Talk as much as you like :)
    2
    @Mr Hassan, @The Exploiter
    Moved your posts into this thread as they are off topic for the kitchen. Feel free to continue here if you would like :)
    2
    @shoey63 and @kevintm78 I run Linux, why does everyone assume we are all running Windows LOL... ;)

    Anyhow I like to do things by hand, I thought the Kitchen Master would have some tricks up his sleeve.

    Looks like @bcrichster gets the prize! Signing it seems to of done the trick, the signed apk boots... :)

    So after a bit of Googling I came up with this;

    I ran the cmds in /etc/ssl/localcerts

    openssl genrsa -out key.pem 1024
    openssl req -new -key key.pem -out request.pem
    openssl x509 -req -days 9999 -in request.pem -signkey key.pem -out certificate.pem
    openssl pkcs8 -topk8 -outform DER -in key.pem -inform PEM -out key.pk8 -nocrypt

    For now I'm using/testing this signapk.jar; https://github.com/appium/sign not sure if it matters to use this signapk.jar or I really need it from Google?

    I also found this uber-apk-signer;

    https://github.com/patrickfav/uber-apk-signer

    I also found the Google version;

    https://android.googlesource.com/platform/prebuilts/sdk/+/master/tools/lib?autodive=0//

    You can download the entire /lib directory on the tgz link which has the Google signapk.jar in it. All I know is there's a lot going on between appium's version and Google, not really sure I need the Google one? hmm

    I tried to sign with the Google version it doesn't work it wants other libraries I don't have; (so much for this version)

    Caused by: java.lang.IllegalArgumentException: Failed to load any of the given libraries: [conscrypt_openjdk_jni-linux-x86_64, conscrypt_openjdk_jni-linux-x86_64-fedora, conscrypt_openjdk_jni]

    Then I signed the apk with the appium version;

    java -jar signapk.jar /etc/ssl/localcerts/certificate.pem /etc/ssl/localcerts/key.pk8 framework-res.apk test.apk


    By the way if anyone knows, when I compile the apk, I get back at the terminal, "could not find sources" and a lot of output about "has no default translation"

    I read that a framework-res.apk is itself the source of other apks and the message "could not find sources" is normal... hmm


    ./apktool b -c framework-res
    I: Using Apktool 2.3.4
    W: Could not find sources
    I: Checking whether resources has changed...
    I: Building resources...
    W: warning: string 'BIND_OEMEX_SERVICE' has no default translation.
    W: warning: string 'adb_active_generic_notification_message' has no default translation.
    W: warning: string 'adb_both_active_notification_title' has no default translation.
    I: Copy original files...
    I: Copy AndroidManifest.xml...
    I: Copy META-INF...
    I: Building apk file...
    I: Copying unknown files/dir...
    I: Built apk...

    Thanks

    P.S. @SuperR. sorry for Off Topic... :(
    2
    Hey @SuperR. I have a general apktool question.

    I want to make some SystemUI mods for my ROM.

    When recompiling SystemUI does it need to be signed, zipaligned, or both?

    Your tool is awesome btw.

    For system apps, I use winrar, or if using linux the default archive manager, to move the modified files into the original. I try to keep the meta-inf, sec-inf, and androidmanifest.xml intact on the original app and just drag the res, classes.dex (if modifying smali), and resources.arsc into the original. Then just zipalign.

    Thats worked for me on 6.0.1, I think some things may have changed with 7.0.1 and I'm by no means an expert but thats how I do it.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone