Apktool on Phone [Pie] [Stock; eXistenZ] - Sony Xperia XZ2 Compact Guides, News, & Discussion

Got success using excellent OpenJDK / Amaze file manager by dongfangxunel - https://github.com/dongfangxunlei/openjdk/wiki/How-to-play-with-apktool-on-android - but, original instructions wouldn't work for me on eXistenZ Pie. I didn't try on straight stock, but I would guess it's the same: jdk downloads, but won't install to /data/data/per.pqy.openjdk. I tried with root, SELinux permissive, changing folder permissions, etc., and no luck. So here's what I did:
- Download openjdk and Amaze from links on github page
- Install OpenJDK installer app and Amaze app one after the next,
* original instructions are to install OpenJDK installer, then set it up, then install Amaze, but I got SHARED_USER_INCOMPATIBLE installation failure when I tried to do that. Just install them both first.
- Open the OpenJDK installer, and click 'check' button on jdk tab, then 'download'. A file called 'OpenJDK (whatever)', with no extension, will be downloaded to your internal storage root.
* normally, here, you would be able to click 'install', and the installer will extract the contents of the file to /data/data/per.pqy.openjdk/, but I couldn't get it to work
- Add the .tar.xz extension to the downloaded file, and extract it there. You will get 'OpenJDK (whatever)' with .tar extension. Copy that file to /data/data/per.pqy.openjdk folder
- Reboot to recovery, and go to terminal, and do
Code:
cd /data/data/per.pqy.openjdk
and then
Code:
tar -xvf OpenJDK (whatever).tar
A new folder called 'openjdk' will be added to that directory.
- Reboot, and open the OpenJDK installer app, and click 'verify' button on jdk tab, and you should see a message on the bottom about the jdk being installed, "...blah blah mixed mode blah blah..."
- Switch to Apktool tab, and click 'check'. tap the drop-down box to select apktool version 2.4. Then click download. Switch to Tomcat tab and download it too, if you want, (not sure what it's for).
- All set up; now, open Amaze app, and use it for Apktool functions. Apktool commands are built in to context menus, (e.g. go to /system/framework/framework-res.apk and tap 3-dot menu, and click 'install framework', etc.).

Related

[Fix]Silver Ice ROM haptic feedback

Starting a new thread because I don't have enough posts for dev section...
Follow these steps to fix the broken haptic feedback on the 3/17 Silver Ice ROM (poo2.zip) until Silver releases an updated rom:
1. load the rom in the kitchen
2. open the working folder in your file manager
3. go to /data/app and move mdm.bin and amss.bin to /META-INF/com/google/android/
4. go to /data/app/system/lib/ and move all of the files to /system/lib (ok to overwrite)
5. open /data/app/META-INF/com/google/android/updater-script in a text editor
6. delete all of the lines calling the "show_progress" function
7. copy everything up to and including the line with 'assert(delete("/tmp/amss.bin"));' to the clipboard
8. open /META-INF/com/google/android/updater-script in another text editor window and paste everything you just copied to the clipboard between lines 1 and 2. this tells the install script to install the modem before installing the ROM.
9. save changes and close the text editor
10. delete /data/app/system/, /data/app/META-INF/ and /data/local/.
11. in the kitchen, run option 13 to add data/app functionality, then build the rom and install from your sd card using cwm!
Note: I skipped some of the intermediary steps in the kitchen but if you're familiar with its basic operation these instructions should be pretty straightforward.
I'd post a d/l but I'm throttled for the next few days and only have 15Kb uploads at home.

CyanogenMod Installer for Windows 8 won't load!!!!!

I download the CyanogenMod Windows Installer but it refuses to load. When I click on it, it installs something real quick and that's it. No pop-up screen.
Gurren Lagann said:
I download the CyanogenMod Windows Installer but it refuses to load. When I click on it, it installs something real quick and that's it. No pop-up screen.
Click to expand...
Click to collapse
SOLVED!!!
1) Solved this problem by installing 7-Zip.
2) Right-click CMInstaller.
3) Go down to 7-Zip.
4) Choose Extract to "CMInstaller/"
5) You will extract a config and setup file to a folder.
6) Then rename setup to setup.exe.
7) Run .exe normally or as Admin.
8) Peaches and cream!

[GUIDE] How to change Rom Name of Custom Rom

CLICK FOR THE UPDATE​
Here is a way by which you can Change the Displayed Custom Rom Name
THIS CANNOT BE DONE BY EDITING "build.prop" FILE SO READ THIS GUIDE FOR XPERIA DEVICES CUSTOM ROMS.
Software Needed (downloads attached below)
1) Java
2) 7-zip
3) Notepad ++
4) Advanced APK Tools
Files Needed From Custom Rom:
1) framework-res.apk (from "system >> framework ")
2) SemcGenericUxpRes.apk (from "system >> framework ")
3) settings.apk ( from "system >> app")
Expected From You :
1) Some Time
2) Patience
3) Basic knowledge of Installing Software.
Step wise Guide
STEP 01 : Download and Install "Java" and "Notepad++". Extract "Advanced APK Tools".
STEP 02 : Place the Three Files mentioned above from Custom Rom to "2-IN" folder of Advanced APK Tools.
STEP 03 : Open "Advance ApkTool.exe"; it will check Java on your your PC and then you will get a screen showing different options.
STEP 04 : Type "1" and press Enter to select the Option "1- Install Framework". Install "framework-res.apk" and "SemcGenericUxpRes.apk". Then come back to Main Menu.
STEP 05 : Type "2" and press Enter to select the Option "2- Decompile Files". Decompile "settings.apk" and wait for some time as it will take some time. After decompiling minimize "Advance APK Tools" but DO NOT CLOSE it.
STEP 06 : Open "3-OUT" folder in "Advance APK Tools" folder. There you will see a folder names "Settings.apk". Open this folder and go to " res >> values " folder.
STEP 07 : In the Values folder open the file "strings.xml" using Notepad++. Press "ctrl" and 'F" keys on the Keyboard of your PC at the same time to find the Rom Name as shown in Device. After Finding the ROM Name replace it with Whatever you Want. Save this file and Close is.
STEP 08 : Go back to "Advanced APK Tools" and Type "3" and press Enter to select the Option "3-Recompile Files". Recompile "settings.apk" and wait for some time as it will take some time. After recompiling close "Advance APK Tools".
STEP 09 : Now go to "4-OUT" folder of "Advanced APK Tools" where you will find "settings.apk". Extract this file using 7-zip.
STEP 10 : Open the extracted "settings.apk" and delete the file "Android Manifent.xml " inside it.
STEP 11 : Open 3-OUT" folder. Then go to "Settings.apk folder >> original " from this folder Copy all the contents i.e. "META-INF" folder and " AndroidManifest.xml" file and paste them in extracted "settings.apk" in "4-OUT" folder.
STEP 12 : After all this, select all contents of settings.apk in 4-OUT Folder and add them to archieve using 7-Zip and replace ".zip" extention by ".apk".
Place this "settings.apk" into "system >> app " folder of Custom Rom and flash this Custom Rom. You will have the ROM NAME changed.
Hurray!!! You have successfully Changed the ROM NAME of Custom Rom for Xperia Devices.
Firstly, this thread has nothing to do with Development so I've moved it to General where it should have been created.
Secondly, you have no permission to attach the file: Advancedapktool.zip
Thirdly, you posted no credits to the original author for this tool.
I've removed the tool and linked to the original authors thread instead.
Sorry for the mistakes, I will take care next time

FLASHFIRE | NETHUNTER | GALAXY S5 AT & T | SM-G900A

Flashfire Kali linux nethunter installation guide for SAMSUNG GALAXY S5 AT & T SM-G900A(TouchWiz lolipop)​
[*]What you need​
1.Rooted S5 SM-G900A AT & T
Rooting guide can be found here :
https://forum.xda-developers.com/att-galaxy-s5/general/guide-merry-christmas-heres-t3516196
2. Flashfire from google play
[root] FlashFire - Apps on Google Play
FlashFire is the most advanced on-device firmware flasher for rooted devices
play.google.com
3.Oneplus one NetHunter.zip
Get Kali | Kali Linux
Home of Kali Linux, an Advanced Penetration Testing Linux distribution used for Penetration Testing, Ethical Hacking and network security assessments.
www.offensive-security.com
4. Apps you gonna need
Rootexplorer, Busybox & Zarchiver
[*] How to port (easy way)​
1.extract nethunter-oneplus1-lollipop-3.0.zip
2. copy ankernel2.zip from nethunter-oneplus1-lolipop-3.0
3. extract anykernel.zip
4.open it in rootexplorer find updater binary file in meta-inf folder.
5.Use text editor and change it's device name to Samsung galaxy s5 at & t sm-g900a. Save and exit.
6.Find nethunter.sh file and open it in text editor.
7. change it and save as you done with updater-binary file.
8. Compress the anykernel folder as anykernel2.zip and replace edited one with original one in the nethunter oneplus folder.
9. Rename extracted nethunter-oneplus1-lolipop-3.0 folder as nethunter-klteatt-lolipop-3.0 and compress it to a flashable zip file. You are done with editing.
[*] How to flash​
1.Go to flashfire
if it's crashing on checking pro screen, go to devices settings
- date and time settings & turn off automatic date and time.
Set the date, month, year as 12.12.2012 & reboot your device. Flashfire won't crash anymore.
2. Grant super user access to flashfire.
3. Select your updated NetHunter zip in flash zip or ota and hit the flash button. You should take system backup using flashfire before doing this.
4. Reboot your device and install busy box to xbin. (Do not open nethunter before doing this.)
5. Open nethunter app & grant the root access. It will be installing chroot & it can take 10-15 minutes. You are done.
[*]How to update KaliNethunter​
1. Open the Terminal-nh app & type apt-get update. Hit the enter key. (I prefer you to use hacker's keyboard)
If you are having any issues with apt-get update command. Follow this guide to you can fix it easily. Guide can be found here:
by Goddamn_srilankan​

How To Guide Root the Galaxy Tab S7 FE (Works with A12)

Hey everyone,
UPDATE: WORKS WITH ANDROID 13! You can now use the more stable verison!!
Thanks to the people at github, yujincheng08 , updated one of the github commits and was finally able to root this device.
How to unlock:
Should be the same as any other samsung device. Follow my S6 Lite guide.
How to root:
1. Download the firmware for your your tablet, i dont know if i can link the sites but you can google it. (frija is recommended and is the fastest)
2. Extract only the AP portion of the firmware.
3. Open up the AP portion with 7-zip or winrar
4. extract the boot.img.lz4 out of the AP file
5. Download Lz4 https://github.com/lz4/lz4/releases to your pc corresponding version.
6. Extract the LZ4 to the same area where the boot.img.lz4 is
7. Open command prompt in that folder and then do
Code:
lz4 boot.img.lz4 boot.img
8. Download this magisk version from github
Release Magisk v24.3 · topjohnwu/Magisk
For those coming from v24.1, check the full changelog for changes introduced in v24.2. [General] Stop using getrandom syscall [Zygisk] Update API to v3, adding new fields to AppSpecializeArgs [App...
github.com
9. Extract the app-release.apk
10.. Connect your tablet and put it in your downloads folder
11. Install it via th My Files or use a file explorer.
12. Move the boot.img into the tablet and use the magiks that you just installed and patch it using that .
13. Move the magisk_patched version back to your pc, rename it to boot.img and create a tar version of it (i used 7-zip)
14. Open up odin , put your device to download mode and then patch the AP using the boot.tar you just created.
15. It should reboot, wait a few seconds and it may reboot a couple times. Then it may ask you to factory reset and just reset.
16. Once you setup your tablet again, connect your pc and do all that usb setup agagin and then move that app-release.apk again.
17. Youre gonna have to install the app-release again but uninstall the magisk already installed on your device first then install it via the apk
18. It should say additional setup required so do that, reboot and you should have root!
Has anyone else tried this guide?? Not trying to brick my new tablet so would like to know if it works for anyone! Thanks in advance!
Awesomeslayerg said:
Hey everyone,
Thanks to the people at github, yujincheng08 , updated one of the github commits and was finally able to root this device.
How to unlock:
Should be the same as any other samsung device. Follow my S6 Lite guide.
How to root:
1. Download the firmware for your your tablet, i dont know if i can link the sites but you can google it. (frija is recommended and is the fastest)
2. Extract only the AP portion of the firmware.
3. Open up the AP portion with 7-zip or winrar
4. extract the boot.img.lz4 out of the AP file
5. Download Lz4 https://github.com/lz4/lz4/releases to your pc corresponding version.
6. Extract the LZ4 to the same area where the boot.img.lz4 is
7. Open command prompt in that folder and then do
Code:
lz4 boot.img.lz4 boot.img
8. Download this magisk version from github https://github.com/topjohnwu/Magisk/suites/4781599968/artifacts/133467701
9. Extract the app-release.apk
10.. Connect your tablet and put it in your downloads folder
11. Install it via th My Files or use a file explorer.
12. Move the boot.img into the tablet and use the magiks that you just installed and patch it using that .
13. Move the magisk_patched version back to your pc, rename it to boot.img and create a tar version of it (i used 7-zip)
14. Open up odin , put your device to download mode and then patch the AP using the boot.tar you just created.
15. It should reboot, wait a few seconds and it may reboot a couple times. Then it may ask you to factory reset and just reset.
16. Once you setup your tablet again, connect your pc and do all that usb setup agagin and then move that app-release.apk again.
17. Youre gonna have to install the app-release again but uninstall the magisk already installed on your device first then install it via the apk
18. It should say additional setup required so do that, reboot and you should have root!
Click to expand...
Click to collapse
https://github.com/topjohnwu/Magisk/suites/4781599968/artifacts/133467701
This site is don't work. Can you share this file?
Thanks for the notice. Just rooted my device successfully using the latest Magisk build from the master branch. Works great!
@ahrmakrm1235 The github artifacts link will only work if you are logged into Github (create a new account if need to, it is free).
first time rooter here. do you mind specifying what you mean by opening command prompt in the folder? i extracted the contents of the Lz4 application into the folder containing the boot file. when I open command prompt, i drag that folder there and then enter the code, but it's not doing anything.
Thank you so much. I success to root sm-t733
zriw said:
first time rooter here. do you mind specifying what you mean by opening command prompt in the folder? i extracted the contents of the Lz4 application into the folder containing the boot file. when I open command prompt, i drag that folder there and then enter the code, but it's not doing anything.
Click to expand...
Click to collapse
Use 7zip zs, free and works just like 7zip , easier method than the lz4 extract.
@Flaccthehawk I'm going to try it out now and see if it makes a difference. If not, I'll edit and add pictures or a screen recording of what I'm doing wrong.
Edit: I did everything correctly, but I'm having trouble flashing the tar file. It keeps failing. I've already tried updating to the latest odin version of 3.14 & I know the firmware is correct because I downloaded it using frija. Any suggestions? I've attached what the error looks like below and my tablet in download mode in case there's an issue there.
In step 13 when creating the tar file for the boot image, what did you use for this? Did you use 7-zip? And did you select the tar option in the archive option in 7-zip (or another program)? Note that it must be a proper tar file. If the file created is a zip or 7z file, it won't work even if you rename the output file as a tar file.
Can you open the tar file using 7zip. Provide a screenshot of what is displayed here. Also within 7-zip after opening the tar file, click into File - Properties and provide a screenshot of this also.
FYI: I actually removed root for now. I noticed the battery was draining a lot quicker than before with Magisk (I did a clean format/flash too when rooting the device). Removing root, battery life is back to normal.
I'm new here, do I need to unlock bootloader before process this?
Yes, the bootloader needs to be unlocked. Note that the device will be erased when unlocking the bootloader so backup any data that you need before doing so.
@1987tlz Yes, I used 7zip to to open the boot file and selected tar as you can see here.
Thank you so much, success to root (SM-T735).
Hi again, I have problem about SafetyNet test failed (basicIntegrity -, ctsProfile -, evalType BASIC), also I cannot enable MagiskHide (after I enable and back to Magisk home, it's change back to disable). Does it possible to bypass SafetyNet test and enable MagiskHide?
Many Thanks
@zriw It wasn't clear from the screenshots, but for the file patched by Magisk, did you rename this to boot.img? Once the file is named as boot.img, then you create the tar file as boot.img.7z. Now you should be to flash it again using Odin.
@imjizho It looks like you are not using a recent version of Magisk, as MagiskHide doesn't exist anymore. On the latest release, Zygisk needs to be enabled and then you can enforce and configure the DenyList.
For passing SafetyNet, the latest version of this module will do the job:
GitHub - kdrag0n/safetynet-fix: Google SafetyNet attestation workarounds for Magisk
Google SafetyNet attestation workarounds for Magisk - GitHub - kdrag0n/safetynet-fix: Google SafetyNet attestation workarounds for Magisk
github.com
All done! Thanks a lot @1987tlz
I found that the problem occurred when I try to hide the Magisk app, it will installed previous version and cannot change back when restore.
1987tlz said:
FYI: I actually removed root for now. I noticed the battery was draining a lot quicker than before with Magisk (I did a clean format/flash too when rooting the device). Removing root, battery life is back to normal.
Click to expand...
Click to collapse
Can others confirm the battery drain with root?
Rooting was the first thing i did with the tablet, i have no reference if it is really draining the battery.
//edit:
removing some bloatware (netflix, chrome, and so one) lead me to a bootloop
Im not finding bootloader unlock and am not sure if i have done it correctly on this samsung device.
This is what i have done,
1.Settings>About Tablet>Software Information
2.Tap Build Number repetitively until Developer Settings Enabled
3.Settings>Developer Options
4. Turn OEM Unlocking on
Is this all there is to it? I feel like im missing something.
*** EDIT
Found that if holding both volume down and volume up while plugging the tablet into my PC i was able to find more options to bootloader unlock as well as warnings. After accepting those it did a factory reset. I hope this is all i needed to do.
Thank you, i have successfully achieved root!
Typhoon_Master said:
Can others confirm the battery drain with root?
Rooting was the first thing i did with the tablet, i have no reference if it is really draining the battery.
//edit:
removing some bloatware (netflix, chrome, and so one) lead me to a bootloop
Click to expand...
Click to collapse
Have you tried freezing the bloatware apps with Titanium Backup located in the Play Store?

Categories

Resources