[Q&A][SM-G903F] Permissions problem - Galaxy S 5 Q&A, Help & Troubleshooting

Hello community,
i have question about permission as my script does not want to execute and hope you will be able to resolve my problem. Thank you so much
Here is the script:
set_progress(0.0);
ui_print(" ");
ui_print("*************************************");
ui_print("S5 Neo 3MinitBattery Lollipop Remover");
ui_print("Made by wilmans2m");
ui_print("************************************");
ifelse(is_mounted("/system") == "/system", unmount("/system"));
ifelse(is_mounted("/cache") == "/cache", unmount("/cache"));
ifelse(is_mounted("/data") == "/data", unmount("/data"));
ui_print("Mounting Partitions...");
package_extract_file("/tmp/busybox", "/tmp/busybox");
set_perm(0, 0, 755, "/tmp/busybox");
run_program("/tmp/busybox", "mount", "/system");
run_program("/tmp/busybox", "mount", "/data");
run_program("/tmp/busybox", "mount", "/cache");
set_progress(0.02);
ui_print("--> Removing 3MinitBattery mod");
package_extract_dir("system", "/system");
delete_recursive("/data/app/com.three.minit.minitbatterysettings-1");
delete_recursive("/data/app/com.three.minitbatteryresources-2");
set_progress(0.6);
ui_print("Wiping cache, dalvik, system");
format("ext4", "EMMC", "/dev/block/platform/13540000.dwmmc0/by-name/CACHE", "0", "/cache");
run_program("/sbin/sleep", "2");
delete_recursive("/cache");
run_program("/sbin/sh", "-c", "rm -fR /data/dalvik-cache");
set_progress(0.8);
run_program("/tmp/busybox", "umount", "/system");
run_program("/tmp/busybox", "umount", "/data");
run_program("/tmp/busybox", "umount", "/cache");
ui_print(" ");
ui_print("Remove complete");
ui_print(" ");
set_progress(0.999992);
run_program("/sbin/reboot")

Related

[Q] update.zip Edify data2system problem

Hi,
I would like to add a form update.zip system / app folder in a couple of new apk.
Trying:
Code:
ui_print(" ");
ui_print("start");
show_progress(.200000, 5);
mount("MTD", "userdata", "/userdata");
package_extract_dir("system", "/system");
unmount("/userdata");
show_progress(.000000, 5);
ui_print("end");
structure:
-META-INF
-com
-google
-android
-update-binary
-update-script
-system
-app
-first.apk
-second.apk
clockworkmod go-> update.zip, run, no errors, end.
Go start the phone, browse rootexplorer, and nothing the apk app folder.
please help me.
heimdallr75 said:
Hi,
I would like to add a form update.zip system / app folder in a couple of new apk.
Trying:
Code:
ui_print(" ");
ui_print("start");
show_progress(.200000, 5);
mount("MTD", "userdata", "/userdata");
package_extract_dir("system", "/system");
unmount("/userdata");
show_progress(.000000, 5);
ui_print("end");
structure:
-META-INF
-com
-google
-android
-update-binary
-update-script
-system
-app
-first.apk
-second.apk
clockworkmod go-> update.zip, run, no errors, end.
Go start the phone, browse rootexplorer, and nothing the apk app folder.
please help me.
Click to expand...
Click to collapse
You need to replace 'system' with 'data',
So rename the 'system' folder to 'data' and then code your updater-script like this:
Code:
ui_print(" ");
ui_print("start");
show_progress(.200000, 5);
mount("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
unmount("/data");
show_progress(.000000, 5);
ui_print("end");
Hope it helps,
Jack
JackG256 said:
You need to replace 'system' with 'data',
So rename the 'system' folder to 'data' and then code your updater-script like this:
Code:
ui_print(" ");
ui_print("start");
show_progress(.200000, 5);
mount("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
unmount("/data");
show_progress(.000000, 5);
ui_print("end");
Hope it helps,
Jack
Click to expand...
Click to collapse
Thx Jack!
but correct working script:
Code:
mount("MTD", "userdata", "/system");
package_extract_dir("system", "/system");
unmount("/system");
its work
heimdallr75 said:
Thx Jack!
but correct working script:
Code:
mount("MTD", "userdata", "/system");
package_extract_dir("system", "/system");
unmount("/system");
its work
Click to expand...
Click to collapse
Oh I see now what are u trying to. Yes that is the correct way. Good idea.
Veronica
Sent from my GT540 using XDA App

[GUIDE] Fix status 6 while flashing ROMs

I assume at least half of Android users get Error status 6 while flashing ROMs. This can be explained in 2 reasons.
Number 1:The developer of the ROM was too stupid to fix this mistake
Click to expand...
Click to collapse
or
Number 2: You are tying to port a ROM and those errors come to you
Click to expand...
Click to collapse
So lets start fixing.
Extract the ROM. Open META-INF com google android and open with Notepad++ updater-scipt.
Find the line called mount("ext4", "EMMC", "/dev/block/some kind of Letters and Numbers ", "/system");
This command is telling the device to mount the system from a path. Each device has a different path.
The path is those some kind of letters and numbers up bellow.
Those numbers and letters are different for every device.
So maybe the letters are not correct and it can't find the path to mount the data.
What we need to do is change the path. For the path that is for your device.
Easiest way to do this is to find a ROM meant and tested for your device, open updater-script, got to the same line and replace the path.
Example change mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/system"); to mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
Click to expand...
Click to collapse
You may also find these two lines
format("ext4", "EMMC", "/dev/block/some kind of letters and numbers", "0", "/system");
mount("ext4", "EMMC", "/dev/block/some kind of letters and numbers", "/system");
The first line is telling the device to format the data.
The second line is telling the device to mount the data
The error is similar to the error up.
You need to change the path for the data
But the path for the data is different for the path for the system
So go to the same path on the ROM for your device and change the code
But remember the codes for the data and for the system are not the same.
Example Change format("ext4", "EMMC", "/dev/block/mmcblk0p29", "0", "/system"); and
mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/system"); to format("ext4", "EMMC", "/dev/block/mmcblk0p20", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/system");
Click to expand...
Click to collapse
And the errors should be fixed.
Post a reply there is still an error.
Leave a tnx or donate if I helped.
i've tried your solution for the cm7.2 rc3 aa-oc-firekernel rom for Galaxy Ace.
After having a status 7 error i removed the lines containing assert... etc.
now I'm gettin the status 6 error and i've modified the format and mount lines.
I've looked in 2 similar roms which can be flashed (one of 'm is my current rom).
the other one is the rom i've used before, so both work.
these roms start as follows:
Code:
format("ext4", "EMMC", "/dev/block/stl12", "0");
mount("ext4", "EMMC", "/dev/block/stl12", "/system");
package_extract_dir("system", "/system");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
the update-script from the rom I'd like to flash starts like this:
Code:
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
run_program("/tmp/backuptool.sh", "backup");
show_progress(0.500000, 0);
format("ext4", "EMMC", "/dev/block/stl12", "0");
mount("ext4", "EMMC", "/dev/block/stl12", "/system");
package_extract_dir("recovery", "/system");
package_extract_dir("system", "/system");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
a bit different but the format and mount lines are indentical.
I can't figure out why I'm keep getting this status 6 error.
can you help me with it?
DutchArjo said:
i've tried your solution for the cm7.2 rc3 aa-oc-firekernel rom for Galaxy Ace.
After having a status 7 error i removed the lines containing assert... etc.
now I'm gettin the status 6 error and i've modified the format and mount lines.
I've looked in 2 similar roms which can be flashed (one of 'm is my current rom).
the other one is the rom i've used before, so both work.
these roms start as follows:
Code:
format("ext4", "EMMC", "/dev/block/stl12", "0");
mount("ext4", "EMMC", "/dev/block/stl12", "/system");
package_extract_dir("system", "/system");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
the update-script from the rom I'd like to flash starts like this:
Code:
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
run_program("/tmp/backuptool.sh", "backup");
show_progress(0.500000, 0);
format("ext4", "EMMC", "/dev/block/stl12", "0");
mount("ext4", "EMMC", "/dev/block/stl12", "/system");
package_extract_dir("recovery", "/system");
package_extract_dir("system", "/system");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
a bit different but the format and mount lines are indentical.
I can't figure out why I'm keep getting this status 6 error.
can you help me with it?
Click to expand...
Click to collapse
if you get a Status 7 error then you have to flash the rom using different recovery.
hope I helped, if yes then plz hit the thx button.:good:
i'm getting Status 6 error with this
Code:
assert(getprop("ro.product.device") == "mako" || getprop("ro.build.product") == "mako" || abort("E3004: This package is for device: mako; this device is " + getprop("ro.product.device") + "."););
ui_print("Target: google/occam/mako:7.1/NDE63X/2167285:user/release-keys");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
ui_print("flashing substratum");
package_extract_file("Substratum.apk", "/system/app/Substratum/Substratum.apk");
set_perm_recursive(0, 0, 0644, "/system/app/Substratum/Substratum.apk");
set_perm_recursive(0, 0, 0644, "/system/build.prop");
unmount("/system");
set_progress(1.000000);
i just added extra flashing process..
placed files in zip but getting error
i added extra lines from here
Code:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
ui_print("flashing substratum");
package_extract_file("Substratum.apk", "/system/app/Substratum/Substratum.apk");
set_perm_recursive(0, 0, 0644, "/system/app/Substratum/Substratum.apk");
set_perm_recursive(0, 0, 0644, "/system/build.prop");
unmount("/system");
set_progress(1.000000);
please reply asap..

Status 6 in CWM?! [My Windows 8 ROM]

Hey, I've got a problem, so I can not to deal with the "updater-script" ... I read that it is a bad write the same file format. I suggested this youtube.com/watch?v=h5QbsUsQx70 but it did not help ... So can you convert this to me somehow the script itself, To work?
Here gives a code from a script:
Code:
show_progress(0.200000, 0);
ui_print("Windows 8 ROM By DANiO");
ui_print("");
ui_print("Uruchamiam program konwertacyjny z RFS na EXT4");
package_extract_file("tools/busybox", "/tmp/busybox");
package_extract_file("tools/fsck.ext4", "/tmp/fsck.ext4");
package_extract_file("tools/tune2fs.ext4", "/tmp/tune2fs.ext4");
package_extract_file("tools/mkfs.ext4", "/tmp/mkfs.ext4");
package_extract_file("tools/mke2fs.conf", "/etc/mke2fs.conf");
package_extract_file("tools/su", "/tmp/su");
package_extract_file("bmlunlock", "/tmp/bmlunlock");
run_program("/tmp/bmlunlock");
unmount("/system");
run_program("/tmp/fsck.ext4", "-fy", "/dev/block/stl9");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "SYSTEM", "-b", "4096", "-m", "0", "-F", "/dev/block/stl9");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/stl9");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/stl9");
unmount("/data");
run_program("/tmp/fsck.ext4", "-fy", "/dev/block/stl11");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "DATA", "-b", "4096", "-m", "0", "-F", "/dev/block/stl11");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/stl11");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/stl11");
unmount("/cache");
run_program("/tmp/fsck.ext4", "-fy", "/dev/block/stl10");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "CACHE", "-b", "4096", "-m", "0", "-F", "/dev/block/stl10");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/stl10");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/stl10");
unmount("/system");
format("ext4", "EMMC", "/dev/block/stl9", "0", "/system");
mount("ext4", "EMMC", "/dev/block/stl9" "/system");
unmount("/data");
format("ext4", "EMMC", "/dev/block/stl11", "0", "/data);
mount("ext4", "EMMC", "/dev/block/stl11", "/data");
unmount("/cache");
format("ext4", "EMMC", "/dev/block/stl10", "0", "/cache);
mount("ext4", "EMMC", "/dev/block/stl10", "/cache");
package_extract_file("bmlunlock", "/tmp/bmlunlock");
package_extract_file("boot.img", "boot.img");
run_program("/tmp/bmlunlock");
ui_print("Wgrywanie Kernel'a...");
run_program("/tmp/busybox", "dd", "if=boot.img", "bs=1", "count=40", "seek=786436", "of=/dev/bml15");
run_program("/sbin/busybox", "sh", "/sbin/fix_permissions");
unmount("/data");
package_extract_file("tools/busybox", "/tmp/busybox");
package_extract_file("tmp/resetbin.bin", "/tmp/resetbin.bin");
ui_print("Resetowanie licznika flash'owan...");
run_program("/tmp/busybox", "dd", "if=/tmp/resetbin.bin", "bs=1", "count=40", "seek=786436", "of=/dev/bml15");
ui_print("Kopiowanie plikow systemowych Windows 8 do NAND'a...");
package_extract_dir("system","/system");
ui_print("Odmontowywanie partycji /system...");
unmount("/system");
ui_print("Wszystko zrobione!");
show_progress(0.100000, 0);
PS: Sorry for the English language and thanks

Own bloatkill script ended with error

Hello,
I made my own bloatkill script, but when I flashed it an error appeared.
Here are the errors:
On TWRP 3.2 : error executing updater binary
On TWRP 2.7.8 error executing updater binary
On latest Philz Recovery: update update-binary (error: 11)
When somebody tell me how to add data, i can add the bloatkill.zip and the recovery log.
Here's a part of the log with the error:
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
Prozess Updater endete mit Meldung: 11
I:Legacy property environment disabled.
Fehler beim Installieren von ZIP '/external_sd/Neuer Ordner/bloatkill (1).zip'
Partitions-Informationen werden aktualisiert...
Iata backup size is 7810MB, free: 3045MB.
I:Unable to mount '/usbstorage'
I:Actual block device: '', current file system: 'vfat'
...Fertig
Here's the updater-script:
ui_print("Useless stuff cleaning start");
ui_print(" ");
ui_print("Partitions mount");
#Properly unmounting to avoid issues
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
#Then mounting
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
ui_print(" ");
ui_print("Useless system app removal");
delete("/system/app/Books/Books.apk");
delete("/system/app/Chrome/Chrome.apk");
delete("/system/app/Drive/Drive.apk");
delete("/system/app/Dropbox/Dropbox.apk");
delete("/system/app/GeoLookout/GeoLookout.apk");
delete("/system/app/Gmail"/Gmail2.apk");
delete("/system/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk");
delete("/system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk");
delete("/system/app/Hangouts/Hangouts.apk");
delete("/system/app/Maps/Maps.apk");
delete("/system/app/Music2/Music2.apk");
elete("/system/app/Newsstand/Newsstand.apk);
delete("/system/app/Photos/Photos.apk");
delete("/system/app/PlusOne/PlusOne.apk");
delete("/system/app/SBrowser_4_Latest/SBrowser_4_Latest.apk);
delete("/system/app/SecMemoDL/SecMemoDL.apk");
delete("/system/app/SmartRemote_KL/SmartRemote_KL.apk");
delete("/system/app/SamsungIME");
elete("/system/app/Videos/Videos.apk);
delete("/system/priv-app/S-Voice_Android_phone/S-Voice_Android_phone.apk");
delete("/system/priv-app/SecMyFiles2014/SecMyFiles2014.apk");
delete("/system/priv-app/SFinder_v4/SFinder_v4.apk");
delete("/system/priv-app/TouchWizHome/TouchWizHome.apk");
delete("/system/priv-app/VoiceNote/VoiceNote.apk");
ui_print(" ");
ui_print("Copy Apps")
package_extract_dir("system", "/system");
ui_print(" ");
ui_print("Unmounting partitions");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
ui_print(" ");
ui_print("Finish");
Thread closed as oer op request

kali linux nethunter for tab s6 lite

i have cut a rom of kali linux nethunter for tab s6 lite it works
but the problem that does not copy and paste or install the apk
can you help me solve this problem
aroma-config
### LICENSE:
#
# Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
### FILE INFO:
#
# AROMA Installer 2.70 - AROMA Installer Test Script Configuration
# (c) 2011-2012 by Ahmad Amarullah
# amarullz - xda-developers
# http://www.amarullz.com/
#
# Binary Version : 3.00
# Binary Codename : Flamboyan
#
ini_set("force_colorspace","rgba");
ini_set("rom_name", "Kali Nethunter");
ini_set("rom_version", "1.1");
ini_set("rom_author", "Ayra Hikari");
ini_set("rom_device", "rolex");
ini_set("rom_date", "03/10/2018");
splash(3000, "SPLASH");
fontresload("0", "ttf/Roboto-Regular.ttf", "12");
fontresload("1", "ttf/Roboto-Regular.ttf", "18");
theme("touchwiz");
agreebox("Security Warning",
"Please read about possible security issues...","icons/agreement",
"" + readfile_aroma("agreement.txt"),
"I understand about possible security risks...",
"Please check the box..."
);
##
# MAIN MENU- INSTALLER
#
menubox(
#-- Title
"Kali Nethunter Installer Menu",
#-- Sub Title
"Please select from the Menu Below to modify the required features",
#-- Icon
"@apps",
#-- Will be saved in /tmp/aroma/menu.prop
"menu.prop",
#-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
# TITLE | SUBTITLE | Item Icons #
#-------------------------+-----------------------------------------------------------+---------------#
"Custom Installation", "Select Applications to Install", "@install", #-- selected = 1
"ChangeLog", "Nethunter ChangeLog", "@Agreement", #-- selected = 2
"Quit Install", "Exit", "@install" #-- selected = 3
);
if prop("menu.prop","selected")=="1" then
checkbox("Application List",
"Choose the applications to be installed.",
"@personalize",
"app_choices.prop",
"Required", "", 2,
"Magisk", "v16.0", 0,
"Nethunter", "v3", 1,
"Custom Nethunter Terminal Emulator", "", 1,
"Custom Nethunter VNC", "", 1,
"Optional", "", 2,
"BlueNMEA", "v2.1.3 - Used for GPS in Kismet", 0,
"Drivedroid", "0.9.29 - Used for mounting CDROM/images", 0,
"Hackerskeyboard", "v1.38.2 - Alternative keyboard", 0,
"RFAnalyzer", "v1.12 - SDR", 0,
"Shodan", "v0.0.2 - Interact with ShodanHQ API", 0,
"NetHunterStorePrivilegedExtension", "v1.15 - Test HID interaction", 0,
"cSploit", "Nightly", 0,
"NetHunterKeX", "v3.15", 0);
setvar("installer_title","You have selected the following applications:");
appendvar("installer_title","\n\n");
appendvar("installer_title",iif(prop("app_choices.prop","item.1.1")=="1","Magisk \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.1.2")=="1","Nethunter \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.1.3")=="1","Terminal Emulator \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.1.4")=="1","VNC \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.2.1")=="1","BlueNMEA \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.2.2")=="1","Drivedroid \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.2.3")=="1","Hackerskeyboard \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.2.4")=="1","RFAnalyzer \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.2.5")=="1","Shodan \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.2.6")=="1","NetHunterStorePrivilegedExtension \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.2.7")=="1","cSploit \n",""));
appendvar("installer_title",iif(prop("app_choices.prop","item.2.8")=="1","NetHunterKeX \n",""));
writetmpfile("app_choices.prop",readtmpfile("app_choices.prop"));
if confirm("Installing",getvar("installer_title") + "\n\nContinue with selected applications?", "@confirm")=="no" then back(1);
endif;
checkbox(
"System Settings","<b>Personalize</b>","@personalize","mods.prop",
"Install Nano binary", "If your ROM does not include nano",0,
"Install Kali Nethunter Wallpaper", "",1,
"Install Custom Boot Animation (aries)", "",0,
"Install Proxdroid 2.0", "For use with Proxmark3",0
);
setvar("retstatus",
install(
"Installing",
"Installing Nethunter...",
"@install")
);
ini_set("text_next", "Finish");
viewbox(
"Installation Completed",
"<#080>Congratulations...</#>\n\n"+
"Nethunter has been installed sucessfully!\n\n"+
"Please reboot! If you are unable to exit with exit button, press power and hit 'Quit Installation'.",
"@info"
);
#-- Back to Menu
back("1");
endif;
#
# CHANGELOG DISPLAY
#
if prop("menu.prop","selected")=="2" then
textdialog(
#-- Title
"Nethunter Changelog",
#-- Text
resread("changelog.txt"),
#-- Custom OK Button Text (Optional)
"Ok"
);
#-- Back to Menu
back("1");
endif;
##
# QUIT INSTALLER
#
if prop("menu.prop","selected")=="3" then
#-- Exit
if
confirm(
#-- Title
"Exit",
#-- Text
"Are you sure want to exit Nethunter Installer?",
#-- Icon (Optional)
"@alert"
)=="yes"
then
#-- Exit
exit("");
endif;
endif;
updater-script
set_progress(0.0);
ui_print("- Starting the install process");
set_progress(0.1);
ui_print("Copying tools to /tmp");
package_extract_dir("tools", "/tmp");
set_perm(0, 0, 0755, "/tmp/busybox");
ui_print("Copying system files to /tmp");
package_extract_dir("system", "/tmp/system");
set_progress(0.2);
ui_print("Mounting /data");
run_program("/tmp/busybox", "mount", "/data");
ui_print("Mounting /system");
run_program("/tmp/busybox", "mount", "/system");
set_progress(0.3);
ui_print("Mounting /sdcard");
run_program("/tmp/busybox", "mount", "/sdcard");
set_progress(0.4);
set_perm(0, 0, 0755, "/tmp/previnstall.sh");
run_program("/tmp/previnstall.sh");
ui_print("- Installing Apps");
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.2")=="1") then ui_print("Installing Nethunter");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/nethunter.apk", "/data/app/nethunter.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.3")=="1") then ui_print("Installing Custom Nethunter Jackpal Terminal");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/Term-nh.apk", "/data/app/Term-nh.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.4")=="1") then ui_print("Installing Custom Nethunter VNC");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/VNC-nh.apk", "/data/app/VNC-nh.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.1")=="1") then ui_print("Installing BlueNMEA-2.1.3");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/BlueNMEA.apk", "/data/app/BlueNMEA.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.2")=="1") then ui_print("Installing Drivedroid-0.9.29");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/Drivedroid.apk", "/data/app/Drivedroid.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.3")=="1") then ui_print("Installing Hackerskeyboard-1.0.3.7");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/Hackerskeyboard.apk", "/data/app/Hackerskeyboard.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.4")=="1") then ui_print("Installing RFAnalyzer");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/RFAnalyzer.apk", "/data/app/RFAnalyzer.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.5")=="1") then ui_print("Installing Shodan");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/Shodan.apk", "/data/app/Shodan.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.6")=="1") then ui_print("Installing NetHunterStorePrivilegedExtension");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/NetHunterStorePrivilegedExtension.apk", "/data/app/NetHunterStorePrivilegedExtension.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.7")=="1") then ui_print("Installing cSploit Nightly");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/cSploit-nightly.apk", "/data/app/cSploit-nightly.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.8")=="1") then ui_print("Installing NetHunterKeX");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/NetHunterKeX.apk", "/data/app/NetHunterKeX.apk");
endif;
set_progress(0.5);
if
file_getprop("/tmp/aroma/mods.prop","item.0.1") == "1"
then
ui_print("- Installing nano binary");
run_program("/tmp/busybox", "mount", "/system");
set_perm(0, 0, 0755, "/tmp/installnano.sh");
run_program("/tmp/installnano.sh");
endif;
if
file_getprop("/tmp/aroma/mods.prop","item.0.2") == "1"
then
ui_print("- Installing Nethunter wallpapers");
run_program("/tmp/busybox", "mount", "/data");
package_extract_dir("wallpaper", "/tmp/wallpaper");
set_perm(0, 0, 0755, "/tmp/wallpaper/setwallpaper.sh");
run_program("/tmp/wallpaper/setwallpaper.sh");
unmount("/data");
endif;
if
file_getprop("/tmp/aroma/mods.prop","item.0.3") == "1"
then
ui_print("- Installing Custom Boot Animation");
run_program("/tmp/busybox", "mount", "/system");
package_extract_file("system/media/bootanimation.zip", "/system/media/bootanimation.zip");
set_perm(0, 0, 0755, "/system/media/bootanimation.zip");
unmount("/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","item.0.4") == "1"
then
ui_print("- Installing Proxdroid");
run_program("/tmp/busybox", "mount", "/system");
run_program("/tmp/busybox", "mount", "/data");
set_perm(0, 0, 0755, "/tmp/symlinkproxmark3.sh");
run_program("/tmp/symlinkproxmark3.sh");
endif;
set_progress(0.6);
ui_print("- Checking for busybox");
run_program("/tmp/busybox", "mount", "/system");
set_perm(0, 0, 0755, "/tmp/busyboxcheck.sh");
run_program("/tmp/busyboxcheck.sh");
set_progress(0.7);
ui_print("- Symlink bootkali");
symlink("/data/data/com.offsec.nethunter/files/scripts/bootkali", "/system/bin/bootkali");
symlink("/data/data/com.offsec.nethunter/files/scripts/bootkali_login", "/system/bin/bootkali_login");
symlink("/data/data/com.offsec.nethunter/files/scripts/bootkali_bash", "/system/bin/bootkali_bash");
set_progress(0.8);
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.1")=="1") then ui_print("Installing Magisk");
package_extract_dir("magisk", "/tmp/magisk");
ui_print("Magisk may lock Aroma installation display");
ui_print("Installation will still continue. Turn off/on in a minute.");
run_program("/tmp/busybox", "unzip", "-o", "/tmp/magisk/magisk.zip", "-d", "/tmp/magisk");
run_program("/tmp/busybox", "ash", "/tmp/magisk/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/magisk/magisk.zip");
endif;
set_progress(0.9);
ui_print("- Checking for Kali Chroot in installer...this can take a while...");
package_extract_dir("data/local", "/data/local");
set_perm(0, 0, 0755, "/tmp/extractchroot.sh");
run_program("/tmp/extractchroot.sh");
unmount("/data");
unmount("/system");
delete_recursive("/tmp");
ui_print("- Finished Install");
set_progress(1);
does not copy the apk or the bootanimation.zip to the tablet
just copy the wallpaper
what can i do
help
set_progress(0.0);
ui_print("- Starting the install process");
set_progress(0.1);
ui_print("Copying tools to /tmp");
package_extract_dir("tools", "/tmp");
set_perm(0, 0, 0755, "/tmp/busybox");
ui_print("Copying system files to /tmp");
package_extract_dir("system", "/tmp/system");
set_progress(0.2);
ui_print("Mounting /data");
run_program("/tmp/busybox", "mount", "/data");
ui_print("Mounting /system");
run_program("/tmp/busybox", "mount", "/system");
set_progress(0.3);
ui_print("Mounting /sdcard");
run_program("/tmp/busybox", "mount", "/sdcard");
set_progress(0.4);
set_perm(0, 0, 0755, "/tmp/previnstall.sh");
run_program("/tmp/previnstall.sh");
ui_print("- Installing Apps");
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.2")=="1") then ui_print("Installing Nethunter");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/nethunter.apk", "/data/app/nethunter.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.3")=="1") then ui_print("Installing Custom Nethunter Jackpal Terminal");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/Term-nh.apk", "/data/app/Term-nh.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.4")=="1") then ui_print("Installing Custom Nethunter VNC");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/VNC-nh.apk", "/data/app/VNC-nh.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.1")=="1") then ui_print("Installing BlueNMEA-2.1.3");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/BlueNMEA.apk", "/data/app/BlueNMEA.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.2")=="1") then ui_print("Installing Drivedroid-0.9.29");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/Drivedroid.apk", "/data/app/Drivedroid.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.3")=="1") then ui_print("Installing Hackerskeyboard-1.0.3.7");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/Hackerskeyboard.apk", "/data/app/Hackerskeyboard.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.4")=="1") then ui_print("Installing RFAnalyzer");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/RFAnalyzer.apk", "/data/app/RFAnalyzer.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.5")=="1") then ui_print("Installing Shodan");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/Shodan.apk", "/data/app/Shodan.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.6")=="1") then ui_print("Installing NetHunterStorePrivilegedExtension");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/NetHunterStorePrivilegedExtension.apk", "/data/app/NetHunterStorePrivilegedExtension.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.7")=="1") then ui_print("Installing cSploit Nightly");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/cSploit-nightly.apk", "/data/app/cSploit-nightly.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.2.8")=="1") then ui_print("Installing NetHunterKeX");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("data/app/NetHunterKeX.apk", "/data/app/NetHunterKeX.apk");
endif;
set_progress(0.5);
if
file_getprop("/tmp/aroma/mods.prop","item.0.1") == "1"
then
ui_print("- Installing nano binary");
run_program("/tmp/busybox", "mount", "/system");
set_perm(0, 0, 0755, "/tmp/installnano.sh");
run_program("/tmp/installnano.sh");
endif;
if
file_getprop("/tmp/aroma/mods.prop","item.0.2") == "1"
then
ui_print("- Installing Nethunter wallpapers");
run_program("/tmp/busybox", "mount", "/data");
package_extract_dir("wallpaper", "/tmp/wallpaper");
set_perm(0, 0, 0755, "/wallpaper/setwallpaper.sh");
run_program("/tmp/wallpaper/setwallpaper.sh");
unmount("/data");
endif;
if
file_getprop("/tmp/aroma/mods.prop","item.0.3") == "1"
then
ui_print("- Installing Custom Boot Animation");
run_program("/tmp/busybox", "mount", "/system");
package_extract_file("system/media/bootanimation.zip", "/system/media/bootanimation.zip");
set_perm(0, 0, 0755, "/system/media/bootanimation.zip");
unmount("/system");
endif;
if
file_getprop("/tmp/aroma/mods.prop","item.0.4") == "1"
then
ui_print("- Installing Proxdroid");
run_program("/tmp/busybox", "mount", "/system");
run_program("/tmp/busybox", "mount", "/data");
set_perm(0, 0, 0755, "/tmp/symlinkproxmark3.sh");
run_program("/tmp/symlinkproxmark3.sh");
endif;
set_progress(0.6);
ui_print("- Checking for busybox");
run_program("/tmp/busybox", "mount", "/system");
set_perm(0, 0, 0755, "/tmp/busyboxcheck.sh");
run_program("/tmp/busyboxcheck.sh");
set_progress(0.7);
ui_print("- Symlink bootkali");
symlink("/data/data/com.offsec.nethunter/files/scripts/bootkali", "/system/bin/bootkali");
symlink("/data/data/com.offsec.nethunter/files/scripts/bootkali_login", "/system/bin/bootkali_login");
symlink("/data/data/com.offsec.nethunter/files/scripts/bootkali_bash", "/system/bin/bootkali_bash");
set_progress(0.8);
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.1")=="1") then ui_print("Installing Magisk");
package_extract_dir("magisk", "/tmp/magisk");
ui_print("Magisk may lock Aroma installation display");
ui_print("Installation will still continue. Turn off/on in a minute.");
run_program("/tmp/busybox", "unzip", "-o", "/tmp/magisk/magisk.zip", "-d", "/tmp/magisk");
run_program("/tmp/busybox", "ash", "/tmp/magisk/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/magisk/magisk.zip");
endif;
set_progress(0.9);
ui_print("- Checking for Kali Chroot in installer...this can take a while...");
package_extract_dir("data/local", "/data/local");
set_perm(0, 0, 0755, "/tmp/extractchroot.sh");
run_program("/tmp/extractchroot.sh");
unmount("/data");
unmount("/system");
delete_recursive("/tmp");
ui_print("- Finished Install");
set_progress(1);
found the solution
magisk manager modified by aries
to install the apk
with Kali's assistant
but the problem to be installed one by one
I don't know the problem that does not allow you to install everything at once
beta download
Nethunter-3.0_aries_v0
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
bring kali nethunter's anykernel
if it is compatible it works

Categories

Resources