.APK files not showing up in app folders - General Questions and Answers

I am really lost with this problem as i cannot find any other instance of it...
device: Redmi note 9S, not rooted, developer options enabled, Android 10, MIUI 12.0.4.0
in the android/data/ directory, under the com.[author].[app] files, i can't seem to find any apk files, it just appears to be empty except for an additional "files" folder that doesn't contain any useful files, while the tutorials i was following need access to a base.apk file that, in my case, does not exist. I need to know if this is a new version general android change, a device specific one ? where are the apps running from? are they all web shortcuts? if they use an apk file, where can i find it? I'm unexperienced in all those things, but I felt this would be the best place to get an answer.

LasevIX_ said:
I am really lost with this problem as i cannot find any other instance of it...
device: Redmi note 9S, not rooted, developer options enabled, Android 10, MIUI 12.0.4.0
in the android/data/ directory, under the com.[author].[app] files, i can't seem to find any apk files, it just appears to be empty except for an additional "files" folder that doesn't contain any useful files, while the tutorials i was following need access to a base.apk file that, in my case, does not exist. I need to know if this is a new version general android change, a device specific one ? where are the apps running from? are they all web shortcuts? if they use an apk file, where can i find it? I'm unexperienced in all those things, but I felt this would be the best place to get an answer.
Click to expand...
Click to collapse
Go through your file manager settings and find the option to show hidden files.

@LasevIX_
An app's APK-file is housed in folder /data/data. The APK-file itself gets installed in folder /data/app as base.apk.
Example:
/data/app/[your_package_name]-[1,2,n]/base.apk

jwoegerbauer said:
@LasevIX_
An app's APK-file is housed in folder /data/data. The APK-file itself gets installed in folder /data/app as base.apk.
Example:
/data/app/[your_package_name]-[1,2,n]/base.apk
Click to expand...
Click to collapse
yes, i know that path. my problem was that it isn't available/doesn't exist on my machine

Droidriven said:
Go through your file manager settings and find the option to show hidden files.
Click to expand...
Click to collapse
I have done that already, but the apk files still don't show up.

also, I think this thread may benefit from further precisions:
the .apk files do not show up either in the phone's built in file manager, windows explorer or in ADB ls commands.
I am practically sure it isn't hidden files, I have all the settings for viewing them enabled.
if there's some secret setting that may provide access to those files, please do tell where.

after further checking, the app i was trying do copy to my computer reports an app size of 106MB, but the com.____._____ folder reports 21B, so i suspect it may be some sort of shortcut to another folder.

.

Typically one makes use of ADB commands to pull an APK file ( Android must NOT be rooted ):
Step 1: Get location of desired app in Android's filesystem
Code:
adb shell "pm path com.example.someapp"
The output will look something like
package:/data/app/com.example.someapp-2.apk
or
package:/data/app/com.example.someapp-nfFSVxn_CTafgra3Fr_rXQ==/base.apk
Step 2: Using the full path name from Step 1, pull the APK file from the Android device to the Windows computer
Code:
adb pull /data/app/com.example.someapp-2.apk <PATH-ON-PC>

jwoegerbauer said:
Typically one makes use of ADB commands to pull an APK file ( Android must NOT be rooted ):
Step 1: Get location of desired app in Android's filesystem
Code:
adb shell "pm path com.example.someapp"
The output will look something like
package:/data/app/com.example.someapp-2.apk
or
package:/data/app/com.example.someapp-nfFSVxn_CTafgra3Fr_rXQ==/base.apk
Step 2: Using the full path name from Step 1, pull the APK file from the Android device to the Windows computer
Code:
adb pull /data/app/com.example.someapp-2.apk <PATH-ON-PC>
Click to expand...
Click to collapse
I wasn't aware that you could use adb to find the location of apps, but the command you suggested gives an unexpected result (screenshot attached). it gives multiple results of files despite them being invisible to file explorers. Once i try to pull the package with the method you suggested, it gives an error as if it wasn't there. Did I type the wrong syntax? does the "pm path" command only give expected locations for files?
{
"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"
}

for clarification, I am trying to access the netflix client APK in order to manually make it recognise widevine L1 certificates, as described in this thread: https://forum.xda-developers.com/t/netflix-hd-on-tab-s2.3274295/#post-65001865 .

The NETFLIX APK you want to extract from Android is a so-called Split-APK. IMO you've to turn this Split-APK into a normal non-Split-APK.
How to:
How to turn a split APK into a normal non-split APK - Platinmods.com - Android & iOS MODs, Mobile Games & Apps
Hey guys, recently many modders contacting me about how to mod a split APK. We have already many tutorials about how to download or extract the split APKs, mod a split APK as it is and how to use a split APK installer to make the mod apply to the device. Here some examples of the mentioned...
platinmods.com

jwoegerbauer said:
The NETFLIX APK you want to extract from Android is a so-called Split-APK. IMO you've to turn this Split-APK into a normal non-Split-APK.
How to:
How to turn a split APK into a normal non-split APK - Platinmods.com - Android & iOS MODs, Mobile Games & Apps
Hey guys, recently many modders contacting me about how to mod a split APK. We have already many tutorials about how to download or extract the split APKs, mod a split APK as it is and how to use a split APK installer to make the mod apply to the device. Here some examples of the mentioned...
platinmods.com
Click to expand...
Click to collapse
This will be helpful for teh future, thank you for directing me to that tutorial.
but it still requires to pull the apk, which i have not been able to do.
as described in my previous reply, ADB seems to be able to return the location of the apk, but can't pull it, as if it never existed.

According to the screenschot you provided earlier I think the package ( APK ) you want to pull is stored as
/data/app/com.netflix.mediaclient-YUY-VwSu3KeCc44bkA
shorthanded as
base.apk
but don't really know it: this is not my world.

Related

[Tool] Yaffs Explorer, made for Defy

Its a free Root Explorer without Ads and without network use.
When busybox and root modes are enabled, you can make dumps of your nand partitions and export Kernel and initramfs (Menu/Tools)
{
"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"
}
https://market.android.com/details?id=fr.wdscript.yaffsexplorer
You can report here bug and feature requests...
Example : Dump and Rename The /cdrom partition (p17)
change dump file ext from .raw to .iso and you get your Windows drivers (MotoHelper 2.0.44 Driver 4.9.0 - 27 Jan 2011)
Version 1.9.9.8 attached
Awesome thanks, will def check this out.
useful tool
How can i dump the roofs?
can i restore it after backup?
Thank you.
This tool execute this command :
dd if=/dev/block/<partition> of=/sdcard/<partition>.raw ibs=8192 obs=8192 conv=notrunc
So you can do the reverse command (not in the tool because dangerous)
Update v1.1 : You can create yaffs images now
Epsylon3 said:
This tool execute this command :
dd if=/dev/block/<partition> of=/sdcard/<partition>.raw ibs=8192 obs=8192 conv=notrunc
So you can do the reverse command (not in the tool because dangerous)
Click to expand...
Click to collapse
Do you know, how to dump and remount the rootfs?
Thank you.
in fact, i dont know... rootfs is mounted before android (initrd on some devices)
Epsylon3 said:
in fact, i dont know... rootfs is mounted before android (initrd on some devices)
Click to expand...
Click to collapse
Ok, thank you.
Ok, been using this for a while now; couple suggestions.
1. Copy feature needs to work more like Root Explorer.
---- So when you long-press and copy a file, two buttons popup, Paste and Cancel - Maybe you could even add a third to paste quickly to a favourites folder without leaving working directory ?
2. Be able to change text size of file browser. I have big fingers heh.
3. Have a Mount/Unmount button similar to the Mount R/W in Root Explorer.
--- I find I cant copy anything to anywhere, am I just missing something ?
4. Select multiple files, and copy, delete, zip, move . . . . . to favourites ?
5. Compress files or folders and save zip to a saved favourites without leaving working directory.
6. Load apk icons maybe; easier to find things sometimes.
7. Show favourites picker on program startup. I'm always working in the same directories.
A built in text editor with line numbers would be awesome. Maybe an sqlite editor addon too ?
I like what this looks like so far; I really like that you can see symlinks, the dropdown with recent paths, nandroid dumps of any partitions (nice), and the favorites are cool. Just hoping it can take over for root explorer.
Keep up the great work so far. Will be keeping on eye on this for sure.
Thanks for your report
First, i dont want to copy Root Explorer or all these slow and "3 lines" explorers... So no image/movies preview... This tool is focused on system files exploration
Apk icons maybe but not in my prority (filter by name is nice), line size : not for the moment (maybe a zoom or something later)
The multiselect on click is almost ready (for files), to keep folder navigation
the Mount/Unmount will be in tools menu later (in mounted devices menu) i need to make a new window for that... but that need work (and could make lot of reports from unknown devices, like chinese ones)
Compression.... yea hmm v2.0
Hm. I tried this, but it is a lot slower than Root Explorer. Perhaps this is because it shows a lot more objects, or due to it having a lot of features I do not directly associate with a program to manage files. Still, I can not say that having more competition is a bad thing, so keep up the good work
its because the tool use a terminal process to list folders, and a new one on each refresh... I think i can optimize that if i keep the shell process opened.
but Root enabled, its 5x slower (220ms instead of 40ms)... i think there could be a problem with superuser tool, will try to uninstall it to check...
johnw.xda said:
Do you know, how to dump and remount the rootfs?
Thank you.
Click to expand...
Click to collapse
to remount In fact like others :
Code:
mount -o rw,remount,relatime -t rootfs rootfs /
This feature will be available in some minutes (v1.3.0)
But to dump... you need to skip /proc /tmp and /sys
Hi.
I´m using your app in a Samsung galaxy S.
I lost one file and I want to recover it from a CWM backup.
Your app lets me read the backup, but I cant save the needed file ...
Is there a possibility to extract it from the backup?
Thanks in advance
Its the next step yaffs extraction...
sorry, not for the moment (but soon)
just made an update v1.3.2 which really enhance exploration speed...
I hope you release it soon
Thanks
I can't Dump Partition. A circular thing shows up then it disapear and no text saying records in+out and that it finished (like in the screenshot). And there is no file on my SD card and yes I have plenty of space.
Tried several of the small 512k partitions and the Boot and Recovery partitions.
I'm running rooted froyo 3.4.2-155, few bloat APK's removed.
this feature uses busybox "dd" applet, try to set another busybox in setting window
you can search for them in other apps, do a search in /data/data/
Namiga said:
Hi.
I´m using your app in a Samsung galaxy S.
I lost one file and I want to recover it from a CWM backup.
Your app lets me read the backup, but I cant save the needed file ...
Is there a possibility to extract it from the backup?
Thanks in advance
Click to expand...
Click to collapse
Done... in v1.5.0 Single file or Folder for the moment... (file/folder context menu)
full extraction will be possible in next version... not linked

[GUIDE]Enable more homescreens on default launcher

In this guide I will show you how to enable more than the defaulft 5 homescreens
First of all, you'll need Apk Manager, this can be downloaded here.
Extract the zip to a folder you like, I'll use C:\Apk Manager\ in this guide!
Download the Home.apk from this post, note: it's for the .145 fw only.
Copy the Home.apk to C:\Apk Manager\place-apk-here-for-modding\
After you've done that, open Script.bat.
Select option 9.
Now the Home.apk will be decompiled.
When it's done decompiling, go here C:\Apk Manager\projects\Home.apk\res\values.
Open integers.xml with Notepad and go line 10. Will look like this:
Code:
<integer name="number_of_desktop_panes">5</integer>
You can change that number 5 to any number you like, let's use 9:
Code:
<integer name="number_of_desktop_panes">9</integer>
Open values/styles.xml and change line 16:
Code:
<style name="Layout.ButtonContainer">
to this
Code:
<style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar">
Save and close the files. Now go back to the Apk Manager tool and select option 11, the apk will now be compiled again. It will ask you this:
Is this a system apk (y/n)
Answer with y and press enter.
After that you'll get another question:
Aside from the signatures, would you like to copy
over any additional files that you didn't modify
from the original apk in order to ensure least
# of errors (y/n)
Anwer with y again.
Now this will show up:
In the apk manager folder u'll find
a keep folder. Within it, delete
everything you have modified and leave
files that you haven't. If you have modified
any xml, then delete resources.arsc from that
folder as well. Once done then press enter
on this script.
Go here C:\Apk Manager\keep and delete resources.arsc.
Now go back to the Apk Manager tool and press enter.
In C:\Apk Manager\place-apk-here-for-modding you'll find this: unsignedHome.apk. Rename it to Home.apk and push it to your device with adb.
Adb commands:
Code:
adb push Home.apk /sdcard/
adb shell
$su
#mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
#busybox cp -R /sdcard/Home.apk /system/app/
#sync
#reboot
After the restart you should have 9 homescreens
{
"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"
}
Thanks,works perfectly.
Now all I need is landscape rotation ...
Cool stuff. What will happen to my existing homescreens and all the widgets and icons on them after doing this? Will they get wiped?
And what about the overall performance? Any "lags" during games with so many homescreens?
Edit: Tried it, but got a message after starting the script.bat, saying that i have no java?! I have Java installed on my system. What should i do?
Montechristo1979 said:
Cool stuff. What will happen to my existing homescreens and all the widgets and icons on them after doing this? Will they get wiped?
And what about the overall performance? Any "lags" during games with so many homescreens?
Edit: Tried it, but got a message after starting the script.bat, saying that i have no java?! I have Java installed on my system. What should i do?
Click to expand...
Click to collapse
For some reason some widgets disappear, the best thing to do is clear data with Titanium backup and design your homescreens again
I didn't noticed any lag at all
Uhm, you might need Android SDK to be installed on your pc.. I could also compile the apk for you
I think i have the SDK on my netbook, but its about 100 km away. If you could compile it, i wouldnt say no
How many screens would you like to have?
I would like to try it with 9
Then you could just download the package from the first post
Oh, hehe, yes, um, i think i missed that one
I have root. Do i have to use adb push, or can i copy/paste the file to my device?
It's probably possible to just copy/paste it, but I prefer using adb
Maybe i did something wrong?! I copied the apk, but i played around with the permissions. After reboot the homescreens were empty, but not 9, just 5. So i checked the permissions of the old home.apk (did a backup before copy). I took the same permissions and did a reboot again. Now the phone boots up, i can unlock it, but there is no homescreen. All i see is the notofication-bar. What can i do?
Edit: I can access my apps and data using my WaveLauncher. I try to set other permissions. Maybe it will work.
Edit2: Ok, i set permissions like every other app within /system/app. Now i can access the homescreen again. Its empty, and i have 5 screens. But when i try to add a widget on my "main" homescreen, it says that there is not enough space. So i think the old widgets are still there, but i cant see/remove them. What can i do?
Montechristo1979 said:
Maybe i did something wrong?! I copied the apk, but i played around with the permissions. After reboot the homescreens were empty, but not 9, just 5. So i checked the permissions of the old home.apk (did a backup before copy). I took the same permissions and did a reboot again. Now the phone boots up, i can unlock it, but there is no homescreen. All i see is the notofication-bar. What can i do?
Edit: I can access my apps and data using my WaveLauncher. I try to set other permissions. Maybe it will work.
Edit2: Ok, i set permissions like every other app within /system/app. Now i can access the homescreen again. Its empty, and i have 5 screens. But when i try to add a widget on my "main" homescreen, it says that there is not enough space. So i think the old widgets are still there, but i cant see/remove them. What can i do?
Click to expand...
Click to collapse
happened to me before, stop the process and clear the data
Didn't work for me, couldn't get it to install, kept getting persmission denied through adb, despite the fact I'm rooted!
Could someone upload a version with 3 homescreens please?
Also, in the res/xml/default_settings_apptray -> could someone change the default sort to az instead of free! This means it should automatically sort it alphabetically and will remember it on restart...a bug in the current build.
Thanks guys
Niall
Works for me now. I did a complete new flash and root and now building up everything from scratch. Feels better now
Nhialor said:
Didn't work for me, couldn't get it to install, kept getting persmission denied through adb, despite the fact I'm rooted!
Could someone upload a version with 3 homescreens please?
Also, in the res/xml/default_settings_apptray -> could someone change the default sort to az instead of free! This means it should automatically sort it alphabetically and will remember it on restart...a bug in the current build.
Thanks guys
Niall
Click to expand...
Click to collapse
Added the one with 3 screens to the first post
No luck on the order thing yet, sorry..
works a charm, thanks man
Works like a champ lo lags on 9 screens.Thanks
xperia play not showing up on adb devices. Why?
do I need root for this or will it push without? I used adb to save the angry birds high score successfully without root but don't know if this will work same way or not. thank you
is it possiable to make an app that will install it for us

[SCRIPT][WIN][PowerShell] Android System Scripts (File Replacer) [v1.2.1][2014/1/24]

Code:
DISCLAIMER:
I am not responsible for any lost files, bricked devices, thermonuclear war,
zombie holocaust or your dog dropping dead after using these scripts.
You take full responsibility for your actions when using these scripts, and
consequently you should read the instructions, and gather enough knowledge
to know what these scripts are doing before running them on your device.
This is a series of scripts I call Android System Scripts for PowerShell, which I intend to expand upon over time. My goal is to provide some easy to use scripts to perform more or less trivial tasks that makes it easier to customize your Android system, and especially in relation to Android system upgrades on a custom ROM. (These scripts are completely ROM and device independent.)
I have chosen PowerShell because it’s a powerful scripting language that enables you to do most of the things you could in another .NET programming language (except I’m no programmer).
These scripts are made to easily replace some of your Android system files with alternate versions, primarily intended for use when upgrading your ROM. In this way you can easily further customize your ROM with alternate system APK’s, bootanimation.zip, or any other file you can think of. These scripts were primarily written out of my own need to replace Camera, MMS, Calendar and bootanimation.zip etc. in my custom ROM.
BEFORE USING THIS, please consider carefully which system files you want to replace !! Just know what you're doing, this is intended for experienced users only. This is why the script makes a backup of the old files so you can roll back. (For instance, I replaced the browser.apk with another version, which resulted in force closes, and I had to roll back to the previous version - be prepared to do so!)
Prerequisites
You must have ADB root access on your device.
A custom recovery is highly recommended.
Windows PowerShell 2.0 or higher.
Installing and preparing PowerShell
Most importantly, you need PowerShell 2.0 or higher - if you haven't already got it, download it from Microsoft here: (PowerShell is installed by default from Windows 7 and onwards)
http://support.microsoft.com/kb/968929
To use this script you also need to have the proper ADB executable present on your system, and you need to enable PowerShell to run scripts (which is disabled by default).
First, choose the folder in which you wish to install this script. This could very well be the same folder where your ADB executable files are, and it also has to be this folder where you later put the APK files to be installed.
I have installed mine into this folder: C:\Unified_Android_ToolKit\ADK tools
So if you haven't already, go grab a copy of ADB/Fastboot executables (although I don't use fastboot for anything yet), you can get them here:
http://forum.xda-developers.com/showthread.php?p=42407269
Install them into the chosen folder, and unzip the attached file with the script, so that the file android-system-scripts.ps1 is in the same folder as adb.exe. You can add this folder to your path, if you want to be able to execute the commands from anywhere.
Ok, so now ADB and the script is installed, but PowerShell still needs to be enabled to run any scripts at all. This is done by setting the Execution Policy in PowerShell, so you need to open a PowerShell console (found in Start->All Programs->Accessories->Windows PowerShell).
In PowerShell, type: Get-ExecutionPolicy
This will show you the current policy, which would be Restricted if you haven't set anything else. Now you have to set the execution policy to Unrestricted, meaning that all scripts will run.
So type: Set-ExecutionPolicy Unrestricted
Now the script is ready to be run in PowerShell.
The System-File-Replacer script
This script contains a function called System-File-Replacer. When this function is run, the script looks for a file called ass-filetable.tbl in the script folder, and any files listed in the data file will be written to the system of the attached device. A backup will be provided, both on the devices and pulled to your PC, so you can manually roll back at any time (revert function not included yet). The data file have the following format where 3 parameters are given, and each filename has its own line:
Code:
Filename Folder Permissions
firstfile.apk /system/app 644
etc.
An example ass-filetable.tbl is included in the zip. You can also define your own data file name as a parameter to the System-File-Replacer function, if you wish to maintain different file tables, like this:
Code:
System-File-Replacer mydatafile
What's important to understand about PowerShell is that running the script file android-system-scripts.ps1 only loads the function System-File-Replacer into memory. Afterwards, the function needs to be called by name (or by its alias sysfilerepl) to actually perform the task.
It is recommended to run this script while in your custom recovery, because you should clear your caches after the new system filess are installed to ensure everything works correctly.
Here is a screenshot of my first run on my N7:
{
"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 shows 3 system files being replaced - or rather 1 installed and 2 replaced, as LockClock does not exist on the device (which is why the pull fails), while Apollo.apk and bootanimation.zip gets pulled and then replaced.
The System-App-Replacer script
This is a much simpler script that reads a list of APK's in the current directory, and then performs the same operation as the System-File-Replacer script. This is simpler if you only need to install system APK's, and don't want to list them in the data file.
Step-by-step guide
Start Windows PowerShell
Go to the folder where the files you want to install on your device (and other required files) are located
Make sure that ADB and this script is in the folder as well (or added to your path)
Connect your device
Boot your device into recovery (or if you just flashed a ROM, you're already in recovery)
Mount your system partition from recovery (Important!)
From PowerShell run:
Code:
. android-system-scripts.ps1
(Yes the above command is: dot space <filename>)
From PowerShell run:
Code:
sysfilerepl
Confirm the onscreen instructions
Clear cache and dalvik cache (if you use dalvik that is)
Reboot your device
Done!
Possible developments
I plan to expand upon this collection of scripts over time, and some possible future developments could be:
Bootanimation installer (provided with System-File-Replacer)
Install more file types (provided with System-File-Replacer)
Data files and directory for more devices (provided with System-File-Replacer)
Revert function
Update.zip maker
I'm also open to ideas and suggestions if you have any particular needs, and I'll see if it fits into the toolbox to be added in the future.
:: AM ::
Changelog:
Code:
[B]v1.2.1 - 2014/1/24[/B]
System-File-Replacer: remove all files instead of only apk in pulled folder
[B]v1.2.0 - 2014/1/23[/B]
System-File-Replacer: new function included
[B]v1.0.0 - 2013/7/29[/B]
System-App-Replacer: new function included
Q: I don't feel like setting my Execution Policy to Unrestricted - is there another option?
A: Neither do I, so yes there is. It's possible to set the policy to RemoteSigned instead, in which case you can run unsigned scripts only if they're created locally. This also means that you have to convert my remote script to a local script. This is pretty easy, as all you have to do is open the script file in a text editor, copy all the text, create a new blank text file locally and paste the entire contents into this new file. Now you can delete my remote file, and rename the local file to android-system-scripts.ps1 - the script file is now a locally created file and can be run with the policy set to RemoteSigned.

[PC-APP] SGN3 Mod Tool

DOES IT WORK? I am yet to receive my SGN3, so I haven't been able to test.
I made this tool originally for SonyEricsson Xperia X10, but have now modified it to work for our Samsung Galaxy Note 3. I hope it will make life a little easier when modifying files on the device. It uses ADB to pull and push files, change file permissions and much more - so users don't need to remember long command prompt/terminal emulator commands! It also has a nifty little application manager, which allows for quick installation, backup, and removal of both pre and self -installed software. It has a LogCat function to read and save logs on the go when investigating errors, as well as functionality to decompile/recompile APK, JAR and ODEX files, sign and zipalign APKs, and decompile System images. Finally, straight ADB shell access is integrated.
{
"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"
}
Instructions:
1. Download.
2. Extract archive.
3. * Install LinuxReader to GalaxyS3ModTool\tools\LinuxReader.
4. Run SGN3ModTool.jar!
*This step is only needed for the Decompile System function in the ROM Manager.
Note: Make sure your phone is connected in debug mode, you have root privileges, and unsecured your device's shell. The application will try to unsecure your shell if you haven't already, but worst case scenario you might have to do this manually.
Also, the manage ROMs functionality is still experimental, and the Recompile System function is disabled. If you know how these processes can be automated, let me know and I will incorporate the functionality.
If you have problems, let me know and I will try to sort them out with you. Keep in mind that often when a modification goes wrong, you can simply push back the original files and reboot. So keep backups handy!
Reserved in case of future expansion.
Very interesting, will test when i get back home. Thanks!
Sound good mate. I'll give it a go I reckon
Wow sounds awesome thank you very much
Does it backup app data as well? This looks very promising. As it is java based, would it work on other platforms?
Sent from my Nexus 4 using Tapatalk
Post Removed
Breach said:
1. Download.
2. Extract archive to C:\cellphone\SGN3ModTool
3. * Install LinuxReader to C:\cellphone\SGN3ModTool\tools\LinuxReader.
4. ** Install the Java Runtime Enviroment from.. http://www.java.com/en/download/windows_xpi.jsp?locale=en
5. Make sure your Note 3 is plugged in and the screen is unlocked.
6. Run SGN3ModTool.jar
* This step is only needed for the Decompile System function in the ROM Manager.
** This step is only needed if you do not already have the JRE installed.
------------
It is telling me the device is offline. For example.. Roboot, Refresh Content, etc.. do not nothing.
Make Dir says "Directory Created" but does this...
adb shell mount -o remount,rw /system
adb shell mkdir "/test"
error: device offline
Click to expand...
Click to collapse
you have to allow ADB to acces your device..
when you try to do anything with ADB, look at your phone screen, it will give you a popup that will enable you to 'allow ADB connections'
karoolus said:
you have to allow ADB to acces your device..
when you try to do anything with ADB, look at your phone screen, it will give you a popup that will enable you to 'allow ADB connections'
Click to expand...
Click to collapse
I watched my screen. I got no popups other than the original "usb connected" popup when I plugged in the usb cable.
Edit: Deleted the app. No Support from Dev.
Breach said:
I watched my screen. I got no popups other than the original "usb connected" popup when I plugged in the usb cable.
Edit: Deleted the app. No Support from Dev.
Click to expand...
Click to collapse
this actually does work!
if somone still wants to use it for whatever reason you can:
get a kernel that is not SElinux enforcing (permissive).*
get adb insecure by chainfire and switch to insecure mode.
be sure that in the app it says:
Binary: Insecure
USB debugging: Enabled
should work, at least for me it did.
not sure if every custom kernel(permissive) works.
*lastest wanam exposed module has an experimental feature to set the selinux to permissive.
i havent tried it but maybe you can do the above with stock kernel and just setting permissive mode in wanam.
edit: does not work with stock kernel, at least for me.
i have not tested every function of this tool but connecting, pushing, pulling and so on work.
there are other tools that can do that, i wrote this just for information.
works well here! well done
cant get it to work on mac
thanks MrRusch for your great work!
I am a newbie about these stuff so forgive me if these are questions are stupid~
I was trying to use it to deodex the SamsungChineseIME apk and I got 2 questions want to ask.
1. when it asks for "Install Framework?", I choose the framework-res.apk extracted from my rom. But I also notice there is a twframeworkres.apk in the rom, do I need to include that also?
2. I came to a prompt asking me for "Select framework directory to reference" (as attached screen), I was hold back since I don't know what to choose for this.
Thank you again for your effort and this great tool!

[Tutorial] How to remove any Ads on any apk without root

Hello,
Today I want to share with you a method to remove any ads from an apk that should work on any Android version without root permissions.
You will need a minimum level of skills to understand the method and a computer (needed to edit the apk).
Obtain the apk
When you install an application, its apk will be placed in /data/app directory. However, you need a rooted phone to access that directory. Luckily, often there is a pre-installed system application to backup your apps (on Huawei there is Huawei Backup) that can access that folder. Thus, you don't need root permissions. You can use this backup pre-installed app to save your apk on the sd and transfer it on your computer.
Edit the apk and re-install it
I'm assuming that you're on Linux, but the same can be done with Windows or Mac. Continue with the following steps:
An apk is just a zip file, thus extract it in a folder. On Linux:
Code:
$ unzip com.example.apk
Now, try to look at the strings, regarding ads, in plain text inside the file classes.dex (you don't need to extract it). For example:
Code:
$ strings classes.dex | grep "ads"
Keep note about all the ads urls contained in classes.dex (e.g. googleads.g.doubleclick.net)
Use an hex editor as GHex or Bless to replace these ads urls with invalid urls (I suggest to use the same length). So, for example, you can transform: googleads.g.doubleclick.net into foobarfoo.b.arfoobarfoo.bar.
Save overwriting the original classes.dex and zip all the files into a new apk (e.g. com.example_noads.apk)
Sign the new apk. The process is easier using some tools (look for apk signer on google, there are one click tools).
Transfer the new apk on your phone and install it (the phone should ask if you want to upgrade your app, say yes).
In this way, the application should work as always, but it will try to load the ads from invalid urls. Thus, it should not display any ads.
Note: I've tested this method and it works, however it's possible that some applications are encrypted thus there aren't plain text ads urls.
EDIT: I added a new step where you must sign the new apk. In fact, this is the rule. However, when I wrote this post I didn't talk about that, because in my case I found an application that I succesfully re-installed without re-sign the apk (bug? hash collision? I still don't know).
Application implementing this method available: Purify
I developed an application to do all this process directly and automatically on your phone!
The application is still unmature, consider it a proof of concept. It will remove only google ads for the moment.
Click here to see the source code on GitHub
If you want to try the compiled apk:
Note: This is the first pre-release, keep in mind that it is just an example of implementation. Some purified applications could crash, for example because they don't handle the wrong urls or for other reasons. However, I tested it on some apps and it seems to work. Unpacking, editing and re-packing the apk can require few minutes. Please read further details on the github page linked above.
Hey there, thank you very much, I used Purify on android 8.0 and works great. It didn't sign my apk but I signed it from the pc and it installed and worked correctly without ads. Great!
Edit: Zipsigner isn't on the play store any more but I downloaded and installed the apk from apkpure and it signs it but doesn't do it well because it doesn't let me install it after that no matter what kind of sign type do I use. So I sign it from the pc using "signapk"
Nice app.....now a days ads from other sources are increasing such as facebook.ads, mobileads, inmobi,etc.....to my knowledge, manifest.xml contains every ad activity, service, receiver etc.....is it possible to add an interface to selectively remove those....so that i can remove any ad from any app.......by the way....thanks for your work?
I could call this "Unlucky Patcher". It broke all apps I applied on.
thank you for sharing. i hope you can revive this with some updates. would like to download the apk in github releases too.
Is it still working because I have tried on latest android version where I followed the below step and I got the error as "There was a parsing issue with the package".
1. Downloaded APK file and renamed it's extension from .apk to .zip.
2.Extracted the files in one folder and edited classes.dex file using HxD editor and searched for "https://googleads.g.doubleclick.net" and replaced with "https://foobarfoo.b.arfoobarfoo.bar".
3. Later I zipped back and renamed the file from .zip to .apk.
4. Generated keystore using jdk keytool and signed with jarsigner. for more information(https://stackoverflow.com/questions/4853011/how-to-sign-an-android-apk-file)
5. Did Zipalign using the above mentioned link and transferred file to my Android 10 OS .
Can anybody help if there is any problem with app signing or compressing the files. thanks
Nrin said:
Application implementing this method available: Purify
I developed an application to do all this process directly and automatically on your phone!
The application is still unmature, consider it a proof of concept. It will remove only google ads for the moment.
Click here to see the source code on GitHub
If you want to try the compiled apk:
Note: This is the first pre-release, keep in mind that it is just an example of implementation. Some purified applications could crash, for example because they don't handle the wrong urls or for other reasons. However, I tested it on some apps and it seems to work. Unpacking, editing and re-packing the apk can require few minutes. Please read further details on the github page linked above.
Click to expand...
Click to collapse
I did all as you said and I have apk
icallscreen_82_9601261.apk-purified.apk
bat I can't install it?!?!
Interesting,didn't know about this
removing ads is one thing, but what about fignerpritning & anayltics?
Hello, im looking for an app that can remove all kind of ads in apk other than google, like ads shown by modders in the aps. will attach a screenshot which shows an ad from modder for one app in first thing after installing the app and opening it.
{
"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 generated apk fails to install on miui 12
ON MIUI 13 Lucky patcher 10.2.6 works perfectly
pankajk said:
Is it still working because I have tried on latest android version where I followed the below step and I got the error as "There was a parsing issue with the package".
1. Downloaded APK file and renamed it's extension from .apk to .zip.
2.Extracted the files in one folder and edited classes.dex file using HxD editor and searched for "https://googleads.g.doubleclick.net" and replaced with "https://foobarfoo.b.arfoobarfoo.bar".
3. Later I zipped back and renamed the file from .zip to .apk.
4. Generated keystore using jdk keytool and signed with jarsigner. for more information(https://stackoverflow.com/questions/4853011/how-to-sign-an-android-apk-file)
5. Did Zipalign using the above mentioned link and transferred file to my Android 10 OS .
Can anybody help if there is any problem with app signing or compressing the files. thanks
Click to expand...
Click to collapse
aye bro did you find the solution?
hey I tried everything but unfortunately without success the ads stay unfortunately! Unfortunately the sylkat apache is not available for purchase without ads! tried everything! can someone help me please! have a good app for signing too ! Thanks
I have Android 10 and Android with root on the Nintendo Switch
This No Work with my Apps
googleads.g.doubleclick.net into foobarfoo.b.arfoobarfoo.bar
Thanks
I remove the ads ! Happy ! Remove ads in Apache sylkat and mobile telnet ! With lucky Patcher

Categories

Resources