Hello
I have an Android device based on Tegra CPU and with 5.1 Lollipop installed.
It has few own apps installed on it that basically are a custom menu and few apps that run on it.
I downloaded an update of it which contains:
boot.img, file_contexts, system.new.dat, system.patch.dat and system.transfer.list
I managed to extract the system.new.dat file to obtain a system folder which I don't know if it's only an update of the system folder on the device or the full folder instead.
Whithout root I copied the system folder out of the device with the apps that I want.
I'd like to run theese apps on another android device.
What do I need to get out of the device in order to try this apps to run?
Only the apps in system/app folder or there are also libraries that I need?
By don't know about, I copied out of the device also the lib folder.
I'd like to try on android studio the apps firstly.
Is there any way to know if an app needs libraries and which ones?
Thank you so much
Giulio
You can learn how to port app here : https://forum.xda-developers.com/showthread.php?t=2476050
Related
Hello!
I'd like to create update.zip to integrate app wich can be flashed to any or almost any rom. I'd like to put some essential app in it. Anybody can tell me how can i do this, or is there any guide for this?
Download and install the latest android sdk .also Java jdk find and download autosign. Do this all by searching. I would download a custom rom as a template for your update.zip. extract the data folder and the Meta folder and put into a new folder, go into Meta folder keep clicking through the folders inside Meta one till you find update-script and open it in notepad.
Delete everything except the part saying something like copy package DIRATA and the show progress before it. Once that's all done put the Apps you want into the data folder zip up the data and Meta folders, when you open the zip folder you should only see those 2 no others! Resign it using autosign and flash
bonesy said:
Download and install the latest android sdk .also Java jdk find and download autosign. Do this all by searching. I would download a custom rom as a template for your update.zip. extract the data folder and the Meta folder and put into a new folder, go into Meta folder keep clicking through the folders inside Meta one till you find update-script and open it in notepad.
Delete everything except the part saying something like copy package DIRATA and the show progress before it. Once that's all done put the Apps you want into the data folder zip up the data and Meta folders, when you open the zip folder you should only see those 2 no others! Resign it using autosign and flash
Click to expand...
Click to collapse
+1. Niiice,... A few questions though if you dont mind.
1,... Can I use this command that I use to sign my bootscreens to sign the update.zip ... "java -jar C:\SignApk\SignApk.jar C:\SignApk\testkey.x509.pem C:\SignApk\testkey.pk8 C:\SignApk\bootscreen.zip C:\SignApk\bootscreen_signed.zip" ... and just change the file name as needed? ... Or do the .pem and .pk8 files need to be changed to something else?
2,... If Im using a base custom ROM with Apps2SD, all apps will be installed to the SD right?... Or do they install to the internal memory if you add the apps to the ROM itself?
3,... Is it also possible to add the app and game data (i.e.. game saves) to the ROM or is it best to use a backup programme?
Hope someone can help?
Thanks!
I tought it will harder, but it worked flawlessly
I'd be interested in this too:
ddotpatel said:
2,... If Im using a base custom ROM with Apps2SD, all apps will be installed to the SD right?... Or do they install to the internal memory if you add the apps to the ROM itself?
Click to expand...
Click to collapse
It all goes to the Data partition so... If your ROM is using apps2sd and its turned on (for instance im using androbin and i have done the command "apps2sd on" in terminal) the apps you install from then on will go to your sdcard partition.Quite a handy thing on this androbin rom is in sd card and storage it tells me my secondary partition!
Ddotpatell....
1.Yes you can use that command
2.answered above.
3.I would use a backup program personally
Thanks BONESY, much appreciated.
Hallo guys, I trying deodex my rom a week but it did not work as well. Successful only half the rom. Please help me, I have tried many ways to including XUltimate exactly.
Rom here: http://www.mediafire.com/?qj9hllq7cp6uuqj
Sorry for ugly english
What is your phone?
If is an Motorola, here is the tutorial:
Deodexing Explained + How To
So you want to theme… but you keep hearing about all this deodexing stuff… so whats that all about?
Stock android implements an odex file structure; for every (well…most) system app(s) (.apk file) and framework files (.jar) there is a corresponding .odex file, so for example you have;
/system/app/Phone.apk
/system/app/Phone.odex
/system/framework/com.motorola.android.mediasync.jar
/system/framework/com.motorola.android.mediasync.odex
What do the .odex files do?
All of your apps on your device are packaged as .apk files; these files are compiled from google source code and can interchangeably be viewed/thought of as a compressed folder (like a .zip or a .rar); and all of your framework components (well most…) are packaged as .jar files which literally stands for Java Archive (so again this can be compared to a .zip or a .rar).
When the android OS want’s to run your apps or utilize its framework components, it has to parse (read/interpret) the compressed data held within your .apk and/or.jar files. What the odex file structure aims to do, is to expedited this process by utilizing another file (.odex file) to compliment every.apk file (and .jar file); the odex file, includes the most critical data in an uncompressed format so the android os can quickly interpret that important information before parsing through the rest of the data held within the compressed .apk files (and .jar files). So subsequently, in an .odex file structure the .apk & .jar files don’t include all of the applications/framework-components data; Essentially, two files are acting as one; for your apps there are .apk files + their corresponding .odex file and for your framework components there are .jar files + their corresponding .odex file. This works nicely as an optimized file structure, except in the circumstance when the user want’s to theme; theming requires a modification to your .apks; the image files (.pngs) held within the pngs are replaced with different ones. However it is impossible to theme an application if it exists as two files. So that is why it is said you need to be DeOdexed in order to theme; DeOdexing is the process of re-bundling that uncompressed critical data (.odex files) back into your compressed .apk (& .jar) files, so that now all of the data is included in the .apk files necessary to run your applications without the presence of .odex files; in addition all the data is now included within the .jar files necessary to utilize your framework components without .odex files. In a DeOdexed file structure, there are no odex files present.
What are the benefit’s of DeOdexing?
Simple. To be able to theme a stock ROM.
Deodexing doesn’t speed your phone up or do anything of the sort.
It is simply something that is necessary to be able to theme a stock ROM.
How do you DeOdex?
One way you can deodex is to use the application xUltimate which actually rebundles that information for you. Another way, is to use a pre-made DeOdexer Update.zip; this zip already has all the repackaged fully compressed .apk files and utilizes code in the update script to delete all of the odex files present. So essentially all it’s doing is overwriting all your old semi data inclusive .apk files with fully inclusive ones and then deleting the (now) superfluous .odex files. This is the easiest way to do it, since all the work is already done for you. Just flash it in clockwork as you would for any theme:
Download it
Place it on your sdcard
Open Droid X Bootstrap
Hit Bootstrap Recover > Ok > Reboot Recovery
Navigate to ‘Install zip from sdcard’ with volume keys and select with camera button
Navigate to ‘Choose zip from sdcard’ and select
Navigate to the directory containing the above deodexer zip
Select it > Yes
Wait for it to do its thing > reboot system
You are now deodexed.
How can you check to see if you DeOdexed successfully?
Open a file explorer (like Root Explorer or Astro)
Navigate to the directory /system/app
Check for the presence of .odex files
Navigate to the directory /system/framework
Check for the presence of .odex files
If there are no odex files present then you are deodexed!
Now you can theme!
Will DeOdexing slow you down?
Technically it should, but in actuality its really quite negligible to notice, however… In my opinion, it’s rather silly to DeOdex and stay on stock ROM; you should just make the switch to a custom ROM. Why? Because custom ROMs are already deodexed and they zipalign your apps on boot; zipaliging is the process of reorganizing the manner in which the .apk is packaged to optimized it for being parsed faster by the android OS, it is comparable if not better than the odex file structure, so you get the best of both worlds; a themed ROM and the speed of an optimized file structure. That is why Stock is lame and custom ROMS pwn (IMO of course…)
After hours of decompiling and things alike, I finally managed to extract the Oppo Colour OS 2.1.x files from the .dat file. But Once I extracted the folders and other things. I come to the launcher folder which has 3 things in the root of the Oppolauncher folder. A folder names "arm", another folder named "lib", and the launcher apk file itself. I know by past experience (Haven't tested myself.) That the apk needs those two folders. (theres also a folder names "oppolaunchersystem" with an arm folder and "oppolaunchersystem.apk.") In order to port these apk files for use with Lollipop devices (Colour OS 2.1.x I believe is lollipop.) Do I have to implement the lib and arm folders (maybe the launchersystem apk)? And if so, how? Thanks for anyone willing to help me with creating the system dump.
I attached the two folders in a Zip file for anyone who wants to examine it.
Sorry for my bad English if I made any errors.
{EDIT} I tried installing OppoLauncher.apk through ADB and I got back [INSTALL_FAILED_DEXOPT] and with OppoLauncherSystem.apk I got back [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]. So it seems that OppoLauncher will work on the device I tested it on (Droid Ultra on 4.4.4) but It needs some sort of resource within the Colour OS 2.1 .x ROM.
After update my LG G6 (LG-H870) from nougat to oreo, I've have problem with integration updated apps in to /system.
I do it like this:
1. copy apk file from data/apk to sd card
2. rename copied apk file to name of /system apk
3. extract lib folder from apk
4. copy newer file to proper folder in /system/app or /system/priv-app and replace file in it
5. Copy lib files extracted form apk to right folder /system/lib or /system/lib64
6. Uninstall update from /data/app
7. reboot + dalvik-cache wipe
In nougat it was working, but in oreo, app after integration, breaks. It cannot be open, and app name changes to random words (ex. google docs name changes to "write com.android").
To repair integrated apps I have to perform a full /data/ wipe.
Is it a some kind of protection? How to do it properly?
TitaniumBackup and Link2SD cannot integrate updates to rom properly without errors since Lolipop.
Hi
I'm trying to flash a couple of older devices with Lineage OS. So far I have trimmed down the OpenGApps as much as I can so that there is room for my additional apps zip archive that contains Google Play Store apk's.
The problem I have is that whilst using TWRP to flash the zip, only the '/System/App' or '/System/Priv-app' directories actually contain the freshly copied apk files, whereas the '/data/app' folder only contains empty folders named after the package names e.g. '/data/app/com.adobe.reader/' and no apk inside.
Why is TWRP only allowing me to install apps into the System directory? The user app partition is so much bigger but being able to flash them without having to install the manually via the Play Store save so much time.
Could someone shed some light on this please.
Many thanks
Will
Sent from my LG-H930 using Tapatalk