I was wondering how to access an Android's game file : like see the current skins , characters and upcoming in-game items.
I am specifically interested in Call of duty Mobile (which uses Unity) should this help.
I have looked in many forums and tutorials but nothing seems to be working.
It would be nice if you don't use so technical terms in the steps
Thanks in advance!
Ba7rawy said:
I was wondering how to access an Android's game file : like see the current skins , characters and upcoming in-game items.
I am specifically interested in Call of duty Mobile (which uses Unity) should this help.
I have looked in many forums and tutorials but nothing seems to be working.
It would be nice if you don't use so technical terms in the steps
Thanks in advance!
Click to expand...
Click to collapse
What have you tried so far?
jwoegerbauer said:
What have you tried so far?
Click to expand...
Click to collapse
I have an Apk of the game on my PC tried extracting it but only found little info , most of the files are in strange formats.
Also tried from my mobile using a method using "Es file explorer" but also no results.
This is my first time doing such thing so I have no idea where to start and what are the basics
Ba7rawy said:
I have an Apk of the game on my PC tried extracting it but only found little info , most of the files are in strange formats.
Also tried from my mobile using a method using "Es file explorer" but also no results.
This is my first time doing such thing so I have no idea where to start and what are the basics
Click to expand...
Click to collapse
You can use any 3rd-party APK Editor to look inside an APK. GIYF ...
And you can decompile an APK's program code with an APK-Decompiler - several online versions of those exist. GIYF ...
N.B.
ES File Explorer is known as a malicious application because it collects data and sends it home (China). Wondering why you're using it?
Ba7rawy said:
I was wondering how to access an Android's game file : like see the current skins , characters and upcoming in-game items.
I am specifically interested in Call of duty Mobile (which uses Unity) should this help.
I have looked in many forums and tutorials but nothing seems to be working.
It would be nice if you don't use so technical terms in the steps
Thanks in advance!
Click to expand...
Click to collapse
Hi there, if I understand you want to see bits of code and clue on what's coming in the game, well there are two ways you can do this.
First one (easiest one) browse with MiXplorer (Labs, APKmirror)(you can use another but that one is better that es file explorer) Android/data/obb folder and search for the obb file of call of duty (I assume there is one), then on your pc (or phone, but pc is better) open it as a zip file and browse the different resources in it, try to see if there's something new.
The seconde one is to decompile the apk (means decode the weird text you saw), for that you'll need APKtool or any other tool for reverse engineering (I assume you don't know a lot about that, apktool is great).
You need Java
How to Install it
Now how to use it:
on the same folder you have the apk file, open a command prompt or a terminal and enter the command:
Code:
apktool d [Here the name of the file.apk]
wait for the process to finish, in the end you'll have a folder named as the apk file, in it, go in the res folder and search if some name in the code reminds you of something or not.
I have to tell you that this work of searching for new bits of code is quite heavy/not easy at all, plus you may encounter problems using apktool since you're not really familiar with the commands, but I can only encourage you to keep going that way!
Here's a guide I made to clarify what's an apk and how it works for newbies, if you ever wanna go further:
https://forum.xda-developers.com/general/xda-university/newbies-whats-apk-how-t3948438
If these steps are to complicated feel free to replie with questions, but do not PM me, so other people can learn from your questions.
Have a good day:good:
need suggestion for game files
Raiz said:
Hi there, if I understand you want to see bits of code and clue on what's coming in the game, well there are two ways you can do this.
First one (easiest one) browse with MiXplorer (Labs, APKmirror)(you can use another but that one is better that es file explorer) Android/data/obb folder and search for the obb file of call of duty (I assume there is one), then on your pc (or phone, but pc is better) open it as a zip file and browse the different resources in it, try to see if there's something new.
The seconde one is to decompile the apk (means decode the weird text you saw), for that you'll need APKtool or any other tool for reverse engineering (I assume you don't know a lot about that, apktool is great).
You need Java
How to Install it
Now how to use it:
on the same folder you have the apk file, open a command prompt or a terminal and enter the command:
Code:
apktool d [Here the name of the file.apk]
wait for the process to finish, in the end you'll have a folder named as the apk file, in it, go in the res folder and search if some name in the code reminds you of something or not.
I have to tell you that this work of searching for new bits of code is quite heavy/not easy at all, plus you may encounter problems using apktool since you're not really familiar with the commands, but I can only encourage you to keep going that way!
Here's a guide I made to clarify what's an apk and how it works for newbies, if you ever wanna go further:
https://forum.xda-developers.com/general/xda-university/newbies-whats-apk-how-t3948438
If these steps are to complicated feel free to replie with questions, but do not PM me, so other people can learn from your questions.
Have a good day:good:
Click to expand...
Click to collapse
Is it safe way because I also don't want to damage my current game files.
berryjohnson said:
Is it safe way because I also don't want to damage my current game files.
Click to expand...
Click to collapse
That's safe but you don't have to touch the game on your phone, just download the apk though internet, crack it open on your PC with the method I told you and browse it on your PC and that's it.
And for the Obb file, if you delete it or move it, it will harm the game, that why you just need to COPY it (don't miss click lol) to your download folder (or another one) and then transfer it to your PC via USB cables.
We use apktool on PC, not on phone, and apktool is perfectly safe : no virus, not extremely demanding with resources (I used to run it on a 2Gb Ram PC)
So if you don't delete the Obb or move it , and as long as you don't uninstall the game, it is completely safe
jwoegerbauer said:
You can use any 3rd-party APK Editor to look inside an APK. GIYF ...
And you can decompile an APK's program code with an APK-Decompiler - several online versions of those exist. GIYF ...
N.B.
ES File Explorer is known as a malicious application because it collects data and sends it home (China). Wondering why you're using it?
Click to expand...
Click to collapse
Thanks! I Will try and see where I go!
Also I didn't know that ES was malicious , But thankfully I used it quickly then deleted it as I felt uncomfortable using it.
jwoegerbauer said:
You can use any 3rd-party APK Editor to look inside an APK. GIYF ...
And you can decompile an APK's program code with an APK-Decompiler - several online versions of those exist. GIYF ...
N.B.
ES File Explorer is known as a malicious application because it collects data and sends it home (China). Wondering why you're using it?
Click to expand...
Click to collapse
So what apps or tools would you suggest? online tools seems useless , since the apk is around 2gb and most of them have size limit.
Raiz said:
Hi there, if I understand you want to see bits of code and clue on what's coming in the game, well there are two ways you can do this.
First one (easiest one) browse with MiXplorer (Labs, APKmirror)(you can use another but that one is better that es file explorer) Android/data/obb folder and search for the obb file of call of duty (I assume there is one), then on your pc (or phone, but pc is better) open it as a zip file and browse the different resources in it, try to see if there's something new.
The seconde one is to decompile the apk (means decode the weird text you saw), for that you'll need APKtool or any other tool for reverse engineering (I assume you don't know a lot about that, apktool is great).
You need Java
How to Install it
Now how to use it:
on the same folder you have the apk file, open a command prompt or a terminal and enter the command:
Code:
apktool d [Here the name of the file.apk]
wait for the process to finish, in the end you'll have a folder named as the apk file, in it, go in the res folder and search if some name in the code reminds you of something or not.
I have to tell you that this work of searching for new bits of code is quite heavy/not easy at all, plus you may encounter problems using apktool since you're not really familiar with the commands, but I can only encourage you to keep going that way!
Here's a guide I made to clarify what's an apk and how it works for newbies, if you ever wanna go further:
https://forum.xda-developers.com/general/xda-university/newbies-whats-apk-how-t3948438
If these steps are to complicated feel free to replie with questions, but do not PM me, so other people can learn from your questions.
Have a good day:good:
Click to expand...
Click to collapse
First of all thanks for your detailed steps!
Regarding the first method , there is obb for Call of duty but it has 0 files in it and it's size is 0 bytes , that's normal? if not , what's the alternatives?
Second method seems complicated for me , at least for now. So I will stick with the first one
But I was curious , will both methods give the same results?
Ba7rawy said:
So what apps or tools would you suggest? online tools seems useless , since the apk is around 2gb and most of them have size limit.
Click to expand...
Click to collapse
An APK's program code never exceeds 50MB. The program code - in Dalvik bytecode - is located in APK's subfolder classes.dex. Images, icons and raw files, menu files, and layouts, etc.pp, are located in APK's subfolder res. The rest is located in subfolder resources.arsc. You get access to these folder when you unzip an APK.
If you manually want to explore the app's program code then to convert the Dalvik bytecode back to readable Java program code you need the app named jadx.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
N.B.
The APKTool mentioned/recommended earlier here does NOT decompile the program code, it disassembles it: The generated code won't be Java source.
FYI:
OBB files are used to provide additional file assets for Android applications ( such as graphics, sounds and video), separate from an application's APK file.
Ba7rawy said:
First of all thanks for your detailed steps!
Regarding the first method , there is obb for Call of duty but it has 0 files in it and it's size is 0 bytes , that's normal? if not , what's the alternatives?
Second method seems complicated for me , at least for now. So I will stick with the first one
But I was curious , will both methods give the same results?
Click to expand...
Click to collapse
yep that's weird, check this vid, you should have a heavy file!
https://streamable.com/h5phld
Try another file explorer and see if you have the real number, if not just copy it to your download folder and try to unzip it on your PC anyway.
If it doesn't work your only hope will be the 2nd method, and tbh it's almost the only one used to find what you want. I just remembered finding some interesting this in the obb, but I was lucky.
At least you'll have sountracks in there
jwoegerbauer said:
An APK's program code never exceeds 50MB. The program code - in Dalvik
...
FYI:
OBB files are used to provide additional file assets for Android applications ( such as graphics, sounds and video), separate from an application's APK file.
Click to expand...
Click to collapse
Thanks for the distinction, I didn't know that!
I mainly advised apktool to search the full res folder and being able to see if anything new is there. Because usually, bit if "code" announcing something new are xmls.
Java code isn't my field (yet) so if you had any thread, links that I could use to learn more, I'd be interested.
Thx !
Related
Download View attachment package-creator-v27.zip
After downloading the package creator Extract to any folder and run package-creator-v2.7.exe. Select language and select group to insert package. Here The group reffers to Programs. You can add or edit lang.xml to add or delete groups.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Then click on Open Cab File and navigate to your cab file and Click Open.
Wait until it shows you done Confirmation window. Then navigate to the cab folder and you will see new folder with OEm package. This tool will generate initflashfiles.txt, option.xml, .dsm and .rgu for the kitchen ROM.
Copy the OEM package to your kitchen and have fun with customizing your Rom
(found this somewhere on internet, correct me if i m wrong)
Great work! Nicely done tut. Here is another method to do so. This one is a bit faster but it doesn't always works.
Cab2OEM is also a free software that can be used to convert cabs to packages. This software is a command-line utility with no GUI but it does its job pretty well.
Cabs are of two types, the older ones with an inf file with extension .000 inside that describes the installation process and the newer ones with a _setup.xml files. Cab2OEM works on XML ones only.
Usage:
Its simple, just fire up a command prompt and run this command:
Code:
Cab2OEM -f <path to cab>
Here, replace path to cab with a real path. In a few seconds, it will convert the cab into a folder in the current directory.
NOTE: Cab2OEM creates an option.xml file inside the package which provides a description to the package that can be seen while running build os. but by default, it doesn't adds the package to the buildos list. I recommend you to delete this file.
This method is not as advance as Package Creator but its a quick and dirty one Package Creator can work with all cab files.
The file is attached with this post.
Great Work
Good going man....
Can you suggest some good and easy Kitchen for old gene..
Can i also include cracked applications...in custom ROM
Ramerson's kitchen is the easiest one i have ever seen. But the whole process of cooking ROM can never be easy, no matter which kitchen you use.
We strictly dont support cracking etc here so no answer for that.
Many thanks Krazy.......
Can ur ROMs be used to delete some packages and include some freewares...
please guide me about the pagepool.....what are disadvantages of increasing or decreasing it...does it help in increasing RAM....
I read about a thread which says RAM can be increased by deleting ExtROM...
Your expert comments please....
Also the Ramerson's kitchen link and "How to gude" if possible........
That would be nice of you....
Heres a quick response:
1. Yes my roms can be dumped and modified as per your needs. The only thing you need is the knowledge of how to dump them properly for recooking. For that refer to ramerson's tut.
2. Pagepool is that reserved part of memory that is never available for the programs to use and iit is used by the OS to maintain its internal state, data structures and so on. More the pagepool memory, more resources the OS will have and more simualtaneous running programs you can have. But this clashes with the fact that programs also need RAM for other purposes other than the OS provided resources. So the contradiction is that you cant run more programs simualtaeously id you have less RAM. So increasing Pagepool decreases RAM but increases OS resources, Decreasing page pool increases free ram and decreases OS resources. Chefs have to keep a balance between that. For gene, 6 MB of Page Pool is recommended, keeping in mind all the specs of the devices. Pagepool has to be changed everytime you recook the ROM as of now.
3. My ROMS use 4 MB of ExtROM and that is optimal, by default you have 10 MB of ExtROM. SO no need to messup with that, device doesnt boots with extroms smaller than that. Ramerson has also confirmed this.
4. Ramerson Kitchen is a seprate thread in this same forum, use your eyes and mind for that. How to Guide is currently not available as step by step, but Ramerson's tut which is a sticky post, will help you greatly.
I hope my answers helped.
o my god my head is spinning
hi guys
i tried reading all this and my god o god my head went for a spin i think for me to do any thing cook rom and all this in this chapter will take me a long long time of reading which im realy not great at
but reading all this give me more repect for Krazy,ankit,ramersnow and all u great techi guys
u guys are great man hats off to all off u and thanks a million
^Thanks Hari. Actually the gene you are having in your hand is not very less complex than any other computer. So apart from some basic differences, most of the elements of computer engineering can be applied to this small buddy as they are applied to computers. Thats why it seems so darned techie, coz it is techie
i meant every word
hi
to all u great contributors to this great forum i thing all these tuts available are a great eye opener to a totally non techi guys like me who uses ur great services which you actually do for free i having read many many tuts have clearly understood the time u are spending for us to enjoy and i really really say from my heart hats off to u guys and thanks for ur great contribution
and in the future when things get better for me i will start donating
and the funny thing is i sell computers for around 10+yrs
but this info in the tuts is a total head spinner for me
getting to next level
Great Krazy....
U r true krazy about technology......
To run emulators like SPB Mobile shell in best performance what should be optimum pagepool....
New version of Package Creator
Please find newer version of package creator, Version 5.4 to be exact
http://wiki.xda-developers.com/index.php?pagename=OEM Package Tutorial
Thanks man! this will really help
imblfmstr said:
Great Krazy....
U r true krazy about technology......
To run emulators like SPB Mobile shell in best performance what should be optimum pagepool....
Click to expand...
Click to collapse
SPB Mobile shell is not an emulator, its a shell replacement which actually runs on the top of the existing shell32.exe shell. There is no extra page pool requirement for it to run. 6 MB would be fine.
Cab Maker
Useful application for Making Windows CE compatible cab can be found here: http://forum.xda-developers.com/showthread.php?t=400221. It can be used by developers as well as cook.... OOPS Chefs
Another alternate is http://www.ocpsoftware.com/downloads/cecabmgr/CeCabMgr_Setup.exe
Could any One tell me how to make my own package and add it to ROM while cooking , or the link that i can found this
I already use the tools that mentioned here but while cooking process going on it give me an ERROR ( I use the cooking way in -[TUTORIAL]How to cook for GENE-)
Thanks in advance
facing one problem in cooking a ROM...
every time i add a custom package ...and then i run "build OS" i get an error
"Error in building in default.hv and user.hv"
and i if remove the content of .rgu files from the custom packages it run fine..no issue...
i am using the "package-creator-v2.7" to create packages..i want to have some registry settings in ROM...
Please advice how to overcome this issue....
orange2784 said:
facing one problem in cooking a ROM...
every time i add a custom package ...and then i run "build OS" i get an error
"Error in building in default.hv and user.hv"
and i if remove the content of .rgu files from the custom packages it run fine..no issue...
i am using the "package-creator-v2.7" to create packages..i want to have some registry settings in ROM...
Please advice how to overcome this issue....
Click to expand...
Click to collapse
I do not have a straight solution for this, But here is what I did, I exported the registry key, saved it as rgu and then used package manager 5.4 to make it into a package.
Registry file is not properly formatted. Keep following points in mind :
1. Registry file (.rgu) must be in unicode format, not ANSI, which is the default saving format of Windows Notepad. You can change it in the save file dialog of notepad.
2. The file must begin with the word REGEDIT4 in the first line saperately.
3. There should be atleast one or two blank lines at the end of the file.
4. Entries in the files should be properly formatted. Following are the general values and their formattings that you will find in rgu files :
a. Path to hives must be covered in square brackets, ex : [HKEY_LOCAL_MACHINE\Software\Microsoft]
b. All string values must be formatted like this : "Name"="Value". If there is a file path inside the string, it should be having \\ instead of \ as separator. Ex: "FilePath"="\\Windows\\AudioManager.exe"
c. All DWORD values should be in this format : "Name"=dword:8 digit number. Ex : "BacklightOff"=dword:00000001
d. All binary values should be formatted as : "Name"=hex:v1,v2,v3,v4...... Ex: "AValue"=hex:00,00,11,01,10
Follow these guidelines and your registry file will compile fine.
Thanks a lot Krazy...thats a valuable information .... i ll check the rgu files ... correct them and give a shot.....
and thank you Addicted2xda for your inputs... i ll try this one also ..
Also please note, inside the dump folder, there is a text file that contains the error log. The last 2-3 lines of this file actually describes in which file the error occured. Actually the Windows Mobile Registry is compiled from rgu files using a program called rgucomp.exe and is stored in files ending with extention .hv. Just for your information
Good luck!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As all of you well know, Android is an open source operating system and as such the development and modding are the bread and butter for devices with this OS.
In this thread I'll explain how to extract the firmware partition containing the operating system and programs with a Windows PC.
The purpose of this thread is to share knowledge, so feel free to help me to dump device such as Acer, Samsung and Sony Ericsson, expecially I need someone that help me with Acer's .bin
1. Unpack the system partition from an HTC ROM
What you need:
UniExtract: http://legroom.net/software/uniextract (freeware)
ZipScan: http://www.zipscan.co.uk/ (shareware)
Cygwin: http://cygwin.org/setup.exe (freeware)
Unyaffs for Windows: http://goo.gl/z6yI
Download and install all the tools (Unyaffs it's a prompt executable, so it isn't installable)
Now you need an HTC ROM, download one at your pleasure from Conflipper's site: http://www.shipped-roms.com/shipped/
Once you have downloaded it, right click on the ROM executable and select Extract with UniExtract in the subfolder (v.fig1), select Isxunpack extraction and then clik on the OK button (v. fig2)
Now in the subfolder you have the various files which make up the executable, including data1.cab which is the file that we are more interested in (do not delete other files).
Open ZipScan, go to File -> Open Archive File... and browse until select the data1.cab. You should see something like this:
Extract from the cab only the ROM.zip and open this file with any archives extraction software (eg WinRAR or the same ZipScan). Inside you have various .img files which make up the ROM, but for the purposes of this guide, we need only the system.img.
Copy in a blank folder this file, unyaffs.exe and cygwin1.dll (you'll find it in C:\Cygwin\Bin).
Now open Cygwin from Start -> All Programs to ensure that its functions are integrated to the Windows Prompt and close it.
Open the Windows Prompt (Start -> All Programs -> Accessories) and position yourself in the folder containing the files using the cd command or alternatively install this .reg which allow you to open the Windows Prompt in the chosen folder by command in the context menu (Right click on the folder -> Command Prompt Here).
Now the last thing that you have to do is to give the extraction command: unyaffs system.img
Et voilà, now you have the folders containing the extracted system.
Enjoy
2. Unpack the system partition from a Motorola ROM
°°°Coming Soon°°°
°°°reserved°°°
°°°2nd reserved°°°
°°°3rd reserved°°°
Thank you! I had found a different way but this will save some steps.
mark
i will see
!!!!!!!!!!!!!!!!111
Someone once told me you can just run the .exe file, let it open, use windows to search for the rom.zip that would have been extracted into a temp folder, drag&drop to another location, then cancel the .exe again.
Haven't tried this myself though.
What else can you show us in windows?... Is it at all possible to extract ramdisc thingies from kernels so we can apply one custom kernel to other roms ourself?
... or should I bite the bullet and install/learn how to use ubuntu?
Nice initiative. Finish the guides and I'll see to it that it's stickied.
ddotpatel said:
Is it at all possible to extract ramdisc thingies from kernels so we can apply one custom kernel to other roms ourself?
... or should I bite the bullet and install/learn how to use ubuntu?
Click to expand...
Click to collapse
There are simple perl scripts kicking about to unpack/pack boot.img, so you can use them on Windows as long as you install perl first - say either via Cygwin or Active State.
I just used WinRAR to do everything that UniExtract and ZipScan can do.
...so basically you showed me that system.img can be unpacked using the linux command-line utility UnYaffs.exe, which can be run through CygWin. Thanks.
Why doesn't someone make a UnYaffs.exe for windows command line?
After I change things, how to I ReYaffs it to system.img? ...and when I re-zip it don't I have to sign it or something? If I modify an apk do I have to deODEX it first? Do I reODEX after?
I would love a quick tutorial on, say, how to change an icon for an app. Something that shows people who already know how to do this type of stuff a brief step-by-step guide to taking a [ROM], adding and deleting a few apks inside it, making a graphical change to an apk inside it (skinning), and then recooking those changes in to a new [ROM] to be shared with all.
rpmccormick said:
I just used WinRAR to do everything that UniExtract and ZipScan can do.
...so basically you showed me that system.img can be unpacked using the linux command-line utility UnYaffs.exe, which can be run through CygWin. Thanks.
Why doesn't someone make a UnYaffs.exe for windows command line?
After I change things, how to I ReYaffs it to system.img? ...and when I re-zip it don't I have to sign it or something? If I modify an apk do I have to deODEX it first? Do I reODEX after?
I would love a quick tutorial on, say, how to change an icon for an app. Something that shows people who already know how to do this type of stuff a brief step-by-step guide to taking a [ROM], adding and deleting a few apks inside it, making a graphical change to an apk inside it (skinning), and then recooking those changes in to a new [ROM] to be shared with all.
Click to expand...
Click to collapse
No ****... I was wondering why he's making it all so complicated with all these extra tools when I can click the file in Winrar (extract to...) and be done. All in ONE step for me.. LOL
For me it was more than one step because using WinRAR on system.img didn't get all the files out. Using unyaffs did. But now I have a system.img from a new Android tablet and I can't get anything out of it other then the META-INF directory using WinRAR, Unyaffs, or UniExtract. Anyone have any clue how to get in to those?
...and I still want an easy tutorial on how to re-assemble a flashable system.img / update.zip once I change some stuff in there.
I really hope one of those reserved spots is for the newer Samsung phones. What really cheeses me, though, is that I had that explained to me once, and I can't find it, and didn't write it down
I've compiled both unyaffs.exe, mkyaffsimage and mkyaffs2image for cygwin, with the DLL you can use them on Windows too. Sadly, I don't know too much about C and C++, so I can't make it work, but maybe I will try to compile them for Windows, and with some bugfixing, MAYBE it will run.
Samsung did not use the usual yaffs image (for Galaxy S at least), but their own format, what can be easily extracted. I will post some more about it as soon as I get back to windows, recompile the executables and upload them.
i wana extract boot.img , but i have some error
$ gunzip -c boot.img | cpio -i
bash: cpio: command not found
gzip: boot.img: not in gzip format
Click to expand...
Click to collapse
I had some problems with unyaffs. This version posted on 1st page is bugy, if you have same problem try...
hmmm i have i more problem: To prevent spam to the forums, new users are not permitted to post outside links in their messages.
so sry guys i can't help you right now
rpmccormick said:
i just used winrar to do everything that uniextract and zipscan can do.
...so basically you showed me that system.img can be unpacked using the linux command-line utility unyaffs.exe, which can be run through cygwin. Thanks.
Why doesn't someone make a unyaffs.exe for windows command line?
After i change things, how to i reyaffs it to system.img? ...and when i re-zip it don't i have to sign it or something? If i modify an apk do i have to deodex it first? Do i reodex after?
I would love a quick tutorial on, say, how to change an icon for an app. Something that shows people who already know how to do this type of stuff a brief step-by-step guide to taking a [rom], adding and deleting a few apks inside it, making a graphical change to an apk inside it (skinning), and then recooking those changes in to a new [rom] to be shared with all.
Click to expand...
Click to collapse
+1000
.
WinImage can extract the .img.
Unfortunately, I don't think it can repack them properly.
I know what I want but haven't yet figured out how to make it work. I read that you can simply open an existing theme, with 7zip for example, and replace what you want, but when I tried this the entire status bar disappeared.
I am basically looking to add elements of Galaxy Green to the stock GSB system app and also add some different colored notification icons, such as a blue icon for bluetooth on but not connected and a different shade for on and connected.
If someone could point me to some directions that work, some software to create themes, or if someone would be willing to take on the task I would greatly appreciate it.
http://forum.xda-developers.com/showthread.php?t=916814
PieceKeepr said:
I know what I want but haven't yet figured out how to make it work. I read that you can simply open an existing theme, with 7zip for example, and replace what you want, but when I tried this the entire status bar disappeared.
I am basically looking to add elements of Galaxy Green to the stock GSB system app and also add some different colored notification icons, such as a blue icon for bluetooth on but not connected and a different shade for on and connected.
If someone could point me to some directions that work, some software to create themes, or if someone would be willing to take on the task I would greatly appreciate it.
Click to expand...
Click to collapse
Yes.. You can open an apk and replace the png's within 7zip or winrar without extracting anything. Part of the problem I've had with doing that on th CM7 roms was status bar problems like you've said though. Also sometimes getting fc's on some things with the status bar and notification area. If you have the images you want to use I could help you out or if you want to put them in a zip and send them to me and I can throw them into a theme chooser apk for you. That so far has been the best way I've found to avoid issues on CM7.
@playpolo4life Thanks a lot. There is a lot to read there and hopefully I'll make it work in a few days.
CondemnedSoul said:
If you have the images you want to use I could help you out or if you want to put them in a zip and send them to me and I can throw them into a theme chooser apk for you. That so far has been the best way I've found to avoid issues on CM7.
Click to expand...
Click to collapse
I might just do that. I read some of the material linked above tonight while I was at worka dn on my next off days I'm gonna try to theme it myself. If I don't have any success I'll PM or shoot you an email. Thanks much for the offer.
Haha yeah its definitely a lot. I've tried to read it in one sitting and comprehend everything, but just couldn't do it. I don't think I have the patience for most of the theming requirements. I gave up when I got to the xml editing and hex editing parts lol.
Well I tried apk manager and followed the video instructions on how to set up the java path but since it's a WinXP video it gave me an error because I'm on Vista 64. I got apktool installed and working but after more videos and reading I have a headache and I still have no idea what I'm doing.
PieceKeepr said:
Well I tried apk manager and followed the video instructions on how to set up the java path but since it's a WinXP video it gave me an error because I'm on Vista 64. I got apktool installed and working but after more videos and reading I have a headache and I still have no idea what I'm doing.
Click to expand...
Click to collapse
I'm on Win 7 64. I use apk manager. What kind of error are you getting though?
CondemnedSoul said:
I'm on Win 7 64. I use apk manager. What kind of error are you getting though?
Click to expand...
Click to collapse
I could have misunderstood the directions but when I click the script.bat file a window opens with the message that reads, "Java was not found, you will not be able to sign apks or use apktool
Press any key to continue ..."
Hit enter and a lists of tasks pops up. Try any task and it wants to know what project you want to work on (option 22). I type "22" and it says to choose the app to be set as current project and says enter it's number. If this is working correctly then I clearly have absolutely no idea what I doing (always an option) since I don't know how to obtain project numbers, but I thought it might be related to the java not found message.
I do have the latest Java and Java SE DK installed. I'm getting really close to taking you up on the offer but what I want is extensive, at least I think it is.
PieceKeepr said:
I could have misunderstood the directions but when I click the script.bat file a window opens with the message that reads, "Java was not found, you will not be able to sign apks or use apktool
Press any key to continue ..."
Hit enter and a lists of tasks pops up. Try any task and it wants to know what project you want to work on (option 22). I type "22" and it says to choose the app to be set as current project and says enter it's number. If this is working correctly then I clearly have absolutely no idea what I doing (always an option) since I don't know how to obtain project numbers, but I thought it might be related to the java not found message.
I do have the latest Java and Java SE DK installed. I'm getting really close to taking you up on the offer but what I want is extensive, at least I think it is.
Click to expand...
Click to collapse
You have the latest version of Java JDK? you shouldn't get that error. But for your project numbers... When you type option 22 it will bring up a list of all the apk's in the place-apk-here-for-modding folder. Type they number that corresponds to the apk you want to work on. Then hit option 9 to decompile the apk and go to your projects folder and you will see a folder with the name of the apk you just decompiled. everything will be in there
I uninstalled JDK and downloaded it again from the Java site although it was the same version I already had. I reinstalled it and tried apk manager again. This is the same message I was getting before ...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I went ahead and tried it anyway and when I selected a project to work on I got this message ...
Check out this thread and look at post #7... I have a feeling this is your missing piece
http://forum.xda-developers.com/showthread.php?t=988959
Well, I tried that "path" update and it didn't work but I noticed the post right below the one you're talking about said you have to have a 64 bit Java version.
I had installed the 32 bit version because AndroidSDK didn't want to work with the 64 bit version. After installing hte 64 bit Java the first error message went away but then it said ADB was not found. I only see one SDK download for Windows.
I also tried the method of opening the apk with 7-zip, dropping in the new image files and closing 7-zip. I moved the apk to system\apps and rebooted but it wasn't recognized so I deleted the file. I then tried to install my modified/renamed apk from the SD card and it went through the steps but then said app not installed.
PieceKeepr said:
Well, I tried that "path" update and it didn't work but I noticed the post right below the one you're talking about said you have to have a 64 bit Java version.
I had installed the 32 bit version because AndroidSDK didn't want to work with the 64 bit version. After installing hte 64 bit Java the first error message went away but then it said ADB was not found. I only see one SDK download for Windows.
I also tried the method of opening the apk with 7-zip, dropping in the new image files and closing 7-zip. I moved the apk to system\apps and rebooted but it wasn't recognized so I deleted the file. I then tried to install my modified/renamed apk from the SD card and it went through the steps but then said app not installed.
Click to expand...
Click to collapse
Something sounds strange there then... I always get the adb not found when I use apk manager because I don't have it in the sdk with adb. It's ok to get that message you just won't be able to use the adb portion of apk manager is all. the one you modified and renamed... you decompiled it, replaced what you wanted then compiled it and signed it?
Decompiled, replaced files, recompiled ... it asked if it was a system file and I said yes. It created a new folder and told me to remove everything I changed and then press enter. Did that and it created an unsignedSystemUI.apk but when I open it all of the changed files were missing. The stock ones were not present either, they were just gone.
I have a headache again from this crap. I quit for the night.
PieceKeepr said:
Decompiled, replaced files, recompiled ... it asked if it was a system file and I said yes. It created a new folder and told me to remove everything I changed and then press enter. Did that and it created an unsignedSystemUI.apk but when I open it all of the changed files were missing. The stock ones were not present either, they were just gone.
I have a headache again from this crap. I quit for the night.
Click to expand...
Click to collapse
nothing was there? That doesn't make sense Try doing it as a non-system file. It won't tell you to delete everything then. You'll just have to move it to system app because it will install to data app... one other question... Did you say yes to it copying stuff from the original doing it as a system file? If so try saying no when it asks that and it should compile with everything from the project folder instead of telling you to delete the things you changed.
Yes I did say it was a system app and yes I did say I wanted to keep stuff.
Not everything was gone, just all of my changes. I'll try it as a non-system app when I have time on my next off days.
Sent from my Eris ADR6200 using XDA Premium App
This has got to be part of my problem. When I try to decompile the systemui.apk using option 9 I get this ...
I tried using option 10 since it is a system file and I get this ...
I thought framework-res.apk was the dependency but when I try that it tells me that is not the dependee apk. Is there a way to tell what the correct file is?
Have I mentioned lately that this is really aggravating?!
GSB 2.9 Themes won't load
Starting with GSB 2.7, I have't been able to set themes. Still having the problem with 2.9. When I try to load one it goes through the motions but all it does is change the color of notification icons. Anyone know of a fix? Other than that 2.9 is great, very fast and no other issues at the moment.
EDIT: How and why did this post end up in Atrix Q&A? That is entirely unrelated. If a mod sees this, please return this thread to it's original location at Moto Xoom Development.
After waiting for way too long to have apk manager working on OSX, (so i can do my themeing natively instead of GFX in OSX and compiling in windows/linux) I have decided to port it myself. This has only been tested on an intel-based core 2 duo mac running snow leopard 10.6.8.
Credit for original APK Manger (windows) goes to: Daneshm90
Credit for linux port which this is based off goes to: farmatito
Update: This has been superseded by one of the most excellent rewrites of an application which I have had the pleasure to use. You my find s0niqu3's great work here: http://forum.xda-developers.com/showthread.php?t=1285130
---------
And one more thing: Shout out to Team EOS!
Awesome!!!!!!!!!!!!!!!!!!!!!!!! +9999999999
What are the capabilities of this and his can i use it?
Never messed with a apk manager before but would like to
crackmulah said:
What are the capabilities of this and his can i use it?
Never messed with a apk manager before but would like to
Click to expand...
Click to collapse
Apk Manager is an "automated" environment for apktool and a couple other utilities. Together, it allows you to extract/zip/sign/decompile/recompile and otherwise change apk files. It is most widely used to change strings (sections of text) and graphics within popular apks such as framework-res.apk and SystemUI.apk (for theme development) or adobe's flash apk (for hulu support).
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
MAD Industries said:
After waiting for way too long to have apk manager working on OSX, (so i can do my themeing natively instead of GFX in OSX and compiling in windows/linux) I have decided to port it myself. This has only been tested on an intel-based core 2 duo mac running snow leopard 10.6.8.
Click to expand...
Click to collapse
Hey,
First, to the OP, Thanks for this!!!!
I had been casually working on my own port from the windows version, but now there's really no need. I've tested briefly on OSX 10.7.1, mid-2009 c2d macbook pro, 64-bit, and it seems to work great so far.
chaostic_2k1 said:
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
Click to expand...
Click to collapse
For the adb error, uhm, really? Anyone that's going to be using this should have the knowledge/ability to add adb to their path. And yeah, I know, it sounds like you were just trying to give the OP a pointer to make it idiot proof, but this really seems like the bare minimum knowledge requirement that someone should have if they're going to use a tool like this.
For anyone that doesn't know, here's one easy way (on osx there are about a million ways to add to $PATH) to add adb to your $PATH:
edit your bash profile file (create a new file if it doesn't exist yet) here: ~/.bash_profile
Add the following:
Code:
export PATH=/path/to/your/sdk/tools:$PATH
export PATH=/path/to/your/sdk/platform-tools:$PATH
(Technically only the second one is necessary for adb to function, I recommend adding them both for quick ddms access too.)
The sox issue on the other hand I can understand, since its not included with OSX. But it is simple enough to install SOX with all dependencies using macports or homebrew. If you plan on doing anything at all with android development, hacking, modding, etc., on OSX, using one of these tools is absolutely essential. I personally use homebrew, because its immensely faster than macports on my laptop, and homebrew will use OSX's default x11, python, etc. binaries, whereas macports will compile its own second copy of x11, python, etc..
for macports:
Code:
POSIXLY_CORRECT=1 sudo port install sox
for homebrew:
Code:
brew install sox
Anyway, hopefully someone finds this useful, else I'll just come back and delete the post in a few days.
Cheers
chaostic_2k1 said:
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
Click to expand...
Click to collapse
Though it is very easy to install/add adb to path, I agree that it wouldn't hurt to throw it in the other folder just in case.
As far as sox goes, i don't know many who are using apk manager for ogg files. Those who are I figured would speak up when the time came and I would work with them to come to some sort of solution. Are you getting errors from sox missing? If so, you are absolutely right that the errors should be fixed. I did take steps to disable it from the script. If i missed something, feel free to post a log and I will take care of it.
Just went through the whole installation, from installing ADB with it's own path to setting up SOX with homebrew and I gotta say, I'm a noob but I got it all done within a six pack! lol Thanks for the port mang! I can finally put away the PC to modify apk's!
All I did to "fix" it was change
Code:
# Test for needed programs and warn if missing
ERROR="0"
for PROGRAM in "optipng" "7za" "java" "sudo" "aapt" "sox" "adb"
to
Code:
# Test for needed programs and warn if missing
ERROR="0"
for PROGRAM in "optipng" "7za" "java" "sudo" "aapt" [COLOR="Red"]#[/COLOR]"sox" "adb"
Since sox isn't supported in the mac port yet (the options are not in the menu), no need to throw a fatal error, or require someone to install sox. You might just want to comment out "sox" in that line and leave adb uncommented though, since the adb commands are enabled.
As for adding adb to the package, well, it's a convenience thing. APKmanager should be a one stop shop for working with apks like that, and having adb added would help with that. I personally don't like mucking about too much with installing packages on my laptop, so I keep adb in my Applications folder, and just cd to it. And I manually run many things. I wouldn't be using APKmanager to install or pull apks anyway.
Hi again,
For anyone else that's doing their smali hacking on mac, I was seriously annoyed by the lack of syntax highlighting in my two favorite editors, Coda and SubEthaEdit, so I made my own syntax mode for them.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The screenshot is from subethaedit (notice it supports code-folding at the ".method" level, ) and is somewhat outdated, I fixed the mode already to properly hightlight all variables after parameters.
My thread for the mode on XDA is here: http://forum.xda-developers.com/showthread.php?t=1257025
or you can head straight to my blog to download them here: http://wp.me/p1JZM0-O
Cheers,
Hi again,
So I started hacking your APK manager for mac today to hopefully bring it closer in-line with the windows branch.
And first thing was simply verifying that optimize png and ogg work if you install optipng and sox, and yes, they both do. So in addition to my tip above to install sox, also install optipng:
Macports:
Code:
POSIXLY_CORRECT=1 sudo port install optipng
Homebrew:
Code:
brew install optipng
Then go into the script.sh and uncomment the relevant lines that call those functions (menu lines 2, 14, 16 and answers for opt, bopt and ogg) and comment out the removal/error lines instead.
So far I've done the easy steps, added user selectable compression level, max java heap size, batch signing support, and added the z/p/zp options for batch optimizing.
I'll try to get this all finished this weekend so somebody else can test it too, and I'll try to include at least the 64-bit optipng binary I compiled, and possibly 64-bit sox and all its dependencies too.
Cheers,
hi, i've tried this (decompile and compile Browser.apk):
http://forum.xda-developers.com/showpost.php?p=17682521&postcount=19
any ideas?
thx
maile76 said:
hi, i've tried this (decompile and compile Browser.apk):
http://forum.xda-developers.com/showpost.php?p=17682521&postcount=19
any ideas?
thx
Click to expand...
Click to collapse
Hi,
I've spent the past few days greatly improving the Mac version of APK manager. Well, really its almost a complete re-write. I've added 32-bit/64-bit all-in-one support, re-enabled old disabled features, added project support, system apk "keep" folder options, error checking, debug info, etc., etc., etc.
Really, after writing ~600+ lines of code, I can't even remember every change I've made at this point.
Anyway, I'm still testing and tweaking it multiple times a day, so I'm not really ready to release it here to the masses at XDA, but if you visit my blog, you'll find a current download link.
Until further notice though, I ask is that you please, PLEASE, don't link directly to the download, and please don't re-distribute here. If you want someone else to download my version, please just link them to this post.
I'm not trying to drive clicks or anything like that, I just don't want a billion questions about how to use my mod right now when its not finished, and is likely to change every few hours anyway.
Cheers,
Hey again,
So I'm finally happy enough with my version of APK Manager for OS X, that I released it here on XDA: http://forum.xda-developers.com/showthread.php?t=1285130
I've brought it completely up to date with the windows feature set, and exceeded it in many, MANY ways.
Cheers everyone
I'm currently using Android Oreo (RevolutionRemix) and I really don't like the circular TimePicker dialog that's presented to me when I create an alarm in the default clock or when I make a new event in my calendar (Nine).
Currently I get a dialog like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
But I really would like it more like this:
I found this link https://android--code.blogspot.com/2015/08/android-timepickerdialog-theme.html (where I got the above screenshots), and it seems like this is something that can be changed with a theme.
Is this a default that can be changed (or forced) system-wide? If so, how? FYI, I have root and I'd rather edit an XML file somewhere to get this done than download a whole theming app or something.
Thanks in advance!
raphidae said:
I'm currently using Android Oreo (RevolutionRemix) and I really don't like the circular TimePicker dialog that's presented to me when I create an alarm in the default clock or when I make a new event in my calendar (Nine).
Currently I get a dialog like this:
But I really would like it more like this:
I found this link https://android--code.blogspot.com/2015/08/android-timepickerdialog-theme.html (where I got the above screenshots), and it seems like this is something that can be changed with a theme.
Is this a default that can be changed (or forced) system-wide? If so, how? FYI, I have root and I'd rather edit an XML file somewhere to get this done than download a whole theming app or something.
Thanks in advance!
Click to expand...
Click to collapse
You should be able to do this easily by editing the theme in res/values/styles.xml. If you know how to decompile apps with apktool, this should be an easy ordeal. You will need to decompile framework-res.apk and edit Theme. Material.Light and Theme.Material
To avoid bootloop, do not resign the app once edited and recompiled! Open the new apk with winrar or 7zip and add in the original manifest and meta folder located in the "originals" folder when using apktool.
Sent from my LG-Q710AL using Tapatalk
RealWelder said:
You should be able to do this easily by editing the theme in res/values/styles.xml. If you know how to decompile apps with apktool, this should be an easy ordeal. You will need to decompile framework-res.apk and edit Theme. Material.Light and Theme.Material
To avoid bootloop, do not resign the app once edited and recompiled! Open the new apk with winrar or 7zip and add in the original manifest and meta folder located in the "originals" folder when using apktool.
Click to expand...
Click to collapse
I don't know how, but I'm going to learn it Where is this apk normally in the filesystem, in the same location as installed apps? And would it be in the same location on a custom ROM as RR, or would it possibly be a custom theme with a different apk? Also, I thought apk files were just renamed zip files, what needs to be decompiled exactly (if that has an easy answer, otherwise I'll google it)? Thanks!
You will need some tools. Apk files are similar to zip files, but there are some things that are hidden. You will need apktool, adb, Notepad++, and java jdk installed. Adb and apktool are simple files that I can provide for you. They run on the command line in windows. What I do is put the files associated with adb and apktool in the C:\Windows directory so that they are installed system wide, meaning you can open the command prompt from anywhere and use the tools. Java jdk you will have to download and install.
I'm pretty sure on remix it will be framework-res.apk and it will be located in /system/framework/ directory. Apktool you will use to decompile and recompile the app. Adb is just to make things faster. You can use it to push or pull files from computer to phone and vice versa, reboot the phone, etc. You will have to enable USB Debugging in the developer options. You can also use adb to open a shell. (Like terminal in linux) but for our purposes we probably won't get into that.
Here is a link to my basic modding tools. Extract the files out and copy them to C:\Windows\.
https://drive.google.com/file/d/1Ywa3SWd_420uO-nyi2-iqVWp1vu0V_D9/view?usp=drivesdk
You'll need to copy any app that might be in /system/framework. I'm not super familiar with remix but we will get through it. Most likely it will be framework-res.apk unless remix uses something like RRframework-res or something. You can check that out with a root file manager. You may also need your SystemUI.apk located in /system/priv-app/. This is just to install the frameworks into the apktool.
Once you get all of your tools in place, create a folder named workspace on your desktop or somewhere easy to get to. Copy the above mentioned apk files into that folder. Next hold shift and right click the mouse. You want to open a command window here. In the command window type
apktool if framework-res.apk (then hit enter)
This is how you install the frameworks for apktool the if means install framework. You may also have to do this with SystemUI.apk.
Now were ready to decompile our framework! Lol. In cmd type
apktool d framework-res.apk
This will decompile the app. After you make your edits, you will use
apktool b framework-res
To build the app. (If you have any errors decompiling/recompiling report here)
At this point hopefully your app is decompiled and we can make our edit. Open /res/values/styles.xml with Notepad++ (a great computer program for coding) You will want to scroll down to Theme.Material.Light and find the TimePickerDialog. Then scroll down to Theme.Holo.Light and find TimePickerDialog. Copy the attribute from Holo theme to Material theme. Save. Recompile app. The new app will be located in the "dist" folder. Open the app with 7zip and add in the AndroidManfiest.xml and meta folder from the originals folder to retain the app's stock signature. Now we need to move our new apk to the phone. Type
adb push (drag and drop apk into cmd window) /sdcard/
This should push the app to the phone.
You can also use
adb pull (path and file)
to pull files from the phone to your workspace.
Once you get your new apk file ready and pushed onto the /sdcard/, open root file explorer and rename it to framework-res1.apk. This is so we can copy it into /system/framework/ without immediately overwriting the original. Next use root file explorer to change app's permissions to 0644. Once the permissions are changed correctly you can rename it to framework-res.apk and overwrite the original. Then reboot and enjoy.
Sent from my LG-Q710AL using Tapatalk
RealWelder said:
(snip instructions)
Click to expand...
Click to collapse
Thanks for the detailed instructions, really appreciated! Seems clear enough that I won't have any problems, I'll try it tomorrow or so and report back.
Just one question remaining: how can one retain the original signature by copying manifest files back into the apk? Isn't the whole idea of a signature to prevent changes to the files in the package? Or is it a different kind of "signature"?
raphidae said:
Thanks for the detailed instructions, really appreciated! Seems clear enough that I won't have any problems, I'll try it tomorrow or so and report back.
Just one question remaining: how can one retain the original signature by copying manifest files back into the apk? Isn't the whole idea of a signature to prevent changes to the files in the package? Or is it a different kind of "signature"?
Click to expand...
Click to collapse
It prevents you from modifying the AndroidManifest.xml. If you changed anything in it you would have to resign... But then it's signature won't match the rest of the signatures in the OS, which causes bootloop. Copying the original manifest and meta folder is just a workaround to keep it's signature in tact.
Sent from my LG-Q710AL using Tapatalk
RealWelder said:
It prevents you from modifying the AndroidManifest.xml. If you changed anything in it you would have to resign... But then it's signature won't match the rest of the signatures in the OS, which causes bootloop. Copying the original manifest and meta folder is just a workaround to keep it's signature in tact.
Click to expand...
Click to collapse
OK, that makes sense, thanks! I noticed that a wrong signature can cause a boot loop, I'm guessing that other problems with this file can also cause a boot loop? If so, is there an easy way to bypass this file should that happen (safe more or something)?
Just FYI, I'm using full-disk encryption and TWRP can't decrypt the data partition, but I assume I can just put the original file back to the /system filesystem if necessary?
raphidae said:
OK, that makes sense, thanks! I noticed that a wrong signature can cause a boot loop, I'm guessing that other problems with this file can also cause a boot loop? If so, is there an easy way to bypass this file should that happen (safe more or something)?
Just FYI, I'm using full-disk encryption and TWRP can't decrypt the data partition, but I assume I can just put the original file back to the /system filesystem if necessary?
Click to expand...
Click to collapse
It could, but generally the signature issue is the main reason for bootloop. The xmls and png images are safe to edit. Be careful with images, if one has a .9.png extension it is a nine-patch file. They have a one pixel border around the image that lets android know where to stretch said image. They are black dots/lines. Make sure they stay black and not opaque at all.
Sent from my LG-Q710AL using Tapatalk
raphidae said:
OK, that makes sense, thanks! I noticed that a wrong signature can cause a boot loop, I'm guessing that other problems with this file can also cause a boot loop? If so, is there an easy way to bypass this file should that happen (safe more or something)?
Just FYI, I'm using full-disk encryption and TWRP can't decrypt the data partition, but I assume I can just put the original file back to the /system filesystem if necessary?
Click to expand...
Click to collapse
I would make a fresh backup with TWRP before doing any of this, just in case. It is pretty safe though. I've been tinkering with rooted phones for a few years doing this. My latest venture is in a way even more impressive. With the newer LG phones, they have a built in theme system. I've been able to create my own theme and apply it to the phone all without root.
Sent from my LG-Q710AL using Tapatalk