(Optima Team)How To Build A Stock Based Rom(The 2nd Gen Ultimate Guide) - LG Optimus L3 II, L5 II, L7 II, L9 II

What You Need
a stock based rom to work with
I am not going to go into detail of how to make on because there are numerous tutorials on how to do this. if you would like a tutorial on how to do this here is a link http://forum.xda-developers.com/showthread.php?t=2195858
This is a stock based rom for the e450. i have already deodexed and zipaling all the apps.
the keyboard does not work because it was deodexed.
https://mega.co.nz/#!a1gTTL4B!JJ6Lin9K5gbTW5O4OfTZTkDnxWXEXjfaE9szbpa0W6E
Java
you can probably get away with installing JRE but this is the start of something bigger so download the full JDK package.
http://www.oracle.com/technetwork/articles/javase/index-jsp-138363.html
Android Kitchen and Cygwin
Android kitchen is a very nice program for building your own rom. this will allow you to deodex, zipalingn edit bootimg and much more.
Cygwin allows you to run linux programs in windows. (ie you need Cygwin to run Android Kitchen)
Android Kitchen
Cygwin
if you want to know how to set it up head over to http://forum.xda-developers.com/showthread.php?t=2195858 there is a nice tutorial on how to do it.
Apktool
apktool allows you to decompile, edit and recompile apps. this is perfect for editing apps.
https://code.google.com/p/android-apktool/
Android Multi Tool
you can probably just use apktool but lg apps have to have original metainf and I am not sure how to do that in apktool so I use both.
http://forum.xda-developers.com/showthread.php?t=2326604
Winrar and 7zip
I use winrar to edit flashable zips because its easier. I use 7zip decompress zips because i found errors on winrar. so install them both.
http://www.rarlab.com/download.htm
http://www.7-zip.org/download.html
Notepad ++
I find notepad ++ stable for editing xml files.
http://notepad-plus-plus.org/
Slimming Down
now that you have a stock based rom, one of the most important things about making a good custom rom is making it fast and bloat free. the easiest way to do this is to remove as much junk as possible.
to do this simply open the stock rom in winrar and start removing.
here is a list of things you can remove from your stock based LG 2nd Gen Rom.
/system
Code:
usbautorun.iso this is that annoying disk image that wants you to install LG software every time you plug in your device
/system/app
Code:
# Remember if you rom is odexed you need to delete the corresponding .odex file
AtciService.apk not a big app but it is constantly running in the background
AAT.apk not sure what this does I removed it from day 1
AlarmClockbin.apk this is the alarm clock app you may want to replace it
ApplicationManagerbin.apk this is the app manager that allows you to freeze stock LG Apps
Calculatorbin.apk this is the calculator app you may want to replace it
CBbin.apk I cant remember what this does but if i recall it is the Remote Call app
ChromeWithBrowser.apk this is the chrome app if you remove this also remove the app bellow
ChromeBookmarksSyncAdapter.apk chrome sync
DoubleTapWakeup.apk this is the knock on feature, I replaced the home screen app so I deleted this aswell
DrmProvider.apk not sure but it runs in the background
DrmService.apk not sure but it runs in the background
EngineerMode.apk this is the hidden menu when you dial a certain number
EngineerModeSim.apk this is the hidden menu when you dial a certain number
FontServer.apk this is found in settings>display>font style. all the fonts look the same to me so there is no need for me to change them.
Gallerybin.apk this is the picture app you may want to replace it
GMS_Maps.apk this is google maps
GoogleDrive.apk google drive
Hangouts.apk Hangouts
HiddenMenu.apk this is the hidden menu when you dial a certain number
HiddenSIMUnlockMenu.apk this is the hidden menu when you dial a certain number
LGBrowser_JB.apk this is the browser you may want to replace it
LGEIMEbin.apk the keyboard app that doesnt work you may have to replace it
LGHome3_Theme_Biz.apk LG Home Theme
LGHome3_Theme_Cozywall.apk LG Home Theme
LGHome3_Theme_Marshmallow.apk LG Home Theme
LGHome3_Theme_Optimus.apk Default LG Home Theme only delete this if you replace the Home Screen app
LGHome3a.apk LG Home you may want to replace this
LiveWallpapersPickerbin.apk Live Wallpaper Picker
Memobin.apk memo app
Music2.apk Google Music
Musicbin.apk LG Music App you may want to replace it
PCSyncUI.apk PC Sync
PlayGames.apk Google Play Games
PlusOne.apk Google Plus
QMemobin.apk Qmemo app
RemoteCallbin.apk this allows an LG Technicial to log into your phone is you phone them.
SetupWizard.apk Setup Wizard Not to be confused with LGSetupWizard_JB.apk deleting that will create a continual boot.
StreamingPlayerbin.apk LG Streaming Player
Street.apk Google Street View
Tasksbin.apk LG Task App
Videosbin.apk Video App you may want to replace this
WeatherMultiCPbin.apk Weather App if you delete this also delete app below
WeatherThemebin.apk theme for weather app
YouTube.apk Youtube App
/system/apps/bootup
Code:
FileManagerbin.apk File Manager
LGSmartWorldbin.apk Smart World
PolarisViewerbin.apk Polaris Viewer
SafetyCarebin.apk Safety Care
/system/lib
Code:
libchromeview.so lib for google chrome if you removed chrome remove this also
/system/media
Code:
Videos they are test videos and not necessary
shutdownanimation.zip this is the shutdown animation
/system/media/audio/alarms
Code:
all alarm tones except Lifes_Good_Alarm.ogg as that is the default
/system/media/audio/notifications
Code:
all notification tones except Optimus.ogg as that is the default
/system/media/audio/ringtones
Code:
all ring tones except Lifes_Good.ogg as that is the default
/system/tts/lang_pico
Code:
all languages except your language
/system/vendor/carrier/system
Code:
LGOnline-signed-no-login.apk I have no idea what this app does

Reserved
Replace Apps
now that we removed all bloat ware its time to customize. before we do anything flash the rom to make sure you didnt remove something wrong. the easiest way to make a custom rom custom is to replace some apps. to do this its allot of trial and error.
here is a list of apps that can be replaced with others
Code:
AlarmClockbin.apk
Calculatorbin.apk
Gallerybin.apk
LGBrowser_JB.apk
LGHome3a.apk
Musicbin.apk
Videosbin.apk
you may be able to replace more but I have sucessfully tried the above apps. one thing we need to remember is to try give the replacement app the same name as the default. this in most cases will allow the replacement app to be called on as the default app.
for instance if you replace the home app but do not give it the same name when you flash the rom once the phone has started the screen will be black because it will not know where the home app is.
to find apps to replace your stock apps the rule of thumb i use is download download download. download as many roms as possible. use the apps from other roms to replace with yours. for greater success download a roms with the same dpi as your.
you can use this thread to find lots of carrier apps and Custom rom apps
http://forum.xda-developers.com/showthread.php?t=2335530
or use this link for replacements that I can confirm work with e450
https://www.dropbox.com/sh/cz98t7d5rfz3t7m/AAArjL0danNEH29odrvPq3J1a/Android/APP%20Replacements?dl=0

Reserved for me
Apk Editing and Cleaning
so now we have removed bloat ware and replace some apps. before we go any further flash the zip again and make sure everything is working.
now you are going to need to know how to decompile and recompile apps without getting a FC. I didnt want to write this part because there are alot of tutorials on how to do this but because LG wants to be funny about the metainf and manifest I have to.
1. First copy all the apk files in /system/framework to your android multitool folder and place them under files.
2. now copy the file you want to edit to your android multitool folder and place them under files.
3. launch Android Multi Tool and click the ... button under framework.
4. select the lg-res and click install
5. do the same with all the other framework files you copyed
6. click the ... button under Decompile
7. select the apk you want to mod
8. click decompile
9. navigate to Decompiled apps/yourapp/origonal and put these files aside
now you can decompile the apk with apktool
cd to the directory where apktool is.
type
Code:
apktool if lg-res.apk
use the command for all the other frameworks
then
Code:
apktool d appyouwanttomod.apk
now do the necessary editing in the folder apktool created.
once you finished editing type
Code:
apktool b appyouwanttomod
you will now have an app in the appyouwanttomod/dist folder
before you can use it you will need to copy the files that we got from Android Multitool.
to do this open the apk with winrar and drag and drop the files.

Reserved last one
Reserved Last one

Nothing new till now.. Already knew this stuff, I was hoping in some exolanations oh modfiying LGSystemUI as it's more trickier than on other devices.
I see you have done a good job on sharing us your knowledge, I'll miss you.

how to deodex/zipalign
the tut you linked isn't helping me.. could you link another tut/guide for deodexing/zipaliging?

Related

You're all going to hate me, but how do I go about creating a CM7 Theme?

I looked around and found a whole lot of nothing.
halp
Re
To create a theme your going to want to edit the visual ui of the phone. A good place to start is the systemui.apk and the main theme of the phone, in cm7's case, the cyanbread and system themes witch you can also find in system/app. Bassically with the systemui.apk and theme you are editing of your choice will be the finished product if your just starting, making a theme from scratch is a bit more complicated. As for boot animations that I believed is located in data/local and fonts should be in a folder for them selves I cannot think of the topr off of the top of my head but it is easy to identify I'm sure.
the way I edit and make themes is use the above apk's and just go crazy with transparencys and colors in gimp. Be in mind your going to need a Linux based os to edit the apks and place and take them from your zip rom your theming. I also think ther might be a apks editor for windows but idk what it is called.
Re
To create a theme your going to want to edit the visual ui of the phone. A good place to start is the systemui.apk and the main theme of the phone, in cm7's case, the cyanbread and system themes witch you can also find in system/app. Bassically with the systemui.apk and theme you are editing of your choice will be the finished product if your just starting, making a theme from scratch is a bit more complicated. As for boot animations that I believed is located in data/local and fonts should be in a folder for them selves I cannot think of the the closer off of the top of my head but it is easy to identify I'm sure.
the way I edit and make themes is use the above apk's and just go crazy with transparencys and colors in gimp. Be in mind your going to need a Linux based is to edit the apks and place and take them from your zip Tom your theming. I also think there might be a apks editor for windows but idk what it is called.
ya you are going to need to have the android sdk setup for the ADB and then you will use something like apk manager for pulling, extracting, decompiling, image edits, or xml edits which you can find here:
http://forum.xda-developers.com/showthread.php?t=695701
you will need the SDK setup first
which can be found here:
http://forum.xda-developers.com/showthread.php?t=834748
and here
http://developer.android.com/sdk/index.html
then you need to know simple ADB commands like:
"adb pull /system/app/Mms.apk" and push command which is "adb push Mms.apk /system/app/"
more commands here:
http://developer.android.com/guide/developing/tools/adb.html
and
http://androidforums.com/evo-4g-all-things-root/187820-how-adb-commands.html
it is also a GOOD idea to learn to use Eclipse for the compiling of the .9.png files which cannot be just simply edited and saved like a normal .png file can.
NOTE: the best way to edit the .9.png files are going to be with the Draw9Patch tool that is included in the SDK and draw the black lines (guides) this is located in the tools folder and then you use Eclipse to compile .. get rid of the black lines pretty much.
info about the .9.png can be found here:
http://forum.xda-developers.com/showthread.php?t=487001
info for eclipse, like how to set it up and download it is here:
http://developer.android.com/sdk/eclipse-adt.html#installing
does say to use the classic version of Eclipse.
once you have all of that figured out then you are pretty good. But there are other stuff to learn to like the programs themselves and stuff .. you will have to look on Google a lot .. I know that there isnt anything much there about any of this stuff .. I kid you not .. it took me a good 2 days to figure out how to use the apk manager and eclipse and how to alter the .9.png files. That was from getting bits and pieces off the web and a lot of trial and error .. the support around here sucks so dont expect much.
there is also a video that shows you how to setup the sdk along with the eclipse that is here
http://www.youtube.com/watch?v=OIL1UouA4dE
just use the previous links above to get the stuff like the sdk is at version 10 now and then the Eclipse Classic.
If this is too much for you to do and figure out then you are out of luck.
Yeah, I've used ADB and Eclipse before. I'm quite ****e at Eclipse, but I guess I could mozy around a bit and see if I could get the hang of it enough to do themes. I'm really eager to do that stuff.
Anyway, is there anything I'll have to look out for in regards to turning my phone into a lovely paperweight?
wauterboi said:
Yeah, I've used ADB and Eclipse before. I'm quite ****e at Eclipse, but I guess I could mozy around a bit and see if I could get the hang of it enough to do themes. I'm really eager to do that stuff.
Anyway, is there anything I'll have to look out for in regards to turning my phone into a lovely paperweight?
Click to expand...
Click to collapse
eh nothing that I have come across or know about.
so if you know ADB and a little with eclipse . what exactly are you trying to figure out?
Right now I'm trying to figure out how to open the APK. I used WinRAR to open the file and now when I try to open it in Eclipse, it just opens WinRAR. >_>
wauterboi said:
Right now I'm trying to figure out how to open the APK. I used WinRAR to open the file and now when I try to open it in Eclipse, it just opens WinRAR. >_>
Click to expand...
Click to collapse
the easiest and the best method is to use that apk manager that I linked in there and use that to extract the apk after you pull it from the phone using ADB
I usually use the adb pull /data/app and adb pull system/app to get all the apk files out at the same time.
after they are out you will put the ones you want to alter (up to 10 at a time) into the place apk here for modding folder and then open apk manager terminal ..
1) type 22 to select the apk that you want to mod.
2) then you will type 1 to extract it.
3) then you can go to the projects folder to see the extracted apk contents.
- usually the images that you want to alter will be in the res/drawable or the
res/drawable-hdpi or res/rawable-hdpi longfinger
- also some of the apps that do not use the .9.png files you will have to find
the image in two folders ... one for portrait mode and landscape mode.
alter the images you want and put them in the original folder.
4) then you will optimize the images which is option number 2.
5) then you will sign the apk which is number 3.
- if it is a system app select the correct option
6) then you will see an unsignedsomething.apk in the place apk here for modding.
7) to sign the apk you will hit number 4.
8) and then number 5 to zipalign the apk.
when you go back to your place apk here for maodding folder you will see that the unsignedsomething.apk is now signedsomething.apk
then you will push that to your phone using the adb/push something.apk /sdcard
then simply install the apk from the phone ... may have to uninstall the original app first.
winrar will not open the apk .. 7zip will . but i rarely use this as I cannot see the thumbnails for the images and cannot optimize the apk with it or anything else for that matter.
Here is a link to the wiki for the T-Mobile Theme Engine.
http://code.google.com/p/tmobile-themes/w/list

GUIDE Modify apks

Hi. I just wanted to write a guide on modifying apks. You probably have seen my rom in the ported section.
(I'll make the guide look better when I get home)
Well lets get started.
1.
First. An introduction to what an apk is. An apk is (believe it or not) a zip of files.
2.
So how do you go about editing a zip? I suggest using 7z on your computer or root explorer on your phone.
Second: there are a lot of apks you can edit but for this guide I'll be using the systemui.apk that you find in any rom in the system/app folder.
3.
Ok. So assuming you start with the system ui apk your going to need to extract the apk with 7z on your computer. (or root explorer on your phone. Es file should work also)
4.
Now you should have a new folder where you chose to extract your apk. Open that folder. Your going to see a bunch of files. What your probably going to be interested in is the res folder. Go into that folder and find the drawable hdpi folder. Open it.
Your going to see a lot of icons. Here is where you can change things like wifi icons. You can add 4g icons and so much more. Even edit what your contacts look like.
5.
This is an important step. Make sure your using the system ui apk from the rom your currently on or make sure its compatible with yoir rom.
Ok so now we get to the things like icon changes. Download a theme you've been dying for but couldn't get because it was either for another rom or phone. And the only thing you wanted was a few things from the theme.
Now extract that zip. Then extract the systemui.apk again from the zip you want your icons to look like. MAKE SURE YOU RENAME THE THE SYSTEM UI TO SOMETHING DIFFERENT SO YOU DON'T MIX THEM UP.
6.
So now that you got the system ui apk with whatever you want to use all you need to do is go into the drawable hdpi of the one with the icons you want in it. Copy them and bring them to your roms stock system ui and replace them.
7.
Thats about it. Now zip your roms stock system ui back up and change the ending to .apk. Then put it in system/apps and replace it. Reboot. And boom. Your modded apk is ready.
Hit thanks if I helped.
for step three rename the. apk to .zip its easier
This can only be used for replacing regular images in the APK. There are many images that are .9 images which require decompiling.
There are MANY guides across xda that go into detail and show you the proper way to modify APK's..... There is much more then images.
This one is even in this forum: http://forum.xda-developers.com/showthread.php?t=1388459

[Q] PinyinMe to normal APK, English only and AZERTY

So there is this PinyinMe keyboard which looks the most like an iphone keyboard which I like as my phone is an iPhone Replica.
1. So the things I want to do is change the APK to a normal APK but I only know the way by TitaniumBackup but this app aint installed so it doesnt work.
2. The next thing I want to do is edit the APK xml files so I can remove all the chinese signs in it and change it to normal letters (mainly english).
- I already tried this but the APK wont install
3. If this is all working, I would like to make a second version of it which has AZERTY keyboard instead of QWERTY.
Please, I would really apreciate it and others too.
bOyka8 said:
So there is this PinyinMe keyboard which looks the most like an iphone keyboard which I like as my phone is an iPhone Replica.
1. So the things I want to do is change the APK to a normal APK but I only know the way by TitaniumBackup but this app aint installed so it doesnt work.
2. The next thing I want to do is edit the APK xml files so I can remove all the chinese signs in it and change it to normal letters (mainly english).
- I already tried this but the APK wont install
3. If this is all working, I would like to make a second version of it which has AZERTY keyboard instead of QWERTY.
Please, I would really apreciate it and others too.
Click to expand...
Click to collapse
Here's the APK and OBEX which I forgot to add
http://www.mediafire.com/?216cm8rcgi2z5m8
I really hope someone can help me out with this !
Ok so in this ZIP file is the original APK that you can just install and use. Also the one I edited which gives App not installed.
Can anyone look into this please??
http://www.mediafire.com/?216cm8rcgi2z5m8
bOyka8 said:
Ok so in this ZIP file is the original APK that you can just install and use. Also the one I edited which gives App not installed.
Can anyone look into this please??
http://www.mediafire.com/?216cm8rcgi2z5m8
Click to expand...
Click to collapse
You have two files in the zip. One is an .apk and the other is an .odex file.
I saw this thread as I was browsing around and came across your GooApple thread.
I am not sure what your level of expertise is, but basically, an apk from a manufacturer comes in two parts (.apk and .odex). If you want to edit the app, you must either edit both the .apk and .odex files, or you can 'deodex' the file which basically takes the contents of the .odex file and places it inside the .apk file.
If you have deodexed an apk file (removed the need for the .odex), you no longer need the .odex file. In this way, you get 'deodexed' ROMs with no .odex files inside. These are much easier to edit and work with.
There are lots of tutorials to find out more about this and about deodexing and editing .apk files if you search.
Here is a good starting point
If you are already aware of this, I apologise
nobnut said:
You have two files in the zip. One is an .apk and the other is an .odex file.
I saw this thread as I was browsing around and came across your GooApple thread.
I am not sure what your level of expertise is, but basically, an apk from a manufacturer comes in two parts (.apk and .odex). If you want to edit the app, you must either edit both the .apk and .odex files, or you can 'deodex' the file which basically takes the contents of the .odex file and places it inside the .apk file.
If you have deodexed an apk file (removed the need for the .odex), you no longer need the .odex file. In this way, you get 'deodexed' ROMs with no .odex files inside. These are much easier to edit and work with.
There are lots of tutorials to find out more about this and about deodexing and editing .apk files if you search.
Here is a good starting point
If you are already aware of this, I apologise
Click to expand...
Click to collapse
Hey man, thanks for giving me this information.
I did read about deodexing but havent had the time to look it up. And I think TBP does the deodex (I could be wrong) when changing the system app to a user app.
Anyways, I have been able to edit the xml & png's, but whenever I try to install the newly created APK, I get the error : App not installed.
Maybe this deodexing can do the trick, I'll test it out once I find 30min of free time ^^
Titanium backup doesn't deodex the .apk. That is why you are having the issue. You can swap pngs etc without decompiling, but to edit smali and some xmls etc you have to decompile... it is much easier if you have first deodexed your apk to remove the .odex file.
nobnut said:
Titanium backup doesn't deodex the .apk. That is why you are having the issue. You can swap pngs etc without decompiling, but to edit smali and some xmls etc you have to decompile... it is much easier if you have first deodexed your apk to remove the .odex file.
Click to expand...
Click to collapse
I did recompile a working APK, but when I put it all back together and try as a system/normal app and do zipalign or no zipalign, I always get an error or just a crash. But probably deodexing will do the trick.
Hopefully I'll get some time this week for doing it cause its like:
Wake up - Eat - Job - Eat - Sleep - Eat - Soccer - Eat - Sleep
The life of a mailman

[TOOL][HOW TO] Customize ANY rom before loading

I am sharing a tool that I have been using for years to customize roms, because I am heavy modder.
With this I can download multiple roms and cherry pick the feature I want and get rid of the ones I do not want. Its like Aroma on steroids
You are in complete control of the look and feel from the first boot, provided you know what you are doing.
You can also use this tool to mod multiple roms or same the rom with different feature/themes.
How does it work:
You must have a Windows 2000 or later.
Download and install 7zip. If you are using a Windows x64. Download the x64 version of 7zip.
Download the zip file buildrom-template.7z and unzip it anywhere on your PC.
Place the full filename (e.g. system\app\PDF_Viewer_F_A.apk) or directory (e.g. system\media\oobe\video) for the files/app/wigdets you want to delete in a text file (in this template this is delete-rom-1files.txt and/or delete-rom-2files.txt). If change the filename you will need to change it in the corresponding batch file. In this template, it is customise-rom-1.bat or customise-rom-2.bat
Add the files/apps/mods/wall papers/fonts/ring tones (whatever) to their correct file location (directory) in the include directory. E.g. If you had an inverted gmail.apk app, you could put it in the include\data\app\ directory.
Drag and drop the rom zip file on the batch file that will start the customization (in the template this is customise-rom-1.bat or customise-rom-2.bat)
Your are done unless you want to theme the rom.
To theme the rom look into the themes directory. This should be straight forward. I left the files I used to theme Sense 5 as an example.
[*] The apk/app to be themed are placed in the apk-to-be-themed.txt. Look in the file for examples [Edit: 4/23/213]
Drag and drop the customized rom on the themer.cmd batch file after you have all the icons and layout changes in place.
Happy modding!
Files
buildrom-template.7z
Mine...
I just open the rom.zip and add/remove what I do/don't want
uppon2 said:
I just open the rom.zip and add/remove what I do/don't want
Click to expand...
Click to collapse
That would be doing it manually.
To remove files (app) you don't want, add the filename to the to delete-rom-1files.txt file. (Open the delete-rom-1files.txt file you will see a list of files that I remove from the roms).
The files (app) you want to add put them in their correct location in the "include" directory. E.g. If you had and inverted gmail.apk app, you could put it in the include\data\app\ directory.
Its a one-time setup so whenever an updated is released, its a simply matter of drag and dropping the rom on customise-rom-1.bat batch file.
yardi4life said:
That would be doing it manually.
To remove files (app) you don't want, add the filename to the to delete-rom-1files.txt file. (Open the delete-rom-1files.txt file you will see a list of files that I remove from the roms).
The files (app) you want to add put them in their correct location in the "include" directory. E.g. If you had and inverted gmail.apk app, you could put it in the include\data\app\ directory.
Its a one-time setup so whenever an updated is released, its a simply matter of drag and dropping the rom on customise-rom-1.bat batch file.
Click to expand...
Click to collapse
I understand now, sorry I misread the OP!
This is perfect for me because sense has the worst ringtones and notifications known to man... Every time I flash a new sense ROM I have to delete all the sense sounds and copy in aosp sounds.
Sent from my CyanogenMod DNA using Tapatalk 2
jamiethemorris said:
This is perfect for me because sense has the worst ringtones and notifications known to man... Every time I flash a new sense ROM I have to delete all the sense sounds and copy in aosp sounds.
Sent from my CyanogenMod DNA using Tapatalk 2
Click to expand...
Click to collapse
Good to hear!
That's of one my uses for this too.
I also added some extra wall papers and deleted a few.
See the file D:\android-sync\htc\DNA\buildrom\include\sense5\system\customize\MNS\default.xml and search for wallpapers.
Wall papers are located in D:\android-sync\htc\DNA\buildrom\include\sense5\system\customize\resource
and the settings are D:\android-sync\htc\DNA\buildrom\include\sense5\system\customize\MNS\default.xml (search the file for wallpaper)

[Q] Adding more languages to MOTO E and How to edit the boot.img ?

So I bought this little phone and I was baffled that there are so few language options to select.
The phone is for my father (the english evades him) therefore I need my mother language on it.
Phone Version XT1021
OS:
Android 4.4.2 Blur_Version.20.11.14.condor_retaildsds.retaildsdsall.en.03 Updated to 4.4.4, rebuilt in a deodexed ZIP file, and a system.img file
Ho needs it, I can upload it, I have either the update.zip or system/boot img files.
What I tried:
I tried to recompile the framework-res, system and other 15~20 apps, on some it worked on some it did not.
I am using the Nexus 5 translations files
On those that worked I managed to activate them by using a morelocale app from market and the translations work just fine.
On systemUI.apk I am getting force close
On framework-res.apk the phone freezes.
How I decompile/recompile and test the apps.
1) Decompile the app
2) Add the new values
4) Recompile
5) Copy the new app created app and the original one in a folder.
6) Open both apps
7) Drag and drop the resources.asrc file in the original apk and when you are asked how would you like to compress the file, I select STORE (I use winrar)
So if anyone managed to edit the framework app, systemUI and he is kind to share how he did it without getting any bootloops and force close, I would be very appreciative.
Now, regarding the boot.img
I tried to unpack it, using the classic method, it unpacks ok, the problem is on repacking,
Is there a special tool to do it or what ?
Why do i need
I need the adb.secure to be 0, and also the security off, so I can be able to use ADB REMOUNT and monitor adb logcat since the device starts. and also to be able to push apps to system using adb.
So, ho has the information and he is kind to share ?
here is the proper way to decompile and recompile the apk in a proper way
1. Make sure you have the latest version of the apktool
2. install the framework (try using 4.4.2 framework if 4.4.4 one gives error)
3. Decompile make changes
4. Choose option compile system app in apktools
5. now when it asks to delete all the things you have modified then delete the res and resources.arsc file and if you have made any smali changes delete the classes.dex too
6. go back to script and press enter
7. now open both MODIFIED APK and UNMODIFIED APK and then DRAG AND DROP androidmanifest.xml and meta inf from UNMODIFIED TO MODIFIED APK
8. push it and set rw-r-r permission
and if you are getting the error unable to remount then install adb insecure app by chainfire
thats it
happy modding
any help comment below by quoting or mentioning my name(i get notification so that i can give quick responce )
Prashanth Meesara: said:
here is the proper way to decompile and recompile the apk in a proper way
1. Make sure you have the latest version of the apktool
2. install the framework (try using 4.4.2 framework if 4.4.4 one gives error)
3. Decompile make changes
4. Choose option compile system app in apktools
5. now when it asks to delete all the things you have modified then delete the res and resources.arsc file and if you have made any smali changes delete the classes.dex too
6. go back to script and press enter
7. now open both MODIFIED APK and UNMODIFIED APK and then DRAG AND DROP androidmanifest.xml and meta inf from UNMODIFIED TO MODIFIED APK
8. push it and set rw-r-r permission
and if you are getting the error unable to remount then install adb insecure app by chainfire
thats it
happy modding
any help comment below by quoting or mentioning my name(i get notification so that i can give quick responce )
Click to expand...
Click to collapse
I will try like this, thx for the input.
globula_neagra said:
I will try like this, thx for the input.
Click to expand...
Click to collapse
Anytime bro . if you get any errors I will help you on Teamviewer
Sent from my Moto E using XDA Free mobile app
I managed to add the language using your method, only with one mention, I think on framework you have to select STORE when you add the file to the archive.

Categories

Resources